@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;600;800&display=swap');

:root {
    --bg-color: #121212;
    --primary: #F0B909; /* Gritty GTA Yellow */
    --secondary: #2C3E50;
    --text-main: #E0E0E0;
    --text-light: #FFFFFF;
    --glass-bg: rgba(15, 15, 15, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    --border-radius: 4px; /* Sharp, modern edges */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: normal;
}

/* Base Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 18px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary);
    color: #111;
}

.btn-primary:hover {
    background: #FFC812;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 185, 9, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 24px;
    margin: 10px;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    font-size: 32px;
    color: var(--text-light);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(18,18,18,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 40px;
}

.hero-title {
    font-size: 100px;
    color: var(--text-light);
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #bbb;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* Sections */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 30px;
}

.section-title {
    font-size: 50px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-light);
}

.section-desc {
    text-align: center;
    color: #888;
    margin-bottom: 60px;
    font-size: 18px;
}

/* Features Grid */
.features-section {
    background: #121212;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(35, 35, 35, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 25px;
    color: var(--primary);
}

.feature-card h3 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 30px;
}

.feature-card p {
    color: #999;
    font-size: 16px;
    line-height: 1.6;
}

/* Showcase Sections */
.showcase-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 120px;
}
.showcase-row:nth-child(even) {
    flex-direction: row-reverse;
}
.showcase-content {
    flex: 1;
}
.showcase-content h3 {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(240, 185, 9, 0.2);
}
.showcase-content p {
    font-size: 18px;
    color: #ccc;
    line-height: 1.8;
}
.showcase-image {
    flex: 1;
}
.showcase-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}
.showcase-image img:hover {
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .showcase-row, .showcase-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

/* Gallery */
.gallery-section {
    background: #0a0a0a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    opacity: 0.8;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.gallery-item img:hover {
    opacity: 1;
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Footer */
footer {
    background: #050505;
    border-top: 1px solid var(--glass-border);
    padding: 80px 30px 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand p {
    color: #666;
    margin-top: 15px;
    font-size: 14px;
}

.footer-links h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: #444;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
}

/* Modals & Dashboard Forms */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #666;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover { color: #fff; }

.auth-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 50px;
    width: 500px;
    max-width: 90%;
    box-shadow: var(--box-shadow);
    position: relative;
}

.header { text-align: center; margin-bottom: 40px; }
.header h1 { font-size: 45px; color: var(--text-light); margin-bottom: 5px; }
.header p { color: #888; font-size: 15px; }

.toggle-group { display: flex; margin-bottom: 30px; border-bottom: 1px solid var(--glass-border); }
.toggle-btn { background: none; border: none; color: #666; font-size: 20px; font-family: 'Bebas Neue', sans-serif; cursor: pointer; padding: 15px 0; width: 50%; letter-spacing: 1px; transition: all 0.2s; }
.toggle-btn:hover { color: #aaa; }
.toggle-btn.active { color: var(--primary); border-bottom: 2px solid var(--primary); }

.form-view { display: none; }
.form-view.active { display: block; animation: slideUp 0.3s ease; }

.input-group { margin-bottom: 25px; }
.input-group label { display: block; margin-bottom: 8px; font-size: 13px; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.input-group input { width: 100%; padding: 16px; background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border); border-radius: var(--border-radius); color: #fff; font-size: 15px; outline: none; transition: all 0.2s; }
.input-group input:focus { border-color: var(--primary); background: rgba(0,0,0,0.8); }

.btn-submit { width: 100%; background: var(--primary); border: none; color: #111; font-size: 22px; padding: 16px; border-radius: var(--border-radius); cursor: pointer; transition: background 0.2s; font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; margin-top: 15px;}
.btn-submit:hover { background: #FFC812; }

.message-box { margin-top: 20px; padding: 15px; border-radius: var(--border-radius); font-size: 14px; text-align: center; display: none; }
.message-box.error { display: block; background: rgba(220, 53, 69, 0.1); border: 1px solid #dc3545; color: #ff6b6b; }
.message-box.success { display: block; background: rgba(40, 167, 69, 0.1); border: 1px solid #28a745; color: #51cf66; }

#dashboard-view { display: none; min-height: 100vh; background-image: url('/city/bg.png'); background-size: cover; background-position: center; align-items: center; justify-content: center; padding-top: 80px; }
#dashboard-view.active { display: flex; animation: fadeIn 0.4s ease; }

.dashboard-card { text-align: left; background: var(--glass-bg); backdrop-filter: blur(10px); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.stats-grid.four-cols { grid-template-columns: repeat(4, 1fr); }
.stats-grid.two-cols { grid-template-columns: repeat(2, 1fr); }
.stat-box { background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border); padding: 20px; border-radius: var(--border-radius); }
.stat-box h3 { font-size: 16px; color: #888; font-family: 'Inter', sans-serif; letter-spacing: 1px; margin-bottom: 8px;}
.stat-box p, .stat-box span { font-size: 28px; color: var(--text-light); font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px;}
.stat-box .money { color: #2ecc71; }

@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    }
    .nav-links.active { display: flex; }
    
    .hero-title { font-size: 60px; }
    .container { padding: 80px 0 0 0; }
    .stats-grid { grid-template-columns: 1fr !important; }
    .features-grid { grid-template-columns: 1fr; }
    
    .auth-container { padding: 30px 20px; }
    .showcase-row, .showcase-row:nth-child(even) { flex-direction: column; text-align: center; }
    
    /* Responsive forms */
    .transfer-form { flex-direction: column !important; align-items: stretch !important; }
    
    /* Responsive Table Wrapper */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 30px;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.leaderboard-table th, .leaderboard-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0,0,0,0.3);
}
.leaderboard-table th {
    background: rgba(0,0,0,0.8);
    color: var(--primary);
    font-size: 20px;
}
.leaderboard-table tr:last-child td {
    border-bottom: none;
}
.leaderboard-table tr:hover td {
    background: rgba(255,255,255,0.02);
}
.rank-1 { color: #f1c40f; font-size: 28px; font-family: 'Bebas Neue', sans-serif; }
.rank-2 { color: #bdc3c7; font-size: 24px; font-family: 'Bebas Neue', sans-serif; }
.rank-3 { color: #e67e22; font-size: 20px; font-family: 'Bebas Neue', sans-serif; }

@keyframes blink-cursor {
    0%, 100% { border-color: transparent; }
    50% { border-color: white; }
}
.typing-cursor {
    border-right: 2px solid white;
    animation: blink-cursor 1s step-end infinite;
    padding-right: 2px;
}
