/* Estilos Premium para Painel do Afiliado */
.cafe-afiliado-wrapper {
    font-family: 'Inter', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.cafe-afiliado-onboarding {
    text-align: center;
    padding: 40px 20px;
}

.cafe-afiliado-onboarding h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.cafe-afiliado-onboarding p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.cafe-afiliado-btn.btn-primary, button.btn-primary {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cafe-afiliado-btn.btn-primary:hover, button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.cafe-afiliado-alert {
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 20px;
}
.cafe-afiliado-alert.alert-warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}
.cafe-afiliado-alert.alert-danger {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #b91c1c;
}

.cafe-afiliado-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.cafe-afiliado-header h2 {
    font-size: 24px;
    color: #1a1a1a;
    margin: 0;
}

.cafe-afiliado-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}
.stat-value.value-green {
    color: #059669;
}

.cafe-afiliado-link-box {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}
.cafe-afiliado-link-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #334155;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #475569;
}

button.btn-secondary {
    background: #e2e8f0;
    color: #0f172a;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button.btn-secondary:hover {
    background: #cbd5e1;
}

.cafe-divisor {
    border: 0;
    height: 1px;
    background: #eaeaea;
    margin: 30px 0;
}

.cafe-afiliado-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cafe-pix-setup, .cafe-withdrawal-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.cafe-pix-setup h3, .cafe-withdrawal-box h3 {
    margin-top: 0;
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 10px;
}

.cafe-pix-setup input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.cafe-afiliado-msg.success { color: #059669; }
.cafe-afiliado-msg.error { color: #dc2626; }

button.btn-disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: not-allowed;
    width: 100%;
    font-weight: 600;
}

/* Sistema de Abas Dashboard */
.cafe-dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    overflow-x: auto;
}

.cafe-tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cafe-tab-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.cafe-tab-btn.active {
    background: #0f172a;
    color: #fff;
}

/* Tab Content Visibility */
.cafe-tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.cafe-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Seção de Vantagens e Regras */
.cafe-regras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.advantage-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content:center;
    margin-bottom: 20px;
    color: #0f172a;
}

.advantage-card h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #0f172a;
}

.advantage-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

.security-highlight {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.security-highlight h3 {
    margin-top: 0;
    color: #fff;
    font-size: 22px;
}

.security-highlight p {
    color: #cbd5e1;
    font-size: 15px;
    max-width: 80%;
}

@media (max-width: 768px) {
    .cafe-dashboard-tabs {
        padding-bottom: 15px;
    }
    .security-highlight p {
        max-width: 100%;
    }
}

