:root {
    --primary-color: #f7931a;
    --secondary-color: #4a5568;
    --bg-dark: #1a202c;
    --bg-light: #2d3748;
    --text-light: #ffffff;
    --text-gray: #a0aec0;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --border-color: #4a5568;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

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

/* Header */
.header {
    background-color: var(--bg-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #e8830f;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #3a4454;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

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

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.stat-info {
    text-align: left;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Pool Info */
.pool-info {
    padding: 4rem 0;
    background-color: var(--bg-dark);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

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

.info-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.info-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Puzzles Section */
.puzzles-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.puzzles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.puzzle-card {
    background-color: var(--bg-dark);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.puzzle-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.puzzle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.puzzle-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.puzzle-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background-color: var(--success-color);
    color: white;
}

.status-solved {
    background-color: var(--danger-color);
    color: white;
}

.puzzle-reward {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.puzzle-info {
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.info-row span:last-child {
    color: var(--text-light);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ffd700);
    transition: width 0.5s;
}

/* Leaderboard */
.leaderboard-section {
    padding: 4rem 0;
    background-color: var(--bg-dark);
}

.leaderboard-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-light);
    color: var(--text-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.filter-btn:hover {
    border-color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.leaderboard-table {
    background-color: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: var(--secondary-color);
}

th, td {
    padding: 1rem;
    text-align: left;
}

th {
    font-weight: 600;
    color: var(--text-light);
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

tbody tr:hover {
    background-color: var(--secondary-color);
}

tbody tr:last-child {
    border-bottom: none;
}

.rank-badge {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
}

.rank-1 { background-color: #ffd700; color: #000; }
.rank-2 { background-color: #c0c0c0; color: #000; }
.rank-3 { background-color: #cd7f32; color: #000; }

/* Statistics */
.stats-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.chart-card {
    background-color: var(--bg-dark);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: var(--bg-dark);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.about-text, .about-features {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
}

.about-text h3, .about-features h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text ul, .about-features ul {
    list-style: none;
    padding-left: 0;
}

.about-text li, .about-features li {
    margin-bottom: 0.75rem;
    color: var(--text-gray);
}

.about-features li i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

/* Dashboard */
.dashboard {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 1000;
}

.dashboard-header {
    background-color: var(--secondary-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.dashboard-content {
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.dash-stat {
    background-color: var(--bg-dark);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.dash-stat .label {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.dash-stat .value {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--bg-light);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .nav {
        display: none;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard {
        width: calc(100% - 40px);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

