:root {
    --primary: #00a651;
    --primary-dark: #008f45;
    --secondary: #1a1a1a;
    --gold: #ffd700;
    --gold-dark: #e6c200;
    --light: #f4f6f9;
    --white: #ffffff;
    --gray: #6c757d;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --gradient: linear-gradient(135deg, #00a651 0%, #00d46a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: var(--secondary);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--gold);
}

.menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: 0.3s;
}

.menu a:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.btn-large {
    background: var(--gold);
    color: var(--secondary);
    padding: 18px 50px;
    font-size: 20px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255,215,0,0.4);
    position: relative;
    z-index: 1;
}

.btn-large:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.6);
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: -50px auto 50px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: 0.3s;
    border-top: 4px solid var(--primary);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    color: var(--secondary);
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
    font-size: 16px;
}

/* Stats Section */
.stats-section {
    background: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.stats-section h2 {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 50px;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: var(--gray);
    font-size: 16px;
    margin-top: 10px;
    display: block;
}

/* CTA Section */
.cta-section {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #111;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

footer p {
    opacity: 0.7;
}

/* Dashboard Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.card h2 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.full-width {
    grid-column: 1 / -1;
}

/* Generator Box */
.generator-box select {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    background: white;
}

.btn-generate {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 20px;
    width: 100%;
    font-size: 20px;
    cursor: pointer;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,166,81,0.4);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,166,81,0.6);
}

.result-area {
    min-height: 80px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
    margin-top: 20px;
}

.ball {
    display: inline-flex;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,166,81,0.4);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.limit-info {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    margin-top: 15px;
}

/* Auth Forms */
.auth-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 0 20px;
}

.auth-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.auth-form h2 {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 30px;
    font-size: 28px;
}

.auth-form input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: 0.3s;
}

.auth-form input:focus {
    border-color: var(--primary);
    outline: none;
}

.auth-form button {
    width: 100%;
    padding: 15px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.auth-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,166,81,0.4);
}

.auth-form p {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
}

.auth-form a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: var(--light);
    color: var(--secondary);
    font-weight: 600;
}

.data-table tr:hover {
    background: #f9f9f9;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .features {
        margin-top: 30px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }