:root {
    --bg-main: #11131a;
    --bg-card: #1c1f2b;
    --bg-card-hover: #232736;
    --bg-input: #151821;
    --accent: #ff6b35;
    --accent-hover: #e05828;
    --text-main: #ffffff;
    --text-muted: #8b8d96;
    --border-color: #2a2d3a;
    --success: #00d26a;
    --blue: #3b82f6;
    
    --font-main: 'Hind Siliguri', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-blue { color: var(--blue); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 12px;
    width: 100%;
    max-width: 300px;
}

.glow-effect {
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: rgba(255, 107, 53, 0.05);
    border-color: var(--accent);
}

.btn-full {
    width: 100%;
    padding: 12px;
}

/* Layout */
.container {
    width: 100%;
    max-width: 600px; /* Mobile default */
    margin: 0 auto;
    padding: 0 16px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: rgba(17, 19, 26, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(42, 45, 58, 0.5);
    width: 100%;
    max-width: 1200px; /* Expanded for PC */
    margin: 0 auto;
}

.desktop-nav {
    display: none;
    gap: 20px;
}

.desktop-nav a {
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--accent);
}

.desktop-nav a i {
    margin-right: 5px;
}

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

.logo {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
}

.brand-name {
    font-size: 22px;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3);
    text-shadow: 0px 2px 4px rgba(0,0,0,0.5);
}

.brand-name span {
    color: #ff7a45; /* Brighter orange */
    text-transform: lowercase;
    -webkit-text-stroke: 0.5px rgba(255, 122, 69, 0.3);
}

/* Banner Slider Section */
.banner-slider {
    width: 100%;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.banner-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.banner-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.banner-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.slide-content {
    position: relative;
    z-index: 1;
}

.slide-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.slide-content p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--border-color);
    transition: all 0.3s;
}

.dot.active {
    width: 16px;
    border-radius: 4px;
    background-color: var(--accent);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0 30px;
}

.badge-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 20px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    background-color: rgba(255, 107, 53, 0.05);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
    max-width: 90%;
    line-height: 1.6;
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 10px;
    margin-bottom: 40px;
}

.stat-box {
    flex: 1;
    text-align: center;
}

.stat-box h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-box p {
    color: var(--text-muted);
    font-size: 12px;
}

.accent-stat h3 {
    color: var(--accent);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

/* Matches Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.sh-left h2 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.sh-left p {
    color: var(--text-muted);
    font-size: 13px;
}

.sh-right-link {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sh-right-link:hover {
    text-decoration: underline;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.match-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    transition: transform 0.2s;
}

.match-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 12px;
}

.status-open {
    color: var(--success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(0, 210, 106, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 210, 106, 0.2);
}

.status-open i {
    font-size: 8px;
}

.time {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.fee-prize-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.fp-box {
    flex: 1;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.fp-label {
    font-size: 12px;
    color: var(--text-muted);
}

.fp-value {
    font-size: 16px;
    font-weight: 700;
}

.progress-container {
    margin-bottom: 16px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
}

.p-label {
    color: var(--text-muted);
}

.p-value {
    font-weight: 600;
}

.progress-bar-wrapper {
    height: 6px;
    background-color: var(--bg-input);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.bottom-spacer {
    height: 80px; /* Space for fixed bottom nav */
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 15px; /* Extra bottom padding for mobile safe area */
    z-index: 100;
    max-width: 600px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 12px;
    transition: color 0.2s;
    width: 20%;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
}

/* Center Wallet Button Style */
.nav-center {
    position: relative;
    top: -15px;
}

.center-btn {
    background: rgba(255, 107, 53, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 107, 53, 0.5);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
    color: var(--accent);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    margin-top: -15px; /* Adjusting position to pop out more */
}

.nav-center:hover .center-btn, .nav-item.active .center-btn {
    background: rgba(255, 107, 53, 0.4);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

.nav-center span {
    margin-top: -5px;
}

/* Forms & Auth */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
}

.auth-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Game Mode Tabs */
.mode-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none; /* Firefox */
}

.mode-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.05));
    border-color: var(--accent);
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.15);
}

.mode-btn i {
    font-size: 16px;
}

.mode-btn.active i {
    color: var(--accent);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    padding: 0 10px;
}

.btn-google {
    background-color: #ffffff;
    color: #333333;
    border-color: #ffffff;
}

.btn-google:hover {
    background-color: #f1f5f9;
    color: #000000;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Profile specific styles */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background-color: var(--bg-card);
    border-radius: 16px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 12px;
    border: 3px solid var(--bg-main);
    box-shadow: 0 0 0 2px var(--accent);
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
}

.profile-phone {
    color: var(--text-muted);
    font-size: 14px;
}

.profile-menu {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.menu-item:hover {
    border-color: var(--accent);
    background-color: var(--bg-card-hover);
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.menu-left i {
    color: var(--accent);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.text-danger {
    color: #ef4444 !important;
}

/* Loading Screen */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Toast / Modal */
.success-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(28, 31, 43, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 53, 0.3);
}

.success-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.success-icon {
    font-size: 50px;
    color: var(--success);
    margin-bottom: 10px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.success-toast h3 {
    font-size: 20px;
    margin-bottom: 5px;
    font-family: 'Orbitron', sans-serif;
}

.success-toast p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    body {
        align-items: center;
        background: #050608;
    }
    
    .container {
        max-width: 1200px; /* Full PC width */
        background-color: var(--bg-main);
        min-height: 100vh;
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
        padding: 20px 40px;
    }

    .navbar {
        border-radius: 0;
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
        padding: 15px 40px;
    }
    
    .bottom-nav {
        display: none; /* Hide bottom nav on PC */
    }

    .desktop-nav {
        display: flex;
        align-items: center;
    }

    .match-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }

    .banner-slide {
        aspect-ratio: 21 / 9; /* Wider banners for PC */
    }
}
