/* Progression System Styles */

/* ========================================
   PROGRESSION HEADER
   ======================================== */
@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.progression-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 15, 35, 0.95) 100%);
    border-bottom: 2px solid var(--neon-blue);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.2);
    animation: slideInFromTop 0.5s ease;
}

.progression-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* Hamburger Menu */
@keyframes neon-flicker {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 35px;
    height: 35px;
    cursor: pointer;
    z-index: 1002;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.hamburger-menu:hover {
    transform: scale(1.1);
}

.hamburger-menu:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--neon-blue);
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
    position: relative;
}

.hamburger-line::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: neon-flicker 3s infinite;
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

/* Mobile Menu Dropdown */
@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    60% {
        transform: translateY(5%);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(15, 15, 35, 0.98) 100%);
    border-bottom: 2px solid var(--neon-blue);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    animation: slideDown 0.4s ease forwards;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-section {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.mobile-menu-section:last-child {
    border-bottom: none;
}

.mobile-menu-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.mobile-menu-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Game controls (moved from floating buttons) */
.game-controls {
    display: flex;
    gap: 10px;
    margin-right: 15px;
}

.btn-game-icon {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    white-space: nowrap;
}

.btn-game-icon:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.btn-game-icon.mobile {
    flex: 1;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeInScale 0.5s ease backwards;
}

.mobile-menu-section:nth-child(1) .btn-game-icon.mobile:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-section:nth-child(1) .btn-game-icon.mobile:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-section:nth-child(1) .btn-game-icon.mobile:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-section:nth-child(2) .profile-btn:nth-child(1) { animation: fadeInScale 0.5s ease 0.25s backwards; }
.mobile-menu-section:nth-child(2) .profile-btn:nth-child(2) { animation: fadeInScale 0.5s ease 0.3s backwards; }
.mobile-menu-section:nth-child(3) .btn-game-icon.mobile:nth-child(1) { animation-delay: 0.35s; }
.mobile-menu-section:nth-child(3) .btn-game-icon.mobile:nth-child(2) { animation-delay: 0.4s; }
.mobile-menu-section:nth-child(3) .btn-game-icon.mobile:nth-child(3) { animation-delay: 0.45s; }

.btn-text {
    display: none;
    font-size: 0.9rem;
    font-family: 'Orbitron', monospace;
}

.mobile-menu .btn-text {
    display: inline;
}

/* Level Badge */
@keyframes pulse-glow {
    0% { 
        transform: scale(1); 
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
}

.level-badge {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, #00d4ff 0%, #0066ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    position: relative;
    animation: pulse-glow 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.level-badge:hover {
    transform: scale(1.1) rotate(5deg);
    cursor: pointer;
}

.level-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* XP Section */
.xp-section {
    flex: 1;
    max-width: 400px;
}

.xp-bar-container {
    position: relative;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.2);
    }
}

.xp-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff88 0%, #00d4ff 100%);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    position: relative;
    animation: glow-pulse 2s ease-in-out infinite;
}

.xp-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.xp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.rank-display {
    font-size: 0.85rem;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 15px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.profile-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.profile-btn:active::before {
    width: 300px;
    height: 300px;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.profile-icon {
    font-size: 1.2rem;
}

.profile-name {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile profile buttons */
.mobile-profile-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.mobile-profile-buttons .profile-btn {
    flex: 1;
    justify-content: center;
    padding: 10px;
}

/* ========================================
   DAILY CHALLENGE CARD
   ======================================== */
.daily-challenge-card {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    border: 2px solid #ff00ff;
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.2);
    animation: float-animation 3s ease-in-out infinite;
}

@keyframes float-animation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

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

.daily-icon {
    font-size: 1.5rem;
}

.daily-challenge-header h3 {
    flex: 1;
    margin: 0 10px;
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.daily-timer {
    font-size: 0.9rem;
    color: #ffa500;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
}

.daily-challenge-content {
    margin-bottom: 15px;
}

.daily-goal {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

.daily-modifiers {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.modifier-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: #00ffff;
}

.daily-reward {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #ffff00;
    font-weight: bold;
}

.daily-play-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #ff00ff 0%, #8a2be2 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.daily-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.4);
}

.daily-streak {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    color: #ff6600;
    font-size: 0.9rem;
}

/* ========================================
   ACHIEVEMENTS BUTTON
   ======================================== */
.achievement-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    animation: bounce 1s infinite;
}

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

/* ========================================
   XP NOTIFICATIONS
   ======================================== */
.xp-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.9) 0%, rgba(0, 212, 255, 0.9) 100%);
    border: 2px solid #00ff88;
    border-radius: 10px;
    padding: 15px 20px;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
    animation: slide-in-right 0.5s ease, fade-out 0.5s ease 2.5s forwards;
    z-index: 10000;
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-out {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ========================================
   ACHIEVEMENT UNLOCK ANIMATION
   ======================================== */
.achievement-unlock {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    animation: achievement-pop 0.5s ease;
    z-index: 10001;
}

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

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.achievement-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.achievement-description {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 10px;
}

.achievement-xp {
    font-size: 1.2rem;
    color: #ffff00;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

/* ========================================
   LEVEL UP CELEBRATION
   ======================================== */
.level-up-celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.level-up-text {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    animation: level-up-zoom 1s ease;
}

@keyframes level-up-zoom {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.level-up-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd700;
    border-radius: 50%;
    animation: particle-rise 3s ease-out forwards;
}

@keyframes particle-rise {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ========================================
   ACHIEVEMENTS MODAL STYLES
   ======================================== */
.achievements-content {
    max-width: 800px;
}

.achievements-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.achievements-stats .stat-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 15px 25px;
    text-align: center;
}

.achievements-stats .stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--neon-blue);
    margin-bottom: 5px;
}

.achievements-stats .stat-label {
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
}

.achievements-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.achievement-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(128, 128, 128, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.achievement-card.unlocked {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.achievement-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.achievement-card.locked .achievement-icon {
    filter: grayscale(1);
    opacity: 0.5;
}

.achievement-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.achievement-description {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 5px;
}

.achievement-xp {
    font-size: 0.8rem;
    color: var(--neon-yellow);
    font-weight: bold;
}

/* ========================================
   PROFILE MODAL STYLES
   ======================================== */
.profile-content {
    max-width: 600px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--neon-blue) 0%, #0066ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.avatar-icon {
    font-size: 2.5rem;
}

.profile-info h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 5px;
}

.profile-rank {
    color: var(--neon-green);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.profile-level {
    color: #aaa;
    font-size: 0.9rem;
}

.profile-stats {
    margin-bottom: 20px;
}

.profile-stats h3 {
    color: var(--neon-blue);
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.stat-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.stat-item .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stat-item .stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--neon-blue);
}

.profile-progression h3 {
    color: var(--neon-yellow);
    margin-bottom: 15px;
}

.xp-details {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.xp-details p {
    margin: 8px 0;
    color: #ccc;
}

.xp-details span {
    color: var(--neon-yellow);
    font-weight: bold;
}

/* ========================================
   CUSTOMIZATION MODAL STYLES
   ======================================== */
.customization-modal-container {
    max-width: 700px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(15, 15, 35, 0.98) 100%);
    border: 2px solid var(--neon-blue);
    border-radius: 15px;
    padding: 30px;
}

.customization-items-container {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
}

.customization-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.customization-tabs .tab-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.customization-tabs .tab-btn.active {
    color: var(--neon-blue);
}

.customization-tabs .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neon-blue);
}

/* Container for customization items */
#customizationContent {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.customize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.customize-item {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(128, 128, 128, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.customize-item.equipped {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.customize-item.unlocked:not(.equipped) {
    border-color: rgba(0, 212, 255, 0.5);
}

.customize-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.customize-preview {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.item-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 5px 0;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes sparkle {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.customize-item:hover:not(.locked) {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

/* Preview System */
.preview-btn {
    background: rgba(147, 112, 219, 0.2);
    border: 1px solid #9370DB;
    color: #9370DB;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.preview-btn:hover {
    background: rgba(147, 112, 219, 0.3);
    transform: scale(1.05);
}

.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.preview-container {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(15, 15, 35, 0.98) 100%);
    border: 2px solid var(--neon-blue);
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header h3 {
    margin: 0;
    color: var(--neon-blue);
    font-size: 1.5rem;
}

.close-preview {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-preview:hover {
    transform: rotate(90deg);
}

.preview-content {
    margin: 20px 0;
}

.theme-preview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
}

.color-swatch {
    text-align: center;
}

.swatch {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin: 0 auto 5px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.color-swatch span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.preview-game-board {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.music-preview {
    text-align: center;
    padding: 40px;
}

.music-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.play-music-preview {
    background: var(--neon-green);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-music-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.piece-style-preview,
.effect-preview {
    text-align: center;
    padding: 20px;
}

.preview-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.unlock-info {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.customize-item h4 {
    color: #fff;
    font-size: 0.9rem;
    margin: 10px 0 5px;
}

.customize-item .unlock-requirement {
    font-size: 0.7rem;
    color: #ff6600;
    margin-top: 5px;
}

.customize-item button {
    margin-top: 10px;
    padding: 5px 15px;
    border: none;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.customize-item .equip-btn {
    background: var(--neon-blue);
    color: white;
}

.customize-item .equip-btn:hover {
    background: #0099cc;
    transform: scale(1.05);
}

.customize-item .equipped-btn {
    background: var(--neon-green);
    color: black;
    cursor: default;
}

.customize-preview {
    font-size: 2.5rem;
    line-height: 1;
}

.customization-preview {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%);
}

.customization-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.customization-unlock {
    font-size: 0.7rem;
    color: #888;
}

.customization-item.locked .customization-unlock {
    color: #ff6600;
}

/* ========================================
   ACCOUNT MODAL STYLES
   ======================================== */
.account-content {
    max-width: 450px;
}

.account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.account-tabs .tab-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.account-tabs .tab-btn.active {
    color: var(--neon-blue);
}

.account-tabs .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neon-blue);
}

.account-form {
    padding: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--neon-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.auth-message {
    text-align: center;
    margin-top: 20px;
    color: #aaa;
}

.auth-message a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-message a:hover {
    color: var(--neon-green);
}

.sync-notice {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    color: var(--neon-green);
    font-size: 0.9rem;
}

.account-info {
    padding: 20px 0;
}

.account-details {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.account-details p {
    margin: 10px 0;
    color: #ccc;
}

.account-details strong {
    color: var(--neon-blue);
    margin-right: 10px;
}

.account-stats {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.account-stats h3 {
    color: var(--neon-green);
    margin-bottom: 15px;
}

.account-stats p {
    margin: 10px 0;
    color: #aaa;
}

.logout-btn {
    background: linear-gradient(135deg, #ff0066 0%, #ff3366 100%);
}

.logout-btn:hover {
    box-shadow: 0 5px 20px rgba(255, 0, 102, 0.4);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .progression-header {
        height: 50px;
        padding: 0 10px;
    }
    
    .progression-container {
        gap: 10px;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }
    
    /* Hide desktop controls on mobile */
    .game-controls {
        display: none;
    }
    
    .profile-section {
        display: none;
    }
    
    .level-badge {
        width: 35px;
        height: 35px;
    }
    
    .level-number {
        font-size: 1rem;
    }
    
    .xp-section {
        flex: 1;
        max-width: none;
    }
    
    .xp-bar-container {
        height: 15px;
    }
    
    .xp-text {
        font-size: 0.65rem;
    }
    
    .rank-display {
        font-size: 0.75rem;
    }
    
    .daily-challenge-card {
        margin: 10px;
        padding: 15px;
    }
    
    /* Adjust home screen for header */
    .home-screen {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .progression-header {
        height: 45px;
        padding: 0 8px;
    }
    
    .hamburger-menu {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }
    
    .hamburger-line {
        width: 22px;
        height: 2px;
        margin: 3px 0;
    }
    
    .level-badge {
        width: 32px;
        height: 32px;
    }
    
    .level-number {
        font-size: 0.9rem;
    }
    
    .xp-bar-container {
        height: 12px;
        margin-bottom: 3px;
    }
    
    .xp-text {
        font-size: 0.6rem;
    }
    
    .rank-display {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    
    .mobile-menu {
        top: 45px;
        padding: 15px;
    }
    
    .mobile-menu-buttons {
        flex-direction: column;
    }
    
    .btn-game-icon.mobile {
        padding: 10px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .progression-container {
        gap: 15px;
    }
    
    .game-controls {
        gap: 8px;
        margin-right: 10px;
    }
    
    .btn-game-icon {
        padding: 6px 10px;
        font-size: 1.1rem;
    }
    
    .xp-section {
        max-width: 300px;
    }
    
    .profile-name {
        display: none;
    }
    
    .profile-btn {
        padding: 5px 10px;
    }
    
    .profile-icon {
        font-size: 1.1rem;
    }
}

/* Large screens */
@media (min-width: 1440px) {
    .progression-header {
        height: 65px;
    }
    
    .progression-container {
        gap: 25px;
    }
    
    .level-badge {
        width: 50px;
        height: 50px;
    }
    
    .level-number {
        font-size: 1.3rem;
    }
    
    .xp-section {
        max-width: 500px;
    }
    
    .xp-bar-container {
        height: 22px;
    }
    
    .xp-text {
        font-size: 0.8rem;
    }
    
    .rank-display {
        font-size: 0.95rem;
    }
}

/* Adjust main content for progression header */
.home-screen {
    padding-top: 70px;
}

.game-screen {
    padding-top: 70px; /* Increased to avoid overlap with progression bar */
}