/* Store Page Specific Styles */

.store-content {
    padding: 60px 0;
    min-height: calc(100vh - 300px);
}

.store-title {
    font-size: 80px;
    font-weight: bold;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 3px;
    line-height: 1.1;
}

.store-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 50px;
}

/* Balance Section */
.balance-section {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.balance-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px 35px;
    border: 1px solid rgba(239, 20, 45, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 600px;
    width: 100%;
}

.balance-icon {
    width: 60px;
    height: 60px;
    background: rgba(239, 20, 45, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--yellow-primary);
}

.balance-icon i {
    font-size: 28px;
    color: var(--yellow-primary);
}

.balance-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.balance-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-amount {
    font-size: 32px;
    font-weight: bold;
    color: var(--yellow-primary);
}

.btn-add-balance {
    background: var(--yellow-primary);
    color: var(--bg-dark);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(239, 20, 45, 0.3);
}

.btn-add-balance:hover {
    background: var(--yellow-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 20, 45, 0.4);
}



/* Modal de recarga de saldo */
.balance-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(4px);
    z-index: 900;
}

.balance-modal-overlay.active {
    display: block;
}

.balance-modal {
    position: fixed;
    inset: 0;
    z-index: 910;
    display: grid;
    place-items: center;
    padding: 22px;
    overflow-y: auto;
}

.balance-modal-card {
    width: min(720px, 100%);
    background: linear-gradient(180deg, rgba(31,31,31,.98), rgba(12,12,12,.98));
    border: 1px solid rgba(239, 20, 45, .32);
    border-radius: 24px;
    box-shadow: 0 24px 90px rgba(0, 0, 0, .65), 0 0 30px rgba(239, 20, 45, .08);
    padding: 28px;
}

.balance-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.balance-modal-kicker {
    display: inline-flex;
    color: var(--yellow-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.balance-modal-header h2 {
    color: var(--text-white);
    font-size: 30px;
    margin: 0 0 8px;
}

.balance-modal-header p,
.balance-pix-box p {
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.balance-modal-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.balance-form label,
.balance-pix-box label {
    display: block;
    color: var(--text-white);
    font-size: 13px;
    font-weight: 800;
    margin: 14px 0 8px;
}

.balance-form input,
.balance-pix-box textarea {
    width: 100%;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(239, 20, 45, .25);
    border-radius: 12px;
    color: var(--text-white);
    padding: 13px 14px;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}

.balance-form input:focus,
.balance-pix-box textarea:focus {
    outline: none;
    border-color: var(--yellow-primary);
    box-shadow: 0 0 0 4px rgba(239, 20, 45, .10);
}

.balance-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.balance-amount-option {
    border: 1px solid rgba(239, 20, 45, .24);
    background: rgba(255, 255, 255, .055);
    color: var(--text-white);
    border-radius: 14px;
    padding: 14px 10px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s, border-color .2s, background .2s;
}

.balance-amount-option small {
    color: var(--text-gray);
    font-weight: 700;
}

.balance-amount-option:hover,
.balance-amount-option.active {
    transform: translateY(-2px);
    border-color: var(--yellow-primary);
    background: rgba(239, 20, 45, .14);
    box-shadow: 0 10px 24px rgba(0,0,0,.26);
}

.balance-two-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.balance-message {
    margin-top: 14px;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 800;
    font-size: 14px;
}

.balance-message.info,
.balance-message.pending {
    color: #fde68a;
    background: rgba(245, 158, 11, .12);
    border: 1px solid rgba(245, 158, 11, .28);
}

.balance-message.success {
    color: #86efac;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .28);
}

.balance-message.error {
    color: #fca5a5;
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .28);
}

.balance-generate-button,
.balance-pix-actions button,
.balance-pix-actions a,
.balance-check-button {
    border: none;
    border-radius: 13px;
    padding: 13px 16px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.balance-generate-button {
    width: 100%;
    margin-top: 18px;
    background: var(--yellow-primary);
    color: var(--bg-dark);
    box-shadow: 0 8px 24px rgba(239, 20, 45, .25);
}

.balance-generate-button:disabled,
.balance-check-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.balance-pix-box {
    margin-top: 22px;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 22px;
}

.balance-pix-box h3 {
    color: var(--yellow-primary);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-pix-qr {
    width: min(280px, 100%);
    margin: 18px auto;
    background: #fff;
    border-radius: 18px;
    padding: 14px;
}

.balance-pix-qr img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.balance-pix-box textarea {
    min-height: 105px;
    resize: vertical;
    font-family: monospace;
    font-size: 13px;
}

.balance-pix-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.balance-pix-actions button,
.balance-check-button {
    background: var(--yellow-primary);
    color: var(--bg-dark);
}

.balance-pix-actions a {
    background: rgba(255,255,255,.08);
    color: var(--text-white);
    border: 1px solid rgba(255,255,255,.12);
}

.balance-pix-status {
    margin-top: 14px;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 800;
}

.balance-pix-status.pending {
    color: #fde68a;
    background: rgba(245, 158, 11, .12);
}

.balance-pix-status.success {
    color: #86efac;
    background: rgba(34, 197, 94, .12);
}

.balance-pix-status.error {
    color: #fca5a5;
    background: rgba(239, 68, 68, .12);
}

.balance-check-button {
    width: 100%;
    margin-top: 12px;
}

body.balance-modal-open {
    overflow: hidden;
}

body.balance-modal-open .floating-cart-button {
    pointer-events: none;
    opacity: .25;
}


/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--bg-card-dark);
    border: 2px solid rgba(239, 20, 45, 0.3);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    border-color: var(--yellow-primary);
    background: rgba(239, 20, 45, 0.1);
    color: var(--yellow-primary);
}

.category-btn i {
    font-size: 16px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(239, 20, 45, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card:hover {
    border-color: rgba(239, 20, 45, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(239, 20, 45, 0.2);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.product-badge.premium {
    background: var(--yellow-primary);
    color: var(--bg-dark);
}

.product-badge.new {
    background: #00ff00;
    color: var(--bg-dark);
}

.product-badge.popular {
    background: #ff4444;
    color: var(--text-white);
}

.product-badge.vip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-white);
}

.product-badge.legendary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--text-white);
    animation: pulse-glow 2s ease-in-out infinite;
}

.product-badge.starter {
    background: #4facfe;
    color: var(--text-white);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(245, 87, 108, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(245, 87, 108, 0.8);
    }
}

.product-image {
    width: 100%;
    height: 180px;
    background: var(--bg-card-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid rgba(239, 20, 45, 0.2);
    transition: all 0.3s;
}

.product-card:hover .product-image {
    border-color: var(--yellow-primary);
    background: rgba(239, 20, 45, 0.05);
}

.product-image i {
    font-size: 64px;
    color: var(--yellow-primary);
    transition: all 0.3s;
}

.product-card:hover .product-image i {
    transform: scale(1.1);
}

.product-image.legendary-glow {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.1) 0%, rgba(240, 147, 251, 0.1) 100%);
    border-color: rgba(245, 87, 108, 0.5);
    animation: legendary-pulse 3s ease-in-out infinite;
}

@keyframes legendary-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(245, 87, 108, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(245, 87, 108, 0.6);
    }
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    color: var(--text-white);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-description {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    background: rgba(239, 20, 45, 0.1);
    color: var(--yellow-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.feature-tag i {
    font-size: 10px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(239, 20, 45, 0.2);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-amount {
    font-size: 24px;
    font-weight: bold;
    color: var(--yellow-primary);
}

.price-period {
    font-size: 12px;
    color: var(--text-gray);
}


/* Preço especial exibido somente quando existe indicação válida pelo link da staff */
.referral-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.08;
}

.referral-price-from {
    color: #8f8f8f;
    font-size: 12px;
    font-weight: 800;
}

.referral-price-from s {
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(255,255,255,.48);
}

.referral-price-to {
    color: #cfcfcf;
    font-size: 12px;
    font-weight: 800;
}

.referral-price-to strong {
    color: var(--yellow-primary);
    font-size: 24px;
    font-weight: 950;
    margin-left: 3px;
}

.referral-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    padding: 5px 7px;
    border-radius: 7px;
    border: 1px solid rgba(60, 210, 120, .32);
    background: rgba(60, 210, 120, .09);
    color: #78e8a4;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .2px;
    white-space: nowrap;
}

.cart-referral-old {
    color: #8f8f8f;
    text-decoration: line-through;
    margin-right: 4px;
}

.cart-referral-new {
    color: #78e8a4;
    font-weight: 900;
}

.btn-buy {
    background: var(--yellow-primary);
    color: var(--bg-dark);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(239, 20, 45, 0.3);
    white-space: nowrap;
}

.btn-buy:hover {
    background: var(--yellow-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 20, 45, 0.4);
}

.btn-buy i {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .store-title {
        font-size: 48px;
    }

    .store-subtitle {
        font-size: 16px;
    }

    .balance-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .balance-info {
        align-items: center;
    }


    .balance-amount-grid,
    .balance-two-fields {
        grid-template-columns: 1fr;
    }

    .balance-modal-card {
        padding: 22px;
    }

    .balance-modal-header h2 {
        font-size: 24px;
    }

    .category-filters {
        gap: 10px;
    }

    .category-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }

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

    .store-content {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .store-title {
        font-size: 36px;
    }

    .product-card {
        padding: 20px;
    }

    .product-image {
        height: 150px;
    }

    .product-image i {
        font-size: 48px;
    }
}



/* Loja dinâmica Apucarana */
.store-search {
    max-width: 640px;
    margin: 0 auto 25px;
    background: var(--bg-card-dark);
    border: 2px solid rgba(239, 20, 45, 0.25);
    border-radius: 12px;
    padding: 0 18px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-search i {
    color: var(--yellow-primary);
}

.store-search input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-size: 15px;
}

.store-search input::placeholder {
    color: var(--text-gray);
}

.store-count {
    text-align: center;
    color: var(--text-gray);
    margin: -18px 0 26px;
    font-size: 14px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 8px;
}

.product-fallback-icon {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.empty-products {
    max-width: 640px;
    margin: 30px auto 0;
    background: var(--bg-card);
    border: 1px solid rgba(239, 20, 45, 0.2);
    border-radius: 15px;
    padding: 40px 25px;
    text-align: center;
    color: var(--text-gray);
}

.empty-products i {
    font-size: 52px;
    color: var(--yellow-primary);
    margin-bottom: 15px;
}

.empty-products h3 {
    color: var(--text-white);
    margin-bottom: 8px;
}


/* Descrições completas dos produtos */
.product-description-list {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 15px 0;
    padding-left: 18px;
    flex: 1;
}

.product-description-list li {
    margin-bottom: 6px;
}

.product-description-list li::marker {
    color: var(--yellow-primary);
}

.product-card .product-description,
.product-card .product-description-list {
    max-height: none;
    overflow: visible;
    white-space: normal;
}

/* Carrinho da loja */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.btn-add-cart,
.btn-buy-now {
    border: none;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .25s ease;
    white-space: nowrap;
}

.btn-add-cart {
    background: var(--yellow-primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(239, 20, 45, .28);
}

.btn-buy-now {
    background: rgba(255,255,255,.08);
    color: var(--text-white);
    border: 1px solid rgba(239, 20, 45, .3);
}

.btn-add-cart:hover,
.btn-buy-now:hover {
    transform: translateY(-2px);
}

.floating-cart-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 250;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: none;
    background: var(--yellow-primary);
    color: var(--bg-dark);
    box-shadow: 0 10px 35px rgba(239, 20, 45, .38);
    font-size: 22px;
    cursor: pointer;
}

.floating-cart-button span {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    border: 2px solid #111;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.62);
    z-index: 260;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(430px, 94vw);
    height: 100vh;
    z-index: 270;
    background: #111;
    border-left: 1px solid rgba(239, 20, 45, .25);
    box-shadow: -20px 0 60px rgba(0,0,0,.55);
    transform: translateX(105%);
    transition: transform .28s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-header {
    padding: 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.cart-header h2 {
    color: var(--yellow-primary);
    margin: 0 0 4px;
    font-size: 28px;
}

.cart-header p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.4;
}

.cart-close-button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
}

.cart-empty {
    margin: 18px;
    padding: 30px 18px;
    border-radius: 16px;
    border: 1px dashed rgba(239, 20, 45, .28);
    text-align: center;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-empty[hidden] {
    display: none;
}

.cart-empty i {
    color: var(--yellow-primary);
    font-size: 34px;
}

.cart-empty strong {
    color: #fff;
}

.cart-items-list {
    padding: 18px;
    overflow: auto;
    flex: 1;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.cart-item-image {
    width: 72px;
    height: 58px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info strong {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 3px;
}

.cart-item-info span,
.cart-item-info small {
    display: block;
    color: var(--text-gray);
    font-size: 12px;
}

.cart-item-total {
    color: var(--yellow-primary);
    font-weight: 900;
    font-size: 13px;
    white-space: nowrap;
}

.cart-qty-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: rgba(239, 20, 45,.16);
    color: var(--yellow-primary);
    font-weight: 900;
    cursor: pointer;
}

.cart-remove-btn {
    border: none;
    background: transparent;
    color: #f87171;
    cursor: pointer;
    font-size: 12px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.22);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: var(--text-gray);
}

.cart-total-row strong {
    color: var(--yellow-primary);
    font-size: 24px;
}

.cart-checkout-button,
.cart-clear-button {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 900;
    cursor: pointer;
}

.cart-checkout-button {
    background: var(--yellow-primary);
    color: var(--bg-dark);
    margin-bottom: 10px;
}

.cart-checkout-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.cart-clear-button {
    background: rgba(255,255,255,.07);
    color: #fff;
    border: 1px solid rgba(255,255,255,.1);
}

.cart-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 120px);
    z-index: 300;
    background: rgba(20,20,20,.96);
    border: 1px solid rgba(239, 20, 45,.35);
    color: #fff;
    border-radius: 14px;
    padding: 13px 18px;
    font-weight: 800;
    box-shadow: 0 12px 35px rgba(0,0,0,.45);
    transition: transform .25s ease;
}

.cart-toast.show {
    transform: translate(-50%, 0);
}

@media (max-width: 768px) {
    .product-actions {
        width: 100%;
    }

    .cart-item {
        grid-template-columns: 58px 1fr;
    }

    .cart-item-total {
        grid-column: 2;
    }

    .floating-cart-button {
        right: 16px;
        bottom: 16px;
    }
}

/* Estoque das casas */
.product-card.is-sold-out {
    opacity: .72;
    border-color: rgba(248, 113, 113, .35);
}

.product-card.is-sold-out .product-image {
    filter: grayscale(1);
}

.stock-tag {
    background: rgba(34, 197, 94, .12);
    color: #86efac;
}

.stock-tag.sold-out {
    background: rgba(239, 68, 68, .12);
    color: #fca5a5;
}

.btn-add-cart:disabled,
.btn-buy-now:disabled,
.cart-qty-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}


/* =========================================================
   MODAL ADICIONAR SALDO - CSS FINAL
   Cole este bloco no final do public/assets/css/store.css
   ========================================================= */
.balance-modal-overlay[hidden],
.balance-modal[hidden],
.balance-pix-box[hidden],
.balance-message[hidden],
.balance-pix-qr[hidden],
#openBalancePaymentLink[hidden] {
    display: none !important;
}

.balance-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.78) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 99980 !important;
}

.balance-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99990 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 22px !important;
    overflow-y: auto !important;
    font-family: inherit !important;
}

.balance-modal * {
    box-sizing: border-box !important;
}

.balance-modal-card {
    width: min(760px, 100%) !important;
    max-height: calc(100vh - 44px) !important;
    overflow-y: auto !important;
    background: radial-gradient(circle at top left, rgba(239, 20, 45, 0.14), transparent 34%), linear-gradient(180deg, #1a1a1a 0%, #090909 100%) !important;
    border: 1px solid rgba(239, 20, 45, 0.38) !important;
    border-radius: 24px !important;
    padding: 28px !important;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.75), 0 0 35px rgba(239, 20, 45, 0.10) !important;
    color: #fff !important;
}

.balance-modal-card::-webkit-scrollbar {
    width: 8px;
}

.balance-modal-card::-webkit-scrollbar-thumb {
    background: rgba(239, 20, 45, 0.35);
    border-radius: 999px;
}

.balance-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 18px !important;
    margin-bottom: 22px !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.balance-modal-kicker {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #ef142d !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 1.4px !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
}

.balance-modal-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ef142d;
    box-shadow: 0 0 14px rgba(239, 20, 45, 0.8);
}

.balance-modal-header h2 {
    margin: 0 0 8px !important;
    color: #ffffff !important;
    font-size: 30px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
}

.balance-modal-header p,
.balance-pix-box p {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.balance-modal-close {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.balance-modal-close:hover {
    background: rgba(239, 20, 45, 0.16) !important;
    border-color: rgba(239, 20, 45, 0.45) !important;
    color: #ef142d !important;
}

.balance-form {
    display: block !important;
}

.balance-form label,
.balance-pix-box label {
    display: block !important;
    margin: 14px 0 8px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.balance-form input,
.balance-pix-box textarea {
    width: 100% !important;
    min-height: 46px !important;
    background: rgba(0, 0, 0, 0.34) !important;
    border: 1px solid rgba(239, 20, 45, 0.26) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    padding: 13px 14px !important;
    font-size: 15px !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.balance-form input::placeholder,
.balance-pix-box textarea::placeholder {
    color: rgba(255, 255, 255, 0.38) !important;
}

.balance-form input:focus,
.balance-pix-box textarea:focus {
    border-color: #ef142d !important;
    background: rgba(0, 0, 0, 0.48) !important;
    box-shadow: 0 0 0 4px rgba(239, 20, 45, 0.10) !important;
}

.balance-amount-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.balance-amount-option {
    min-height: 74px !important;
    border: 1px solid rgba(239, 20, 45, 0.26) !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: #ffffff !important;
    border-radius: 16px !important;
    padding: 13px 10px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    text-align: center !important;
    line-height: 1.15 !important;
    transition: all 0.2s ease !important;
}

.balance-amount-option small {
    display: inline-block !important;
    margin-top: 5px !important;
    color: rgba(255, 255, 255, 0.58) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.balance-amount-option:hover,
.balance-amount-option.active {
    transform: translateY(-2px) !important;
    background: linear-gradient(180deg, rgba(239, 20, 45, 0.22), rgba(239, 20, 45, 0.09)) !important;
    border-color: #ef142d !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32), 0 0 18px rgba(239, 20, 45, 0.10) !important;
}

.balance-two-fields {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.balance-message {
    margin-top: 14px !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.balance-message.info,
.balance-message.pending {
    color: #fde68a !important;
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.28) !important;
}

.balance-message.success {
    color: #86efac !important;
    background: rgba(34, 197, 94, 0.12) !important;
    border: 1px solid rgba(34, 197, 94, 0.28) !important;
}

.balance-message.error {
    color: #fca5a5 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
}

.balance-generate-button,
.balance-pix-actions button,
.balance-pix-actions a,
.balance-check-button {
    min-height: 48px !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 13px 16px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.balance-generate-button {
    width: 100% !important;
    margin-top: 18px !important;
    background: #ef142d !important;
    color: #080808 !important;
    box-shadow: 0 10px 26px rgba(239, 20, 45, 0.28) !important;
}

.balance-generate-button:hover,
.balance-pix-actions button:hover,
.balance-check-button:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.06) !important;
}

.balance-generate-button:disabled,
.balance-check-button:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.balance-pix-box {
    margin-top: 24px !important;
    padding-top: 22px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
}

.balance-pix-box h3 {
    margin: 0 0 8px !important;
    color: #ef142d !important;
    font-size: 22px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.balance-pix-qr {
    width: min(280px, 100%) !important;
    margin: 18px auto !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 14px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
}

.balance-pix-qr img {
    display: block !important;
    width: 100% !important;
    border-radius: 12px !important;
}

.balance-pix-box textarea {
    min-height: 105px !important;
    resize: vertical !important;
    font-family: Consolas, Monaco, monospace !important;
    font-size: 13px !important;
}

.balance-pix-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 12px !important;
}

.balance-pix-actions button,
.balance-check-button {
    background: #ef142d !important;
    color: #080808 !important;
}

.balance-pix-actions a {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
}

.balance-pix-status {
    margin-top: 14px !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.balance-pix-status.pending {
    color: #fde68a !important;
    background: rgba(245, 158, 11, 0.12) !important;
}

.balance-pix-status.success {
    color: #86efac !important;
    background: rgba(34, 197, 94, 0.12) !important;
}

.balance-pix-status.error {
    color: #fca5a5 !important;
    background: rgba(239, 68, 68, 0.12) !important;
}

.balance-check-button {
    width: 100% !important;
    margin-top: 12px !important;
}

body.balance-modal-open {
    overflow: hidden !important;
}

body.balance-modal-open .floating-cart-button {
    opacity: 0.25 !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    .balance-modal {
        padding: 14px !important;
        align-items: flex-start !important;
    }

    .balance-modal-card {
        max-height: calc(100vh - 28px) !important;
        padding: 20px !important;
        border-radius: 20px !important;
    }

    .balance-modal-header {
        gap: 12px !important;
    }

    .balance-modal-header h2 {
        font-size: 24px !important;
    }

    .balance-amount-grid,
    .balance-two-fields {
        grid-template-columns: 1fr !important;
    }

    .balance-pix-actions button,
    .balance-pix-actions a {
        width: 100% !important;
    }
}

/* Conta Discord, saldo por conta e histórico */
.btn-discord.is-logged {
    gap: 8px;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-right {
    position: relative;
}

.discord-account-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(340px, calc(100vw - 28px));
    z-index: 1200;
    display: none;
}

.discord-account-menu.open {
    display: block;
}

.discord-account-card {
    background: linear-gradient(180deg, rgba(24,24,24,.98), rgba(10,10,10,.98));
    border: 1px solid rgba(239, 20, 45, .35);
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(0,0,0,.55), 0 0 25px rgba(239, 20, 45,.08);
    padding: 16px;
    color: #fff;
}

.discord-account-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.discord-account-top img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #ef142d;
    object-fit: cover;
}

.discord-account-top strong,
.discord-account-top span {
    display: block;
}

.discord-account-top strong {
    font-size: 15px;
    color: #fff;
}

.discord-account-top span {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255,255,255,.58);
}

.discord-account-balance {
    margin: 14px 0;
    padding: 14px;
    border-radius: 14px;
    background: rgba(239, 20, 45,.08);
    border: 1px solid rgba(239, 20, 45,.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.discord-account-balance span {
    color: rgba(255,255,255,.68);
    font-size: 13px;
}

.discord-account-balance strong {
    color: #ef142d;
    font-size: 22px;
}

.discord-account-card button,
.discord-account-card a {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.discord-account-card button {
    border: none;
    background: #ef142d;
    color: #111;
}

.discord-account-card a {
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    background: rgba(255,255,255,.06);
}

.account-balance-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(239, 20, 45,.22);
    background: rgba(239, 20, 45,.08);
    color: rgba(255,255,255,.82);
    font-weight: 700;
    line-height: 1.35;
}

.account-balance-notice i {
    color: #ef142d;
    margin-top: 2px;
}

.balance-form label small {
    color: rgba(255,255,255,.45);
    font-weight: 700;
}

.purchase-history-panel {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    padding: 20px;
}

.purchase-history-panel[hidden] {
    display: none !important;
}

.purchase-history-card {
    width: min(760px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: hidden;
    background: linear-gradient(180deg, rgba(24,24,24,.98), rgba(8,8,8,.98));
    border: 1px solid rgba(239, 20, 45,.35);
    border-radius: 22px;
    box-shadow: 0 25px 90px rgba(0,0,0,.7);
    color: #fff;
}

.purchase-history-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.purchase-history-header span {
    color: #ef142d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}

.purchase-history-header h2 {
    margin: 4px 0 3px;
    color: #fff;
    font-size: 28px;
}

.purchase-history-header p {
    margin: 0;
    color: rgba(255,255,255,.62);
}

.purchase-history-header button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
}

.purchase-history-list {
    padding: 14px 18px 20px;
    max-height: 560px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    margin-bottom: 10px;
}

.history-item strong,
.history-item span,
.history-item b,
.history-item em {
    display: block;
}

.history-item strong {
    color: #fff;
    font-size: 15px;
}

.history-item span {
    margin-top: 4px;
    color: rgba(255,255,255,.52);
    font-size: 12px;
}

.history-item-side {
    text-align: right;
    white-space: nowrap;
}

.history-item-side b {
    color: #ef142d;
    font-size: 16px;
}

.history-item-side em {
    margin-top: 5px;
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
}

.history-empty {
    padding: 34px 18px;
    text-align: center;
    color: rgba(255,255,255,.62);
    border: 1px dashed rgba(239, 20, 45,.25);
    border-radius: 18px;
}

.history-empty.error {
    color: #ff8585;
}

@media (max-width: 720px) {
    .discord-account-menu {
        right: -8px;
    }

    .history-item {
        flex-direction: column;
    }

    .history-item-side {
        text-align: left;
    }
}
