:root {
    --primary-color: #00AA13;
    /* Gojek Green - used as accent or replaced by neon for slots */
    --primary-neon: #e94560;
    --secondary-color: #0f3460;
    --accent-color: #ffd700;
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --text-light: #ffffff;
    --text-gray: #B0B0B0;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 60px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #000;
    color: var(--text-light);
    overflow-x: hidden;
}

/* App Container (Desktop View Simulator) */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--bg-dark);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    overflow-x: hidden;
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
}

.logo-highlight {
    color: var(--primary-neon);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login,
.btn-register {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
}

.btn-register {
    background: linear-gradient(45deg, var(--primary-neon), #ff6b6b);
    border: 1px solid transparent;
    /* Keeps sizing consistent */
    color: white;
    box-shadow: 0 4px 10px rgba(233, 69, 96, 0.3);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-register:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.search-bar-container {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 30px;
    padding: 10px 15px;
    border: 1px solid var(--glass-border);
}

.search-icon {
    color: var(--text-gray);
    margin-right: 10px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    outline: none;
}

/* Content Area */
.app-content {
    padding: 20px;
}

/* Wallet Card */
.wallet-card {
    background: linear-gradient(135deg, #00880D 0%, #00AA13 100%);
    /* Gojek Green for authenticity, or change to #2A2A2A for dark mode */
    /* Let's blend Dark Mode + Gojek Structure: Blue/Purple gradient looks more "Slot App" */
    background: linear-gradient(135deg, var(--secondary-color), #222);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: var(--primary-neon);
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
}

.wallet-balance {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.wallet-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.balance-info .label {
    font-size: 12px;
    opacity: 0.8;
}

.balance-info h2 {
    font-size: 20px;
    font-weight: 700;
}

.points {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
}

.wallet-actions {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-size: 12px;
    flex: 1;
}

.icon-circle {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

/* Service Grid */
.services-section {
    margin-bottom: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
    text-align: center;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 11px;
}

.icon-bg {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    /* Squircle */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: white;
    transition: transform 0.2s;
}

.service-item:active .icon-bg {
    transform: scale(0.9);
}

.slot-bg {
    background: linear-gradient(45deg, #ff9966, #ff5e62);
}

.casino-bg {
    background: linear-gradient(45deg, #00f260, #0575e6);
}

.sport-bg {
    background: linear-gradient(45deg, #11998e, #38ef7d);
}

.arcade-bg {
    background: linear-gradient(45deg, #834d9b, #d04ed6);
}

.poker-bg {
    background: linear-gradient(45deg, #DA22FF, #9733EE);
}

.togel-bg {
    background: linear-gradient(45deg, #f12711, #f5af19);
}

.promo-bg {
    background: linear-gradient(45deg, #EB3349, #F45C43);
}

.more-bg {
    background: #333;
    color: #fff;
}

/* Banner Section */
.banner-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
}

.banner-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.banner-container::-webkit-scrollbar {
    display: none;
}

.banner-card {
    min-width: 280px;
    height: 140px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.banner-content {
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.gradient-1 {
    background: linear-gradient(to right, #2bc0e4, #eaecc6);
    color: #000;
}

.gradient-2 {
    background: linear-gradient(to right, #8e2de2, #4a00e0);
}

.gradient-3 {
    background: linear-gradient(to right, #00c6ff, #0072ff);
}

.banner-content h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 5px;
}

.banner-content p {
    font-size: 12px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.btn-sm {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Popular Games (List) */
.popular-section {
    margin-bottom: 30px;
}

.game-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-row-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    padding: 10px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.game-thumb img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.game-details {
    flex: 1;
    padding: 0 15px;
}

.game-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.provider {
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.tags {
    display: flex;
    gap: 5px;
}

.tag-hot,
.tag-rtp {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.tag-hot {
    background: #ff4757;
    color: white;
}

.tag-rtp {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.btn-play-sm {
    background: var(--bg-dark);
    color: var(--primary-neon);
    border: 1px solid var(--primary-neon);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-play-sm:hover {
    background: var(--primary-neon);
    color: white;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 70px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 10px;
    width: 60px;
}

.nav-item i {
    font-size: 20px;
    transition: 0.2s;
}

.nav-item.active {
    color: var(--text-light);
    /* Gojek Green or White */
}

.nav-item.active i {
    color: var(--primary-neon);
}