.shop-tabs {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    border-bottom: 3px solid var(--primary);
}

.shop-tab {
    background: none;
    border: none;
    color: var(--text);
    padding: 1rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.shop-tab.active {
    background: rgba(129, 140, 248, 0.1);
    border-radius: 8px 8px 0 0;
}

.shop-tab-content {
    display: none;
}

.shop-tab-content.active {
    display: block;
}

.vertical-shop {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

.vertical-shop::-webkit-scrollbar {
    width: 4px;
}

.vertical-shop::-webkit-scrollbar-track {
    background: transparent;
}

.vertical-shop::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 20px;
}

.shop-item, .shop-item6 {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 1rem;
    border: 1px solid #334155;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
}

.shop-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.item-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.item-header img {
    width: 50px;
    height: 50px;
}

.item-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

.item-price {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
}

.item-level {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* ===== Title & Badge Styles ===== */
.title-badge, .title-badge-shop {
    background: linear-gradient(45deg, #38bdf8, #818cf8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    font-weight: 500;
}

.titles-container {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.titles-container::-webkit-scrollbar {
    width: 6px;
}

.titles-container::-webkit-scrollbar-track {
    background: transparent;
}

.titles-container::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 20px;
}

.title-card {
    background: linear-gradient(145deg, rgba(46, 52, 64, 0.8), rgba(30, 41, 59, 0.8));
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.title-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.05), transparent);
}

.title-card.unlocked {
    border-color: var(--primary);
    box-shadow: 0 4px 24px rgba(129, 140, 248, 0.2);
}

.title-card.selected {
    background: linear-gradient(45deg, #2d3a5a, #1e293b);
    border-color: #38bdf8;
}

.title-card.locked {
    filter: grayscale(1);
    opacity: 0.5;
    display: none;
    cursor: not-allowed;
}

.title-card:hover {
    transform: translateY(-2px);
}

.title-name {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #fff, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.title-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.title-description {
    color: #94a3b8;
    font-size: 0.9rem;
}

.selected-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #38bdf8;
    color: #0f172a;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

.selected-title {
    background: linear-gradient(45deg, #38bdf8, #818cf8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* ===== Skins Container ===== */
.skins-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.skin-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 2px solid #334155;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.skin-card.equipped {
    border-color: #38bdf8;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.9));
}

.skin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.skin-card:active {
    transform: translateY(0);
}

.equipped-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #38bdf8;
    color: #0f172a;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.skin-preview {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.skin-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skin-preview .material-symbols-rounded {
    font-size: 3rem;
    color: #ffd700;
}

.skin-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.skin-status {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.skin-status.equipped {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    font-weight: 500;
}

.skin-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: 500;
}

.skin-info {
    padding: 0 1rem;
}

/* ===== Menu Banner ===== */
.menu-banner {
    position: fixed;
    top: 70px;
    left: 20px;
    background: var(--surface);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
    width: 80px;
}

.menu-banner.open {
    display: flex;
    animation: slideIn 0.3s ease;
}

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

.menu-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* ===== Account Modal ===== */
.account-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    z-index: 2000;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.account-modal.open {
    display: block;
}

.account-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.account-field {
    /* Styling for account fields */
}

.account-field label {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    display: block;
}

.account-id {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 1rem;
    word-break: break-all;
}

.account-name-input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--primary);
    border-radius: 0.5rem;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.name-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.edit-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.edit-btn:hover {
    transform: scale(1.1);
}

/* ===== Leaderboard ===== */
.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.leaderboard-rank {
    width: 40px;
    text-align: center;
    font-weight: bold;
    color: var(--primary);
}

.leaderboard-name {
    flex-grow: 1;
    margin: 0 1rem;
}

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

.leaderboard-crystals {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
}

/* ===== Events ===== */
.event-content {
    display: grid;
    gap: 2rem;
    padding: 1rem;
}

.event-description {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
}

.event-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #38bdf8;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.reward-item {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.reward-item img {
    width: 40px;
    height: 40px;
}

/* ===== Floating Message ===== */
.floating-message {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    animation: floatUp 1.5s ease-out;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-width: 80%;
    text-align: center;
    pointer-events: none;
}

@keyframes floatUp {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    20% { opacity: 1; transform: translate(-50%, 0); }
    80% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

/* ===== Control Options ===== */
.control-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.control-option {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 2px solid var(--primary);
    padding: 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(145deg, rgba(30,41,59,0.8), rgba(15,23,42,0.8));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-option:hover {
    background: rgba(129, 140, 248, 0.1);
    transform: translateY(-5px);
}

.control-option span:first-child {
    font-size: 2.5rem;
    color: var(--primary);
}

.control-option span:last-child {
    font-size: 1.1rem;
    font-weight: 500;
}

.control-option[disabled] {
    filter: grayscale(0.8);
    border-color: #666;
}

.control-option[disabled]:hover {
    transform: none;
    background: rgba(255,255,255,0.05);
}

.control-option.unlocked {
    position: relative;
    overflow: hidden;
}

.control-option.unlocked::after {
    content: 'UNLOCKED';
    position: absolute;
    top: 5px;
    right: -25px;
    background: #76ef51;
    color: black;
    padding: 2px 10px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: bold;
}

.requirement-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #38bdf8;
}

.disabled-info {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 8px;
    text-align: center;
}

.text-shop-2 {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.shop-item-info {
    text-align: center;
    padding: 1rem;
}

/* ===== Rocket Effects ===== */
.rocket-indicator {
    position: fixed;
    top: 70px;
    right: 10px;
    background: rgba(30, 41, 59, 0.9);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.rocket-counter {
    display: flex;
    gap: 5px;
}

.rocket-dot {
    width: 12px;
    height: 12px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.3;
}

.rocket-dot.active {
    opacity: 1;
}

.rocket-timer {
    font-family: 'Space Grotesk', monospace;
    background: linear-gradient(45deg, #38bdf8, #818cf8);
    padding: 4px 8px;
    border-radius: 6px;
}

.rocket-animation {
    position: fixed;
    bottom: -100px;
    left: 50%;
    width: 150px;
    height: 150px;
    animation: rocketLaunch 5s linear;
    z-index: 9999;
}

@keyframes rocketLaunch {
    0% { transform: translate(-50%, 0) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -100vh) scale(3); opacity: 0; }
}

.rocket-active-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 170, 0, 0.4) 30%, rgba(255, 140, 0, 0.2) 70%, rgba(255, 100, 0, 0.1) 100%);
    z-index: 9998;
    animation: goldenPulse 2s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: overlay;
}

@keyframes goldenPulse {
    0%, 100% { opacity: 0.3; filter: hue-rotate(0deg); }
    50% { opacity: 0.6; filter: hue-rotate(20deg); }
}

.flying-rocket {
    position: fixed;
    font-size: 4rem;
    z-index: 9999;
    pointer-events: none;
    animation: rocketLaunchSequence 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    transform-origin: center center;
}

.rocket-trail {
    position: absolute;
    width: 8px;
    height: 60px;
    background: linear-gradient(to top, transparent 0%, #ff8c00 30%, #ffd700 70%, #ffffff 100%);
    border-radius: 50% 50% 4px 4px;
    filter: blur(3px);
    opacity: 0.8;
    animation: trailFade 1s ease-out infinite;
}

.rocket-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    filter: blur(1px);
    animation: sparkFloat 1.5s ease-out forwards;
}

@keyframes rocketLaunchSequence {
    0% { transform: translate(var(--startX), var(--startY)) scale(0.8) rotate(0deg); opacity: 0; }
    10% { transform: translate(var(--startX), var(--startY)) scale(1) rotate(-5deg); opacity: 1; }
    30% { transform: translate(calc(var(--startX) + 50px), calc(var(--startY) - 100px)) scale(1.1) rotate(-10deg); }
    50% { transform: translate(calc(var(--startX) + 100px), calc(var(--startY) - 300px)) scale(1.2) rotate(-15deg); }
    70% { transform: translate(calc(var(--startX) + 150px), calc(var(--startY) - 600px)) scale(1.3) rotate(-20deg); }
    90% { transform: translate(calc(var(--startX) + 200px), calc(var(--startY) - 900px)) scale(1.4) rotate(-25deg); opacity: 1; }
    100% { transform: translate(calc(var(--startX) + 250px), calc(var(--startY) - 1200px)) scale(0.5) rotate(-30deg); opacity: 0; }
}

@keyframes trailFade {
    0% { transform: scaleY(0.8) translateY(10px); opacity: 0.6; }
    50% { transform: scaleY(1.2) translateY(-5px); opacity: 1; }
    100% { transform: scaleY(0.9) translateY(-20px); opacity: 0.3; }
}

@keyframes sparkFloat {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    50% { transform: translate(var(--sparkX), var(--sparkY)) scale(1.5); opacity: 0.8; }
    100% { transform: translate(calc(var(--sparkX) * 2), calc(var(--sparkY) * 2)) scale(0); opacity: 0; }
}

@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.rocket-shake {
    animation: screenShake 0.5s ease-in-out;
}

.sound-wave {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    animation: soundPulse 1s ease-out forwards;
}

@keyframes soundPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

/* ===== Confirm Modal ===== */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.confirm-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    text-align: center;
}

.confirm-modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.confirm-modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.confirm-modal-text {
    color: #aaa;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.confirm-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.confirm-btn-yes {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.confirm-btn-yes:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

.confirm-btn-no {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
    color: white;
}

.confirm-btn-no:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(244, 67, 54, 0.4);
}

/* ===== Welcome & Bonus Modals ===== */
.welcome-content {
    text-align: center;
    padding: 1rem;
}

.bonus-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.bonus-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

