:root {
    /* Common variables */
    --primary-green: #009659;
}

/* Dark Theme (default) */
:root[data-theme="dark"] {
    --bg-dark: #100F14;
    --bg-light: #161519;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --card-bg: rgba(22, 21, 25, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
}

/* Light Theme */
:root[data-theme="light"] {
    --bg-dark: #f5f5f7;
    --bg-light: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(0, 0, 0, 0.1);
    --text-color: #1f2937;
    --border-color: #e5e7eb;
    --card-bg-secondary: #f9fafb;
    --hover-color: #f3f4f6;
    --input-bg: white;
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    min-width: 280px;
    background-color: var(--bg-light);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0.5rem;
}

.logo img {
    width: 120px;
    height: auto;
}

/* Logo switching styles */
.logo-dark {
    display: block;
}

.logo-light {
    display: none;
}

[data-theme="light"] .logo-dark {
    display: none;
}

[data-theme="light"] .logo-light {
    display: block;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background-color: var(--primary-green);
    color: white;
}

.sidebar nav a i {
    width: 20px;  /* Fixed width for icons */
    text-align: center;
}

.user-profile {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.user-info span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: block;
}

#membership-status {
    color: var(--primary-green);
    font-weight: 500;
}

/* Main Content Styles */
.main-content {
    margin-left: 280px; /* Match sidebar width */
    width: calc(100% - 280px);
    min-height: 100vh;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-bar {
    background-color: var(--bg-light);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 300px;
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upgrade-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 16px;
}

.upgrade-btn i {
    font-size: 14px;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.notification-wrapper {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 1rem;
    display: none;
    z-index: 1000;
}

.notification-dropdown.active {
    display: block;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-dark);
}

.notification-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 0.9rem;
    cursor: pointer;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.notification-item.unread {
    background: var(--bg-dark);
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 150, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
}

.notification-content {
    flex: 1;
}

.notification-content p {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.notification-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.mark-read {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-item:hover .mark-read {
    opacity: 1;
}

/* Scrollbar styles */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 3px;
}

.upgrade-btn:hover {
    opacity: 0.9;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

/* Progress Overview */
.progress-overview {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.progress-text h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.level-badge {
    background: linear-gradient(135deg, var(--primary-green), #00b347);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.level-badge i {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.level-badge span {
    font-weight: 600;
    font-size: 1.2rem;
}

.progress-bars {
    margin-bottom: 2rem;
}

.progress-item {
    margin-bottom: 1.2rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.progress-track {
    height: 8px;
    background: var(--bg-dark);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-green);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 150, 89, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.3rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.quick-actions h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
}

.action-card i {
    font-size: 1.5rem;
    color: var(--primary-green);
}

/* Welcome Section */
.welcome-section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.welcome-text p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.quick-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary-green);
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Continue Learning Section */
.continue-learning {
    margin-bottom: 2rem;
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
}

.course-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.1rem;
}

.progress-badge {
    background: rgba(0, 150, 89, 0.1);
    color: var(--primary-green);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.progress-bar {
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    margin-bottom: 1rem;
}

.progress {
    height: 100%;
    background: var(--primary-green);
    border-radius: 3px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.continue-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Featured Games Section */
.featured-games {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.games-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.game-showcase-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 21/9;
    cursor: pointer;
}

.game-showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-showcase-card:hover img {
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 30%,
        rgba(0, 0, 0, 0.3) 100%
    );
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-showcase-card:hover .game-overlay {
    opacity: 1;
}

.game-overlay h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.game-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.game-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.game-stats .value {
    color: var(--primary-green);
    font-size: 1.4rem;
    font-weight: 600;
}

.game-stats .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.play-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
    width: fit-content;
}

.play-btn:hover {
    opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .games-showcase {
        grid-template-columns: 1fr;
    }
    
    .game-overlay {
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
}

/* Settings Page Styles */
.settings-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 1rem 0;
}

/* Settings Navigation */
.settings-nav {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-tab {
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.settings-tab i {
    width: 20px;
}

.settings-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.settings-tab.active {
    background: var(--primary-green);
    color: white;
}

/* Settings Content */
.settings-section {
    display: none;
    min-height: 500px; /* Set a consistent minimum height */
}

.settings-section.active {
    display: block;
}

.settings-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    min-height: inherit;
}

/* Remove the h2 styles since we removed those headings */
.settings-section h2 {
    display: none;
}

/* Profile Section */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-image {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: visible;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
    border-radius: 50%;
}

.profile-image:hover img {
    filter: brightness(0.8);
}

.change-avatar {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    background: var(--primary-green);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(5px);
    border: 2px solid var(--bg-light);
    z-index: 2;
}

.profile-image:hover .change-avatar {
    opacity: 1;
    transform: translateY(0);
}

.change-avatar:hover {
    background: var(--primary-green);
    transform: scale(1.1);
}

/* Add loading state */
.profile-image.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.profile-info h3 {
    margin-bottom: 0.5rem;
}

.profile-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Form Styles */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.change-password {
    background: none;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.change-password:hover {
    background: var(--primary-green);
    color: white;
}

.save-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin-top: 1rem;
}

.save-btn:hover {
    opacity: 0.9;
}

/* Preferences Styles */
.preference-group {
    margin-bottom: 2rem;
}

.preference-group h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.theme-options {
    display: flex;
    gap: 1rem;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.95rem;
    width: 100%;
}

.theme-btn:hover {
    background: var(--hover-color);
}

.theme-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

[data-theme="light"] .theme-btn {
    background: white;
    border-color: #e5e7eb;
}

[data-theme="light"] .theme-btn:hover {
    background: #f3f4f6;
}

[data-theme="light"] .theme-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.language-select {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    width: 200px;
    cursor: pointer;
}

/* Notification Settings Styles */
.notification-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-setting:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.setting-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.setting-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-green);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Subscription Styles */
.current-plan {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.plan-name {
    font-size: 1.2rem;
    color: var(--primary-green);
}

.plan-price {
    color: var(--text-secondary);
}

.upgrade-plan {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.upgrade-plan:hover {
    opacity: 0.9;
}

.billing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.billing-item:last-child {
    border-bottom: none;
}

.invoice-link {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.9rem;
}

.invoice-link:hover {
    text-decoration: underline;
}

/* Analytics Styles */
.analytics-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 150, 89, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.stat-info p {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Chart Section */
.chart-section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-green);
    background: none;
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-green);
    color: white;
}

.activity-chart {
    margin-top: 2rem;
    height: 300px;
    position: relative;
}

.chart-placeholder {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1rem 0;
}

.bar {
    width: 40px;
    background: var(--primary-green);
    border-radius: 6px;
    transition: height 0.3s ease;
}

/* Recent Activity */
.recent-activity {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-list {
    margin-top: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 150, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
}

.activity-content h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.activity-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.activity-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Replay Analysis Styles */
.replay-analysis {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.replay-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upload-btn {
    background: var(--primary-green);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.upload-btn:hover {
    opacity: 0.9;
}

.no-replay-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-replay-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-replay-message span {
    font-size: 0.9rem;
    opacity: 0.7;
}

.replay-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.replay-stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.replay-stat h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.replay-details {
    display: grid;
    gap: 2rem;
}

.detail-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
}

.pattern-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.pattern-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pattern-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.pattern-progress {
    height: 100%;
    background: var(--primary-green);
    border-radius: 4px;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.suggestion-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.suggestion-item i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

.suggestion-content h4 {
    margin-bottom: 0.3rem;
}

.suggestion-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Statistics Tracker Styles */
.stats-tracker-container {
    padding: 1rem 0;
}

.search-section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.search-container {
    display: flex;
    gap: 1rem;
}

.search-container input {
    flex: 1;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.search-btn {
    padding: 0 2rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.search-btn:hover {
    opacity: 0.9;
}

.no-player-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-player-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .community-layout {
        grid-template-columns: 200px minmax(0, 1fr) 280px;
    }
}

@media (max-width: 1200px) {
    .community-layout {
        grid-template-columns: 180px minmax(0, 1fr) 250px;
    }
}

@media (max-width: 992px) {
    .community-layout {
        grid-template-columns: 180px minmax(0, 1fr);
    }
    .community-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .community-layout {
        grid-template-columns: 1fr;
    }
    .game-categories {
        display: none;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .sidebar {
        display: none;
    }
}

/* Game Selection Page Styles */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.game-progress-card {
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-progress-card:hover {
    transform: translateY(-5px);
}

.game-progress-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--bg-dark);
    display: block;
    line-height: 0;
    vertical-align: bottom;
}

.game-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    line-height: normal;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.game-header-left h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.courses-available {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
}

/* Update info section styles */
.game-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.info-item i {
    color: var(--primary-green);
    font-size: 0.9rem;
}

.difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.difficulty.beginner {
    background: rgba(0, 150, 89, 0.1);
    color: var(--primary-green);
}

.difficulty.intermediate {
    background: rgba(255, 170, 0, 0.1);
    color: #ffaa00;
}

.difficulty.advanced {
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
}

/* Remove or hide unused elements */
.progress-bar,
.progress-details,
.lessons {
    display: none;
}

.view-courses-btn {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-progress-card img {
        height: 300px;
    }
}

/* Game Paths Section */
.game-paths {
    margin-bottom: 2rem;
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.path-card {
    position: relative;
    border-radius: 12px;
    padding: 2rem;
    background: var(--bg-light);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.path-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 150, 89, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.path-card:hover::before {
    opacity: 1;
}

.path-content {
    position: relative;
    z-index: 1;
}

.path-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.path-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.path-level {
    background: rgba(0, 150, 89, 0.1);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.path-modules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.module {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
}

.module-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 150, 89, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.2rem;
}

.path-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.path-btn {
    width: 100%;
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.path-btn:hover {
    opacity: 0.9;
}

.path-btn.active {
    opacity: 1;
}

/* Game-specific styles */
.path-card.fortnite .module-icon,
.path-card.valorant .module-icon,
.path-card.rust .module-icon {
    background: rgba(0, 150, 89, 0.1);
    color: var(--primary-green);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .paths-grid {
        grid-template-columns: 1fr;
    }
    .path-btn {
        width: 100%; /* Make buttons full width on mobile */
    }
}

/* Game Courses Page Styles */
.game-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-btn {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

.back-btn:hover {
    opacity: 0.8;
}

.skill-paths {
    margin-bottom: 2rem;
}

.skill-paths h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.course-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.course-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.course-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.start-course-btn {
    width: 100%;
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.start-course-btn:hover {
    opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .path-buttons {
        flex-wrap: wrap;
    }
    
    .path-btn {
        width: calc(50% - 0.5rem);
    }
}

/* Rewards Page Styles */
.points-display {
    background: var(--bg-light);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: var(--primary-green);
    margin-right: 1rem;
}

.points-display i {
    color: var(--primary-green);
}

.points-display-large {
    display: none;
}

/* How to Earn Points Section */
.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.earn-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.earn-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.earn-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 150, 89, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.5rem;
}

.earn-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.earn-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Redeem Points Section */
.redeem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.redeem-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
}

.redeem-header {
    position: relative;
    height: 300px;
    background: var(--bg-dark);
}

.redeem-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

.points-cost {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.redeem-content {
    padding: 1.5rem;
}

.redeem-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.redeem-btn {
    width: 100%;
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.redeem-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.redeem-btn:disabled {
    background: var(--bg-dark);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .redeem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .redeem-grid {
        grid-template-columns: 1fr;
    }
}

/* Locked content styles */
.locked {
    position: relative;
    opacity: 0.7;
}

.locked::before {
    content: '🔒';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    z-index: 10;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.confirmation-modal,
.upgrade-modal {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
}

.plan-details {
    margin: 1.5rem 0;
}

.plan-details h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.plan-details .price {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-details ul {
    list-style: none;
    padding: 0;
}

.plan-details li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.plan-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.confirm-btn,
.cancel-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.confirm-btn {
    background: var(--primary-green);
    color: white;
}

.confirm-btn:hover {
    background: var(--primary-green-dark);
}

.cancel-btn {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.cancel-btn:hover {
    background: var(--bg-darker);
} 

/* Documentation & Legal Pages */
.doc-page {
  max-width: 700px;
  margin: 5rem auto 3rem auto;
  padding: 2.5rem 2rem;
  background: var(--bg-light);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  border: 1.5px solid var(--card-border);
  color: var(--text-primary);
  font-size: 1.08rem;
  line-height: 1.8;
  box-sizing: border-box;
}
.doc-page h1 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--primary-green);
  letter-spacing: -1px;
}
.doc-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.2rem 0 1rem 0;
  color: var(--text-primary);
}
.doc-page ul {
  margin: 1rem 0 1.5rem 1.5rem;
  padding-left: 1.2rem;
}
.doc-page li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}
.doc-page p, .doc-page li {
  color: var(--text-secondary);
}
.doc-page a {
  color: var(--primary-green);
  text-decoration: underline;
  transition: color 0.2s;
}
.doc-page a:hover {
  color: #00b36a;
}
@media (max-width: 600px) {
  .doc-page {
    padding: 1.2rem 0.5rem;
    margin: 2.5rem 0.5rem 2rem 0.5rem;
    font-size: 0.98rem;
  }
  .doc-page h1 {
    font-size: 1.5rem;
  }
  .doc-page h2 {
    font-size: 1.1rem;
  }
} 