/**
 * Estilos da Loja - FynixGlobal
 */

/* Modal Principal */
.shop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop-modal-overlay.show {
    opacity: 1;
}

.shop-modal {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 20px;
    width: 95%;
    max-width: 950px;
    max-height: 85vh;
    overflow: hidden;
    border: 1px solid #00a8ff;
    box-shadow: 0 20px 60px rgba(0, 168, 255, 0.2);
}

.shop-modal-header {
    background: linear-gradient(90deg, #00a8ff, #0077b6);
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5em;
}

.shop-balance {
    color: #fff;
    font-size: 1em;
    background: rgba(0,0,0,0.2);
    padding: 8px 15px;
    border-radius: 20px;
}

.shop-balance span {
    font-weight: 700;
    color: #00ff88;
}

.shop-modal-close {
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.shop-modal-close:hover {
    background: rgba(0,0,0,0.2);
}

/* Tabs */
.shop-modal-tabs {
    display: flex;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    gap: 10px;
}

.shop-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #888;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95em;
}

.shop-tab:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.shop-tab.active {
    background: linear-gradient(90deg, #00a8ff, #0077b6);
    color: #fff;
    border-color: transparent;
}

/* Content */
.shop-modal-content {
    padding: 20px;
    max-height: calc(85vh - 150px);
    overflow-y: auto;
}

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

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

/* Item Ativo */
.shop-active-item {
    background: linear-gradient(90deg, rgba(0, 212, 170, 0.15), rgba(0, 212, 170, 0.05));
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.shop-active-item .active-icon {
    font-size: 2.5em;
}

.shop-active-item .active-info h4 {
    color: #00d4aa;
    margin: 0 0 5px 0;
}

.shop-active-item .active-info p {
    color: #aaa;
    margin: 0;
    font-size: 0.9em;
}

.shop-active-item .active-timer {
    color: #ffc107;
    font-weight: 600;
}

.shop-active-item .btn-config {
    background: rgba(0, 212, 170, 0.2);
    border: 1px solid #00d4aa;
    color: #00d4aa;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.shop-active-item .cashback-info {
    color: #ffc107 !important;
    margin-top: 5px !important;
}

/* Grid de Cards */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Cards */
.shop-card {
    background: linear-gradient(145deg, #1e2a4a, #152238);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.shop-card:hover {
    transform: translateY(-5px);
}

/* Booster Colors */
.shop-card.bronze {
    border-color: #cd7f32;
    box-shadow: 0 5px 20px rgba(205, 127, 50, 0.2);
}

.shop-card.bronze:hover {
    box-shadow: 0 10px 30px rgba(205, 127, 50, 0.3);
}

.shop-card.silver {
    border-color: #c0c0c0;
    box-shadow: 0 5px 20px rgba(192, 192, 192, 0.2);
}

.shop-card.silver:hover {
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.3);
}

.shop-card.gold {
    border-color: #ffd700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.shop-card.gold:hover {
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* Robot/Cashback Tiers */
.shop-card.tier1 {
    border-color: #00a8ff;
}

.shop-card.tier2 {
    border-color: #9b59b6;
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.2);
}

.shop-card.tier3 {
    border-color: #ffd700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
}

.shop-card-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.shop-card h3 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.shop-card-desc {
    color: #888;
    font-size: 0.85em;
    margin: 0 0 15px 0;
    line-height: 1.4;
    min-height: 50px;
}

.shop-card-bonus {
    color: #00d4aa;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 5px;
}

.shop-card-indicators {
    color: #00a8ff;
    font-size: 0.8em;
    margin-bottom: 10px;
    padding: 5px 10px;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 5px;
}

.shop-card-duration {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.shop-card-price {
    color: #fff;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
}

.shop-card-price span {
    font-size: 0.5em;
    color: #888;
}

.shop-buy-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #00a8ff, #0077b6);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-buy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 168, 255, 0.4);
}

/* Robot Config Modal */
.robot-config-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.robot-config-overlay.show {
    opacity: 1;
}

.robot-config-modal {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    border: 1px solid #9b59b6;
    overflow: hidden;
}

.robot-config-header {
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.robot-config-header h3 {
    margin: 0;
    color: #fff;
}

.robot-config-close {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.robot-config-body {
    padding: 20px;
}

.robot-price {
    text-align: center;
    color: #aaa;
    margin-bottom: 20px;
}

.robot-price strong {
    color: #00d4aa;
    font-size: 1.2em;
}

.config-group {
    margin-bottom: 15px;
}

.config-group label {
    display: block;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.config-group input[type="number"] {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
}

.config-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.config-group small {
    color: #666;
    font-size: 0.8em;
}

.config-row {
    display: flex;
    gap: 15px;
}

.config-group.half {
    flex: 1;
}

.config-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.config-warning p {
    color: #ffc107;
    margin: 0;
    font-size: 0.85em;
}

.config-warning p:last-child {
    color: #aaa;
    margin-top: 5px;
}

.robot-config-footer {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.2);
}

.robot-config-footer .btn-cancel {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid #666;
    color: #888;
    border-radius: 8px;
    cursor: pointer;
}

.robot-config-footer .btn-confirm {
    flex: 2;
    padding: 12px;
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
    border: none;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Booster Indicator (na tela principal) */
.booster-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    animation: boosterPulse 2s infinite;
}

@keyframes boosterPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.booster-icon {
    font-size: 1.3em;
}

.booster-text {
    font-size: 1.1em;
}

.booster-timer {
    background: rgba(0,0,0,0.2);
    padding: 3px 10px;
    border-radius: 15px;
    font-family: monospace;
}

/* Cashback Popup */
.cashback-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cashback-popup-overlay.show {
    opacity: 1;
}

.cashback-popup {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 2px solid #00d4aa;
    box-shadow: 0 20px 60px rgba(0, 212, 170, 0.3);
    animation: cashbackBounce 0.5s ease;
}

@keyframes cashbackBounce {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cashback-popup-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.cashback-popup h2 {
    color: #00d4aa;
    margin: 0 0 20px 0;
}

.cashback-amount {
    font-size: 3em;
    color: #00ff88;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.cashback-details {
    color: #888;
    margin: 0 0 25px 0;
}

.cashback-btn {
    background: linear-gradient(90deg, #00d4aa, #00a885);
    border: none;
    color: #fff;
    padding: 15px 50px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cashback-btn:hover {
    transform: scale(1.05);
}

/* Notificações */
.shop-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    z-index: 10003;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.shop-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.shop-notification.success {
    background: linear-gradient(90deg, #00d4aa, #00a885);
    color: #fff;
}

.shop-notification.error {
    background: linear-gradient(90deg, #ff4757, #ff3344);
    color: #fff;
}

.shop-notification.warning {
    background: linear-gradient(90deg, #ffc107, #ff9800);
    color: #000;
}

/* Responsive */
@media (max-width: 600px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-modal-tabs {
        flex-wrap: wrap;
    }
    
    .shop-tab {
        flex: 1 1 45%;
    }
    
    .config-row {
        flex-direction: column;
    }
    
    .booster-indicator {
        top: auto;
        bottom: 80px;
        right: 10px;
        left: 10px;
        justify-content: center;
    }
}
