/* ================================
   SOGED Modern Dashboard
   Professional Learning Platform
   ================================ */

/* Virtual Closet Modern Styles */
.virtual-closet-modern {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 2rem;
}

.closet-left-column {
    display: flex;
    flex-direction: column;
}

.soggy-display-area {
    background: linear-gradient(135deg, #FFF8E1, #FFE0B2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.soggy-background-gradient {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #FF6F00, #FF8F00, #FFA000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.soggy-background-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="closet-pattern" x="0" y="0" width="15" height="15" patternUnits="userSpaceOnUse"><circle cx="7.5" cy="7.5" r="5" fill="rgba(255,255,255,0.15)"/></pattern></defs><rect width="100" height="100" fill="url(%23closet-pattern)"/></svg>');
    opacity: 0.5;
}

.soggy-full-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 6px solid #FFD54F;
    object-fit: cover;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.soggy-clothing-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    z-index: 2;
    pointer-events: none;
}

.soggy-status-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.current-level-badge {
    background: linear-gradient(135deg, #FF6F00, #FF8F00);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.accessories-count {
    color: #666;
    font-size: 0.85rem;
}

.closet-right-column {
    display: flex;
    flex-direction: column;
}

.closet-tabs-modern {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.closet-tab-modern {
    flex: 1;
    min-width: 80px;
    padding: 0.75rem 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
}

.closet-tab-modern img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.closet-tab-modern.active {
    border-color: #FF6F00;
    background: linear-gradient(135deg, #FFF8E1, #FFE0B2);
    color: #FF6F00;
    font-weight: 600;
}

.closet-tab-modern.locked {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.closet-tab-modern.locked i {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.7rem;
    color: #999;
}

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

.accessories-grid-content {
    display: contents;
}

.accessory-card {
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.accessory-card.available {
    cursor: pointer;
}

.accessory-card.available:hover {
    border-color: #FF6F00;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.2);
    transform: translateY(-2px);
}

.accessory-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.accessory-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF6F00, #FF8F00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.accessory-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.accessory-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.accessory-level {
    font-size: 0.8rem;
    color: #666;
}

.accessory-action {
    margin-top: auto;
}

.equip-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #28A745, #20C997);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.equip-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.equip-btn.equipped {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
}

.accessory-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 0.5rem;
    border-radius: 14px;
}

.accessory-lock-overlay i {
    font-size: 1.5rem;
}

.accessory-lock-overlay span {
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .virtual-closet-modern {
        grid-template-columns: 1fr;
    }
    
    .soggy-full-image {
        width: 150px;
        height: 150px;
    }
    
    .soggy-background-gradient {
        height: 200px;
    }
    
    .accessories-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* Modern Soged Market Styles */
.guna-store-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.store-hero-modern {
    background: linear-gradient(135deg, #FF6F00, #FF8F00, #FFA000);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(255, 111, 0, 0.3);
}

.store-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="market-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="6" fill="rgba(255,255,255,0.15)"/></pattern></defs><rect width="100" height="100" fill="url(%23market-pattern)"/></svg>');
    opacity: 0.4;
}

.store-hero-content-modern {
    position: relative;
    z-index: 1;
}

.store-title-modern {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.store-subtitle-modern {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.oggob-wallet-modern {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.wallet-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-coco-icon,
.wallet-oggob-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    animation: wallet-bounce 2s ease-in-out infinite;
}

@keyframes wallet-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.wallet-sparkle {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #FFD54F, transparent);
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
}

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

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wallet-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.wallet-balance {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.wallet-currency {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.store-categories-modern {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: white;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.store-category-tab {
    flex: 1;
    min-width: 120px;
    padding: 1rem 1.5rem;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

.store-category-tab:hover {
    border-color: #FF6F00;
    background: linear-gradient(135deg, #FFF8E1, #FFE0B2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.2);
}

.store-category-tab.active {
    border-color: #FF6F00;
    background: linear-gradient(135deg, #FF6F00, #FF8F00);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

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

.weekly-timer-modern {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.timer-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.timer-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timer-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.timer-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.store-items-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.store-item-card {
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.store-item-card:hover {
    border-color: #FF6F00;
    box-shadow: 0 8px 24px rgba(255, 111, 0, 0.2);
    transform: translateY(-4px);
}

.store-item-image-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.store-item-image-wrap--burba {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-secondary, #f8f9fa) 0%, var(--bg-tertiary, #eef1f4) 100%);
}

.store-burba-pack-image {
    max-width: 72%;
    max-height: 118px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease;
}

.store-burba-pack-image--2 { max-width: 78%; max-height: 112px; }
.store-burba-pack-image--3 { max-width: 82%; max-height: 110px; }
.store-burba-pack-image--4 { max-width: 88%; max-height: 108px; }
.store-burba-pack-image--5 { max-width: 92%; max-height: 106px; }

.store-item-card:hover .store-burba-pack-image {
    transform: scale(1.04);
}

.store-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.store-item-card:hover .store-item-image {
    transform: scale(1.05);
}

.store-item-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.store-item-name {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.store-item-story {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.store-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.store-item-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #FF6F00;
    font-size: 1.1rem;
}

.store-coco-icon {
    width: 24px;
    height: 24px;
}

.store-oggob-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.store-burba-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}

.wallet-currency-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: -3px;
    margin-right: 4px;
}

.inline-oggob-icon,
.inline-burba-icon {
    width: 1.1em;
    height: 1.1em;
    object-fit: contain;
    vertical-align: -0.15em;
    display: inline-block;
}

.store-buy-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #28A745, #20C997);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.store-buy-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.store-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.store-buy-btn.insufficient {
    background: linear-gradient(135deg, #9E9E9E, #757575);
}

.store-buy-btn.owned {
    background: linear-gradient(135deg, #2ECC71, #27AE60);
}

@media (max-width: 768px) {
    .store-hero-modern {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .store-title-modern {
        font-size: 2rem;
    }

    .oggob-wallet-modern {
        width: 100%;
        justify-content: center;
    }

    .store-categories-modern {
        flex-direction: column;
    }

    .store-category-tab {
        min-width: auto;
    }

    .store-items-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* Modern Memory Game Styles */
.memory-section-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.memory-hero-modern {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.memory-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="memory-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="6" fill="rgba(255,255,255,0.15)"/></pattern></defs><rect width="100" height="100" fill="url(%23memory-pattern)"/></svg>');
    opacity: 0.4;
}

.memory-header-content {
    position: relative;
    z-index: 1;
}

.memory-title-modern {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.memory-subtitle-modern {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.memory-stats-modern {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.stat-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.memory-controls-modern {
    margin-bottom: 2rem;
}

.difficulty-selector {
    display: flex;
    gap: 1rem;
    justify-content: center;
    background: white;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.difficulty-btn {
    flex: 1;
    min-width: 120px;
    padding: 1rem 1.5rem;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
}

.difficulty-btn:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    transform: translateY(-2px);
}

.difficulty-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.memory-game-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.memory-grid-modern {
    display: grid;
    gap: 1rem;
    perspective: 1000px;
}

.memory-grid-modern.grid-3x4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 600px;
    margin: 0 auto;
}

.memory-grid-modern.grid-4x4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 700px;
    margin: 0 auto;
}

.memory-grid-modern.grid-4x6 {
    grid-template-columns: repeat(6, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.memory-card-modern {
    aspect-ratio: 3/4;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    padding: 0;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.memory-card-modern.flipped {
    transform: rotateY(180deg);
}

.memory-card-modern.matched {
    opacity: 1;
    pointer-events: none;
    animation: matchPulse 0.5s ease;
}

@keyframes matchPulse {
    0%, 100% { transform: rotateY(180deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.05); }
}

.memory-card-modern.error {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: rotateY(180deg) translateX(0); }
    20% { transform: rotateY(180deg) translateX(-8px); }
    40% { transform: rotateY(180deg) translateX(8px); }
    60% { transform: rotateY(180deg) translateX(-8px); }
    80% { transform: rotateY(180deg) translateX(8px); }
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.card-front {
    background: url('../Multimedia/Images/Soged/Soggy IA.jpg') center/contain no-repeat;
    background-color: linear-gradient(135deg, #C41E3A, #FF6B35, #FFD700);
    overflow: hidden;
}

.mola-pattern {
    display: none;
}

.card-front::after {
    display: none;
}

.card-back {
    background: #FFF8E1;
    transform: rotateY(180deg);
    color: #000;
    border: 3px solid;
    padding: 0.5rem;
}

.card-back.spanish-card {
    border-color: #4A90E2;
    background: linear-gradient(135deg, #FFF8E1, #E3F2FD);
}

.card-back.indigenous-card {
    border-color: #FFB300;
    background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
}

.memory-card-modern.matched .card-back {
    border-color: #28A745;
    background: linear-gradient(135deg, #D4F4DD, #C8E6C9);
}

.memory-card-modern.error .card-back {
    border-color: #E74C3C;
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
}

.checkmark {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #28A745;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.memory-card-modern {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.memory-card-modern.flipped {
    transform: rotateY(180deg);
}

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

.card-language {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.card-word {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    color: #000;
}

.memorization-phase {
    background: linear-gradient(135deg, #C41E3A, #FF6B35);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.countdown-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-number {
    font-size: 4rem;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: pulse 1s ease infinite;
}

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

.countdown-bar {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
}

.countdown-progress {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 4px;
    transition: width 1s linear;
}

.victory-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.victory-screen[hidden] {
    display: none !important;
}

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

.victory-content {
    background: linear-gradient(135deg, #FFF8E1, #FFE0B2);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid #FFD54F;
    animation: bounceIn 0.5s ease;
}

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

.victory-soggy {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #FFD54F;
    margin-bottom: 1.5rem;
    animation: victory-bounce 1s ease-in-out infinite;
}

@keyframes victory-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.victory-title {
    font-size: 2rem;
    font-weight: 700;
    color: #FF6F00;
    margin: 0 0 0.5rem 0;
}

.victory-message {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 2rem 0;
}

.victory-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.victory-stat {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.victory-stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.victory-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF6F00;
}

.victory-reward {
    background: linear-gradient(135deg, #28A745, #20C997);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

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

.victory-btn {
    background: linear-gradient(135deg, #FF6F00, #FF8F00);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.victory-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 111, 0, 0.4);
}

@media (max-width: 768px) {
    .memory-hero-modern {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .memory-title-modern {
        font-size: 2rem;
    }

    .memory-stats-modern {
        width: 100%;
        justify-content: center;
    }

    .difficulty-selector {
        flex-direction: column;
    }

    .memory-grid-modern.grid-3x4,
    .memory-grid-modern.grid-4x4 {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }

    .victory-content {
        padding: 2rem;
        margin: 1rem;
    }

    .victory-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* CSS Variables - SOGED Brand Colors */
:root {
    /* SOGED Primary Brand Colors */
    --primary-color: #28A745;
    --primary-hover: #218838;
    --primary-light: #D4F4DD;
    
    --secondary-color: #FFB300;
    --secondary-hover: #FF8F00;
    --secondary-light: #FFF3C4;
    
    --accent-color: #FF6B35;
    --accent-hover: #E55A2B;
    --accent-light: #FFE5DC;
    
    --info-color: #00A3E0;
    --info-hover: #0077A3;
    --info-light: #CCF2FF;
    
    --success-color: #2ECC71;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    --gradient-secondary: linear-gradient(135deg, #FFB300 0%, #FFA726 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
    --gradient-info: linear-gradient(135deg, #00A3E0 0%, #29B6F6 100%);
    --gradient-success: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    
    /* Neutral Colors */
    --bg-primary: #FAFBFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F1F3F4;
    --bg-sidebar: #FFFFFF;
    --bg-sidebar-collapsed: #F8F9FA;
    --bg-modal: rgba(0, 0, 0, 0.5);
    
    --text-primary: #2C3E50;
    --text-secondary: #6C757D;
    --text-light: #ADB5BD;
    --text-white: #FFFFFF;
    --text-muted: #95A5A6;
    
    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed: 70px;
    --header-height: 80px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition), visibility var(--transition);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    max-width: 300px;
}

.loading-logo {
    height: 56px;
    width: auto;
    max-width: 240px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.loading-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.loading-spinner {
    margin: 2rem 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-tertiary);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid #E9ECEF;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
    background: var(--bg-sidebar-collapsed);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #E9ECEF;
    min-height: var(--header-height);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition);
}

.sidebar.collapsed .logo-section {
    justify-content: center;
}

.sidebar-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
}

.logo-text {
    transition: opacity var(--transition);
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.sidebar-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* User Profile in Sidebar */
.user-profile {
    padding: 1.5rem;
    border-bottom: 1px solid #E9ECEF;
    transition: all var(--transition);
}

.sidebar.collapsed .user-profile {
    padding: 1rem;
    text-align: center;
}

.profile-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.sidebar.collapsed .profile-avatar {
    margin-bottom: 0.5rem;
}

.avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.level-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid white;
}

.profile-info {
    transition: opacity var(--transition);
}

.sidebar.collapsed .profile-info {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.username {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.xp-info {
    font-size: 0.8rem;
}

.xp-current {
    color: var(--primary-color);
    font-weight: 600;
}

.xp-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width var(--transition);
}

.xp-next {
    color: var(--text-secondary);
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section.secondary {
    border-top: 1px solid #E9ECEF;
    padding-top: 1.5rem;
}

.nav-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition);
}

.sidebar.collapsed .nav-section-title {
    justify-content: center;
    padding: 0 1rem;
}

.sidebar.collapsed .title-text {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin: 0 0.75rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 1rem;
    margin: 0 0.5rem;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateX(4px);
}

.sidebar.collapsed .nav-item:hover {
    transform: none;
}

.nav-item.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.nav-item.active:hover {
    transform: translateX(4px);
}

.nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.sidebar.collapsed .nav-icon {
    margin-right: 0;
    background: transparent;
}

.nav-item:not(.active) .nav-icon {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.nav-item:not(.active):hover .nav-icon {
    background: var(--primary-color);
    color: white;
}

.nav-content {
    flex: 1;
    transition: opacity var(--transition);
}

.sidebar.collapsed .nav-content {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.nav-text {
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.nav-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: width var(--transition);
}

.progress-text {
    font-size: 0.7rem;
    opacity: 0.9;
}

.nav-meta {
    font-size: 0.8rem;
    opacity: 0.9;
}

.story-count, .achievement-count, .rank-info, .overview-desc {
    color: inherit;
    opacity: 0.8;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ai-status.online i {
    color: var(--success-color);
    animation: pulse 2s infinite;
}

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

.status-text {
    font-size: 0.7rem;
}

/* Course Selector */
.course-selector {
    padding: 1.5rem;
    border-top: 1px solid #E9ECEF;
    position: relative;
}

.sidebar.collapsed .course-selector {
    padding: 1rem;
}

.current-course {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar.collapsed .current-course {
    justify-content: center;
    gap: 0;
}

.current-course:hover {
    background: var(--primary-color);
    color: white;
}

.course-flag {
    font-size: 1.5rem;
}

.course-info {
    flex: 1;
    transition: opacity var(--transition);
}

.sidebar.collapsed .course-info {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.course-name {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.course-desc {
    font-size: 0.7rem;
    opacity: 0.8;
    display: block;
}

.course-dropdown-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.sidebar.collapsed .course-dropdown-btn {
    display: none;
}

.course-dropdown {
    position: absolute;
    bottom: 100%;
    left: 1.5rem;
    right: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    border: 1px solid #E9ECEF;
    z-index: 100;
}

.course-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.course-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid #F1F3F4;
}

.course-option:last-child {
    border-bottom: none;
}

.course-option:hover {
    background: var(--bg-tertiary);
}

.course-option.active {
    background: var(--primary-color);
    color: white;
}

.option-flag {
    font-size: 1.2rem;
}

.option-info {
    flex: 1;
}

.option-name {
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
}

.option-progress {
    font-size: 0.7rem;
    opacity: 0.8;
    display: block;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition);
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* Header */
.main-header {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid #E9ECEF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: scale(1.05);
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--text-primary);
    font-weight: 600;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.current-language-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.language-flag {
    font-size: 2rem;
}

.language-info {
    display: flex;
    flex-direction: column;
}

.language-name {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
}

.language-level {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.125rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-fast);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-item.streak .stat-icon {
    color: var(--accent-color);
}

.stat-item.lives .stat-icon {
    color: var(--danger-color);
}

.stat-item.seeds .stat-icon,
.stat-item.oggob .stat-icon {
    color: var(--success-color);
}

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

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-top: 0.125rem;
}

/* User Menu */
.user-menu-container {
    position: relative;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.user-avatar-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.user-level-badge {
    position: absolute;
    top: 2px;
    left: 30px;
    background: var(--primary-color);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    border: 2px solid white;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}

.user-avatar-btn:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    border: 1px solid #E9ECEF;
    overflow: hidden;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: white;
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.dropdown-username {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.dropdown-user-level {
    font-size: 0.8rem;
    opacity: 0.9;
}

.dropdown-menu {
    padding: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
}

.dropdown-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.dropdown-item.logout {
    color: var(--danger-color);
}

.dropdown-item.logout:hover {
    background: rgba(231, 76, 60, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: #E9ECEF;
    margin: 0.5rem 0;
}

/* Content Container */
.content-container {
    flex: 1;
    padding: 2rem;
    background: var(--bg-primary);
}

/* Overview Dashboard */
.overview-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-message {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.current-language-card {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

.language-card-flag {
    font-size: 2.5rem;
}

.language-card-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.language-card-info p {
    opacity: 0.9;
    font-size: 1rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.card-icon.progress {
    background: var(--gradient-primary);
}

.card-icon.streak {
    background: var(--gradient-accent);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Progress Card */
.progress-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-stat {
    text-align: center;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overall-progress {
    margin-top: 1rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.progress-track {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width var(--transition);
}

/* Streak Card */
.streak-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.streak-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.streak-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.streak-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.calendar-day {
    aspect-ratio: 1;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.calendar-day.completed {
    background: var(--gradient-accent);
    color: white;
}

.calendar-day.today {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Other Courses */
.other-courses {
    margin-top: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.course-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.course-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.course-description {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.course-progress {
    margin-bottom: 1rem;
}

.course-progress-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.course-progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.course-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width var(--transition);
}

.course-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.course-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.course-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform var(--transition);
}

.modal-overlay.show .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #E9ECEF;
    background: var(--gradient-primary);
    color: white;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-content {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #E9ECEF;
    background: var(--bg-tertiary);
}

/* Profile Modal Styles */
.profile-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.profile-avatar-section {
    text-align: center;
}

.large-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.avatar-info {
    text-align: center;
}

.profile-username {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-level {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.profile-xp {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E9ECEF;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.goals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.goal-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.goal-checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #E9ECEF;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.goal-checkbox input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.goal-checkbox input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.goal-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Settings Modal Styles */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #F1F3F4;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
}

.setting-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.setting-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.setting-select {
    padding: 0.5rem;
    border: 2px solid #E9ECEF;
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition-fast);
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-fast);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid #E9ECEF;
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide sidebar toggle on mobile/tablet - only hamburger menu should control sidebar */
    .sidebar-toggle {
        display: none;
    }
    
    .main-header {
        padding: 0 1rem;
    }
    
    .content-container {
        padding: 1rem;
    }
    
    .header-center {
        display: none;
    }
    
    .user-stats {
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-info {
        display: none;
    }

    .stat-item.oggob .stat-info {
        display: flex;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0 0.75rem;
    }
    
    .content-container {
        padding: 0.75rem;
    }
    
    .user-stats {
        gap: 0.5rem;
    }
    
    .stat-item.seeds {
        display: none;
    }

    .stat-item.oggob .stat-info {
        display: flex;
    }
    
    .welcome-message {
        font-size: 2rem;
    }
    
    .current-language-card {
        padding: 1rem 1.5rem;
    }
    
    .language-card-flag {
        font-size: 2rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
}

/* Scrollbar Styling */
.sidebar-nav::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ================================
   Gamified Dashboard & Cocos Economy
   ================================ */

/* Cocos counter in header */
.stat-item.oggob {
    position: relative;
    cursor: default;
}

.oggob-icon-wrap {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oggob-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.burba-icon-wrap {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burba-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.streak-icon-wrap {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.streak-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.hero-streak-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.mini-stat-streak-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.streak-card-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.card-icon.streak {
    display: flex;
    align-items: center;
    justify-content: center;
}

.inline-streak-icon {
    width: 1.1em;
    height: 1.1em;
    object-fit: contain;
    vertical-align: -0.15em;
    display: inline-block;
}

.lb-streak-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    vertical-align: -2px;
    margin-right: 2px;
}

.streak-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-hint-oggob-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    vertical-align: -2px;
    margin-right: 2px;
}

.oggob-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--text-primary);
    color: white;
    font-size: 0.7rem;
    padding: 0.4rem 0.65rem;
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
    z-index: 10;
}

.oggob-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-primary);
}

.stat-item.oggob:hover .oggob-tooltip,
.stat-item.oggob:focus .oggob-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

@keyframes oggobBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.15); }
    50% { transform: scale(0.95); }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.oggob-bounce {
    animation: oggobBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.oggob-gain .stat-value,
.oggob-gain .store-balance-value {
    color: var(--success-color);
}

.oggob-spend .stat-value {
    color: var(--accent-color);
}

/* Sidebar progress */
.nav-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item:not(.active) .nav-progress {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    flex: 1;
}

.nav-item:not(.active) .nav-progress .progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width var(--transition);
    min-width: 0;
}

.nav-item.active .nav-progress-wrap .nav-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    overflow: hidden;
}

.nav-item.active .nav-progress .progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: width var(--transition);
}

.store-nav-hint {
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
    border-radius: 0 2px 2px 0;
}

.nav-item:hover::before,
.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item.active::before {
    background: white;
}

/* Hero Section */
.overview-gamified {
    position: relative;
    overflow: hidden;
}

.overview-deco {
    position: absolute;
    width: 72px;
    height: auto;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}

.deco-verde-tl { top: 0; left: 0; transform: rotate(0deg); }
.deco-rojo-tr { top: 0; right: 0; transform: rotate(90deg); }
.deco-rojo-bl { bottom: 120px; left: 0; transform: rotate(-90deg); }
.deco-verde-br { bottom: 40px; right: 0; transform: rotate(180deg); }

.overview-gamified > section,
.overview-gamified > button,
.overview-gamified > div {
    position: relative;
    z-index: 1;
}

.overview-gamified .hero-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-xl);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(40, 167, 69, 0.12);
    position: relative;
    overflow: hidden;
}

.hero-deco {
    position: absolute;
    width: 56px;
    height: auto;
    opacity: 0.35;
    pointer-events: none;
}

.hero-deco-verde {
    top: 1rem;
    right: 1.5rem;
    transform: rotate(90deg);
}

.hero-deco-rojo {
    bottom: 1rem;
    left: 1.5rem;
    transform: rotate(-90deg);
}

.hero-greeting {
    position: relative;
    z-index: 1;
}

.hero-stats-row {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.hero-username {
    color: var(--primary-color);
    background: linear-gradient(135deg, #28A745, #20C997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.hero-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-stat-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-lg);
    background: var(--bg-tertiary);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-stat-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.hero-stat-pill i {
    font-size: 1.25rem;
}

.hero-stat-pill.level i { color: var(--secondary-color); }
.hero-stat-pill.xp i { color: var(--info-color); }
.hero-stat-pill.streak i { color: var(--accent-color); }

.hero-stat-value {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Main Course Card Button */
.main-course-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow var(--transition);
}

.main-course-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 40px rgba(40, 167, 69, 0.35);
}

.main-course-card:active {
    transform: translateY(-2px) scale(1.01);
}

.main-course-card:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

.main-course-icon {
    font-size: 3rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.main-course-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
}

.main-course-emoji {
    font-size: 3rem;
    line-height: 1;
}

.main-course-content {
    flex: 1;
    z-index: 1;
}

.main-course-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.main-course-desc {
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.main-course-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    transition: background var(--transition-fast), gap var(--transition-fast);
}

.main-course-card:hover .main-course-cta {
    background: rgba(255, 255, 255, 0.3);
    gap: 0.75rem;
}

.main-course-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Mini Stats Grid */
.mini-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mini-stat-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.mini-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mini-stat-card.lessons { border-color: rgba(0, 163, 224, 0.2); }
.mini-stat-card.lessons .mini-stat-number { color: var(--info-color); }
.mini-stat-card.xp-total { border-color: rgba(255, 179, 0, 0.2); }
.mini-stat-card.xp-total .mini-stat-number { color: var(--secondary-color); }
.mini-stat-card.oggob-earned { border-color: rgba(40, 167, 69, 0.2); }
.mini-stat-card.oggob-earned .mini-stat-number { color: var(--primary-color); }
.mini-stat-card.streak-current { border-color: rgba(255, 107, 53, 0.2); }
.mini-stat-card.streak-current .mini-stat-number { color: var(--accent-color); }

.mini-stat-emoji {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.mini-stat-oggob-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.mini-stat-burba-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.mini-stat-card.burba-current { border-color: rgba(255, 107, 53, 0.25); }
.mini-stat-card.burba-current .mini-stat-number { color: var(--accent-color); }

.mini-stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.mini-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Progress & Streak Cards */
.progress-card-modern,
.streak-card-modern {
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.streak-highlight {
    color: var(--accent-color) !important;
    font-weight: 600 !important;
}

.progress-track-lg {
    height: 12px;
    border-radius: 6px;
}

.progress-fill-animated {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.progress-fill-animated::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

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

.progress-fill-xp {
    background: var(--gradient-secondary);
}

.progress-xp-bar {
    margin-top: 1.25rem;
}

/* Week Calendar */
.week-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.25rem;
    border-radius: var(--border-radius);
    background: var(--bg-tertiary);
    transition: all var(--transition-fast);
}

.week-day-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.week-day-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-light);
    transition: all var(--transition-fast);
}

.week-day.completed {
    background: var(--accent-light);
}

.week-day.completed .week-day-dot {
    background: var(--accent-color);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
}

.week-day.completed .week-day-label {
    color: var(--accent-color);
}

.week-day.today {
    background: var(--primary-light);
    border: 2px solid var(--primary-color);
    animation: pulseToday 2s ease-in-out infinite;
}

.week-day.today .week-day-dot {
    background: var(--primary-color);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseToday {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(40, 167, 69, 0); }
}

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

/* Store Promo Banner */
.store-promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--secondary-light), #fff8e1);
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(255, 179, 0, 0.25);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.store-promo-mola {
    position: absolute;
    right: 0;
    top: 0;
    width: 180px;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    pointer-events: none;
    mask-image: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
}

.store-promo-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.store-promo-icon {
    font-size: 2.5rem;
}

.store-promo-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.store-promo-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.store-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--gradient-secondary);
    color: var(--text-primary);
    border: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.store-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ================================
   Guna Store
   ================================ */

.guna-store {
    max-width: 1200px;
    margin: 0 auto;
}

.store-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius-xl);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.store-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../../Multimedia/Images/Molas - Guna/Mola 1.jpg') center/cover no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.store-hero-content,
.store-balance-card {
    position: relative;
    z-index: 1;
}

.store-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.store-subtitle {
    opacity: 0.9;
    font-size: 0.95rem;
    max-width: 480px;
}

.store-balance-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.store-balance-coco {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.store-coco-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.store-balance-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-balance-value {
    font-size: 1.35rem;
    font-weight: 700;
}

.store-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.store-category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: none;
    background: transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.store-category-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.store-category-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.store-cat-icon {
    font-size: 1.1rem;
}

.store-weekly-timer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--accent-light);
    border-radius: var(--border-radius-lg);
    color: var(--accent-hover);
    font-weight: 500;
}

.store-weekly-timer i {
    font-size: 1.25rem;
}

.store-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.store-item-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.store-item-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.store-item-card.rarity-raro { border-color: rgba(0, 163, 224, 0.3); }
.store-item-card.rarity-epico { border-color: rgba(155, 89, 182, 0.35); }
.store-item-card.rarity-legendario { border-color: rgba(255, 179, 0, 0.45); }
.store-item-card.purchased { opacity: 0.85; }

.store-item-image-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.store-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.store-item-card:hover .store-item-image {
    transform: scale(1.08);
}

.store-rarity-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.store-rarity-badge.rarity-comun { background: #6C757D; }
.store-rarity-badge.rarity-raro { background: #00A3E0; }
.store-rarity-badge.rarity-epico { background: #9B59B6; }
.store-rarity-badge.rarity-legendario { background: linear-gradient(135deg, #FFB300, #FF6B35); }

.store-owned-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.6rem;
    background: var(--success-color);
    color: white;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.store-item-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.store-item-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.store-item-story {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 1rem;
}

.store-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.store-item-price {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.store-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.store-buy-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.store-buy-btn.insufficient,
.store-buy-btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-light);
    cursor: not-allowed;
}

.store-buy-btn.owned {
    background: var(--primary-light);
    color: var(--primary-color);
}

.store-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--text-primary);
    color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 10001;
    font-weight: 500;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.store-toast.show {
    transform: translateX(-50%) translateY(0);
}

.store-toast--success { background: var(--success-color); }
.store-toast--error { background: var(--danger-color); }

/* Gamified responsive */
@media (max-width: 1024px) {
    .mini-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .store-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .overview-deco {
        width: 48px;
        opacity: 0.35;
    }

    .deco-rojo-bl,
    .deco-verde-br {
        display: none;
    }

    .hero-deco {
        width: 40px;
        opacity: 0.25;
    }

    .overview-gamified .hero-section {
        padding: 1.5rem;
    }

    .hero-stats-row {
        flex-direction: column;
    }

    .hero-stat-pill {
        width: 100%;
    }

    .main-course-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .main-course-cta {
        justify-content: center;
    }

    .mini-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .mini-stat-number {
        font-size: 1.4rem;
    }

    .store-promo-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-promo-btn {
        width: 100%;
        justify-content: center;
    }

    .store-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .store-category-btn {
        flex-shrink: 0;
    }

    .store-items-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mini-stats-grid {
        grid-template-columns: 1fr;
    }

    .week-calendar {
        gap: 0.25rem;
    }

    .week-day {
        padding: 0.5rem 0.15rem;
    }
}

/* ================================
   Sidebar Logo Only
   ================================ */
.sidebar-header--logo-only {
    justify-content: center;
    position: relative;
    padding: 1.25rem 1rem;
}

.sidebar-header--logo-only .logo-section--centered {
    flex: 1;
    justify-content: center;
    margin: 0 auto;
}

.sidebar-header--logo-only .sidebar-logo {
    height: 48px;
    max-width: 160px;
    margin: 0 auto;
}

.sidebar-header--logo-only .sidebar-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar.collapsed .sidebar-header--logo-only .sidebar-toggle {
    position: static;
    transform: none;
    margin: 0.5rem auto 0;
}

/* Overview Mola Background */
.overview-mola-bg {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
}

.overview-mola-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(250, 251, 252, 0.92) 0%, rgba(250, 251, 252, 0.88) 100%),
        url('../../Multimedia/Images/Molas - Guna/Mola 5.jpg') center/cover no-repeat;
    pointer-events: none;
    z-index: 0;
}

.overview-mola-bg > * {
    position: relative;
    z-index: 1;
}

/* AI Tutor */
.ai-tutor-section {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.ai-tutor-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--gradient-info);
    color: white;
}

.ai-tutor-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    overflow: hidden;
}

.ai-tutor-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ai-tutor-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.ai-tutor-subtitle {
    margin: 0.15rem 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.ai-tutor-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.2);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
}

.ai-tutor-status i {
    color: #2ECC71;
    font-size: 0.55rem;
    animation: pulse 2s infinite;
}

.ai-tutor-chat {
    height: 420px;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-msg {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    max-width: 85%;
}

.ai-msg--user {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.ai-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    overflow: hidden;
}

.ai-msg-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ai-msg-bubble {
    padding: 0.85rem 1.15rem;
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow-sm);
    line-height: 1.55;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.ai-msg--user .ai-msg-bubble {
    background: var(--gradient-primary);
    color: white;
}

.ai-typing {
    display: flex;
    gap: 4px;
    padding: 1rem 1.25rem !important;
}

.ai-typing span {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    animation: aiTypingBounce 1.2s infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiTypingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.ai-tutor-input-area {
    padding: 1rem 1.5rem 1.5rem;
    background: white;
    border-top: 1px solid #E9ECEF;
}

.ai-tutor-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ai-suggestion {
    padding: 0.45rem 0.9rem;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.ai-suggestion:hover {
    background: var(--primary-color);
    color: white;
}

.ai-tutor-input-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.ai-tutor-input-row textarea {
    flex: 1;
    padding: 0.85rem 1rem;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    min-height: 48px;
    max-height: 120px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.ai-tutor-input-row textarea:focus {
    border-color: var(--primary-color);
}

.ai-send-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.ai-send-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .ai-tutor-header {
        flex-wrap: wrap;
        padding: 1.25rem;
    }

    .ai-tutor-status {
        margin-left: 0;
    }

    .ai-msg {
        max-width: 95%;
    }
}

/* Course selector — Guna icon */
.course-flag-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.course-flag-img,
.option-flag-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.option-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.option-flag .option-flag-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.course-option--soon {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.6);
}

.course-option--soon:hover {
    background: var(--bg-tertiary);
}

.coming-soon-label {
    color: var(--text-light) !important;
    font-style: italic;
    font-size: 0.75rem !important;
}

/* Overview — other languages coming soon */
.course-card--soon {
    opacity: 0.55;
    filter: grayscale(0.7);
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.course-card--soon:hover {
    transform: none;
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.coming-soon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-tertiary);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    border: 1px solid var(--text-light);
}

.course-button--disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Learning path — coming soon panel */
.coming-soon-panel {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 560px;
    margin: 0 auto;
}

.coming-soon-badge-lg {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--text-light);
}

.coming-soon-panel p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.learning-section--soon .learning-header {
    opacity: 0.7;
}

/* === VOCABULARY SECTION === */
.vocab-section { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.vocab-hero { text-align: center; padding: 2rem; background: linear-gradient(135deg, #00A3E0, #29B6F6); color: white; border-radius: 16px; margin-bottom: 2rem; }
.vocab-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.vocab-search-wrap { position: relative; max-width: 480px; margin: 1.5rem auto 0; }
.vocab-search-wrap i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); opacity: 0.6; }
.vocab-search { width: 100%; padding: 0.85rem 1rem 0.85rem 2.5rem; border: none; border-radius: 12px; font-size: 1rem; }
.vocab-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; justify-content: center; }
.vocab-cat-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1rem; border: 2px solid var(--bg-tertiary); background: var(--bg-secondary); border-radius: 24px; cursor: pointer; font-weight: 500; transition: all 0.2s; }
.vocab-cat-btn.active { background: var(--gradient-primary); color: white; border-color: transparent; }
.vocab-cat-count { background: rgba(0,0,0,0.1); padding: 0.1rem 0.45rem; border-radius: 10px; font-size: 0.75rem; }
.vocab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.vocab-card { background: var(--bg-secondary); border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow-sm); text-align: center; transition: transform 0.2s; border: 2px solid transparent; }
.vocab-card:hover { transform: translateY(-4px); border-color: var(--primary-color); }
.vocab-card-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.vocab-guna { font-size: 1.4rem; color: var(--primary-color); margin-bottom: 0.25rem; }
.vocab-es { color: var(--text-secondary); margin: 0; }
.vocab-en { color: var(--text-light); font-size: 0.9rem; margin: 0.25rem 0; }
.vocab-example { font-size: 0.8rem; color: var(--text-light); margin: 0.75rem 0; }
.vocab-speak-btn { padding: 0.5rem 1rem; border: none; border-radius: 8px; background: var(--primary-color); color: white; cursor: pointer; font-weight: 500; }
.vocab-footer-cta { text-align: center; margin-top: 3rem; padding: 2rem; background: var(--bg-secondary); border-radius: 16px; }
.vocab-empty { text-align: center; color: var(--text-light); grid-column: 1 / -1; padding: 2rem; }

/* === COMMUNITY SECTION === */
.community-section { max-width: 1000px; margin: 0 auto; padding: 1rem; }
.community-hero { text-align: center; padding: 2rem; background: linear-gradient(135deg, #8B5CF6, #A78BFA); color: white; border-radius: 16px; margin-bottom: 2rem; }
.community-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; justify-content: center; }
.community-tab { padding: 0.75rem 1.25rem; border: none; border-radius: 12px; background: var(--bg-tertiary); cursor: pointer; font-weight: 600; transition: all 0.2s; }
.community-tab.active { background: linear-gradient(135deg, #8B5CF6, #A78BFA); color: white; }
.community-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.community-card { background: var(--bg-secondary); padding: 1.5rem; border-radius: 16px; box-shadow: var(--shadow-sm); }
.community-card h3 { color: var(--primary-color); margin-bottom: 0.75rem; }
.community-resources { margin-top: 2rem; padding: 1.5rem; background: var(--bg-secondary); border-radius: 16px; text-align: center; }
.community-resource-links { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1rem; }
.resource-link-btn { padding: 0.75rem 1.25rem; border: 2px solid var(--primary-color); background: transparent; color: var(--primary-color); border-radius: 12px; cursor: pointer; font-weight: 600; transition: all 0.2s; }
.resource-link-btn:hover { background: var(--primary-color); color: white; }

.btn-duo { padding: 0.85rem 1.5rem; border: none; border-radius: 14px; font-weight: 700; cursor: pointer; letter-spacing: 0.03em; transition: transform 0.15s, box-shadow 0.15s; }
.btn-duo-primary { background: linear-gradient(180deg, #58CC02, #46A302); color: white; box-shadow: 0 4px 0 #3A8F02; }
.btn-duo-primary:hover { transform: translateY(-2px); }

.theme-toggle-btn { width: 40px; height: 40px; border: none; border-radius: 50%; background: var(--bg-tertiary); color: var(--text-primary); cursor: pointer; margin-right: 0.75rem; font-size: 1rem; }
.theme-toggle-btn:hover { background: var(--primary-color); color: white; }

body.dark-mode {
    --bg-primary: #1a1d23;
    --bg-secondary: #242830;
    --bg-tertiary: #2e333d;
    --text-primary: #f0f2f5;
    --text-secondary: #b0b8c4;
    --text-light: #6b7280;
}
body.dark-mode .sidebar { background: #1e2229; }

.lesson-xp-reward { display: flex; gap: 1rem; justify-content: center; margin: 1.5rem 0; }
.xp-badge, .oggob-badge { padding: 0.5rem 1rem; border-radius: 20px; font-weight: 700; }
.xp-badge { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }
.oggob-badge { background: rgba(255, 179, 0, 0.15); color: #FFB300; }
.lesson-status-badge { display: block; font-size: 1.25rem; margin-bottom: 0.35rem; }

.stat-item.lives.lives-empty .stat-value { color: #e74c3c; }
.lives-warning-banner { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: #fdecea; border: 2px solid #e74c3c; border-radius: 12px; margin-bottom: 1.5rem; color: #c0392b; flex-wrap: wrap; }
.lives-warning-banner .btn-duo-primary { margin-left: auto; padding: 0.5rem 1rem; font-size: 0.85rem; }
.lesson-locked { text-align: center; padding: 3rem; }
.section-tab.tab-locked { opacity: 0.45; cursor: not-allowed; }

/* Profile avatar picker */
.avatar-picker { margin-top: 1rem; padding: 1rem; background: var(--bg-tertiary); border-radius: 12px; }
.avatar-picker-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.avatar-option { width: 64px; height: 64px; border: 3px solid transparent; border-radius: 50%; padding: 0; overflow: hidden; cursor: pointer; background: none; }
.avatar-option.selected { border-color: var(--primary-color); }
.avatar-option img { width: 100%; height: 100%; object-fit: cover; }

/* Store lives */
.store-special-offer { border: 2px solid #f59e0b; }
.store-special-badge { position: absolute; top: 8px; left: 8px; background: #f59e0b; color: white; padding: 0.2rem 0.5rem; border-radius: 8px; font-size: 0.7rem; font-weight: 700; }

/* Guna territory map */
.territory-intro { margin-bottom: 1.5rem; color: var(--text-secondary); }
.guna-map-container { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 768px) { .guna-map-container { grid-template-columns: 1fr; } }
.guna-map-viewport { overflow: auto; border-radius: 16px; border: 2px solid var(--bg-tertiary); background: #e8f4fc; max-height: 420px; cursor: grab; }
.guna-map-viewport:active { cursor: grabbing; }
.guna-map-svg { width: 100%; min-width: 360px; transform-origin: center center; transition: transform 0.2s; }
.guna-map-controls { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.map-zoom-btn { width: 36px; height: 36px; border: none; border-radius: 8px; background: var(--bg-tertiary); cursor: pointer; }
.map-region, .map-island { transition: opacity 0.2s; }
.map-region:hover, .map-island:hover { opacity: 1; filter: brightness(1.1); }
.map-region.active, .map-island.active { filter: drop-shadow(0 0 6px rgba(0,163,224,0.8)); }
.guna-map-info { background: var(--bg-secondary); border-radius: 16px; padding: 1.25rem; box-shadow: var(--shadow-sm); max-height: 420px; overflow-y: auto; }
.map-info-image { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; margin-bottom: 1rem; }
.map-info-list dt { font-weight: 700; margin-top: 0.75rem; color: var(--primary-color); font-size: 0.85rem; }
.map-info-list dd { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--text-secondary); }
.map-info-placeholder { text-align: center; padding: 2rem 1rem; color: var(--text-light); }
.territory-legend { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; font-size: 0.85rem; }
.legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 0.35rem; vertical-align: middle; }
.legend-dot.guna-yala { background: #00A3E0; }
.legend-dot.madugandi { background: #f59e0b; }
.legend-dot.wargandi { background: #8b5cf6; }
.legend-dot.island { background: #ff6b6b; }

/* Vocabulary practice modes */
.vocab-modes { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.vocab-mode-btn { padding: 0.6rem 1rem; border: 2px solid var(--bg-tertiary); background: var(--bg-secondary); border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.vocab-mode-btn.active { background: var(--gradient-primary); color: white; border-color: transparent; }
.vocab-flashcard-mode { max-width: 400px; margin: 0 auto; text-align: center; }
.vocab-flashcard { background: var(--bg-secondary); border-radius: 20px; padding: 2.5rem 1.5rem; min-height: 220px; cursor: pointer; box-shadow: var(--shadow-md); margin-bottom: 1rem; border: 3px solid var(--primary-color); }
.vocab-flash-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.vocab-practice { max-width: 480px; margin: 0 auto; text-align: center; }
.vocab-practice-prompt { font-size: 1.75rem; color: var(--primary-color); margin: 1rem 0; }
.vocab-practice-options { display: grid; gap: 0.75rem; }
.vocab-practice-opt, .vocab-review-opt { padding: 1rem; border: 2px solid var(--bg-tertiary); border-radius: 12px; background: var(--bg-secondary); cursor: pointer; font-size: 1rem; font-weight: 500; transition: all 0.2s; }
.vocab-practice-opt:hover, .vocab-review-opt:hover { border-color: var(--primary-color); }
.vocab-practice-opt.correct, .vocab-review-opt.correct { background: #d4edda; border-color: #2ECC71; }
.vocab-practice-opt.incorrect, .vocab-review-opt.incorrect { background: #fdecea; border-color: #e74c3c; }
.vocab-practice-result { text-align: center; padding: 2rem; }

/* Mola attribution */
.mola-attribution-wrap { position: relative; margin: 0; display: inline-block; width: 100%; }
.mola-attribution-link { display: block; position: relative; text-decoration: none; color: inherit; }
.mola-attribution-img { width: 100%; display: block; border-radius: 12px; transition: transform 0.2s, box-shadow 0.2s; }
.mola-attribution-link:hover .mola-attribution-img { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.mola-attribution-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.72); color: #fff; font-size: 0.65rem; padding: 0.3rem 0.55rem; border-radius: 6px; max-width: 75%; line-height: 1.3; pointer-events: none; backdrop-filter: blur(4px); }
.mola-attribution-caption { text-align: center; margin-top: 0.5rem; }
.mola-learn-more-btn { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--primary-color); text-decoration: none; padding: 0.35rem 0.75rem; border: 1px solid var(--primary-color); border-radius: 20px; transition: all 0.2s; }
.mola-learn-more-btn:hover { background: var(--primary-color); color: white; }

/* Memory game */
.memory-game-exercise { max-width: 640px; margin: 0 auto; text-align: center; }
.memory-difficulty-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 1rem 0; }
.memory-diff-btn { padding: 0.4rem 0.75rem; border: 2px solid var(--bg-tertiary); border-radius: 20px; background: var(--bg-secondary); cursor: pointer; font-size: 0.8rem; font-weight: 600; }
.memory-diff-btn.active { background: var(--primary-color); color: white; border-color: transparent; }
.memory-stats { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; font-size: 0.9rem; }
.memory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 0.75rem; max-width: 520px; margin: 0 auto; }
.memory-card { aspect-ratio: 1; border: none; background: none; padding: 0; cursor: pointer; perspective: 600px; }
.memory-card:disabled { cursor: default; }
.memory-card-inner { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.4s; border-radius: 12px; }
.memory-card-inner.flipped { transform: rotateY(180deg); }
.memory-card-front, .memory-card-back { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.memory-card-front { background: linear-gradient(135deg, #00A3E0, #29B6F6); color: white; font-size: 1.5rem; }
.memory-card-back { background: var(--bg-secondary); border: 2px solid var(--primary-color); transform: rotateY(180deg); flex-direction: column; padding: 0.5rem; }
.memory-card.matched .memory-card-back { background: #d4edda; border-color: #2ECC71; }
.memory-word { font-size: 0.85rem; color: var(--primary-color); word-break: break-word; }
.memory-icon { font-size: 2rem; }
.memory-feedback { margin-top: 1rem; padding: 1rem; border-radius: 12px; }
.memory-feedback.success { background: #d4edda; color: #155724; }

/* AI tutor audio */
.ai-tutor-controls { display: flex; align-items: center; gap: 0.75rem; }
.ai-ctrl-btn, .ai-mic-btn { width: 40px; height: 40px; border: none; border-radius: 50%; background: var(--bg-tertiary); cursor: pointer; color: var(--text-primary); flex-shrink: 0; }
.ai-mic-btn.listening { background: #e74c3c; color: white; animation: pulse-mic 1s infinite; }
@keyframes pulse-mic { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.ai-msg-speak { display: block; margin-top: 0.5rem; background: none; border: none; color: var(--primary-color); cursor: pointer; font-size: 0.85rem; }
.ai-input-hint { font-size: 0.8rem; color: var(--text-light); text-align: center; margin-top: 0.35rem; min-height: 1.2em; }

/* Leaderboard modern */
.lb-modern { max-width: 1000px; margin: 0 auto; }
.lb-header { text-align: center; padding: 2rem; background: linear-gradient(135deg, #FFB300, #FFA726); color: white; border-radius: 16px; margin-bottom: 1.5rem; }
.lb-user-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.lb-stat-card { background: var(--bg-secondary); padding: 1rem; border-radius: 12px; text-align: center; box-shadow: var(--shadow-sm); }
.lb-stat-val { display: block; font-size: 1.4rem; font-weight: 700; color: var(--primary-color); }
.lb-stat-lbl { font-size: 0.75rem; color: var(--text-secondary); }
.lb-tabs, .lb-sort { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.lb-tab, .lb-sort-btn { padding: 0.6rem 1.2rem; border: none; border-radius: 12px; background: var(--bg-tertiary); font-weight: 600; cursor: pointer; }
.lb-tab.active, .lb-sort-btn.active { background: var(--gradient-primary); color: white; }
.lb-rewards-note { text-align: center; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.lb-list { background: var(--bg-secondary); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.lb-item { display: flex; align-items: center; padding: 1.25rem; border-bottom: 1px solid var(--bg-tertiary); gap: 1rem; transition: background 0.2s; }
.lb-item:hover { background: var(--bg-tertiary); }
.lb-item.current-user { background: rgba(0,163,224,0.08); border-left: 4px solid var(--primary-color); }
.lb-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; overflow: hidden; flex-shrink: 0; }
.lb-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.lb-value { font-size: 1.2rem; font-weight: 700; color: var(--primary-color); text-align: right; }
.lb-value-lbl { font-size: 0.75rem; color: var(--text-secondary); text-align: right; }

/* Achievements modern */
.ach-modern { max-width: 1000px; margin: 0 auto; }
.ach-header { text-align: center; padding: 2rem; background: linear-gradient(135deg, #8B5CF6, #A78BFA); color: white; border-radius: 16px; margin-bottom: 1.5rem; }
.ach-summary { display: flex; justify-content: center; gap: 2rem; margin-top: 1rem; }
.ach-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.ach-cat-btn { padding: 0.5rem 1rem; border: none; border-radius: 20px; background: var(--bg-tertiary); font-weight: 600; cursor: pointer; font-size: 0.85rem; }
.ach-cat-btn.active { background: var(--gradient-primary); color: white; }
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.ach-card { background: var(--bg-secondary); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s; }
.ach-card:hover { transform: translateY(-3px); }
.ach-card.locked { opacity: 0.65; }
.ach-card-top { height: 4px; background: var(--text-light); }
.ach-card-top.unlocked { background: var(--gradient-success); }
.ach-card-body { display: flex; gap: 1rem; padding: 1.25rem; align-items: flex-start; }
.ach-icon { font-size: 2rem; flex-shrink: 0; }
.ach-card-footer { padding: 0.75rem 1.25rem; background: var(--bg-tertiary); display: flex; justify-content: space-between; font-size: 0.85rem; }

/* Standalone memory & territory sections */
.memory-section-page, .territory-section { max-width: 900px; margin: 0 auto; padding: 1rem; }
.memory-hero, .territory-hero { text-align: center; padding: 2rem; background: linear-gradient(135deg, #8B5CF6, #6366F1); color: white; border-radius: 16px; margin-bottom: 2rem; }
.territory-hero { background: linear-gradient(135deg, #00A3E0, #29B6F6); }

/* Panama interactive map */
.territory-section--map-only { max-width: 1100px; }
.panama-map-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}
.panama-map-stage {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color, #e0e0e0);
    background: #a9c9d9;
    aspect-ratio: 734 / 370;
}
.panama-map-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.map-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}
.map-hotspot-dot {
    display: block;
    width: 14px;
    height: 14px;
    margin: 7px auto;
    background: #fff;
    border: 3px solid #c62828;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    transition: transform 0.2s;
}
.map-hotspot-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(198,40,40,0.35);
    animation: map-pulse 2s ease-out infinite;
}
.map-hotspot:hover .map-hotspot-dot,
.map-hotspot.active .map-hotspot-dot {
    transform: scale(1.25);
    background: #ffeb3b;
}
.map-hotspot.active .map-hotspot-pulse {
    animation: none;
    background: rgba(198,40,40,0.5);
}
@keyframes map-pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}
.panama-map-panel {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    min-height: 320px;
    position: sticky;
    top: 1rem;
}
.map-panel-placeholder {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem 1rem;
}
.map-panel-placeholder i { font-size: 2rem; margin-bottom: 0.75rem; color: #00A3E0; }
.panama-map-panel h3 { margin: 0 0 1rem; font-size: 1.2rem; color: var(--text-primary); }
.map-panel-block { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color, #eee); }
.map-panel-block h4 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.map-panel-block p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--text-secondary); }
.map-panel-mola { background: rgba(198,40,40,0.06); padding: 0.75rem; border-radius: 10px; border: none; }
.map-mola-link {
    display: block;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}
.map-mola-link:hover { border-color: #c62828; transform: translateY(-2px); }
.map-mola-thumb {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #f5f0e6;
}
.map-mola-link-label {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    background: var(--bg-tertiary);
    color: #c62828;
    font-weight: 600;
}
.map-museum-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #c62828, #e53935);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.map-museum-btn:hover { opacity: 0.9; color: #fff; }
.mola-museum-link {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.mola-museum-link:hover { transform: scale(1.02); }
.mola-museum-img { display: block; max-width: 100%; }
@media (max-width: 900px) {
    .panama-map-layout { grid-template-columns: 1fr; }
    .panama-map-panel { position: static; }
}

/* Mascot Customization Section Styles */
.mascot-customization-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color, #eee);
}

.mascot-customization-section .section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mascot-customization-section .section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.mascot-preview {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--border-color, #eee);
}

.mascot-avatar-display {
    position: relative;
    width: 200px;
    height: 200px;
}

.mascot-base {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.mascot-clothing-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.virtual-closet {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid var(--border-color, #eee);
}

.closet-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.closet-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.closet-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color, #eee);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.closet-tab:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.closet-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    border-color: var(--primary-color);
    color: white;
}

.closet-tab img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.closet-tab span {
    font-size: 0.85rem;
    font-weight: 600;
}

.closet-tab.locked {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.closet-tab.locked i {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.closet-items {
    min-height: 200px;
}

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

.clothing-item {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color, #eee);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.clothing-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.clothing-item.available {
    border-color: var(--primary-color);
}

.clothing-item.available:hover {
    background: var(--primary-light);
}

.clothing-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.item-preview {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.clothing-item.locked .item-preview {
    color: var(--text-secondary);
}

.item-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.item-status {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.clothing-item.available .item-status {
    color: var(--primary-color);
    font-weight: 600;
}

.clothing-item.locked .item-status {
    color: var(--text-secondary);
}

.clothing-item.locked .item-status i {
    margin-right: 0.25rem;
}

@media (max-width: 768px) {
    .mascot-preview {
        padding: 1.5rem;
    }

    .mascot-avatar-display {
        width: 150px;
        height: 150px;
    }

    .closet-tabs {
        gap: 0.5rem;
    }

    .closet-tab {
        min-width: 70px;
        padding: 0.5rem 0.75rem;
    }

    .closet-tab img {
        width: 35px;
        height: 35px;
    }

    .closet-tab span {
        font-size: 0.75rem;
    }

    .closet-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
}

