/* css/store.css */
#storeScreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #09090b; /* Fundo mais escuro e profundo */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.store-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #09090b;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.store-header h1 {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-balance {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.3);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
    font-weight: 800;
    font-size: 14px;
}

.store-filters {
    padding: 12px 20px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #09090b;
}

.store-tabs-row, .store-rarity-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.store-tabs-row::-webkit-scrollbar, .store-rarity-row::-webkit-scrollbar { display: none; }

.store-tab {
    background: #18181b;
    border: 1px solid #27272a;
    color: #a1a1aa;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}
.store-tab.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.store-rarity-pill {
    background: #18181b;
    border: 1px solid #27272a;
    color: #a1a1aa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}
.store-rarity-pill.active {
    background: #3f3f46;
    color: #fff;
    border-color: #52525b;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px 20px;
    padding-bottom: 100px;
}

/* ==========================================
   NOVO DESIGN DO CARD
   ========================================== */
.store-card {
    background: linear-gradient(180deg, #18181b 0%, #111113 100%);
    border-radius: 16px;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}
.store-card:active { transform: scale(0.97); }

.store-rarity-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 6px 0;
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    text-transform: uppercase;
}

.store-img-container {
    width: 110px;
    height: 110px;
    margin-top: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.8));
}

.store-card-name {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.3;
}

.store-prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.price-coins {
    color: #fbbf24;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-money {
    color: #46d369;
    font-size: 13px;
    font-weight: 700;
}

.store-buy-btn {
    width: 100%;
    background: #E50914;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(229,9,20,0.3);
}
.store-buy-btn:active { transform: scale(0.95); }
.store-buy-btn.owned {
    background: #27272a;
    color: #71717a;
    box-shadow: none;
    cursor: not-allowed;
}