/* Base Styles & Variables */
:root {
    --bg-main: #14232C; /* Darker blue/grey background */
    --bg-alt: #1A2E3B; /* Lighter blue/grey background */
    --bg-footer: #0A1924; /* Darkest background for footer */
    --bg-card: #203542; /* Card background */
    --bg-faq: #536C7C; /* FAQ background */
    
    --primary-blue: #13A5FA;
    --secondary-btn: #5A6D7C;
    
    --text-main: #FFFFFF;
    --text-muted: #A3B8C7;
    
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background Utilities */
.section-bg-main {
    background-color: var(--bg-main);
}

.section-bg-alt {
    background-color: var(--bg-alt);
}

/* Typography Utilities */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: #0e8ad6;
}

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

.btn-secondary:hover {
    background-color: #4a5a66;
}

/* Navbar */
.navbar {
    background-color: var(--bg-alt);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link {
    font-size: 0.95rem;
    font-weight: 600;
}

.login-link:hover {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    padding: 60px 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(circle, black 50%, transparent 75%);
    mask-image: radial-gradient(circle, black 50%, transparent 75%);
}

/* Ways of Earning */
.ways-of-earning {
    padding: 80px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Stats Section */
.stats {
    padding: 60px 0;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 100px;
    text-align: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-image {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-card); /* fallback */
}

.stat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(circle, black 50%, transparent 80%);
    mask-image: radial-gradient(circle, black 50%, transparent 80%);
}

.stat-item h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.faq-item {
    background-color: var(--bg-faq);
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #5e7a8c;
}

.faq-number {
    width: 28px;
    height: 28px;
    background-color: white;
    color: var(--bg-faq);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 15px;
}

.faq-question h4 {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
}

.faq-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(0,0,0,0.1);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px; /* arbitrary max height for transition */
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer p {
    font-size: 0.95rem;
    color: #e0e0e0;
}

/* Footer */
.footer {
    background-color: var(--bg-footer);
    padding: 60px 0 20px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.footer-column ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-container {
        gap: 40px;
    }
}
/* History Table (Global for all games) */
.table-responsive {
    overflow-x: auto;
    background-color: var(--bg-alt);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.bets-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.bets-table th, .bets-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.bets-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    background-color: rgba(0,0,0,0.2);
}

.bets-table td {
    font-weight: 600;
    font-size: 0.95rem;
}

.text-green { color: #34c759; }
.text-red { color: #ff3b30; }

/* History Section */
.my-bets-section {
    background-color: var(--bg-alt);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.table-responsive {
    overflow-x: auto;
}

