* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Titan One', cursive !important;
    font-weight: 400;
}

body {
    background-color: #f0f5fa;
    color: #3a3a3a;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 2.5rem;
    margin-right: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: #3a3a3a;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #0bc4ff;
}

.nav-link.active {
    color: #0bc4ff;
    border-bottom: 3px solid #0bc4ff;
}

.coins {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-right: 1.5rem;
}

.coin-icon {
    margin-right: 0.5rem;
    background-color: #ffdd00;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.coin-amount {
    font-weight: bold;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-name {
    font-weight: 600;
}

/* Blooks Collection Styles */
.blooks-container {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.blooks-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.blooks-title {
    font-size: 2.5rem;
    color: #0bc4ff;
    margin-bottom: 1.5rem;
    font-family: 'Titan One', cursive !important;
    font-weight: 400;
}

.blooks-content {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    min-height: 75vh;
    display: flex;
    gap: 2rem;
}

.blooks-grid-container {
    flex: 1;
    overflow-y: auto;
    max-height: 75vh;
}

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

.pack-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.pack-section-title {
    font-size: 1.5rem;
    color: #0bc4ff;
    margin: 0;
}

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

.blook-details-panel {
    width: 300px;
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    height: fit-content;
    max-height: 75vh;
    overflow-y: auto;
}

.details-placeholder {
    color: #777;
    text-align: center;
    font-size: 1.2rem;
    margin-top: 3rem;
}

.selected-blook {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.selected-blook-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

.selected-blook-name {
    font-size: 1.5rem;
    color: #0bc4ff;
    margin-bottom: 0.5rem;
}

.selected-blook-info {
    width: 100%;
    margin-top: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.info-label {
    font-weight: bold;
    color: #555;
}

.info-value {
    color: #333;
}

.info-bar {
    height: 8px;
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.info-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.pack-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pack-filter {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pack-filter:hover {
    border-color: #0bc4ff;
}

.pack-filter.active {
    background-color: #0bc4ff;
    border-color: #0bc4ff;
    color: white;
}

.rarity-info-box {
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rarity-title {
    font-size: 1.2rem;
    color: #0bc4ff;
    margin-bottom: 1rem;
    text-align: center;
}

.rarity-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rarity-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.rarity-name {
    flex: 1;
}

.rarity-percent {
    font-weight: bold;
}

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

.blook-item-container {
    cursor: pointer;
    transition: transform 0.2s;
}

.blook-item-container:hover {
    transform: translateY(-5px);
}

.selected {
    outline: 3px solid #0bc4ff;
    border-radius: 12px;
}

.blooks-stats-counter {
    background-color: #0bc4ff;
    color: white;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin-right: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: 'Titan One', cursive !important;
}

/* Blooks Collection Modal Styles */
.blooks-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.blooks-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.blooks-modal {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

.blooks-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.blooks-modal-title {
    font-size: 2rem;
    color: #0bc4ff;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.blook-stack {
    position: relative;
    width: 100px;
    height: 120px;
    background-color: #f7f7f7;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.blook-stack:hover {
    transform: translateY(-5px);
}

.blook-stack.locked {
    background-color: #e0e0e0;
    opacity: 0.7;
    box-shadow: none;
}

.blook-emoji {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.blook-name {
    font-size: 0.8rem;
    text-align: center;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.blook-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0 6px;
}

.blook-counter.common { 
    background-color: #a0a0a0; 
}
.blook-counter.uncommon { 
    background-color: #4caf50; 
}
.blook-counter.rare { 
    background-color: #2196f3; 
}
.blook-counter.epic { 
    background-color: #ff0000; 
}
.blook-counter.legendary { 
    background-color: #ff9800; 
}
.blook-counter.chroma { 
    background-color: #00ffff; 
}
.blook-counter.mystical { 
    background-color: #9c27b0; 
}

.lock-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1rem;
    color: #777;
}

.blooks-collection-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-right: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.blooks-collection-button:hover {
    background-color: #e0e0e0;
}

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

/* Market Container Styles */
.market-container {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.market-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.market-title {
    font-size: 2.5rem;
    color: #0bc4ff;
    margin-bottom: 1.5rem;
    font-family: 'Titan One', cursive !important;
    font-weight: 400;
}

.market-tabs {
    display: flex;
    gap: 1rem;
    background-color: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.tab-button {
    background: none;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: #3a3a3a;
    transition: all 0.2s;
    font-family: 'Titan One', cursive !important;
}

.tab-button:hover {
    background-color: #f0f0f0;
}

.tab-button.active {
    background-color: #0bc4ff;
    color: white;
}

/* Shop Container Styles */
.shop-container {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 75vh;
    padding: 2rem;
}

.shop-sidebar {
    display: none; 
}

.shop-content {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow-y: auto;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    width: 100%;
    max-width: 1000px;
    padding: 1.5rem;
}

.market-box {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
    overflow: hidden;
    background-color: white;
}

.market-box:hover {
    transform: scale(1.05);
}

.box-emoji {
    font-size: 4rem;
    font-family: 'Titan One', cursive !important;
    font-weight: 400;
}

.box-name {
    position: absolute;
    bottom: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.inner-box {
    width: 75%;
    height: 75%;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    font-weight: 800;
    color: white;
}

.corner-blook {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.top-left {
    top: 10px;
    left: 10px;
}

.top-right {
    top: 10px;
    right: 10px;
}

.bottom-left {
    bottom: 10px;
    left: 10px;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
}

.pack-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pack-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}

.pack-image-container {
    perspective: 1000px;
    margin-bottom: 1.5rem;
}

.pack-image {
    width: 180px;
    height: 240px;
    background-color: #f0f0f0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.pack-image:hover {
    transform: rotateY(10deg);
}

.pack-image.spooky { background-color: #9966cc; }
.pack-image.space { background-color: #4d4dff; }
.pack-image.breakfast { background-color: #ff9966; }
.pack-image.medieval { background-color: #993300; }
.pack-image.wonderland { background-color: #ff3399; }
.pack-image.bot { background-color: #666666; }
.pack-image.aquatic { background-color: #33cccc; }
.pack-image.safari { background-color: #cc9933; }
.pack-image.dino { background-color: #339933; }
.pack-image.color { background-color: #ff3366; }
.pack-image.ice { background-color: #a0e6ff; }
.pack-image.outback { background-color: #dd8844; }
.pack-image.summer { background-color: #ffaa00; }

.pack-emoji {
    font-size: 5rem;
}

.pack-name {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.pack-description {
    text-align: center;
    color: #777;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.pack-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.purchase-button, .open-ten-button {
    background-color: #0bc4ff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 0.5rem;
}

.open-ten-button {
    background-color: #2a2a2a;
    margin-bottom: 0;
}

.purchase-button:hover {
    background-color: #09a5dd;
}

.open-ten-button:hover {
    background-color: #3a3a3a;
}

.pack-preview {
    width: 100%;
    max-width: 600px;
}

.pack-preview h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #3a3a3a;
}

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

.character-card {
    width: 90px;
    background-color: #f7f7f7;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    position: relative;
}

.character-rarity {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.rarity-common { background-color: #a0a0a0; }
.rarity-uncommon { background-color: #4caf50; }
.rarity-rare { background-color: #2196f3; }
.rarity-epic { background-color: #ff0000; }
.rarity-legendary { background-color: #ff9800; }

.character-image {
    width: 70px;
    height: 70px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.character-name {
    font-size: 0.75rem;
    text-align: center;
    color: #3a3a3a;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.market-box-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
}

.market-box-price .token-icon {
    background-color: #ffdd00;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Pack Opening Animation Styles */
.particle {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
}

.reveal-container {
    text-align: center;
    display: none;
}

.revealed-blook {
    width: 140px;
    height: 140px;
    background-color: white;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 4rem;
}

.revealed-info {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 10px;
    margin-top: 10px;
}

.revealed-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.revealed-rarity {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    color: white;
    font-weight: bold;
}

.close-reveal {
    background-color: #0bc4ff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: bold;
}

.close-reveal:hover {
    background-color: #09a5dd;
}

.pack-price-display {
    position: absolute;
    top: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    color: #333;
    font-family: 'Titan One', cursive !important;
}

.locked-title {
    width: 100%;
    text-align: center;
    margin: 2rem 0 1rem;
    color: #777;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    grid-column: 1 / -1;
}

/* Profile Page Styles */
.profile-container {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-title {
    font-size: 2.5rem;
    color: #0bc4ff;
    margin-bottom: 1.5rem;
    font-family: 'Titan One', cursive !important;
    font-weight: 400;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    min-height: 75vh;
}

.profile-blook-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-blook-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.profile-blook {
    width: 180px;
    height: 180px;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #f8f8f8;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-blook:hover {
    transform: scale(1.05);
}

.change-blook-button {
    background-color: #0bc4ff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Titan One', cursive !important;
}

.change-blook-button:hover {
    background-color: #09a5dd;
}

.profile-stats-section {
    margin-top: 2rem;
}

.profile-stats-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #0bc4ff;
    font-family: 'Titan One', cursive !important;
}

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

.stat-box {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0bc4ff;
    margin-bottom: 0.5rem;
    font-family: 'Titan One', cursive !important;
}

.stat-label {
    color: #777;
    font-family: 'Titan One', cursive !important;
}

/* Blook Selection Modal */
.blook-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.blook-selection-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: #0bc4ff;
    font-family: 'Titan One', cursive !important;
}

.close-modal-button {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #777;
}

.blook-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.selectable-blook {
    transition: transform 0.2s;
    cursor: pointer;
}

.selectable-blook:hover {
    transform: scale(1.1);
}

.sell-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sell-quantity {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.sell-button {
    background-color: #0bc4ff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Titan One', cursive !important;
}

.sell-button:hover {
    background-color: #09a5dd;
}

.token-icon {
    background-color: #ffdd00;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.hidden-blooks-section {
    margin-bottom: 2rem;
}

.hidden-blooks-section .pack-section-header {
    background-color: #333;
    padding: 1rem;
    border-radius: 10px;
    color: white;
}

.hidden-blooks-section .pack-icon {
    background-color: #666;
}

.pack-opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.mystery-box {
    width: 200px;
    height: 200px;
    background-color: white;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.inner-mystery-box {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: white;
    font-family: 'Titan One', cursive !important;
}

/* News Page Styles */
.news-container {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.news-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.news-title {
    font-size: 2.5rem;
    color: #0bc4ff;
    margin-bottom: 1.5rem;
    font-family: 'Titan One', cursive !important;
    font-weight: 400;
}

.news-content {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    min-height: 75vh;
}

.news-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    gap: 1.5rem;
}

.news-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.news-thumbnail-emoji {
    font-size: 2.5rem;
}

.news-text {
    flex: 1;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-date {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.news-item-title {
    font-size: 1.8rem;
    color: #0bc4ff;
    margin-bottom: 1rem;
}

.news-item-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.news-item-content p {
    margin-bottom: 1rem;
}

.news-image-container {
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
}

.astronaut-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 10px;
}

.astronaut-color {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.astronaut-color:hover {
    transform: scale(1.1);
}

.revealed-xp {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: #0bc4ff;
    font-weight: bold;
}

/* Level Progress Bar Styles */
.level-progress-container {
    margin-top: 2rem;
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.level-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.current-level {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0bc4ff;
}

.level-xp {
    color: #777;
}

.level-progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0bc4ff, #0095ff);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
}

.level-up-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(11, 196, 255, 0.9);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    z-index: 300;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInOut 3s forwards;
}

.level-up-notification h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.level-up-notification p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.level-up-reward {
    font-size: 1.5rem;
    color: #FFD700;
    font-weight: bold;
    margin: 1rem 0;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Banner Styles */
.banners-grid,
.banner-info,
.banner-rarity,
.banner-price,
.banner-purchase-button,
.purchase-overlay,
.purchase-confirmation {
    display: none;
}

/* Profile Banner Styles */
.profile-customization {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-around;
}

.profile-banner-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 300px;
}

.profile-banner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    width: 100%;
}

.profile-banner {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-banner:hover {
    transform: scale(1.03);
}

.change-banner-button {
    background-color: #0bc4ff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Titan One', cursive !important;
}

.change-banner-button:hover {
    background-color: #09a5dd;
}

/* Banner Selection Modal */
.banner-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.banner-selection-modal.active {
    opacity: 1;
    pointer-events: auto;
}

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

.selectable-banner {
    transition: transform 0.2s;
    cursor: pointer;
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.selectable-banner:hover {
    transform: scale(1.05);
}

/* Celebration Styles */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
}

.celebration-popup {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid #0bc4ff;
    animation: celebrationPulse 2s infinite;
}

.celebration-popup h2 {
    color: #0bc4ff;
    margin-bottom: 1rem;
    font-family: 'Titan One', cursive !important;
}

.celebration-popup p {
    margin-bottom: 0.75rem;
    font-family: 'Titan One', cursive !important;
    font-size: 1.1rem;
}

.celebration-button {
    background-color: #0bc4ff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    font-family: 'Titan One', cursive !important;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.celebration-button:hover {
    background-color: #09a5dd;
    transform: scale(1.05);
}

@keyframes celebrationPulse {
    0% { box-shadow: 0 0 0 0 rgba(11, 196, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(11, 196, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(11, 196, 255, 0); }
}

/* Chat Page Styles */
.chat-container {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.chat-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.chat-title {
    font-size: 2.5rem;
    color: #0bc4ff;
    margin-bottom: 1.5rem;
    font-family: 'Titan One', cursive !important;
    font-weight: 400;
}

.chat-content {
    display: flex;
    gap: 2rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    height: 75vh;
}

.chat-sidebar {
    width: 250px;
    border-right: 1px solid #eee;
    padding-right: 1.5rem;
}

.chat-sidebar h2 {
    color: #0bc4ff;
    margin-bottom: 1rem;
    font-family: 'Titan One', cursive !important;
    font-size: 1.5rem;
}

.online-users {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    background-color: #f8f8f8;
    transition: background-color 0.2s;
    cursor: pointer;
}

.online-user:hover {
    background-color: #f0f0f0;
}

.user-blook {
    width: 40px;
    height: 40px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chat-messages-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-message {
    display: flex;
    gap: 1rem;
    max-width: 80%;
}

.chat-message.own-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-blook {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background-color: #f0f0f0;
}

.message-content {
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 15px;
    position: relative;
}

.own-message .message-content {
    background-color: #0bc4ff;
    color: white;
}

.message-sender {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.own-message .message-sender {
    color: white;
}

.message-text {
    word-break: break-word;
}

.message-time {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.5rem;
    text-align: right;
}

.own-message .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.chat-input-container {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.chat-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: 'Nunito', sans-serif;
}

.chat-input:focus {
    outline: none;
    border-color: #0bc4ff;
}

.chat-send-button {
    background-color: #0bc4ff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Titan One', cursive !important;
}

.chat-send-button:hover {
    background-color: #09a5dd;
}

/* Settings Page Styles */
.settings-container {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.settings-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.settings-title {
    font-size: 2.5rem;
    color: #0bc4ff;
    margin-bottom: 1.5rem;
    font-family: 'Titan One', cursive !important;
    font-weight: 400;
}

.settings-content {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    min-height: 75vh;
}

.settings-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

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

.settings-section h2 {
    color: #0bc4ff;
    margin-bottom: 1.5rem;
    font-family: 'Titan One', cursive !important;
}

.settings-option {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 10px;
}

.settings-option h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #333;
}

.settings-option p {
    margin-bottom: 1rem;
    color: #666;
}

.settings-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: 'Titan One', cursive !important;
}

.settings-button {
    background-color: #0bc4ff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Titan One', cursive !important;
}

.settings-button:hover {
    background-color: #09a5dd;
}

.danger-zone {
    border: 1px solid #ff6b6b;
    border-radius: 10px;
    padding: 1.5rem;
}

.danger-zone h2 {
    color: #ff6b6b;
}

.danger-button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Titan One', cursive !important;
}

.danger-button:hover {
    background-color: #ff5252;
}

.input-with-button {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.input-with-button .settings-input {
    margin-bottom: 0;
    flex: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 300;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: #0bc4ff;
    margin: 0;
}

.modal-body {
    margin-bottom: 1rem;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Titan One', cursive !important;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0bc4ff;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.notification.active {
    opacity: 1;
}

/* Leaderboard Styles */
.leaderboard-container {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.leaderboard-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.leaderboard-title {
    font-size: 2.5rem;
    color: #0bc4ff;
    margin-bottom: 1.5rem;
    font-family: 'Titan One', cursive !important;
    font-weight: 400;
}

.leaderboard-content {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.leaderboard-top {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 1rem;
    gap: 2rem;
    margin-bottom: 1rem;
}

.leaderboard-top-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    transition: transform 0.2s;
}

.leaderboard-top-item:hover {
    transform: translateY(-5px);
}

.first-place {
    order: 2;
}

.second-place {
    order: 1;
}

.third-place {
    order: 3;
}

.top-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.first-place .top-rank {
    background-color: gold;
    color: #333;
    font-size: 2rem;
}

.second-place .top-rank {
    background-color: silver;
    color: #333;
}

.third-place .top-rank {
    background-color: #cd7f32; /* bronze */
    color: white;
}

.top-avatar {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.first-place .top-avatar {
    width: 120px;
    height: 120px;
    font-size: 3.5rem;
    background-color: #fffaf0;
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.3);
    border: 3px solid gold;
}

.top-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
    text-align: center;
}

.top-tokens {
    color: #0bc4ff;
    font-weight: bold;
}

.first-place .top-tokens {
    font-size: 1.2rem;
}

.leaderboard-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.leaderboard-row:nth-child(even) {
    background-color: #f9f9f9;
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.header-row {
    background-color: #f0f0f0;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
}

.user-row {
    background-color: #e6f7ff !important;
    font-weight: bold;
}

.rank-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

.tokens-cell {
    font-weight: bold;
    color: #0bc4ff;
    text-align: right;
}

.your-ranking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #f8f8f8;
    border-radius: 10px;
    margin-top: 1rem;
}

.your-rank-label {
    font-weight: bold;
}

.your-rank-value {
    color: #0bc4ff;
    font-weight: bold;
    font-size: 1.2rem;
}