:root {
    --primary-color: #ffd700;
    /* Gold */
    --secondary-color: #8c4bff;
    /* Purple/Violet */
    --bg-color: #120e24;
    /* Deep Purple Black */
    --card-bg: #1e1a38;
    /* Lighter Purple/Blue */
    --text-color: #ffffff;
    --text-muted: #8e9aaf;
    --success: #00e676;
    --danger: #ff1744;
    --gradient: linear-gradient(135deg, #aa00ff 0%, #5e35b1 100%);
    /* Purple Gradient */
    --gold-gradient: linear-gradient(180deg, #ffd700 0%, #ffb700 100%);
    --nav-bg: #2a254a;
    /* Lighter background for navs */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    max-width: 480px;
    /* Mobile View Constraint */
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    position: relative;
    padding-bottom: 55px;
    /* For bottom nav */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 10px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mr-1 {
    margin-right: 5px;
}

.mr-2 {
    margin-right: 10px;
}

.ml-1 {
    margin-left: 5px;
}

.p-2 {
    padding: 10px;
}

.p-3 {
    padding: 15px;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.text-gold {
    color: var(--primary-color);
}

/* Components */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: var(--gold-gradient);
    color: #4a0000;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin: 10px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: transform 0.1s;
}

.btn:active {
    transform: scale(0.96);
}

.input-group {
    margin-bottom: 20px;
    background: #2a254a;
    border-radius: 12px;
    padding: 5px 15px;
    border: 1px solid #3f3866;
}

.input-group label {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 8px 0;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-size: 16px;
}

/* Card */
.card {
    background: #2a254a;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Section Title Global Style */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    display: block;
    width: 5px;
    height: 20px;
    background: var(--gold-gradient);
    margin-right: 10px;
    border-radius: 2px;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #322e4d;
}

/* Header */
header {
    background: var(--card-bg);
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #322e4d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 430px;
    background: linear-gradient(90deg, #201b4d 0%, #151225 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 15px 10px;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #322e4d;
    z-index: 999;
}

.nav-item {
    text-align: center;
    color: var(--text-muted);
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    transition: all 0.3s;
}

.nav-item.active {
    color: #fff;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    color: #bca4ff;
}

.nav-item.active i {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-5px);
}

/* Game Cards */
.game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px;
}

.game-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #322e4d;
    transition: transform 0.2s;
}

.game-card:active {
    transform: scale(0.98);
}

.game-card h4 {
    color: #fff;
    margin-top: 10px;
    font-weight: 500;
}

.floating-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 99;
}

/* Banners */
.carousel {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.banner {
    display: inline-block;
    width: 300px;
    height: 150px;
    background: #333;
    border-radius: 15px;
    margin-right: 15px;
    background-size: cover;
    background-position: center;
}

/* Typography Overrides */
h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
}

/* Spacing Utilities */
.px-2 {
    padding-left: 8px;
    padding-right: 8px;
}

.pt-0 {
    padding-top: 0 !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pb-1 {
    padding-bottom: 4px !important;
}

.pb-5 {
    padding-bottom: 30px !important;
}

/* Section Title Global Style */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    display: block;
    width: 5px;
    height: 20px;
    background: var(--gold-gradient);
    margin-right: 10px;
    border-radius: 2px;
}

/* Floating Support Button */
.floating-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 9999;
    color: #000;
    font-size: 24px;
    transition: transform 0.2s;
}

.floating-btn:active {
    transform: scale(0.9);
}