:root {
    /* World Master Lottery Color Palette */
    --primary-blue: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3b82f6 100%);
    --secondary-gold: linear-gradient(135deg, #f7931e 0%, #ffd700 50%, #ffed4e 100%);
    --accent-purple: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #9333ea 100%);
    --success-green: linear-gradient(135deg, #11998e 0%, #38ef7d 50%, #22c55e 100%);
    --world-bg: #0f172a;
    --card-bg: rgba(30, 60, 114, 0.12);
    --glass-bg: rgba(59, 130, 246, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-accent: #fbbf24;
    --border-world: rgba(59, 130, 246, 0.25);
    --shadow-world: 0 10px 40px rgba(30, 60, 114, 0.3);
    --shadow-gold: 0 8px 32px rgba(251, 191, 36, 0.2);
    --border-radius: 18px;
    --border-radius-lg: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--world-bg);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, transparent 30%, rgba(30, 60, 114, 0.03) 50%, transparent 70%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* World Map Pattern Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%233b82f6" opacity="0.1"/><circle cx="80" cy="30" r="1" fill="%23fbbf24" opacity="0.1"/><circle cx="50" cy="70" r="1" fill="%239333ea" opacity="0.1"/><circle cx="30" cy="80" r="1" fill="%2322c55e" opacity="0.1"/></svg>');
    background-size: 200px 200px;
    pointer-events: none;
    z-index: -1;
    animation: worldMove 20s linear infinite;
}

@keyframes worldMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 200px 200px;
    }
}

/* Floating World Elements */
.world-bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.grecaptcha-badge {
    visibility: hidden;
}

.floating-element {
    position: absolute;
    opacity: 0.08;
    animation: worldFloat 8s ease-in-out infinite;
    font-size: 40px;
}

.floating-element:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    color: var(--text-accent);
}

.floating-element:nth-child(2) {
    top: 25%;
    right: 15%;
    animation-delay: 3s;
    color: #3b82f6;
}

.floating-element:nth-child(3) {
    bottom: 25%;
    left: 20%;
    animation-delay: 6s;
    color: #9333ea;
}

.floating-element:nth-child(4) {
    bottom: 35%;
    right: 10%;
    animation-delay: 2s;
    color: #22c55e;
}

.floating-element:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 4s;
    color: var(--text-accent);
    transform: translateX(-50%);
}

/* Glassmorphism Header with World Theme */
.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.period-info-custom {
    background: linear-gradient(145deg, rgba(30, 60, 114, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 2px solid var(--border-world);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    text-align: center;
}

.period-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.offcanvas-header {
    display: inline-block !important;
}

.buku-mimpi-btn {
    background: var(--secondary-gold);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.buku-mimpi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.4);
}

.header {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-bottom: 2px solid var(--border-world);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--shadow-world);
}

.header-game {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.95) 0%, rgba(15, 30, 60, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-world);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.back-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    min-width: 80px;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-blue);
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-button:active {
    transform: translateX(-1px);
    transition: all 0.1s ease;
}

.back-button i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.back-button:hover i {
    transform: translateX(-2px);
}

.nav-tabs-custom {
    display: flex;
    gap: 6px;
    background: rgba(30, 60, 114, 0.15);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--border-world);
    backdrop-filter: blur(15px);
    justify-self: center;
    max-width: fit-content;
}


/* Betting Options */
.betting-options,
.periode-menu .nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 2rem;
}

.periode-menu .nav .nav-item .nav-link,
.bet-option {
    background: rgba(30, 60, 114, 0.15);
    border: 1px solid var(--border-world);
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 12px;
    text-align: center;
    backdrop-filter: blur(15px);
}

.periode-menu .nav .nav-item .nav-link.active,
.bet-option.active {
    background: var(--primary-blue);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.periode-menu .nav .nav-item .nav-link.active,
.periode-menu .nav .nav-item .nav-link:hover,
.bet-option:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.periode-menu .nav .nav-item .nav-link {
    background-color: transparent;
    text-decoration: none;
    color: var(--text-secondary);
}


/* Betting Section */
.betting-section {
    background: linear-gradient(145deg, rgba(30, 60, 114, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 2px solid var(--border-world);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
}

.input-section {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 16px;
    margin-bottom: 2rem;
    align-items: end;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-field {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid var(--border-world);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.input-field::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.add-button {
    background: var(--success-green);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    height: fit-content;
}

.add-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.nav-tab-custom {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 12px;
    white-space: nowrap;
}

.nav-tab-custom.active {
    background: var(--success-green);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.nav-tab-custom:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-icon {
    width: 65px;
    height: 65px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    box-shadow: var(--shadow-world);
    transition: all 0.4s ease;
    border: 3px solid rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.8s ease;
    opacity: 0;
}

.logo-icon:hover {
    transform: scale(1.1) rotateY(15deg);
    box-shadow: 0 15px 45px rgba(59, 130, 246, 0.4);
}

.logo-icon:hover::before {
    opacity: 1;
    animation: worldShine 0.8s ease;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    background: var(--secondary-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 25px rgba(251, 191, 36, 0.3);
    letter-spacing: 1px;
}

.search-container {
    position: relative;
    margin-bottom: 25px;
}

.search-input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-world);
    background: rgba(30, 60, 114, 0.08);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
}

.filter-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.filter-tab {
    background: rgba(30, 60, 114, 0.08);
    border: 1px solid var(--border-world);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-tab.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.filter-tab:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.mimpi-list {
    background: rgba(30, 60, 114, 0.08);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-world);
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.mimpi-item {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mimpi-item:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: scale(1.01);
}

.mimpi-item:last-child {
    border-bottom: none;
}

.mimpi-nomor {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-accent);
    min-width: 60px;
    text-align: center;
    background: rgba(59, 130, 246, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
}

.mimpi-tipe {
    font-size: 12px;
    font-weight: 700;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    min-width: 35px;
    text-align: center;
}

.mimpi-tipe.type-4d {
    background: #f59e0b;
}

.mimpi-tipe.type-3d {
    background: #ef4444;
}

.mimpi-tipe.type-2d {
    background: #10b981;
}

.mimpi-desc {
    font-size: 15px;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.4;
}

.nav-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    background: rgba(30, 60, 114, 0.15);
    padding: 12px;
    border-radius: 25px;
    border: 1px solid var(--border-world);
    backdrop-filter: blur(15px);
    min-width: 280px;
}

.nav-row {
    display: contents;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 13px;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

.nav-btn i {
    margin-right: 6px;
    font-size: 12px;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.nav-btn:hover::before {
    left: 0;
}

.nav-btn.active {
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .back-button {
        padding: 8px 10px;
        font-size: 13px;
        min-width: 70px;
    }

    .betting-options {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 6px;
        margin-bottom: 1rem;
    }

    .bet-option {
        padding: 8px 6px;
        font-size: 11px;
    }

    .betting-section {
        margin-bottom: 1rem;
    }

    .input-section {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 1rem;
    }

    .input-group {
        margin-bottom: 0;
    }

    .input-label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .input-field {
        padding: 10px 12px;
        font-size: 14px;
    }

    .add-button {
        padding: 10px 16px;
        font-size: 13px;
        margin-top: 8px;
    }

    .nav-tabs-custom {
        grid-column: 1 / -1;
        justify-self: stretch;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-tabs-custom::-webkit-scrollbar {
        display: none;
    }

    .nav-buttons {
        flex-direction: column;
        min-width: 240px;
        padding: 10px;
    }

    .nav-row {
        display: flex;
        gap: 8px;
        justify-content: center;
    }

    .nav-btn {
        padding: 10px 14px;
        font-size: 12px;
        min-width: 100px;
    }

    .nav-btn i {
        margin-right: 4px;
        font-size: 11px;
    }

    .filter-tabs {
        gap: 8px;
        margin-bottom: 20px;
        justify-content: space-between;
    }

    .filter-tab {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
        text-align: center;
        border-radius: 20px;
    }

    .search-container {
        margin-bottom: 20px;
    }

    .search-input {
        padding: 12px 40px 12px 16px;
        font-size: 14px;
        border-radius: 10px;
    }

    .mimpi-list {
        max-height: 350px;
        border-radius: 10px;
    }

    .mimpi-item {
        padding: 16px;
        gap: 12px;
        /* Keep horizontal layout */
        flex-direction: row;
        align-items: center;
    }

    .mimpi-nomor {
        font-size: 15px;
        min-width: 55px;
        padding: 8px 10px;
        border-radius: 6px;
    }

    .mimpi-tipe {
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 12px;
        min-width: 30px;
    }

    .mimpi-desc {
        font-size: 13px;
        line-height: 1.3;
    }

    /* Hide default table on mobile */
    .bet-table {
        display: none;
    }

    .bet-table th:last-child,
    .bet-table td:last-child {
        display: none;
    }

    /* Compact mobile bet list */
    .mobile-bet-list {
        display: block;
    }

    .mobile-bet-item {
        background: rgba(30, 60, 114, 0.08);
        border: 1px solid var(--border-world);
        border-radius: 8px;
        margin-bottom: 6px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .mobile-bet-header {
        padding: 10px 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        background: rgba(59, 130, 246, 0.06);
    }

    .mobile-bet-header:hover {
        background: rgba(59, 130, 246, 0.1);
    }

    .mobile-bet-number {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-primary);
    }

    .mobile-bet-toggle {
        color: var(--text-secondary);
        transition: transform 0.3s ease;
        font-size: 12px;
    }

    .mobile-bet-toggle.expanded {
        transform: rotate(180deg);
    }

    .mobile-bet-details {
        padding: 0 12px;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .mobile-bet-details.expanded {
        max-height: 180px;
        padding: 12px;
    }

    .mobile-bet-row {
        display: flex;
        justify-content: space-between;
        padding: 3px 0;
        border-bottom: 1px solid rgba(59, 130, 246, 0.08);
        font-size: 13px;
    }

    .mobile-bet-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .mobile-bet-label {
        color: var(--text-secondary);
        font-size: 12px;
    }

    .mobile-bet-value {
        color: var(--text-primary);
        font-size: 12px;
        font-weight: 500;
    }

    /* Compact total section */
    .total-section {
        padding-top: 0.75rem;
        font-size: 14px;
    }

    .total-amount {
        font-size: 16px;
    }

    .bottom-stats {
        padding: 0.75rem;
        margin-top: 1rem;
    }

    .stats-container {
        gap: 0.5rem;
    }

    .stats-row {
        padding: 0.4rem 0;
    }

    .stat-item:not(:last-child) {
        padding-right: 0.75rem;
        margin-right: 0.75rem;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .back-button {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 60px;
    }

    .betting-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .bet-option {
        padding: 7px 5px;
        font-size: 10px;
    }

    .nav-tab-custom {
        padding: 6px 10px;
        font-size: 11px;
    }

    .nav-buttons {
        min-width: 200px;
        padding: 8px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 11px;
        min-width: 85px;
    }

    .filter-tabs {
        gap: 6px;
        margin-bottom: 16px;
    }

    .filter-tab {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 16px;
    }

    .search-input {
        padding: 10px 35px 10px 14px;
        font-size: 13px;
    }

    .search-icon {
        right: 12px;
        font-size: 16px;
    }

    .mimpi-list {
        max-height: 320px;
    }

    .mimpi-item {
        padding: 14px 12px;
        gap: 10px;
        /* Maintain horizontal layout for better readability */
        flex-direction: row;
        align-items: center;
    }

    .mimpi-nomor {
        font-size: 14px;
        min-width: 50px;
        padding: 6px 8px;
        flex-shrink: 0;
    }

    .mimpi-tipe {
        font-size: 10px;
        padding: 3px 6px;
        min-width: 28px;
        flex-shrink: 0;
    }

    .mimpi-desc {
        font-size: 12px;
        line-height: 1.2;
        flex: 1;
    }

    .bottom-stats {
        padding: 0.5rem;
    }

    .stats-container {
        gap: 0.4rem;
    }

    .stats-row {
        padding: 0.3rem 0;
    }

    .stat-item:not(:last-child) {
        padding-right: 0.5rem;
        margin-right: 0.5rem;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-value {
        font-size: 13px;
    }

    .bet-summary {
        padding: 0.5rem;
    }

    .summary-title {
        font-size: 14px;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 360px) {
    .filter-tab {
        padding: 6px 8px;
        font-size: 11px;
    }

    .mimpi-item {
        padding: 12px 8px;
        gap: 8px;
    }

    .mimpi-nomor {
        min-width: 45px;
        font-size: 13px;
    }

    .mimpi-desc {
        font-size: 11px;
    }
}

.user-info {
    background: rgba(30, 60, 114, 0.12);
    padding: 16px 22px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-world);
    backdrop-filter: blur(15px);
    min-width: 320px;
}

.user-info-game {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    text-align: right;
    justify-self: end;
}

.user-info-game:hover {
    cursor: pointer;
}
.user-info-game i {
    margin-right: 6px;
    color: var(--text-accent);
    width: 12px;
}

.timezone {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.user-details div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance {
    color: var(--text-accent);
    font-weight: 600;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

/* Main Content */
.main-content {
    padding: 2.5rem;
    max-width: 1500px;
    margin: 0 auto;
}

.status-section {
    background: rgba(30, 60, 114, 0.15);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-world);
    margin-bottom: 2.5rem;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-world);
    position: relative;
    overflow: hidden;
}

.status-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
    animation: statusShimmer 3s ease-in-out infinite;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    position: relative;
    z-index: 1;
}

.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff6b6b;
    animation: worldPulse 2s infinite;
    box-shadow: 0 0 15px #ff6b6b;
}

.status-indicator.online {
    background: #43e97b;
    box-shadow: 0 0 15px #43e97b;
}

/* Server Cards with World Lottery Theme */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px;
    margin-top: 2.5rem;
}

.server-card {
    background: linear-gradient(145deg, rgba(30, 60, 114, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 2px solid var(--border-world);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.08) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.server-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(30, 60, 114, 0.25), 0 0 40px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

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

.cards-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 22px;
}

.flag-container {
    position: relative;
}

.flag-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border: 3px solid var(--border-world);
    box-shadow: var(--shadow-world);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.flag-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.server-card:hover .flag-icon::after {
    transform: translateX(100%);
}

.flag-icon.bullseye {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    color: white;
}

.flag-icon.cambodia {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
}

.flag-icon.pcso {
    background: var(--success-green);
    color: white;
}

.flag-icon.singapore {
    background: linear-gradient(135deg, #dc2626 0%, #ffffff 50%, #dc2626 100%);
}

.flag-icon.sydney {
    background: linear-gradient(135deg, #1e40af 0%, #ffffff 50%, #dc2626 100%);
}

.flag-icon.hongkong {
    background: linear-gradient(135deg, #dc2626 0%, #ffffff 100%);
}

.flag-icon.custom-market {
    background: linear-gradient(135deg, #1e40af 0%, #ffffff 50%, #dc2626 100%);
}

.server-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(248, 250, 252, 0.2);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #f87171;
}

.server-status.online {
    color: #43e97b;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.time-info,
.period-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.time-info:hover,
.period-info:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.time-info i,
.period-info i {
    color: #3b82f6;
}

/* Footer */
.footer {
    background: rgba(30, 60, 114, 0.1);
    padding: 25px;
    text-align: center;
    border-top: 1px solid var(--border-world);
    margin-top: 3.5rem;
}

.powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.powered-logo {
    width: 28px;
    height: 28px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

/* Animations */
@keyframes worldPulse {

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

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

@keyframes worldFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-25px) rotate(8deg);
    }

    66% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

@keyframes worldShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes statusShimmer {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
    }

    .header-game {
        padding: 0.75rem 1rem;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0.75rem;
    }

    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-btn {
        padding: 12px 18px;
        font-size: 13px;
    }

    .user-info {
        min-width: auto;
        width: 100%;
    }

    .user-info-game {
        grid-column: 2;
        grid-row: 1;
        font-size: 10px;
        gap: 2px;
    }

    .main-content {
        padding: 1.5rem;
    }

    .servers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .server-card {
        padding: 22px;
    }

    .logo-text {
        font-size: 26px;
    }

    .floating-element {
        display: none;
    }

    .summary-buttons {
        gap: 0.5rem;
        justify-content: flex-end;
        /* Tetap rata kanan di mobile */
    }

    .summary-button {
        padding: 6px 12px;
        font-size: 12px;
        gap: 0px !important;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 60, 114, 0.1);
    border-radius: 7px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 7px;
    border: 2px solid var(--world-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gold);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-container {
    background: linear-gradient(145deg, rgba(30, 60, 114, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 2px solid var(--border-world);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: var(--shadow-world);
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: var(--primary-blue);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--border-world);
}

.modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-content-custom {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.status-indicators {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    justify-content: center;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
}

.status-item.offline {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
}

.status-item.online {
    background: var(--success-green);
    color: white;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
    animation: worldPulse 2s infinite;
}

.pasaran-table-container {
    background: rgba(30, 60, 114, 0.08);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-world);
    overflow: hidden;
}

.pasaran-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pasaran-table thead {
    background: var(--primary-blue);
}

.pasaran-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    color: white;
    font-size: 16px;
    border-bottom: 2px solid var(--border-world);
}

.pasaran-table td {
    padding: 16px 15px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

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

.pasaran-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: scale(1.01);
}

.pasaran-name {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--text-accent);
}

.bullseye-row {
    color: #f59e0b;
}

.cambodia-row {
    color: #ef4444;
}

.pcso-row {
    color: #8b5cf6;
}

.singapore-row {
    color: #06b6d4;
}

.sydney-row {
    color: #10b981;
}

.hongkong-row {
    color: #f97316;
}

/* Responsive Modal - Updated */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-content-custom {
        padding: 15px;
        max-height: calc(90vh - 80px);
    }

    .status-indicators {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
    }

    .status-item {
        padding: 8px 15px;
        font-size: 12px;
    }

    /* Table Container with Horizontal Scroll */
    .pasaran-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--border-radius);
        box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.1);
    }

    .pasaran-table {
        min-width: 600px;
        /* Minimum width to prevent cramping */
        font-size: 12px;
        white-space: nowrap;
    }

    .pasaran-table th {
        padding: 12px 10px;
        font-size: 13px;
        min-width: 80px;
    }

    .pasaran-table td {
        padding: 10px 8px;
        min-width: 80px;
    }

    .pasaran-table th:first-child,
    .pasaran-table td:first-child {
        min-width: 100px;
        position: sticky;
        left: 0;
        background: var(--primary-blue);
        z-index: 10;
    }

    .pasaran-table td:first-child {
        background: rgba(30, 60, 114, 0.15);
        backdrop-filter: blur(10px);
    }

    /* Custom scrollbar for table */
    .pasaran-table-container::-webkit-scrollbar {
        height: 8px;
    }

    .pasaran-table-container::-webkit-scrollbar-track {
        background: rgba(30, 60, 114, 0.1);
        border-radius: 4px;
    }

    .pasaran-table-container::-webkit-scrollbar-thumb {
        background: var(--primary-blue);
        border-radius: 4px;
    }

    .pasaran-table-container::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-gold);
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .header-game {
        padding: 0.5rem 0.75rem;
    }

    .user-info-game {
        font-size: 9px;
    }

    .modal-container {
        width: 98%;
        margin: 5px;
        max-height: 95vh;
    }

    .modal-header {
        padding: 12px 15px;
    }

    .modal-header h2 {
        font-size: 16px;
    }

    .modal-content-custom {
        padding: 10px;
        max-height: calc(95vh - 60px);
    }

    .status-indicators {
        gap: 8px;
        margin-bottom: 15px;
    }

    .status-item {
        padding: 6px 12px;
        font-size: 11px;
    }

    .pasaran-table {
        min-width: 550px;
        font-size: 11px;
    }

    .pasaran-table th {
        padding: 10px 8px;
        font-size: 12px;
        min-width: 70px;
    }

    .pasaran-table td {
        padding: 8px 6px;
        min-width: 70px;
    }

    .pasaran-table th:first-child,
    .pasaran-table td:first-child {
        min-width: 90px;
    }

    .input-field-modern {
        padding: 14px 16px;
        font-size: 15px;
    }

    .input-label-modern {
        font-size: 13px;
    }

    .add-button-modern {
        padding: 14px 24px;
        font-size: 13px;
        height: 50px;
    }

    .bottom-stats {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 1rem;
    }

    .stat-card {
        padding: 0.5rem;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-value {
        font-size: 14px;
    }

    .summary-buttons {
        gap: 0.4rem;
        flex-wrap: wrap;
        /* Allow wrapping jika perlu */
        justify-content: flex-end;
    }

    .summary-button {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-container {
        max-height: 85vh;
    }

    .modal-content-custom {
        max-height: calc(85vh - 80px);
    }
}

/* Additional improvements for better mobile experience */
@media (max-width: 768px) {

    /* Add scroll indicator */
    .pasaran-table-container::after {
        content: '← Geser untuk melihat lebih banyak →';
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 10px;
        color: var(--text-secondary);
        opacity: 0.7;
        text-align: center;
        width: 100%;
    }

    .pasaran-table-container {
        position: relative;
        margin-bottom: 30px;
    }

    /* Improve touch scrolling */
    .modal-content-custom {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Better button sizing for mobile */
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    /* Improve readability */
    .pasaran-name {
        font-weight: 600;
        text-decoration: underline;
        text-decoration-thickness: 2px;
    }

    .input-group-modern {
        min-width: 100%;
    }

    .add-button-modern {
        width: 100%;
        align-self: stretch;
    }

    .betting-section-modern {
        padding: 20px 16px;
        margin: 12px 0;
    }
}


.input-section-modern {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
}

.input-group-modern {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.input-label-modern {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #f8fafc);
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(248, 250, 252, 0.2);
}

.input-field-modern {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-world, rgba(59, 130, 246, 0.25));
    border-radius: 12px;
    background: rgba(30, 60, 114, 0.08);
    color: var(--text-primary, #f8fafc);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-field-modern:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(59, 130, 246, 0.12);
}

.input-field-modern::placeholder {
    color: var(--text-secondary, #cbd5e1);
    opacity: 0.7;
}

/* .input-field-modern#inputNomor432d {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-accent, #fbbf24);
  }

  .input-field-modern#inputBetMin432d {
    text-align: right;
    color: #22c55e;
    font-weight: 600;
  } */

.bet-format-display {
    position: absolute;
    bottom: 4px;
    right: 12px;
    font-size: 12px;
    color: var(--text-secondary, #cbd5e1);
    opacity: 0.8;
}

.add-button-modern {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 50%, #22c55e 100%);
    border: none;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
    min-width: 120px;
    height: 56px;
    align-self: end;
}

.add-button-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #059669 0%, #22c55e 50%, #16a34a 100%);
}

.add-button-modern:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

/* Dark Mode Styles */
:global(.dark) .betting-section-modern {
    background: linear-gradient(145deg,
            rgba(15, 23, 42, 0.8) 0%,
            rgba(30, 41, 59, 0.6) 100%);
    border-color: rgba(71, 85, 105, 0.5);
}

:global(.dark) .input-field-modern {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(71, 85, 105, 0.5);
    color: #f1f5f9;
}

:global(.dark) .input-field-modern:focus {
    border-color: #60a5fa;
    background: rgba(71, 85, 105, 0.8);
}

:global(.dark) .input-label-modern {
    color: #e2e8f0;
}

:global(.dark) .bet-format-display {
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-section-modern {
        flex-direction: column;
        gap: 16px;
    }

    /* Compact bottom stats */
    .bottom-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 1.25rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-label {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .stat-value {
        font-size: 16px;
    }

}

/* Bet History Modal Styles */
.bet-history-table-container {
    background: rgba(30, 60, 114, 0.08);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-world);
    overflow: hidden;
}

.bet-status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bet-status.running {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    animation: worldPulse 2s infinite;
}

.bet-status.completed {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
}

.period-link {
    color: var(--text-accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--text-accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.period-link:hover {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.winlose-amount {
    font-weight: 700;
    font-size: 15px;
}

.winlose-amount.positive {
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.winlose-amount.negative {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .bet-history-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bet-status {
        padding: 4px 8px;
        font-size: 10px;
    }

    .winlose-amount {
        font-size: 13px;
    }

    .bet-detail-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bet-detail-table {
        min-width: 200px;
        font-size: 12px;
    }

    .bet-detail-table th {
        padding: 12px 15px;
        font-size: 13px;
    }

    .bet-detail-table td {
        padding: 10px 15px;
    }

    .bet-summary {
        padding: 20px;
    }

    .summary-title {
        font-size: 15px;
        margin-bottom: 0.75rem;
    }

    .summary-row {
        font-size: 14px;
    }

    .summary-row:last-child {
        font-size: 16px;
    }

    .game-detail-content {
        max-height: 75vh;
    }

    .game-detail-list {
        padding: 15px;
    }

    .game-item-header {
        padding: 12px 15px;
    }

    .game-number {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .game-status {
        padding: 4px 10px;
        font-size: 10px;
    }

    .game-item-content {
        padding: 15px;
    }

    .game-info-row {
        margin-bottom: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
    }

    /* Khusus untuk baris dengan 4 elemen (Diskon & KEI, Bayar & Hadiah) */
    .game-info-row:has(.kei-label),
    .game-info-row:has(.hadiah-label) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        align-items: center;
    }

    .game-label {
        font-size: 12px;
        color: #cbd5e1;
        font-weight: 500;
        text-align: left;
    }

    .game-value {
        font-size: 12px;
        color: white;
        font-weight: 600;
        text-align: right;
    }

    /* Untuk baris normal (2 elemen) */
    .game-info-row:not(:has(.kei-label)):not(:has(.hadiah-label)) .game-label {
        flex: 1;
        min-width: 80px;
    }

    .game-info-row:not(:has(.kei-label)):not(:has(.hadiah-label)) .game-value {
        flex: 1;
        min-width: 60px;
    }

    /* Styling khusus untuk nilai-nilai tertentu */
    .discount,
    .kei {
        color: #3b82f6;
        font-weight: 600;
    }

    .pay-amount,
    .bet-amount {
        color: var(--text-accent);
        font-weight: 700;
    }

    .prize {
        color: #22c55e;
        font-weight: 700;
    }
}

.game-detail-header {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    padding: 20px 30px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.game-detail-content {
    padding: 0;
    background: #2d3748;
    max-height: 70vh;
    overflow-y: auto;
}

.game-detail-list {
    padding: 20px;
}

.game-detail-item {
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-detail-item:last-child {
    margin-bottom: 0;
}

.game-item-header {
    background: #4a5568;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1a202c;
}

.game-number {
    font-size: 9pt;
    font-weight: 700;
    color: white;
    background: #1a202c;
    min-width: 180px;
    height: 35px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: left;
    padding-left: 10px;
}

.game-status {
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-status.running {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    animation: worldPulse 2s infinite;
}

.game-status.winner {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
}

.game-status.lose {
    background: linear-gradient(135deg, #991b1b 0%, #c24141 100%);
    color: white;
}

.game-item-content {
    padding: 20px;
}

.game-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.game-info-row:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px solid #4a5568;
}

.game-label {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
}

.game-value {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-align: right;
    flex: 1;
    min-width: 80px;
}

.game-name {
    color: var(--text-accent);
    font-weight: 700;
}

.bet-amount,
.pay-amount {
    color: var(--text-accent);
    font-weight: 700;
}

.discount,
.kei {
    color: #3b82f6;
    font-weight: 600;
}

.prize {
    color: #22c55e;
    font-weight: 700;
}

.estimation {
    color: #22c55e;
    font-weight: 700;
    font-size: 16px;
}

.kei-label,
.hadiah-label {
    margin-left: 20px;
}


.bet-detail-content {
    padding: 0;
    background: #2d3748;
}

.bet-detail-table-container {
    background: #2d3748;
    border-radius: 0;
    border: none;
    overflow: hidden;
}

.bet-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #2d3748;
}

.bet-detail-table thead {
    background: #4a5568;
}

.bet-detail-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    color: white;
    font-size: 16px;
    border-bottom: 2px solid #1a202c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bet-detail-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #4a5568;
    color: white;
    transition: all 0.3s ease;
}

.bet-detail-table tbody tr {
    cursor: pointer;
    transition: all 0.3s ease;
    background: #2d3748;
}

.bet-detail-table tbody tr:hover {
    background: #4a5568;
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bet-detail-table tbody tr:active {
    transform: scale(0.99);
}

.bet-detail-table tbody tr.hide {
    display: none;
}

.game-type {
    font-weight: 700;
    color: white;
    text-decoration: underline;
    text-decoration-color: var(--text-accent);
}

.bet-amount {
    color: var(--text-accent);
    font-weight: 600;
    font-size: 15px;
}

.win-amount {
    color: #ef4444;
    font-weight: 700;
    font-size: 15px;
}

/* Bet Summary */
.bet-summary {
    background: rgba(30, 60, 114, 0.1);
    border: 1px solid var(--border-world);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(15px);
}

.summary-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
}

.summary-row:last-child {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid #4a5568;
    font-size: 18px;
    font-weight: 700;
}

.summary-label {
    color: white;
    font-weight: 600;
}

.summary-value {
    font-weight: 700;
}

.bet-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

/* Desktop table styles */
@media (min-width: 769px) {
    .mobile-bet-list {
        display: none;
    }
}

/* Perbaikan untuk tombol Info, Histori, Bayar - rata kanan */
.summary-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: flex-end;
    /* Rata kanan */
}

.summary-button {
    background: var(--glass-bg);
    border: 1px solid var(--border-world);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--success-green);
}

.summary-button.bayar {
    background: var(--success-green);
    border: none;
    color: white;
    font-weight: 600;
}

.summary-button.bayar:hover {
    background: #45a049;
}

.bet-table th,
.bet-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-world);
    color: var(--text-secondary);
    font-size: 14px;
}

.bet-table th {
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-primary);
    font-weight: 600;
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid var(--border-world);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.total-amount {
    color: var(--text-accent);
    font-size: 18px;
}

.total-bet {
    color: var(--text-accent);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.total-win {
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.winlose-final {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    font-size: 20px;
}

.winlose-final.positive {
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

/* Bottom Stats */
/* Bottom Stats - Horizontal Layout */
.bottom-stats {
    background: rgba(30, 60, 114, 0.08);
    border: 1px solid var(--border-world);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1.5rem;
    backdrop-filter: blur(15px);
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.stats-row:not(:last-child) {
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.stat-item:not(:last-child) {
    border-right: 1px solid rgba(59, 130, 246, 0.1);
    padding-right: 1rem;
    margin-right: 1rem;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: fit-content;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-accent);
    min-width: 20px;
    text-align: right;
}

.stat-separator {
    color: var(--text-secondary);
    font-weight: 400;
}

 /* Modern Betting Section Styles */
  .betting-section-modern {
    background: linear-gradient(
      145deg,
      rgba(30, 60, 114, 0.12) 0%,
      rgba(59, 130, 246, 0.08) 100%
    );
    border: 2px solid var(--border-world, rgba(59, 130, 246, 0.25));
    border-radius: 18px;
    padding: 24px;
    margin: 16px 0;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(30, 60, 114, 0.3);
  }
  .btn-play-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    width: 100%;
  }

  /* Modern button style mengikuti mwl.css */
  .btn.btn-play.mobile {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 50%, #22c55e 100%);
    border: none;
    color: white;
    padding: 18px 36px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
    min-width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
  }

  .btn.btn-play.mobile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #059669 0%, #22c55e 50%, #16a34a 100%);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .btn.btn-play.mobile:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
  }

  /* Dark mode support */
  .btn.btn-play.mobile.dark {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  }

  .btn.btn-play.mobile.dark:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #1e3a8a 100%);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
  }
  /* Responsive design */
  @media (max-width: 768px) {
    .btn-play-container {
      padding: 0 1rem;
    }

    .btn.btn-play.mobile {
      min-width: 180px;
      height: 55px;
      font-size: 14px;
      padding: 16px 32px;
    }
  }

  @media (max-width: 480px) {
    .btn.btn-play.mobile {
      min-width: 160px;
      height: 50px;
      font-size: 13px;
      padding: 14px 28px;
    }
  }