/* ===== ARTHUR CASHBACK - ESTILOS FRONTEND ===== */

.arthur-cashback-container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* ===== HEADER ===== */
.arthur-cashback-header {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a28 100%);
    padding: 30px;
    border-radius: 16px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
}

.arthur-cashback-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: white;
}

.arthur-cashback-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 16px;
}

/* ===== CARDS DE RESUMO ===== */
.arthur-cashback-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.arthur-cashback-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.arthur-cashback-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.arthur-cashback-card.primary {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a28 100%);
    color: white;
    border: none;
}

.arthur-cashback-card.primary .card-label,
.arthur-cashback-card.primary .card-sublabel {
    color: rgba(255, 255, 255, 0.9);
}

.arthur-cashback-card .card-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 600;
}

.arthur-cashback-card .card-value {
    font-size: 32px;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 8px;
    line-height: 1;
}

.arthur-cashback-card.primary .card-value {
    color: white;
}

.arthur-cashback-card .card-value-small {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.arthur-cashback-card .card-sublabel {
    font-size: 12px;
    color: #888;
}

.arthur-cashback-card .card-value.nivel-bronze { color: #cd7f32; }
.arthur-cashback-card .card-value.nivel-silver { color: #c0c0c0; }
.arthur-cashback-card .card-value.nivel-gold { color: #ffd700; }
.arthur-cashback-card .card-value.nivel-platinum { color: #e5e4e2; }

/* ===== BARRA DE PROGRESSO ===== */
.arthur-cashback-progresso {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.arthur-cashback-progresso h3 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 18px;
}

.progresso-bar {
    width: 100%;
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progresso-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35 0%, #ffa500 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progresso-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

/* ===== HISTÓRICO ===== */
.arthur-cashback-historico {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.arthur-cashback-historico h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.arthur-cashback-tabela {
    width: 100%;
    border-collapse: collapse;
}

.arthur-cashback-tabela th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #f0f0f0;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.arthur-cashback-tabela td {
    padding: 14px 12px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    font-size: 14px;
}

.arthur-cashback-tabela tr:hover td {
    background: #fafafa;
}

.arthur-cashback-tabela .cashback-valor {
    color: #10b981;
    font-weight: 700;
}

.empty-message {
    text-align: center;
    color: #888;
    padding: 30px;
    font-style: italic;
}

/* ===== RESGATE ===== */
.arthur-cashback-resgate {
    background: linear-gradient(135deg, #fff8f3 0%, #fff5ed 100%);
    border: 2px dashed #ff6b35;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.arthur-cashback-resgate h3 {
    margin: 0 0 20px 0;
    color: #ff6b35;
    font-size: 20px;
}

#form-resgate-cashback .form-row {
    margin-bottom: 16px;
}

#form-resgate-cashback label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

#form-resgate-cashback input,
#form-resgate-cashback select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

#form-resgate-cashback input:focus,
#form-resgate-cashback select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ===== BOTÕES ===== */
.arthur-cashback-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a28 100%);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.arthur-cashback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35);
    color: white !important;
}

/* ===== WIDGET SALDO COMPACTO ===== */
.arthur-cashback-saldo-widget {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a28 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
    margin: 16px 0;
}

.arthur-cashback-saldo-valor {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.arthur-cashback-saldo-label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 1px;
}

.arthur-cashback-nivel {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    opacity: 0.95;
}

/* ===== MENSAGENS ===== */
.arthur-cashback-message-box {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.arthur-cashback-message-box h3 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 22px;
}

.arthur-cashback-message-box p {
    color: #666;
    margin-bottom: 24px;
    font-size: 16px;
}

.arthur-cashback-message {
    background: #fff8f3;
    border-left: 4px solid #ff6b35;
    padding: 16px;
    margin: 16px 0;
    color: #333;
    border-radius: 4px;
}

#resgate-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
}

#resgate-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

#resgate-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .arthur-cashback-container {
        padding: 12px;
    }
    
    .arthur-cashback-header {
        padding: 20px;
    }
    
    .arthur-cashback-header h2 {
        font-size: 22px;
    }
    
    .arthur-cashback-cards {
        grid-template-columns: 1fr;
    }
    
    .arthur-cashback-tabela {
        font-size: 12px;
    }
    
    .arthur-cashback-tabela th,
    .arthur-cashback-tabela td {
        padding: 8px 4px;
    }
}
