:root {
    --primary: #0891b2;
    /* Dark Turquoise */
    --primary-light: #cffafe;
    --secondary: #fb7185;
    --accent: #34d399;
    --bg-app: #f8fafc;
    --bg-white: #ffffff;
    --sidebar-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --font-main: 'Quicksand', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --primary-dark: #155e75;
}

[data-theme="dark"] {
    --bg-app: #0f172a;
    --bg-white: #1e293b;
    --sidebar-bg: #1e293b;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-app);
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 300px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    z-index: 10;
    transition: transform 0.3s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.brand-logo-img {
    height: 100px;
    width: auto;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .brand-logo-img {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.brand-slogan {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

[data-theme="dark"] .brand-slogan {
    color: #fbbf24;
    /* yellow-400 equivalent */
}

/* Explorer ID Card Styling (Premium Glassmorphism) */
.explorer-id-card {
    background: transparent;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1rem;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.explorer-id-card:hover {
    transform: translateY(-2px);
}

.explorer-id-card::after {
    content: '\f005';
    /* Star icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 3rem;
    opacity: 0.1;
    color: white;
    transform: rotate(20deg);
}

.id-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 0.8rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}



.id-card-code {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 900;
    text-align: center;
    margin: 0.8rem 0;
    letter-spacing: 2px;
    color: var(--primary);
    opacity: 0.8;
}

.id-card-action-btn {
    width: 100%;
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-dark);
    padding: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 0.5rem;
}

.id-card-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: scale(1.02);
}


.inventory-section {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.inventory-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.material-search {
    display: flex;
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px 12px;
    margin-bottom: 1.5rem;
}

.material-search input {
    background: none;
    border: none;
    padding: 8px 0;
    flex: 1;
    font-family: inherit;
    outline: none;
    color: var(--text-dark);
}

.material-search button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

.category {
    margin-bottom: 1rem;
}

.category.collapsed .category-items {
    display: none;
}

.category-toggle {
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-muted);
    transition: color 0.3s;
}

.category-toggle:hover {
    color: var(--primary);
}

.category-toggle i {
    transition: transform 0.3s ease;
}

.category.collapsed .category-toggle i {
    transform: rotate(-90deg);
}

.category-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 8px;
}

.item-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    font-size: 0.85rem;
}

.item-checkbox:hover {
    background: #f1f5f9;
}

.item-checkbox input {
    accent-color: var(--primary);
}

.item-checkbox.checked {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* Ekranın tam boyu */
    overflow: hidden;
    /* Çift kaydırma çubuğunu engelle */
    position: relative;
    background: var(--bg-app);
}

.content-body {
    flex: 1;
    overflow-y: auto;
    /* SADECE burası kayacak */
    overflow-x: hidden;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    /* Araları biraz daha açalım ferah olsun */
    scroll-behavior: smooth;
    height: 0;
    /* Flexbox içi kaydırma kuralı */
    min-height: 0;
}

/* Sayacın en altta kalmasını garantileyelim */
.galaxy-footer {
    margin-top: auto;
    width: 100%;
    padding-bottom: 5rem;
    /* Mentör kutusuna çarpmaması için pay bırakıyoruz */
}

/* Mentor kutusunu akıştan çıkarıp sabitliyoruz */
.mentor-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    z-index: 1000;
    /* En üstte görünsün */
    pointer-events: none;
    /* Arkadaki kartlar tıklanabilsin */
}

.mentor-bubble,
.mentor-character {
    pointer-events: auto;
    /* Balon ve karakterin kendisi tıklanabilsin */
}

/* Section Header */
.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.main-view-header {
    display: flex;
    flex-direction: column;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-target-filter {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.custom-select-trigger:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.custom-select-trigger i:first-child {
    color: var(--primary);
    margin-right: 10px;
}

.custom-select-trigger i.chevron {
    margin-left: 10px;
    font-size: 0.8rem;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.main-target-filter.open .chevron {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    display: none;
    overflow: hidden;
    min-width: 200px;
}

.main-target-filter.open .custom-options {
    display: block;
    animation: dropdownAnim 0.2s ease-out;
}

@keyframes dropdownAnim {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.custom-option:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.custom-option.selected {
    background: var(--primary);
    color: white;
}

[data-theme="dark"] .custom-select-trigger {
    background: #1e293b;
    border-color: #334155;
    box-shadow: none;
}

[data-theme="dark"] .custom-options {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    /* Koyu gölge */
}

[data-theme="dark"] .custom-option:hover {
    background: #334155;
    color: var(--text-dark);
}

[data-theme="dark"] .custom-option.selected {
    background: var(--primary);
    color: white;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.view-options {
    display: flex;
    background: var(--bg-app);
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}

.view-options button {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.view-options button:hover {
    background: var(--bg-white);
    color: var(--primary);
}

.view-options button.active {
    background: var(--bg-white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Results Info */
.results-info {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

/* Activity Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Activity Card */
.activity-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-app);
}

.card-img-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .card-img-element {
    transform: scale(1.1);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    color: white;
}

.no-image-placeholder i {
    font-size: 3.5rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.no-image-text {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
}

.card-content .technique {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.outcome-box {
    background: var(--bg-app);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-white);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.empty-state p {
    font-size: 1.2rem;
    font-weight: 600;
}

.top-panel {
    background: var(--bg-white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.sidebar-filters {
    padding: 0 0 1.5rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-filters .filter-group select {
    width: 100%;
    background: var(--bg-app);
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    padding: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.sidebar-filters .filter-group label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    display: block;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    background-color: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.3s;
}

.filter-group select option {
    background-color: var(--bg-white);
    color: var(--text-dark);
}


.user-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.icon-btn {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    padding: 10px;
    overflow: hidden;
    gap: 4px;
}

.char-btn {
    width: 80px;
    height: 80px;
    padding: 5px;
    text-align: center;
}

.char-btn img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: contain;
    background: #f1f5f9;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.char-btn span {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.char-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@keyframes market-glow {
    0% {
        transform: translateY(0);
        filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.6));
    }

    50% {
        transform: translateY(-5px);
        filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.9));
    }

    100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.6));
    }
}

.market-btn-logo-only {
    width: 120px !important;
    height: 120px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: market-glow 3s infinite ease-in-out;
}

.market-btn-logo-only:hover {
    animation: none;
    /* Stop floating on hover */
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(239, 68, 68, 1));
}

.market-btn-logo-only img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.market-btn-logo-only {
    flex-direction: column !important;
}

.market-btn-logo-only span {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    text-transform: uppercase;
    margin-bottom: -5px;
    z-index: 5;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .market-btn-logo-only span {
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.small-theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    margin-left: 10px;
    align-self: center;
}

.small-theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--primary);
    background: var(--primary-light);
}

[data-theme="dark"] .small-theme-toggle {
    background: #1e293b;
    color: #fcd34d;
    border-color: #334155;
}

/* Old theme classes removed as we shrunk it */


.view-options button#mute-toggle.muted {
    color: #ef4444;
}


/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

[data-theme="dark"] .preloader {
    background: #0f172a;
}

.preloader-content {
    text-align: center;
}

/* Preloader Animations */
.palette-loader {
    font-size: 6rem;
    color: var(--primary);
    position: relative;
    margin-bottom: 2rem;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
}

.palette-loader i {
    z-index: 10;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.paint-blob {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    z-index: 20;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.red {
    background: #ef4444;
    animation: orbit-red 3s ease-in-out forwards;
}

.blue {
    background: #3b82f6;
    animation: orbit-blue 3s ease-in-out forwards;
}

.yellow {
    background: #f59e0b;
    animation: orbit-yellow 3s ease-in-out forwards;
}

@keyframes orbit-red {
    0% {
        transform: rotate(0deg) translateX(80px) rotate(0deg) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    70% {
        transform: rotate(720deg) translateX(80px) rotate(-720deg) scale(1);
    }

    100% {
        transform: rotate(720deg) translateX(25px) rotate(-720deg) scale(0.8);
    }

    /* Lands on spot */
}

@keyframes orbit-blue {
    0% {
        transform: rotate(120deg) translateX(80px) rotate(-120deg) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    70% {
        transform: rotate(840deg) translateX(80px) rotate(-840deg) scale(1);
    }

    100% {
        transform: rotate(840deg) translateX(25px) rotate(-840deg) scale(0.8);
    }
}

@keyframes orbit-yellow {
    0% {
        transform: rotate(240deg) translateX(80px) rotate(-240deg) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    70% {
        transform: rotate(960deg) translateX(80px) rotate(-960deg) scale(1);
    }

    100% {
        transform: rotate(960deg) translateX(25px) rotate(-960deg) scale(0.8);
    }
}

.preloader h2 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.loading-bar-container {
    width: 250px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-bar {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    animation: loading 2s infinite ease;
}

@keyframes loading {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }

    100% {
        width: 100%;
        transform: translateX(0);
    }
}

/* Detective Office Cards */
.detective-mission-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.detective-mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.mission-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.detective-mission-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0;
    color: inherit;
}

.detective-mission-card p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.8;
    line-height: 1.4;
}

/* Mute Button Styles */
.mute-btn {
    background: #64748b;
    color: white;
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: 0.3s;
}

.mute-btn:hover {
    transform: scale(1.1);
    background: #475569;
}

.mute-btn.muted {
    background: #ef4444;
}

.icon-btn i {
    font-size: 1.6rem;
    margin-bottom: 4px;
    z-index: 2;
}

.icon-btn::after {
    content: attr(title);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    z-index: 2;
}

.icon-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Little Prince Planets Theme - Enhanced & Larger */
.planet-btn {
    border-radius: 50% !important;
    border: none !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    color: white !important;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    background: #ccc;
    overflow: hidden !important;
    flex-shrink: 0;
}

.planet-btn::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 35%;
    height: 20%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    filter: blur(6px);
    z-index: 1;
}

.planet-btn i {
    font-size: 1.6rem !important;
    margin: 0 !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.planet-btn span {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    z-index: 2;
    pointer-events: none;
    max-width: 100%;
}

.planet-btn::after {
    display: none !important;
}

/* Tier 1: Giant Planet (BİLSEM) */
#open-bilsem-test {
    width: 140px !important;
    height: 140px !important;
    background: radial-gradient(circle at 35% 35%, #f43f5e, #881337) !important;
    box-shadow: 0 15px 35px rgba(244, 63, 94, 0.5), inset -12px -12px 25px rgba(0, 0, 0, 0.4) !important;
    z-index: 10;
}

#open-bilsem-test i {
    font-size: 2.2rem !important;
}

#open-bilsem-test span {
    font-size: 0.8rem !important;
}

/* Tier 2: Medium Planets (Gallery, Detective, Scan, Brain Games) */
#open-detective,
#open-brain-games {
    width: 115px !important;
    height: 115px !important;
}

#open-detective i,
#open-brain-games i {
    font-size: 1.8rem !important;
}

#open-detective span,
#open-brain-games span {
    font-size: 0.75rem !important;
}

/* Tier 3: Standard Planets (Discovery Bag, AI Analyzer, Plan Robot) */
#open-plan-robot,
#open-discovery-bag,
#open-ai-analyzer,
#open-art-scan {
    width: 95px !important;
    height: 95px !important;
}

#open-gallery {
    width: 90px !important;
    height: 90px !important;
}

#open-plan-robot i,
#open-discovery-bag i,
#open-ai-analyzer i,
#open-art-scan i {
    font-size: 1.5rem !important;
}

#open-gallery i {
    font-size: 1.2rem !important;
}

#open-gallery span,
#open-plan-robot span,
#open-discovery-bag span,
#open-ai-analyzer span,
#open-art-scan span {
    font-size: 0.65rem !important;
}

/* Tier 4: Small Satellite Planets (Badges, E-Book) */
#open-badges,
#open-ebook {
    width: 80px !important;
    height: 80px !important;
}

#open-badges i,
#open-ebook i {
    font-size: 1.3rem !important;
}

#open-badges span,
#open-ebook span {
    font-size: 0.55rem !important;
}

#open-plan-robot {
    background: radial-gradient(circle at 35% 35%, #22d3ee, #0891b2) !important;
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.4), inset -8px -8px 15px rgba(0, 0, 0, 0.3) !important;
}

#open-badges {
    background: radial-gradient(circle at 35% 35%, #a855f7, #4c1d95) !important;
    box-shadow: 0 6px 15px rgba(168, 85, 247, 0.4), inset -6px -6px 12px rgba(0, 0, 0, 0.3) !important;
}

#open-discovery-bag {
    background: radial-gradient(circle at 35% 35%, #f59e0b, #78350f) !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4), inset -8px -8px 15px rgba(0, 0, 0, 0.3) !important;
}

#open-gallery {
    background: radial-gradient(circle at 35% 35%, #10b981, #064e3b) !important;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4), inset -10px -10px 20px rgba(0, 0, 0, 0.3) !important;
}

#open-detective {
    background: radial-gradient(circle at 35% 35%, #6366f1, #1e1b4b) !important;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4), inset -10px -10px 20px rgba(0, 0, 0, 0.3) !important;
}

#open-brain-games {
    background: radial-gradient(circle at 35% 35%, #fffaf0, #fdf4e3) !important;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3), inset -10px -10px 20px rgba(0, 0, 0, 0.1) !important;
}

#open-brain-games i,
#open-brain-games span {
    color: #b8860b !important;
}

#open-ai-analyzer {
    background: radial-gradient(circle at 35% 35%, #ec4899, #701a75) !important;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4), inset -8px -8px 15px rgba(0, 0, 0, 0.3) !important;
}

#open-ebook {
    background: radial-gradient(circle at 35% 35%, #0ea5e9, #0c4a6e) !important;
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4), inset -6px -6px 12px rgba(0, 0, 0, 0.3) !important;
}

#open-art-scan.planet-btn {
    background: radial-gradient(circle at 30% 30%, #64748b, #1e293b) !important;
    box-shadow: 0 10px 25px rgba(100, 116, 139, 0.4), inset -10px -10px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] #open-art-scan.planet-btn {
    background: radial-gradient(circle at 30% 30%, #cbd5e1, #94a3b8) !important;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1), inset -10px -10px 20px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] #open-art-scan.planet-btn i,
[data-theme="dark"] #open-art-scan.planet-btn span {
    color: #1e293b !important;
    text-shadow: none !important;
}

#open-art-scan.planet-btn i {
    font-size: 1.5rem !important;
}

.planet-btn:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

.planet-btn.highlight-btn {
    animation: planet-float 3s infinite ease-in-out;
}

@keyframes planet-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}




#open-scamper {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
}

/* SCAMPER Wheel Styles */
.scamper-wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
}

.scamper-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.1, 0.7, 0.1, 1);
    background: conic-gradient(#ef4444 0deg 51.4deg,
            #f59e0b 51.4deg 102.8deg,
            #10b981 102.8deg 154.2deg,
            #3b82f6 154.2deg 205.6deg,
            #6366f1 205.6deg 257deg,
            #a855f7 257deg 308.4deg,
            #ec4899 308.4deg 360deg);
}

.wheel-inner-circle {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #333;
    z-index: 20;
}

.scamper-item-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    color: white;
    font-weight: 800;
    font-size: 0.8rem;
    pointer-events: none;
}

.scamper-label {
    position: absolute;
    width: 50%;
    left: 50%;
    top: 50%;
    transform-origin: left center;
    padding-left: 60px;
    letter-spacing: 1px;
}



/* Tooltip hiding when we have labels */
.icon-btn[title]::after {
    display: block;
}

.challenge-btn {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.badge-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
    animation: pulse-red 1.5s infinite;
    z-index: 5;
    pointer-events: none;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.challenge-modal-content {
    text-align: center;
    padding: 1rem;
}

.challenge-header {
    margin-bottom: 2rem;
}

.challenge-icon-large {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.challenge-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.challenge-card {
    background: var(--bg-app);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.challenge-card::before {
    content: '\f140';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    font-size: 8rem;
    opacity: 0.03;
    right: -20px;
    bottom: -20px;
}

.challenge-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.challenge-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.challenge-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.streak-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.streak-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.streak-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.challenge-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-complete {
    padding: 12px 30px;
    border-radius: 14px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-complete:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 211, 153, 0.3);
}

.btn-complete.done {
    background: var(--text-muted);
    cursor: default;
}

/* --- Color Laboratory Styles --- */
.color-lab-container {
    text-align: center;
    padding: 1rem;
}

.lab-workspace {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.mixing-area {
    position: relative;
    width: 200px;
    height: 200px;
    background: #f8fafc;
    border-radius: 50%;
    border: 4px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.mixing-area.active {
    border-color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.mix-result {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #e2e8f0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
    transition: background-color 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.color-selection {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.paint-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.paint-btn:hover {
    transform: scale(1.1) translateY(-5px);
}

.paint-btn.selected {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px #22c55e;
}

.paint-btn::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 10px;
    width: 20px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
}

/* Animations */
@keyframes mix-swirl {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.mixing-anim {
    animation: mix-swirl 1s ease-in-out;
}

/* --- Responsive Design (Mobile & Tablet) --- */
.mobile-menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    margin-right: 1rem;
    padding: 5px;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 260px;
    }

    /* Hide 'user-actions' text labels if too crowded, or rely on horizontal scroll */
    .icon-btn {
        width: 60px;
        height: 60px;
    }

    .icon-btn i {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {

    /* Mobile Layout */
    .app-container {
        flex-direction: column;
    }

    .mobile-menu-toggle {
        display: block;
        /* Show hamburger */
    }

    .sidebar {
        position: fixed;
        left: -320px;
        /* Hide off-screen */
        top: 0;
        bottom: 0;
        width: 280px;
        height: 100vh;
        z-index: 1001;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        left: 0;
        /* Slide in */
    }

    /* Overlay when sidebar is open */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: none;
        backdrop-filter: blur(3px);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        height: 100vh;
    }

    .top-panel {
        padding: 1rem;
        justify-content: flex-start;
        /* Align left to show hamburger */
        gap: 1rem;
        overflow-x: auto;
        /* Allow scrolling if needed */
    }

    .user-actions {
        justify-content: flex-start;
        padding-bottom: 5px;
        /* Scrollbar spacing */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
    }

    /* Hide scrollbar for cleaner look */
    .user-actions::-webkit-scrollbar {
        height: 4px;
    }

    .user-actions::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    .content-body {
        padding: 1rem;
    }

    .activity-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        /* Full width cards */
        gap: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .view-options {
        align-self: flex-end;
    }

    /* Adjust Planet Buttons size for Mobile */
    .planet-btn {
        width: 60px !important;
        height: 60px !important;
    }

    .planet-btn i {
        font-size: 1.2rem !important;
    }

    .planet-btn span {
        font-size: 0.6rem !important;
    }

    /* Specific overrides for big planets */
    #open-bilsem-test {
        width: 80px !important;
        height: 80px !important;
    }

    .market-btn-logo-only {
        width: 80px !important;
        height: 80px !important;
    }

    /* Mobile mentor position */
    .mentor-container {
        bottom: 10px;
        right: 10px;
    }

    .mentor-character img {
        height: 100px;
        /* Smaller mentor */
    }

    .mentor-bubble {
        max-width: 200px;
        font-size: 0.8rem;
    }
}

.storyboard-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
}

.storyboard-container {
    text-align: center;
}

.story-starter-box {
    background: var(--bg-app);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border-left: 6px solid var(--accent);
}

.story-starter-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    font-style: italic;
}

.storyboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.story-frame {
    aspect-ratio: 4/3;
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: 0.3s;
    cursor: pointer;
}

.story-frame:hover {
    border-color: var(--primary);
    background: rgba(167, 139, 250, 0.05);
}

.frame-label {
    position: absolute;
    top: -12px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
}

.frame-placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.frame-placeholder i {
    font-size: 2rem;
    opacity: 0.5;
}

.story-canvas-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
    display: none;
}

/* Results Area */
.results-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-options button {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.view-options button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.activity-grid.list-view {
    grid-template-columns: 1fr;
}

.activity-grid.list-view .activity-card {
    flex-direction: row;
    height: 220px;
}

.activity-grid.list-view .card-image {
    width: 250px;
    height: 100%;
}

.activity-grid.list-view .card-footer {
    width: 200px;
    display: flex;
    align-items: center;
    border-top: none;
    border-left: 1px solid var(--border-color);
}

/* Activity Card */
.activity-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-image {
    height: 180px;
    background: #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #1e293b;
    backdrop-filter: blur(4px);
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
}

.card-content h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.technique {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.card-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-item i {
    color: var(--accent);
}

.outcome-box {
    background: var(--bg-app);
    border-radius: 8px;
    padding: 10px;
    margin-top: 1rem;
    font-size: 0.8rem;
    border-left: 4px solid var(--primary);
    color: var(--text-dark);
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-primary {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(8, 145, 178, 0.3);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.4);
}

/* Added missing btn-secondary for consistency */
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

[data-theme="dark"] .btn-secondary {
    background: #334155;
    color: #f8fafc;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #475569;
}

/* Balloon Animation */
.balloon-container {
    position: relative;
    z-index: 500;
    margin-right: 0.5rem;
}

.balloon {
    width: 70px;
    height: 85px;
    background: var(--secondary);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    position: relative;
    cursor: pointer;
    animation: float 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset -10px -10px 0 rgba(0, 0, 0, 0.07);
}



.balloon::after {
    content: '';
    width: 2px;
    height: 15px;
    background: rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: -15px;
    left: 50%;
}

.balloon-text {
    color: white;
    font-weight: 800;
    font-size: 0.7rem;
    text-align: center;
    padding: 10px;
    line-height: 1.2;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

.balloon.pop {
    animation: pop 0.3s ease-out forwards;
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-white);
    color: var(--text-dark);
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 30px;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-content.wide {
    max-width: 1000px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}


/* Confetti */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    z-index: 1100;
}

/* Feedback */
/* Old feedback classes removed as it's now in view-options */

/* Footer */
footer {
    padding: 1.5rem;
    text-align: center;
    background: white;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

footer p {
    color: var(--text-muted);
}

footer strong {
    color: var(--primary);
}

/* Bottom Actions Container */
/* Bottom Actions are now stacked inside ai-bot-container */


.theme-switch {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--bg-white);
    color: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

.theme-switch:hover {
    transform: scale(1.1) rotate(15deg);
}


.ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    height: 450px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header span {
    font-weight: 700;
    font-size: 0.9rem;
    flex: 1;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    max-width: 85%;
}

.message.bot {
    background: #f1f5f9;
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.bot.typing {
    font-style: italic;
    opacity: 0.7;
    font-size: 0.75rem;
}

[data-theme="dark"] .message.bot {
    background: #334155;
}

.message.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 1rem;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border-color);
}

.chat-input-area input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 15px;
    font-family: inherit;
    outline: none;
}

.chat-input-area button {
    background: var(--primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

/* Mentor Character Styles (Fixed Positioned) */
.mentor-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    z-index: 1000;
    animation: slideInRight 0.8s ease-out;
}

.mentor-bubble {
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    border-bottom-left-radius: 2px;
    box-shadow: var(--shadow-md);
    position: relative;
    max-width: 400px;
    border: 2px solid var(--primary-light);
}

.mentor-bubble p {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin: 0;
}

.mentor-character {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.mentor-character img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

[data-theme="dark"] .mentor-bubble {
    background: var(--bg-white);
    border-color: var(--primary);
}

/* Portfolio Gallery in Card */
.activity-action-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 1.5rem;
}

.btn-outline {
    padding: 10px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
    font-size: 0.8rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
        overflow: auto;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .main-content {
        overflow: visible;
    }

    .top-panel {
        flex-direction: column;
        gap: 1rem;
    }

    .filters {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* BİLSEM Test Styles */
.bilsem-test-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.test-progress {
    margin-bottom: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.progress-bar-bg {
    height: 12px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timer-box {
    background: #f8fafc;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

#question-timer {
    display: inline-block;
    min-width: 20px;
    text-align: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.test-question-area {
    background: white;
    padding: 1.2rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 2px solid #f1f5f9;
    min-height: 200px;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    position: relative;
}

#test-question-svg-container {
    width: 100%;
    height: 100%;
    max-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

#test-question-svg-container svg {
    max-height: 230px;
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
}

.test-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.test-option {
    background: white;
    border: 3px solid #f1f5f9;
    padding: 0.8rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.test-option:hover {
    border-color: #f59e0b;
    background: #fffbeb;
    transform: scale(1.03);
}

.test-option.correct {
    border-color: #10b981;
    background: #f0fdf4 !important;
}

.test-option.wrong {
    border-color: #ef4444;
    background: #fef2f2 !important;
}

.difficulty-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.diff-very-easy {
    background: #dcfce7;
    color: #166534;
}

.diff-easy {
    background: #ccfbf1;
    color: #115e59;
}

.diff-normal {
    background: #fef9c3;
    color: #854d0e;
}

.diff-hard {
    background: #ffedd5;
    color: #9a3412;
}

.diff-very-hard {
    background: #fee2e2;
    color: #991b1b;
}

[data-theme="dark"] .test-question-area,
[data-theme="dark"] .test-option {
    background: #1e293b;
    border-color: #334155;
    color: white;
}

/* Badges System Styles */
/* Achievement Stamp Design - Premium Style */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 2rem;
    padding: 1rem;
    justify-items: center;
}

.achievement-stamp {
    width: 130px;
    height: 160px;
    background: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.achievement-stamp::before {
    content: '';
    position: absolute;
    inset: -8px;
    /* Offset for perforated edge */
    background: white;
    z-index: -1;
    -webkit-mask: radial-gradient(circle at 10px 10px, transparent 100%, #000 0) 0 0 / 20px 20px;
    -webkit-mask-composite: destination-out;
    mask: radial-gradient(circle at 10px 10px, transparent 100%, #000 0) 0 0 / 20px 20px;
    mask-composite: exclude;

    /* Simpler approach for perforated edges using radial-gradient on background if mask is tricky */
    background-image:
        radial-gradient(circle at 0 0, transparent 8px, white 9px),
        radial-gradient(circle at 100% 0, transparent 8px, white 9px),
        radial-gradient(circle at 100% 100%, transparent 8px, white 9px),
        radial-gradient(circle at 0 100%, transparent 8px, white 9px);
    background-position: top left, top right, bottom right, bottom left;
    background-size: 50% 50%;
    background-repeat: no-repeat;
}

/* Let's try a more robust perforated edge technique */
.achievement-stamp {
    background: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-image: radial-gradient(#f1f5f9 2px, transparent 2px);
    background-size: 15px 15px;
    background-position: -5px -5px;
}

/* The true perforated edge */
.achievement-stamp::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: radial-gradient(circle at center, transparent 6px, white 6px);
    background-size: 20px 20px;
    z-index: -1;
}

.achievement-stamp.locked {
    filter: grayscale(1) opacity(0.5);
}

.achievement-stamp.unlocked {
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
}

.achievement-stamp.unlocked .stamp-inner-border {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px dashed rgba(8, 145, 178, 0.4);
    pointer-events: none;
    border-radius: 4px;
}

.stamp-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.achievement-stamp.unlocked .stamp-icon-wrapper {
    color: var(--primary);
    text-shadow: 0 4px 8px rgba(8, 145, 178, 0.2);
}

.stamp-title {
    font-size: 0.85rem;
    font-weight: 900;
    color: #334155;
    font-family: var(--font-heading);
    margin-bottom: 4px;
    line-height: 1.1;
    z-index: 2;
}

.stamp-desc {
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.3;
    z-index: 2;
}

.stamp-postmark {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 1.8rem;
    opacity: 0.08;
    transform: rotate(-25deg);
    pointer-events: none;
    color: #0c4a6e;
}

.achievement-stamp.unlocked:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.stamp-lock-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #94a3b8;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.unlocked .stamp-lock-badge {
    background: #10b981;
}


/* Virtual Garden */
.garden-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px dashed rgba(8, 145, 178, 0.2);
}

.virtual-garden-container {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(8, 145, 178, 0.1);
}

[data-theme="dark"] .virtual-garden-container {
    background: rgba(30, 41, 59, 0.5);
}

.tree-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tree-display svg {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: sway 3s ease-in-out infinite alternate;
    transform-origin: bottom center;
}

@keyframes sway {
    0% {
        transform: rotate(-2deg);
    }

    100% {
        transform: rotate(2deg);
    }
}

.tree-info {
    flex: 1;
}

.tree-name {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.tree-xp {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.7;
    margin-bottom: 6px;
}

.tree-progress-bg {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
}

[data-theme="dark"] .tree-progress-bg {
    background: #334155;
}

.tree-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-out;
}

.next-stage-hint {
    font-size: 0.6rem;
    font-style: italic;
    opacity: 0.6;
}

.music-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--bg-white);
    color: var(--secondary);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
    position: relative;
}

.music-toggle.muted::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 24px;
    background: var(--secondary);
    transform: rotate(45deg);
}

/* Art Puzzle Game */
.puzzle-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    width: 360px;
    height: 360px;
    margin: 1.5rem auto;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-light);
}

.puzzle-piece {
    width: 100%;
    height: 100%;
    background-size: 360px 360px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.puzzle-piece:hover {
    transform: scale(0.98);
}

.puzzle-piece.empty {
    background: transparent !important;
    cursor: default;
    border: 2px dashed #e2e8f0;
}

.puzzle-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

@media (max-width: 400px) {
    .puzzle-board {
        width: 300px;
        height: 300px;
    }

    .puzzle-piece {
        background-size: 300px 300px;
    }
}

/* Art-Scan Styles */
.scan-btn {
    background: linear-gradient(135deg, #0891b2, #155e75) !important;
    position: relative;
    overflow: hidden;
}

.scan-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    animation: rotate-shine 3s linear infinite;
}

@keyframes rotate-shine {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.art-scan-content {
    max-width: 600px !important;
    background: #0f172a !important;
    color: white !important;
    border: 2px solid #0891b2 !important;
    padding: 0 !important;
    border-radius: 30px !important;
    overflow: hidden;
}

.scanner-view {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    overflow: hidden;
}

#scan-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 40px solid rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #0891b2;
    box-shadow: 0 0 15px #0891b2, 0 0 30px #0891b2;
    animation: scan-move 2.5s ease-in-out infinite;
    z-index: 10;
}

@keyframes scan-move {

    0%,
    100% {
        top: 40px;
        opacity: 0.8;
    }

    50% {
        top: calc(100% - 40px);
        opacity: 1;
    }
}

.scan-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 4px solid #6366f1;
    z-index: 11;
}

.top-left {
    top: 30px;
    left: 30px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 30px;
    right: 30px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 30px;
    left: 30px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 30px;
    right: 30px;
    border-left: none;
    border-top: none;
}

.scan-footer {
    padding: 1.5rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.9);
}

.scan-status {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #818cf8;
    letter-spacing: 1px;
}

.detected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.detected-tag {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.5);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pop-in {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 2px solid #6366f1;
    border-radius: 50%;
    animation: pulse-out 2s infinite;
}

@keyframes pulse-out {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* World Art Tour Styles */
.tour-btn {
    background: linear-gradient(135deg, #fbbf24, #d97706) !important;
    position: relative;
}

.tour-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 2px solid white;
    animation: heart-beat 1s infinite alternate;
}

.world-tour-content {
    max-width: 900px !important;
    background: #fdf6e3 !important;
    /* Vintage map paper color */
    border: 8px solid #8b4513 !important;
    border-radius: 20px !important;
    padding: 0 !important;
}

.map-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-image: url('https://img.freepik.com/free-vector/hand-drawn-world-map_23-2148117769.jpg');
    /* Stylized map background */
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-bottom: 3px solid #8b4513;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 69, 19, 0.1);
    /* Sepia tint */
}

.map-stop {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid #8b4513;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.map-stop:hover {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.5);
}

.map-stop.locked {
    filter: grayscale(1);
    opacity: 0.7;
    cursor: not-allowed;
}

.map-stop.completed {
    background: #10b981;
    color: white;
    border-color: #064e3b;
}

.map-stop.active {
    box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.4);
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

.stop-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    pointer-events: none;
}

.map-stop:hover .stop-tooltip {
    opacity: 1;
    visibility: visible;
}

.tour-info-panel {
    padding: 2rem;
    text-align: center;
    color: #4b3621;
}

.tour-progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    margin: 1rem 0;
    overflow: hidden;
}

.tour-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    width: 0%;
    transition: 1s ease-out;
}

.mentor-special-box {
    background: white;
    border: 2px dashed #8b4513;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.mentor-special-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fbbf24;
}

.unlocked-title {
    font-weight: 800;
    color: #d97706;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    display: block;
}

@keyframes heart-beat {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.2);
    }
}

/* Art Book (Collection) Styles */
.book-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    position: relative;
}

.book-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffffff;
    color: #10b981;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 800;
    border: 1px solid #10b981;
}

.art-book-content {
    max-width: 1000px !important;
    background: #fff !important;
    border: 10px solid #10b981 !important;
    border-radius: 40px !important;
    padding: 0 !important;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

.book-cover-area {
    background: #ecfdf5;
    padding: 3rem;
    text-align: center;
    border-bottom: 5px solid #10b981;
}

.book-title-main {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #065f46;
    margin-bottom: 1rem;
}

.book-author-tag {
    font-weight: 700;
    color: #10b981;
    background: white;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.book-pages-container {
    padding: 2rem;
    background: var(--bg-app);
    min-height: 500px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
}

.book-pages-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#ccc 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

.stamp-slot {
    aspect-ratio: 1/1;
    background: white;
    border: 4px dashed #d1d5db;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    transition: 0.3s;
    position: relative;
}

.stamp {
    position: absolute;
    width: 90%;
    height: 90%;
    background: white;
    border: 6px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: rotate(var(--rot));
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    z-index: 5;
    animation: stamp-apply 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes stamp-apply {
    from {
        transform: scale(2) rotate(0deg);
        opacity: 0;
        filter: blur(10px);
    }

    to {
        transform: scale(1) rotate(var(--rot));
        opacity: 1;
        filter: blur(0);
    }
}

.stamp-img {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

.stamp-caption {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 8px 0;
    color: #4b5563;
    text-transform: uppercase;
}

.stamp-seal {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 900;
    transform: rotate(-15deg);
    border: 3px double white;
}

.book-footer-actions {
    padding: 2rem;
    background: white;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.btn-export-book {
    background: #065f46;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(6, 95, 70, 0.3);
    transition: 0.3s;
}

.btn-export-book:hover {
    transform: translateY(-5px);
}

/* Galaxy Footer Stats Styling */
.galaxy-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(167, 139, 250, 0.1);
    color: white;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fde68a, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    animation: statPulse 3s infinite ease-in-out;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

@keyframes statPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
    }
}

@media (max-width: 768px) {
    .galaxy-footer {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .stat-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Dashboard & Gamification Styles */
.dashboard-container {
    padding: 1.5rem;
    text-align: center;
}

.dashboard-welcome {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.d-stat-card {
    background: var(--bg-app);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.d-stat-card:hover {
    transform: translateY(-5px);
}

.d-stat-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--primary);
}

.d-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    display: block;
    color: var(--text-dark);
}

.d-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mystery-unlock-box {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 1.5rem;
    border-radius: 20px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.mystery-unlock-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.2), transparent);
}

.timer-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2rem;
    font-weight: 800;
    margin: 10px 0;
    letter-spacing: 2px;
    color: #fde68a;
}

.streak-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fffbeb;
    color: #b45309;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 800;
    border: 2px solid #fde68a;
    margin-bottom: 1rem;
}

.streak-counter.active {
    animation: fire-pulse 1.5s infinite;
}

@keyframes fire-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(245, 158, 11, 0);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(245, 158, 11, 0);
    }
}

[data-theme="dark"] .d-stat-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .d-stat-value {
    color: white;
}

/* Mysterious Notebook Design */
.mysterious-notebook {
    background: #fefcf0;
    padding: 2.5rem 2.5rem 2.5rem 100px;
    /* Shifting content right */
    border-radius: 4px;
    position: relative;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 10px #b45309,
        -15px 0 0 -5px #92400e;
    min-height: 520px;
    border: 1px solid #d4d4d8;
    background-image:
        linear-gradient(90deg, transparent 79px, #abced4 79px, #abced4 81px, transparent 81px),
        linear-gradient(#eee .1em, transparent .1em);
    background-size: 100% 1.5rem;
    color: #4b5563;
    overflow: hidden;
}

.notebook-doodle {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
    font-size: 4rem;
    color: #000;
}

.doodle-1 {
    top: 60px;
    right: 20px;
    transform: rotate(15deg);
}

.doodle-2 {
    top: 100px;
    right: 40px;
    transform: rotate(-10deg);
    color: #b45309;
}

.coffee-stain {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(139, 94, 60, 0.05);
    border-radius: 50%;
    bottom: -30px;
    left: 20px;
    filter: blur(10px);
    border: 2px solid rgba(139, 94, 60, 0.1);
}

.notebook-spiral {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 20px 0;
}

.spiral-ring {
    width: 25px;
    height: 12px;
    background: linear-gradient(90deg, #d1d5db, #9ca3af, #d1d5db);
    border-radius: 10px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.notebook-sticker {
    position: absolute;
    background: #fdf2f8;
    padding: 5px 15px;
    transform: rotate(-10deg);
    border: 2px solid #f9a8d4;
    font-size: 0.7rem;
    font-weight: 900;
    color: #db2777;
    top: 20px;
    right: 20px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.handwritten {
    font-family: 'Quicksand', cursive;
    /* Using Quicksand as fallback, but added styling */
    transform: rotate(-1deg);
}

.tape-corner {
    position: absolute;
    width: 80px;
    height: 30px;
    background: rgba(254, 243, 199, 0.6);
    top: -10px;
    right: -20px;
    transform: rotate(35deg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Update dashboard cards for notebook look */
.mysterious-notebook .d-stat-card {
    background: rgba(255, 255, 255, 0.5);
    border: 2px dashed #cbd5e1;
    box-shadow: none;
}

[data-theme="dark"] .mysterious-notebook {
    background: #1e293b;
    color: #f1f5f9;
    background-image:
        linear-gradient(90deg, transparent 79px, #334155 79px, #334155 81px, transparent 81px),
        linear-gradient(rgba(255, 255, 255, 0.05) .1em, transparent .1em);
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5),
        0 0 0 10px #b45309,
        -15px 0 0 -5px #92400e;
}

[data-theme="dark"] .mysterious-notebook h1.dashboard-welcome {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .mysterious-notebook .handwritten {
    color: #94a3b8;
}

[data-theme="dark"] .mysterious-notebook .d-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .mysterious-notebook .d-stat-value {
    color: #fde68a;
}

[data-theme="dark"] .mysterious-notebook .d-stat-label {
    color: #94a3b8;
}

[data-theme="dark"] .mysterious-notebook .notebook-doodle {
    color: #fff;
    opacity: 0.1;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: bannerSlideUp 0.5s ease-out;
}

@keyframes bannerSlideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.cookie-btns {
    display: flex;
    gap: 10px;
}

/* Ad Slots */
.ad-slot {
    margin: 1.5rem auto;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: 0.3s;
}

.ad-placeholder {
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 2px;
}

.sidebar-ad {
    width: 100%;
    min-height: 250px;
    margin-bottom: 1rem;
}

.top-leaderboard {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
}

.bottom-ad {
    width: 100%;
    max-width: 336px;
    min-height: 280px;
}

[data-theme="dark"] .ad-slot {
    background: #1e293b;
    border-color: #334155;
}

/* Rewarded Ad Button */
.reward-ad-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white !important;
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: pulse 2s infinite;
}

.reward-ad-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.reward-ad-btn i {
    color: white !important;
}

/* Interstitial Ad Overlay */
.ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.ad-content-box {
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.ad-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}

.ad-media-placeholder {
    height: 250px;
    background: #f1f5f9;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="%23cbd5e1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line></svg>');
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    gap: 1rem;
}

.ad-media-placeholder i {
    font-size: 4rem;
    opacity: 0.5;
}

.close-ad-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    opacity: 0.5;
    cursor: not-allowed;
    transition: 0.3s;
}

.close-ad-btn.active {
    opacity: 1;
    cursor: pointer;
    background: #dc2626;
}

.close-ad-btn.active:hover {
    transform: scale(1.05);
}

/* --- Artist Market 2.0 Styles --- */
.market-container {
    padding: 1rem;
    font-family: var(--font-body);
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #fed7aa;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.market-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.market-title i {
    font-size: 2.5rem;
    color: #f59e0b;
}

.market-title h2 {
    color: #b45309;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 0;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #fcd34d;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.1);
    font-size: 1.2rem;
    font-weight: 800;
    color: #d97706;
}

.market-ad-btn {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}

.market-ad-btn:hover {
    transform: translateY(-2px);
}

/* Tabs */
.market-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #f1f5f9;
}

.tab-btn.active-tab {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Grid */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Item Card */
.market-item-card {
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Default shadow */
}

.market-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.rare-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 800;
    z-index: 2;
}

.visual-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1.2rem;
    transition: 0.3s;
    background: #fff;
    /* Ensure contrast for pixel art */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.market-item-card:hover .visual-circle {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-family: var(--font-heading);
}

.card-info p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.4;
    height: 36px;
    /* consistent height */
    overflow: hidden;
}

.price-tag {
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 8px;
    display: inline-block;
}

.price-tag.affordable {
    color: #d97706;
    background: #fffbeb;
}

/* Buttons */
.btn-market-buy {
    width: 100%;
    padding: 0.8rem;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 0 #d97706;
    transition: 0.1s;
}

.btn-market-buy:active {
    transform: translateY(4px);
    box-shadow: none;
}

.btn-market-locked {
    width: 100%;
    padding: 0.8rem;
    background: #e2e8f0;
    color: #94a3b8;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: not-allowed;
}

.btn-market-owned {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    color: #10b981;
    border: 2px solid #10b981;
    border-radius: 10px;
    font-weight: bold;
    cursor: default;
}

/* Avatar Preview in Passport */
.avatar-preview {
    width: 110px;
    height: 110px;
    margin: 10px auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.avatar-preview:hover {
    transform: scale(1.1);
}

.avatar-bg {
    width: 100%;
    height: 100%;
    background: #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.avatar-bg i#avatar-icon {
    font-size: 3.5rem;
    color: white;
}

.avatar-bg i#avatar-hat {
    position: absolute;
    top: -15px;
    font-size: 2.5rem;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Custom Painter's Beret */
.fa-beret-custom {
    position: relative;
    width: 1em;
    height: 1em;
    display: inline-block;
}

.fa-beret-custom::before {
    content: "";
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    width: 1.4em;
    height: 0.8em;
    background: #333;
    /* Dark felt color */
    border-radius: 50% 50% 40% 40%;
    box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fa-beret-custom::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 45%;
    width: 0.2em;
    height: 0.3em;
    background: #333;
    border-radius: 2px;
}

[data-theme="dark"] .fa-beret-custom::before,
[data-theme="dark"] .fa-beret-custom::after {
    background: #4a5568;
}

/* Aura Animations */
@keyframes aura-fire-glow {
    0% {
        box-shadow: 0 0 10px #f97316, 0 0 20px #ef4444;
    }

    50% {
        box-shadow: 0 0 30px #f97316, 0 0 60px #ef4444;
    }

    100% {
        box-shadow: 0 0 10px #f97316, 0 0 20px #ef4444;
    }
}

.aura-fire {
    animation: aura-fire-glow 1.5s infinite alternate;
    border: 3px solid #f97316 !important;
}

@keyframes aura-ice-glow {
    0% {
        box-shadow: 0 0 10px #60a5fa, inset 0 0 10px #dbeafe;
    }

    50% {
        box-shadow: 0 0 30px #60a5fa, inset 0 0 30px #dbeafe;
    }

    100% {
        box-shadow: 0 0 10px #60a5fa, inset 0 0 10px #dbeafe;
    }
}

.aura-ice {
    animation: aura-ice-glow 2s infinite alternate;
    border: 3px solid #60a5fa !important;
}

@keyframes aura-magic-glow {
    0% {
        filter: drop-shadow(0 0 10px #8b5cf6);
        border-radius: 50%;
    }

    50% {
        filter: drop-shadow(0 0 25px #d946ef);
        border-radius: 40%;
    }

    100% {
        filter: drop-shadow(0 0 10px #8b5cf6);
        border-radius: 50%;
    }
}

.aura-magic {
    animation: aura-magic-glow 3s infinite ease-in-out;
    border: 3px solid #8b5cf6 !important;
}

@keyframes aura-rainbow-glow {
    0% {
        box-shadow: 0 0 15px #ef4444;
    }

    20% {
        box-shadow: 0 0 15px #eab308;
    }

    40% {
        box-shadow: 0 0 15px #22c55e;
    }

    60% {
        box-shadow: 0 0 15px #3b82f6;
    }

    80% {
        box-shadow: 0 0 15px #a855f7;
    }

    100% {
        box-shadow: 0 0 15px #ef4444;
    }
}

.aura-rainbow {
    animation: aura-rainbow-glow 5s infinite;
    border: 3px solid white !important;
}

@keyframes aura-cyber-glow {
    0% {
        box-shadow: 0 0 5px #06b6d4, inset 0 0 2px #06b6d4;
    }

    10% {
        box-shadow: 0 0 20px #06b6d4, inset 0 0 5px #06b6d4;
    }

    20% {
        box-shadow: 0 0 5px #06b6d4, inset 0 0 2px #06b6d4;
    }

    100% {
        box-shadow: 0 0 5px #06b6d4, inset 0 0 2px #06b6d4;
    }
}

.aura-cyber {
    animation: aura-cyber-glow 1s infinite steps(2);
    border: 2px solid #06b6d4 !important;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Avatar Customizer Grid */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.avatar-item-btn {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.avatar-item-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .avatar-item-btn.active {
    background: rgba(8, 145, 178, 0.2);
    border-color: var(--primary);
    color: white;
}

.avatar-item-btn i {
    font-size: 2rem;
}

.avatar-item-btn span {
    font-size: 0.75rem;
    font-weight: 600;
}

.avatar-color-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.color-swatch.active {
    border-color: #000;
    transform: scale(1.2);
}

/* Time Machine Timeline */
.timeline-track-wrapper {
    position: relative;
    padding: 2rem 0;
    overflow-x: auto;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    min-width: 800px;
    padding: 0 40px;
}

.timeline-stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    width: 120px;
}

.timeline-stop.locked {
    filter: grayscale(1);
    opacity: 0.5;
}

.stop-marker {
    width: 40px;
    height: 40px;
    background: #1e293b;
    border: 3px solid #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.timeline-stop.unlocked .stop-marker {
    background: #fbbf24;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.timeline-stop:hover .stop-marker {
    transform: scale(1.2);
}

.stop-content {
    text-align: center;
}

.stop-year {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 700;
}

.stop-name {
    font-size: 0.9rem;
    color: white;
}


/* Dark mode market logo glow override */
[data-theme="dark"] .market-btn-logo-only {
    animation: market-glow-white 3s infinite ease-in-out !important;
}

@keyframes market-glow-white {
    0% {
        transform: translateY(0);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
    }

    50% {
        transform: translateY(-5px);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.9));
    }

    100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
    }
}

[data-theme="dark"] .market-btn-logo-only:hover {
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 1)) !important;
}

#load-more-btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

#load-more-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

#load-more-btn:active {
    transform: translateY(1px);
}