@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
:root { --primary-color: #673AB7; --primary-hover: #512DA8; --background-color: #F8F9FA; --card-bg: #FFFFFF; --text-color: #1E293B; --text-muted: #64748B; --border-color: #E2E8F0; --shadow: 0 10px 40px rgba(0, 0, 0, 0.08); }
* { margin: 0; padding: 0; box-sizing: border-box; }
::-webkit-scrollbar { display: none; }
body { font-family: 'Poppins', sans-serif; background-color: var(--background-color); color: var(--text-color); line-height: 1.6; -ms-overflow-style: none; scrollbar-width: none; }

.login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #4a148c, #8839a2); padding: 20px; }
.login-container { background: var(--card-bg); padding: 3em; border-radius: 24px; box-shadow: var(--shadow); width: 100%; max-width: 550px; position: relative; overflow: hidden; }

@media (max-width: 600px) {
    .login-page { padding: 0; background: var(--card-bg); align-items: stretch; }
    .login-container { border-radius: 0; box-shadow: none; border: none; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 2em 1.5em; max-width: 100%; }
    input, select { padding: 18px; font-size: 1.05em; border-radius: 14px; }
    .btn { padding: 18px 20px; font-size: 1.05em; border-radius: 14px; }
}

.intro-step { text-align: center; animation: slideUp 0.5s ease forwards; }
.intro-step h1 { color: var(--text-color); font-size: 2em; font-weight: 800; line-height: 1.2; margin-bottom: 0.5em; letter-spacing: -0.5px; }
.intro-step h1 span { color: var(--primary-color); }
.intro-step p { color: var(--text-muted); font-size: 1.05em; margin-bottom: 2em; }
.form-header { text-align: center; margin-bottom: 1.5em; }
.form-header h2 { color: var(--text-color); margin-bottom: 0.2em; font-size: 1.3em; font-weight: 600; }
.progress-wrapper { margin-bottom: 2.5em; }
.progress-info { display: flex; justify-content: space-between; font-size: 0.85em; font-weight: 600; color: var(--primary-color); margin-bottom: 8px; }
.progress-bar-container { width: 100%; background-color: #F1F5F9; border-radius: 10px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; background-color: var(--primary-color); width: 0%; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 10px; }

.form-step { display: none !important; animation: slideUp 0.4s ease forwards; text-align: center; }
.form-step.active { display: block !important; }
@keyframes slideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.step-title { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 1.3em; font-weight: 600; margin-bottom: 1.5em; color: var(--text-color); }
.step-title svg { color: var(--primary-color); width: 36px; height: 36px; background: #F3E8FF; padding: 8px; border-radius: 12px; }

.form-group { margin-bottom: 1.2em; text-align: left; }
input, select { width: 100%; padding: 16px; border: 2px solid #E2E8F0; border-radius: 12px; font-size: 1.05em; font-family: 'Poppins', sans-serif; transition: all 0.3s ease; background-color: #FAFAFA; color: var(--text-color); text-align: center; appearance: none; -webkit-appearance: none; }
.form-group label { display: block; font-size: 0.9em; font-weight: 600; color: var(--text-color); margin-bottom: 8px; text-align: left; }
.form-group input { text-align: left; }
input:focus, select:focus { outline: none; border-color: var(--primary-color); background-color: #FFF; box-shadow: 0 4px 15px rgba(103, 58, 183, 0.15); transform: translateY(-2px); }

@keyframes pulsePrimary { 0% { box-shadow: 0 0 0 0 rgba(103, 58, 183, 0.7); transform: scale(1); } 70% { box-shadow: 0 0 0 15px rgba(103, 58, 183, 0); transform: scale(1.02); } 100% { box-shadow: 0 0 0 0 rgba(103, 58, 183, 0); transform: scale(1); } }
@keyframes pulseWpp { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); transform: scale(1); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); transform: scale(1.02); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); transform: scale(1); } }

.step-buttons { display: flex; gap: 15px; margin-top: 2.5em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 20px; border: none; border-radius: 12px; font-size: 1.05em; font-weight: 600; cursor: pointer; transition: all 0.3s ease; width: 100%; text-decoration: none;}
.btn-primary { background-color: var(--primary-color); color: #fff; box-shadow: 0 4px 10px rgba(103, 58, 183, 0.2); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(103, 58, 183, 0.3); }
.btn-secondary { background-color: #F1F5F9; color: var(--text-muted); width: auto; padding: 14px 20px; }
.btn-secondary:hover { background-color: #E2E8F0; color: var(--text-color); }
.pulse-primary { animation: pulsePrimary 2s infinite; }
.btn-whatsapp { background-color: #25D366; color: white; width: 100%; padding: 18px; font-size: 1.1em; border-radius: 14px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { background-color: #1EBE5D; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); color: white; }
.pulse-wpp { animation: pulseWpp 2s infinite; }
.btn-danger { background-color: #EF4444; color: white; }
.btn-danger:hover { background-color: #DC2626; transform: translateY(-2px); }
.btn-warning { background-color: #F59E0B; color: white; }
.btn-warning:hover { background-color: #D97706; transform: translateY(-2px); }
.btn-info { background-color: #3B82F6; color: white; }
.btn-info:hover { background-color: #2563EB; transform: translateY(-2px); }
.btn-inline { width: auto; display: inline-flex; padding: 10px 20px; font-size: 0.9em; border-radius: 8px;}
.link-switch { display: block; margin-top: 20px; color: var(--primary-color); font-weight: 600; cursor: pointer; text-decoration: underline; font-size: 0.9em; }

/* Admin & Dashboard UI */
.container { max-width: 1200px; margin: 0 auto; padding: 2em; }
.top-nav { background-color: var(--card-bg); padding: 1.2em 2em; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; margin-bottom: 2em; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); flex-wrap: wrap; gap: 10px;}
.top-nav .logo { font-size: 1.5em; font-weight: 700; color: var(--text-color); display: flex; align-items: center; gap: 8px;}
.top-nav .logo svg { color: var(--primary-color); }
.top-nav .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.top-nav .nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: color 0.3s; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5em; margin-bottom: 2em; }
.stat-card { background-color: var(--card-bg); border-radius: 16px; padding: 1.5em; display: flex; align-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.04); border: 1px solid var(--border-color); transition: transform 0.3s ease; position: relative;}
.stat-card:hover { transform: translateY(-4px); border-color: var(--primary-color); }
.stat-card .icon { display: flex; align-items: center; justify-content: center; background: #F3E8FF; color: var(--primary-color); width: 56px; height: 56px; border-radius: 12px; margin-right: 1em; }
.stat-card .info .number { font-size: 1.8em; font-weight: 700; color: var(--text-color); line-height: 1.2; display: flex; align-items: center; }
.stat-card .info .label { font-size: 0.85em; color: var(--text-muted); font-weight: 500; margin-top: 4px;}

.card { background-color: var(--card-bg); border-radius: 16px; padding: 2em; margin-bottom: 2em; border: 1px solid var(--border-color); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.card-header { display: flex; align-items: center; gap: 0.75em; font-size: 1.25em; color: var(--text-color); margin-bottom: 1.5em; padding-bottom: 1em; border-bottom: 1px solid var(--border-color); font-weight: 600; justify-content: space-between; }

/* Tabela Otimizada Mobile Pro */
.table-wrapper { overflow-x: auto; }
.mobile-table { width: 100%; border-collapse: collapse; }
.mobile-table th, .mobile-table td { padding: 1.2em 1em; text-align: left; border-bottom: 1px solid var(--border-color); vertical-align: middle; color: var(--text-color); }
.mobile-table th { font-weight: 600; color: var(--text-muted); font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.5px; }
.mobile-table tbody tr:hover { background-color: #F8FAFC; }

@media (max-width: 768px) {
    .mobile-table thead { display: none; }
    .mobile-table, .mobile-table tbody, .mobile-table tr, .mobile-table td { display: block; width: 100%; }
    .mobile-table tr { margin-bottom: 15px; border: 1px solid var(--border-color); border-radius: 16px; padding: 15px; background: var(--card-bg); box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
    .mobile-table td { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding: 12px 5px; text-align: right; }
    .mobile-table td:last-child { border-bottom: none; justify-content: center; margin-top: 10px; padding-bottom: 0; flex-wrap: wrap; gap: 5px;}
    .mobile-table td::before { content: attr(data-label); font-weight: 600; color: var(--text-muted); font-size: 0.85em; text-transform: uppercase; text-align: left; flex: 1; margin-right: 15px;}
    .mobile-table td > span, .mobile-table td > strong, .mobile-table td > div { flex: 2; text-align: right; justify-content: flex-end; }
}

.badge { padding: 4px 10px; border-radius: 6px; font-weight: 600; font-size: 0.85em; display: inline-block; }
.badge-trial { background: #E0E7FF; color: #4338CA; }
.badge-active { background: #DCFCE7; color: #16A34A; }
.badge-expired { background: #FEE2E2; color: #DC2626; }
.badge-blocked { background: #F1F5F9; color: #475569; }

.trend-up { font-size: 0.45em; background: #DCFCE7; color: #10B981; padding: 3px 8px; border-radius: 6px; margin-left: 10px; font-weight: 600; }
.trend-down { font-size: 0.45em; background: #FEE2E2; color: #EF4444; padding: 3px 8px; border-radius: 6px; margin-left: 10px; font-weight: 600; }
.trend-neutral { font-size: 0.45em; background: #F1F5F9; color: #64748B; padding: 3px 8px; border-radius: 6px; margin-left: 10px; font-weight: 600; }
select.admin-select { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; background: #FAFAFA; color: var(--text-color); font-family: 'Poppins', sans-serif; margin-bottom: 10px; }
.paywall-card { max-width: 500px; margin: 4em auto; text-align: center; padding: 3em; background: var(--card-bg); border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--border-color); }