/* =============================================
   TRADE SUPER — style.css
   Identidade: Roxo + Laranja + Branco
   ============================================= */

:root {
  --roxo:        #6B21A8;
  --roxo-esc:    #3B0764;
  --roxo-mid:    #7C3AED;
  --roxo-claro:  #A855F7;
  --roxo-bg:     #F3E8FF;
  --laranja:     #EA580C;
  --laranja-cl:  #FB923C;
  --laranja-bg:  #FFF7ED;
  --branco:      #FFFFFF;
  --off:         #FAFAF9;
  --cinza-leve:  #F5F5F4;
  --cinza:       #78716C;
  --cinza-esc:   #292524;
  --texto:       #1C1917;
  --borda:       #E7E5E4;
  --verde:       #16A34A;
  --vermelho:    #DC2626;
  --amarelo:     #D97706;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off);
  color: var(--texto);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: Arial Black;
  line-height: 1.1;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(59, 7, 100, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: Arial Black;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--branco);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav-logo span { color: var(--laranja-cl); }

.btn-nav {
  background: var(--laranja);
  color: white;
  padding: 0.55rem 1.4rem;
  border-radius: 8px;
  font-family: Arial Black;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-nav:hover {
  background: var(--laranja-cl);
  transform: translateY(-1px);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--roxo-esc) 0%, #4C1D95 55%, #1E0A38 100%);
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -180px;
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(234,88,12,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(234, 88, 12, 0.15);
  border: 1px solid rgba(234, 88, 12, 0.35);
  color: var(--laranja-cl);
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.badge-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--laranja-cl);
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.hero-text h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--branco);
  letter-spacing: -0.04em;
  margin-bottom: 1.4rem;
}

.hero-text h1 .highlight { color: var(--laranja-cl); }

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.62);
  max-width: 500px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-family: Arial Black;
  font-size: 2rem;
  font-weight: 800;
  color: var(--laranja-cl);
  line-height: 1;
}

.stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ---- FORM CARD ---- */
.form-card {
  background: var(--branco);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
}

.form-header {
  margin-bottom: 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--borda);
}

.form-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--roxo-esc);
  margin-bottom: 0.4rem;
}

.form-header p {
  font-size: 0.88rem;
  color: var(--cinza);
  line-height: 1.5;
}

/* Mensagens de status */
.msg {
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.4rem;
  line-height: 1.4;
}

.msg-sucesso  { background: #F0FDF4; border: 1px solid #86EFAC; color: #166534; }
.msg-erro     { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.msg-aviso    { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }

/* Campos */
.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cinza-esc);
  margin-bottom: 0.4rem;
}

.obrig   { color: var(--laranja); font-weight: 700; }
.opcional { color: var(--cinza); font-weight: 400; font-size: 0.8rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--borda);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--texto);
  background: var(--branco);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2378716C' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--roxo-mid);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.field input.input-erro,
.field select.input-erro {
  border-color: var(--vermelho);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #C2BFBB;
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.field-error {
  display: block;
  font-size: 0.78rem;
  color: var(--vermelho);
  margin-top: 0.3rem;
  min-height: 1rem;
}

/* Botão Submit */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--roxo) 0%, var(--roxo-mid) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 1rem 2rem;
  font-family: Arial Black;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
  position: relative;
  letter-spacing: 0.01em;
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--roxo-mid) 0%, var(--roxo-claro) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 33, 168, 0.35);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--cinza);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.4;
}

/* ---- COMO FUNCIONA ---- */
.como-funciona {
  background: var(--branco);
  padding: 6rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 3rem;
}

.section-head.center { text-align: center; }

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--laranja);
  margin-bottom: 0.7rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--roxo-esc);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  justify-content: center;
}

.step {
  flex: 1;
  max-width: 300px;
  background: var(--off);
  border: 1px solid var(--borda);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.step-num {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  font-family: Arial Black;
  font-size: 2rem;
  font-weight: 800;
  color: var(--roxo-bg);
  line-height: 1;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--roxo-esc);
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.88rem;
  color: var(--cinza);
  line-height: 1.6;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--roxo-claro);
  margin-top: 3.5rem;
  flex-shrink: 0;
  opacity: 0.4;
}

/* ---- PARA QUEM ---- */
.para-quem {
  background: var(--off);
  padding: 6rem 2rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.aud-card {
  background: var(--branco);
  border: 1.5px solid var(--roxo-bg);
  border-radius: 16px;
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: all 0.2s;
}

.aud-card:hover {
  border-color: var(--roxo-claro);
  background: var(--roxo-bg);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(107, 33, 168, 0.12);
}

.aud-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.aud-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--roxo-esc);
  margin-bottom: 0.5rem;
}

.aud-card p {
  font-size: 0.85rem;
  color: var(--cinza);
  line-height: 1.5;
}

/* ---- FOOTER ---- */
footer {
  background: #0C0415;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer-logo {
  font-family: Arial Black;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--branco);
  margin-bottom: 0.5rem;
}

.footer-logo span { color: var(--laranja-cl); }

footer p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.4rem;
}

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem !important;
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.25) !important;
}

/* =============================================
   ADMIN — painel de leads
   ============================================= */
.admin-body {
  background: var(--off);
  font-family: 'DM Sans', sans-serif;
}

.admin-nav {
  background: var(--roxo-esc);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-nav .nav-logo { font-size: 1.3rem; }

.admin-nav-info {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.admin-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--roxo-esc);
}

.admin-header p {
  font-size: 0.88rem;
  color: var(--cinza);
  margin-top: 0.2rem;
}

.admin-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-export {
  background: var(--laranja);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-family: Arial Black;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}

.btn-export:hover { background: var(--laranja-cl); }

.btn-logout {
  background: transparent;
  color: var(--cinza);
  padding: 0.6rem 1.2rem;
  border: 1.5px solid var(--borda);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-logout:hover {
  border-color: var(--vermelho);
  color: var(--vermelho);
}

/* Filtros */
.admin-filters {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cinza);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.filter-group input,
.filter-group select {
  padding: 0.55rem 0.9rem;
  border: 1.5px solid var(--borda);
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--texto);
  outline: none;
  transition: border-color 0.2s;
  min-width: 180px;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--roxo-mid);
}

.btn-filtrar {
  background: var(--roxo);
  color: white;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 8px;
  font-family: Arial Black;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  height: fit-content;
  transition: background 0.2s;
}

.btn-filtrar:hover { background: var(--roxo-mid); }

/* Cards de métricas */
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cinza);
  margin-bottom: 0.5rem;
}

.metric-value {
  font-family: Arial Black;
  font-size: 2rem;
  font-weight: 800;
  color: var(--roxo-esc);
  line-height: 1;
}

.metric-card.destaque .metric-value { color: var(--laranja); }

/* Tabela de leads */
.table-card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 14px;
  overflow: hidden;
}

.table-card-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--borda);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--roxo-esc);
}

.table-card-header span {
  font-size: 0.82rem;
  color: var(--cinza);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead tr {
  background: var(--off);
}

thead th {
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cinza);
  border-bottom: 1px solid var(--borda);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--cinza-leve);
  transition: background 0.15s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--off); }

tbody td {
  padding: 0.85rem 1rem;
  color: var(--texto);
  vertical-align: middle;
}

tbody td.td-muted {
  color: var(--cinza);
  font-size: 0.85rem;
}

.badge-seg {
  display: inline-block;
  background: var(--roxo-bg);
  color: var(--roxo);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-lojas {
  display: inline-block;
  background: var(--laranja-bg);
  color: var(--laranja);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn-del {
  background: none;
  border: 1px solid var(--borda);
  color: var(--cinza);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-del:hover {
  border-color: var(--vermelho);
  color: var(--vermelho);
  background: #FEF2F2;
}

.empty-state {
  padding: 3rem;
  text-align: center;
  color: var(--cinza);
  font-size: 0.92rem;
}

/* Login */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--roxo-esc), #1E0A38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: var(--branco);
  border-radius: 20px;
  padding: 2.8rem 2.4rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.login-card .logo-login {
  font-family: Arial Black;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--roxo-esc);
  margin-bottom: 0.3rem;
}

.login-card .logo-login span { color: var(--laranja); }

.login-card p {
  font-size: 0.9rem;
  color: var(--cinza);
  margin-bottom: 2rem;
}

.login-card h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--roxo-esc);
  margin-bottom: 1.5rem;
}

.login-msg {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

/* ---- RESPONSIVO ---- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-text h1 { font-size: 2.8rem; }

  .form-card { padding: 2rem 1.5rem; }

  .audience-grid { grid-template-columns: 1fr 1fr; }

  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }

  .admin-metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  nav .btn-nav { display: none; }

  .hero { padding: 7rem 1.2rem 4rem; }

  .hero-text h1 { font-size: 2.2rem; }

  .hero-stats { gap: 1.2rem; }
  .stat strong { font-size: 1.6rem; }

  .como-funciona,
  .para-quem { padding: 4rem 1.2rem; }

  .audience-grid { grid-template-columns: 1fr 1fr; }

  .admin-metrics { grid-template-columns: 1fr 1fr; }

  thead th:nth-child(5),
  tbody td:nth-child(5),
  thead th:nth-child(6),
  tbody td:nth-child(6) { display: none; }
}
