/* ═══════════ PROFILE & GAMIFICATION ═══════════ */

/* Clickable user block in header */
.user-block.clickable {
    cursor: pointer;
    padding: 8px 12px 8px 8px;
    margin: -8px;
    border-radius: 16px;
    transition: background 0.2s ease;
    flex: 1;
}

.user-block.clickable:active {
    background: var(--glass-bg);
}

.header-greeting {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-level-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.user-level-badge .level-icon {
    font-size: 10px;
}

.profile-arrow {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-left: auto;
}

/* Profile Screen */
.profile-gamification-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.profile-gamification-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.1;
}

.profile-gamification-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.1;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.profile-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.profile-user-info h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.profile-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.profile-level-badge .level-icon {
    font-size: 14px;
    color: var(--yellow);
}

.profile-level-badge .level-number {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
}

/* XP Bar */
.profile-xp-section {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.xp-bar-container {
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.xp-bar-fill {
    height: 100%;
    background: var(--gradient-hero);
    border-radius: 5px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

.xp-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Profile Stats */
.profile-stats-row {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.profile-stat .stat-icon {
    font-size: 22px;
    color: var(--accent);
}

.profile-stat .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-stat .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Achievements Button */
.btn-achievements {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.btn-achievements:active {
    background: var(--bg-active);
    transform: scale(0.98);
}

.btn-achievements i:first-child {
    color: var(--yellow);
    font-size: 20px;
}

.btn-achievements i:last-child {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 14px;
}

/* ═══════════ ACHIEVEMENTS SCREEN ═══════════ */

.achievements-stats {
    display: flex;
    justify-content: center;
    padding: 20px 0 30px;
}

.achievements-progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.achievements-progress-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.achievements-progress-ring .ring-bg {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 8;
}

.achievements-progress-ring .ring-fill {
    fill: none;
    stroke: url(#gradient) var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ring-text span {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.achievements-filter {
    display: flex;
    gap: 8px;
    padding: 0 0 16px;
    overflow-x: auto;
}

.achievements-filter .filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.achievements-filter .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.achievement-card.locked {
    opacity: 0.5;
}

.achievement-card.unlocked {
    border-color: var(--accent-glow);
    background: linear-gradient(135deg, var(--accent-soft), transparent);
}

.achievement-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
    min-width: 0;
}

.achievement-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.achievement-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.achievement-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.achievement-progress-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.achievement-progress-fill {
    height: 100%;
    background: var(--gradient-hero);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.achievement-progress-text {
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.achievement-xp {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--yellow-soft);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--yellow);
    flex-shrink: 0;
}

.achievement-rarity {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.achievement-rarity.common { background: var(--bg-hover); color: var(--text-muted); }
.achievement-rarity.rare { background: var(--blue-soft); color: var(--blue); }
.achievement-rarity.epic { background: var(--accent-soft); color: var(--accent-light); }
.achievement-rarity.legendary { background: var(--yellow-soft); color: var(--yellow); }

/* Light theme fixes for achievements */
/* Removed redundant light theme overrides as variables handle them */


/* ═══════════ DAILY QUESTS ═══════════ */
.daily-quests-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.daily-quests-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.daily-quests-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quest-icon {
    font-size: 18px;
}

.daily-quests-bonus {
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #22c55e;
}

.daily-quests-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.daily-quest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary, rgba(128, 128, 128, 0.08));
    border-radius: 12px;
    transition: all 0.2s ease;
}

.daily-quest-item.completed {
    background: rgba(34, 197, 94, 0.1);
}

.daily-quest-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.daily-quest-item.completed .daily-quest-check {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.daily-quest-info {
    flex: 1;
    min-width: 0;
}

.daily-quest-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.daily-quest-progress-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.daily-quest-progress-fill {
    height: 100%;
    background: var(--gradient-hero);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.daily-quest-item.completed .daily-quest-progress-fill {
    background: var(--green);
}

.daily-quest-xp {
    padding: 4px 8px;
    background: var(--yellow-soft);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--yellow);
    flex-shrink: 0;
}

.daily-quests-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.all-completed-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--green);
}

/* Profile action buttons */
.profile-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =========== LEADERBOARD =========== */
.leaderboard-user-position {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-soft), var(--bg-elevated));
    border: 1px solid var(--accent-soft);
    border-radius: 16px;
    margin-bottom: 16px;
}

.position-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.position-info {
    flex: 1;
}

.position-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.position-level {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.position-xp {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.leaderboard-period-filter {
    display: flex;
    gap: 8px;
    padding: 0 0 16px;
}

.leaderboard-period-filter .period-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.leaderboard-period-filter .period-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.leaderboard-item.current-user {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.leaderboard-item.top-3 {
    border-color: var(--yellow-soft);
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.leaderboard-item.top-3:nth-child(1) .leaderboard-rank {
    background: linear-gradient(135deg, var(--yellow), #f59e0b);
    color: white;
}

.leaderboard-item.top-3:nth-child(2) .leaderboard-rank {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: white;
}

.leaderboard-item.top-3:nth-child(3) .leaderboard-rank {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
}

.leaderboard-user-info {
    flex: 1;
}

.leaderboard-level-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
.leaderboard-xp {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

/* XP Popup Animation */
.xp-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 30px 50px;
    text-align: center;
    animation: xpPopupIn 0.4s ease, xpPopupOut 0.4s ease 2s forwards;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.xp-popup-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.xp-popup-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--yellow);
    text-shadow: 0 0 20px var(--yellow-soft);
}

.xp-popup-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

@keyframes xpPopupIn {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes xpPopupOut {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.8) translateY(-30px); opacity: 0; }
}

/* Level Up Animation */
.level-up-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: levelUpBgIn 0.3s ease;
}

.level-up-content {
    text-align: center;
    animation: levelUpContentIn 0.5s ease 0.2s both;
}

.level-up-icon {
    font-size: 80px;
    margin-bottom: 16px;
    animation: levelUpIconPulse 1s ease infinite;
}

.level-up-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.level-up-level {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--yellow), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.level-up-name {
    font-size: 18px;
    color: var(--text-secondary);
}

@keyframes levelUpBgIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes levelUpContentIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes levelUpIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Light theme fixes */
/* Removed redundant light theme overrides */


.daily-quest-item.completed {
    background: var(--green-soft);
}

.daily-quest-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.daily-quest-item.completed .daily-quest-check {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.daily-quest-info {
    flex: 1;
    min-width: 0;
}

.daily-quest-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.daily-quest-progress-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.daily-quest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.daily-quest-item.completed .daily-quest-progress-fill {
    background: #22c55e;
}

.daily-quest-xp {
    padding: 4px 8px;
    background: rgba(251, 191, 36, 0.15);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #fbbf24;
    flex-shrink: 0;
}

.daily-quests-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.all-completed-text {
    font-size: 14px;
    font-weight: 500;
    color: #22c55e;
}

/* Profile action buttons */
.profile-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* =========== LEADERBOARD =========== */
.leaderboard-user-position {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    margin-bottom: 16px;
}

.position-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.position-info {
    flex: 1;
}

.position-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.position-level {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.position-xp {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
}

.leaderboard-period-filter {
    display: flex;
    gap: 8px;
    padding: 0 0 16px;
}

.leaderboard-period-filter .period-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary, rgba(128, 128, 128, 0.1));
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.leaderboard-item.current-user {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.leaderboard-item.top-3 {
    border-color: rgba(251, 191, 36, 0.3);
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary, rgba(128, 128, 128, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.leaderboard-item.top-3:nth-child(1) .leaderboard-rank {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.leaderboard-item.top-3:nth-child(2) .leaderboard-rank {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: white;
}

.leaderboard-item.top-3:nth-child(3) .leaderboard-rank {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
}

.leaderboard-user-info {
    flex: 1;
}

.leaderboard-level-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.leaderboard-streak {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.leaderboard-xp {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
}


/* XP Popup Animation */
.xp-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    padding: 30px 50px;
    text-align: center;
    animation: xpPopupIn 0.4s ease, xpPopupOut 0.4s ease 2s forwards;
}

.xp-popup-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.xp-popup-amount {
    font-size: 36px;
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.xp-popup-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

@keyframes xpPopupIn {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes xpPopupOut {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.8) translateY(-30px); opacity: 0; }
}

/* Level Up Animation */
.level-up-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: levelUpBgIn 0.3s ease;
}

.level-up-content {
    text-align: center;
    animation: levelUpContentIn 0.5s ease 0.2s both;
}

.level-up-icon {
    font-size: 80px;
    margin-bottom: 16px;
    animation: levelUpIconPulse 1s ease infinite;
}

.level-up-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.level-up-level {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.level-up-name {
    font-size: 18px;
    color: var(--text-secondary);
}

@keyframes levelUpBgIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes levelUpContentIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes levelUpIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Light theme fixes */
[data-theme='light'] .daily-quests-card {
    background: #ffffff;
    border-color: #e5e7eb;
}

[data-theme='light'] .daily-quest-item {
    background: #f3f4f6;
}

[data-theme='light'] .daily-quest-item.completed {
    background: rgba(34, 197, 94, 0.1);
}

[data-theme='light'] .leaderboard-user-position {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
}

[data-theme='light'] .leaderboard-item {
    background: #ffffff;
    border-color: #e5e7eb;
}

[data-theme='light'] .leaderboard-item.current-user {
    background: rgba(99, 102, 241, 0.05);
}

[data-theme='light'] .leaderboard-period-filter .period-btn {
    background: #f3f4f6;
    border-color: #d1d5db;
}

