:root {
    --primary-red: #e63946;
    --primary-blue: #0077b6;
    --bg-white: #ffffff;
    --text-dark: #333;
    --grey-light: #f8f9fa;
    --border-color: #ddd;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--grey-light);
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.mobile-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-white);
    min-height: 100vh;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    position: relative;
    padding-bottom: 70px; /* footer space */
}

/* Header */
.app-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
}

.app-logo img {
    height: 40px;
}

.header-actions .btn-sm {
    padding: 5px 15px;
    font-weight: 600;
}

/* Auth Screens */
.auth-wrapper {
    padding: 30px 20px;
    text-align: center;
}

.auth-header h2 {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 30px;
}

.form-group-custom {
    text-align: left;
    margin-bottom: 20px;
}

.form-group-custom label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.input-container {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    background: #fff;
    transition: 0.3s;
}

.input-container:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 8px rgba(0, 119, 182, 0.2);
}

.input-container i {
    color: #888;
    margin-right: 15px;
}

.input-container input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
}

.btn-submit {
    background: var(--primary-red);
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #c92c3a;
}

.bottom-text {
    margin-top: 20px;
    font-size: 14px;
}

.bottom-text a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

/* OTP Inputs */
.otp-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 30px 0;
}

.otp-input {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
}

.otp-input:focus {
    border-color: var(--primary-blue);
}

/* Home Screen */
.banner {
    padding: 15px;
}

.banner img {
    width: 100%;
    border-radius: 12px;
}

.game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px;
}

.game-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.game-card .game-title {
    padding: 10px;
    font-weight: 700;
    font-size: 14px;
}

.tournament-banner {
    padding: 0 15px;
    margin-top: 10px;
}

.tournament-card {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    text-align: center;
    text-decoration: none;
    color: #888;
    font-size: 12px;
}

.nav-item.active {
    color: var(--primary-red);
}

.nav-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 2px;
}

/* Side Menu */
.side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transition: 0.3s;
    padding: 20px;
}

.side-menu.open {
    left: 0;
}

.user-profile-menu {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.menu-list {
    list-style: none;
    padding: 0;
}

.menu-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.menu-list li a {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

/* Notifications / Messages */
.toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    z-index: 3000;
}

.toast-msg {
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 10px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideUp 0.3s ease-out;
}

.toast-success { background: #28a745; }
.toast-error { background: var(--primary-red); }
.toast-info { background: var(--primary-blue); }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
