:root {
  --navy: #1E3A6E;
  --navy-dark: #162C54;
  --teal: #21A9BD;
  --teal-dark: #1D7A89;
  --orange: #F5921E;
  --orange-text: #3A2100;
  --blue: #2273C4;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a { text-decoration: none; color: inherit; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: opacity .15s ease;
}
.btn:hover { opacity: .88; }
.btn-primary { background: var(--orange); color: var(--orange-text); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-outline { background: transparent; border: 1px solid var(--teal); color: var(--teal); }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 16px; position: relative; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 26px; cursor: pointer; padding: 6px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 20px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { color: var(--white); font-weight: 700; font-size: 17px; }
.brand-plus { color: var(--orange); }
.brand-sub { color: #9DB4D8; font-size: 11px; }
.main-nav { display: flex; gap: 20px; font-size: 14px; }
.main-nav a { color: var(--white); padding-bottom: 3px; text-decoration: none; }
.main-nav a:hover { color: var(--orange); }
.main-nav a.active { color: var(--white); border-bottom: 2px solid var(--orange); }
.main-nav li { position: relative; }
.main-nav .dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--white); border-radius: 6px; min-width: 200px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); display: none; z-index: 2000; margin-top: 8px; padding: 8px 0; pointer-events: auto; }
.main-nav .dropdown-menu a { display: block; padding: 12px 16px; color: var(--text); border-bottom: 1px solid var(--border); }
.main-nav .dropdown-menu a:hover { color: var(--teal); background: #F5F9FC; }
.main-nav .dropdown-menu a:last-child { border-bottom: none; }
.header-actions { display: flex; gap: 8px; }

/* Hero */
.hero { background: var(--white); border-bottom: 1px solid var(--border); }
.hero-inner {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px;
  align-items: center; padding: 56px 20px;
}
.hero-badge {
  display: inline-block; background: #E6F1FB; color: #0C447C;
  font-size: 13px; padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 { font-size: 34px; line-height: 1.25; color: var(--navy); margin-bottom: 14px; }
.hero-subtitle { font-size: 16px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.6; }
.hero-slogan { font-size: 18px; font-weight: 600; color: var(--teal); margin-bottom: 16px; font-style: italic; }
.hero p.lead { font-size: 15px; color: var(--text-muted); margin-bottom: 22px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.hero-checks { display: flex; gap: 22px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.hero-checks i { color: var(--teal); margin-right: 4px; }

/* Login card */
.login-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px;
  box-shadow: 0 8px 28px rgba(30, 58, 110, .10);
}
.login-card h2 { font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.login-card .hint { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.login-card label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.login-card input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; margin-bottom: 14px;
}
.login-card input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(33, 169, 189, .15); }
.login-error {
  background: #FDECEC; color: #A32D2D; font-size: 13px;
  padding: 9px 12px; border-radius: var(--radius); margin-bottom: 14px;
}
.login-links { text-align: center; font-size: 12.5px; color: var(--text-muted); margin-top: 12px; }
.login-links a { color: var(--teal-dark); font-weight: 600; }

/* Sections */
.section { padding: 52px 0; }
.section-title { text-align: center; font-size: 24px; color: var(--navy); margin-bottom: 6px; }
.section-sub { text-align: center; font-size: 14px; color: var(--text-muted); margin-bottom: 30px; }

/* Service strip */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 14px; text-align: center; transition: transform .15s ease;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.service-card i { font-size: 30px; color: var(--teal-dark); }
.service-card h3 { font-size: 15px; margin-top: 10px; color: var(--navy); }
.service-card p { font-size: 12.5px; color: var(--text-muted); }

/* Catalog */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.chip {
  font-size: 13px; padding: 6px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--white); color: var(--text-muted);
}
.chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 16px; text-align: center; transition: transform .15s ease;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.product-logo {
  width: 60px; height: 60px; border-radius: 14px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 15px;
}
.product-logo img { width: 60px; height: 60px; border-radius: 14px; object-fit: contain; }
.product-card h3 { font-size: 15px; color: var(--navy); }
.product-card .cat { display: inline-block; font-size: 11.5px; color: var(--teal-dark); background: #E5F6F8; padding: 2px 10px; border-radius: 999px; margin: 4px 0 8px; }
.product-card p { font-size: 12.5px; color: var(--text-muted); margin-bottom: 14px; }

/* Agent CTA / lead form */
.agent-section { background: var(--navy); color: var(--white); }
.agent-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 52px 20px; align-items: center; }
.agent-inner h2 { font-size: 24px; margin-bottom: 12px; }
.agent-inner p { color: #C9D6EC; font-size: 14px; margin-bottom: 18px; }
.agent-steps { list-style: none; }
.agent-steps li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; color: #E3EAF6; }
.agent-steps a { color: var(--orange); font-weight: 600; text-decoration: underline; }
.agent-steps .step-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); color: var(--white); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.lead-card { background: var(--white); border-radius: 14px; padding: 26px; color: var(--text); }
.lead-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 14px; }
.lead-card label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.lead-card input, .lead-card textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; margin-bottom: 14px; font-family: inherit;
}
.lead-card input:focus, .lead-card textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(33, 169, 189, .15); }
.pin-warning {
  background: #FDF3E3; color: #854F0B; border: 1px solid #FAC775;
  border-radius: var(--radius); padding: 10px 12px; font-size: 12.5px;
  margin-bottom: 14px; line-height: 1.5;
}
.pin-warning i { margin-right: 4px; }
.lead-success {
  background: #EAF7EC; color: #27500A; font-size: 13.5px;
  padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px;
}

/* Login tabs */
.login-tabs { display: flex; gap: 6px; margin-bottom: 16px; background: var(--bg); border-radius: var(--radius); padding: 4px; }
.login-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 10px; font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; border-radius: 7px; background: transparent; color: var(--text-muted);
}
.login-tab.active { background: var(--white); color: var(--navy); box-shadow: 0 1px 4px rgba(30, 58, 110, .12); }

/* Reseller models */
.models-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.model-card {
  position: relative; background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px;
}
.model-featured { border: 2px solid var(--teal); }
.model-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--teal); color: var(--white);
  font-size: 12px; font-weight: 700; padding: 3px 14px; border-radius: 999px;
}
.model-icon { font-size: 32px; color: var(--teal-dark); }
.model-card h3 { font-size: 17px; color: var(--navy); margin: 10px 0 8px; }
.model-card > p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; }
.model-list { list-style: none; margin-bottom: 18px; }
.model-list li { font-size: 13px; color: var(--text); margin-bottom: 8px; display: flex; gap: 8px; }
.model-list i { color: var(--teal); flex-shrink: 0; margin-top: 3px; }

/* Modelo radio options */
.modelo-options { display: flex; gap: 10px; margin-bottom: 14px; }
.modelo-option {
  flex: 1; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 9px 12px; font-size: 13px; cursor: pointer;
}
.modelo-option:has(input:checked) { border-color: var(--teal); background: #E5F6F8; color: var(--teal-dark); font-weight: 600; }
.modelo-option input {
  accent-color: var(--teal);
  width: 16px !important; height: 16px; min-height: 0 !important;
  margin: 0; flex-shrink: 0;
}
.modelo-option span { display: flex; align-items: center; gap: 5px; }

/* Painel */
.painel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.painel-title { font-size: 24px; color: var(--navy); }
.painel-sub { font-size: 14px; color: var(--text-muted); }
.painel-alert {
  background: #FDF3E3; color: #854F0B; border: 1px solid #FAC775;
  border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin-bottom: 22px;
}
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.metric-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.metric-label { display: block; font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; }
.metric-value { font-size: 22px; font-weight: 700; color: var(--navy); }

/* Vendas */
.vendas-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-top: 28px; }
.vendas-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.vendas-titulo { font-size: 17px; color: var(--navy); }
.vendas-filtro { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); }
.vendas-filtro select {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13.5px; color: var(--text); background: var(--white); cursor: pointer;
}
.vendas-table-wrap { overflow-x: auto; }
.vendas-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vendas-table th {
  text-align: left; padding: 10px 12px; color: var(--text-muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.vendas-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); color: var(--text); white-space: nowrap; }
.vendas-table tbody tr:last-child td { border-bottom: none; }
.vendas-table tbody tr:hover { background: #F5F9FC; }
.vendas-table .num { text-align: right; }
.vendas-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.venda-estado { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.venda-estado-sucesso { background: #DCFCE7; color: #15803D; }
.venda-estado-pendente { background: #FDF3E3; color: #854F0B; }
.venda-estado-falhou { background: #FEE2E2; color: #991B1B; }
.vendas-vazio { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.vendas-vazio i { font-size: 40px; display: block; margin-bottom: 10px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.lead-card select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; margin-bottom: 14px;
  background: var(--white); font-family: inherit;
}
.lead-card select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(33, 169, 189, .15); }
.phone-group { display: flex; }
.phone-prefix {
  display: flex; align-items: center; padding: 0 12px;
  background: var(--bg); border: 1px solid var(--border); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius); font-size: 14px; font-weight: 600;
}
.phone-group input { border-radius: 0 var(--radius) var(--radius) 0 !important; margin-bottom: 0 !important; }
.field-hint { display: block; font-size: 12px; color: var(--text-muted); margin: 4px 0 14px; }
.privacy-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-muted); margin-bottom: 16px; cursor: pointer; }
.privacy-check input { width: 16px !important; height: 16px; min-height: 0 !important; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--teal); }
.contact-info .info-block { border-bottom: 1px solid var(--border); padding: 14px 0; }
.contact-info .info-block:last-child { border-bottom: none; }
.contact-info h4 { font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.contact-info h4 i { color: var(--teal-dark); margin-right: 6px; }
.contact-info p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }
.contact-info a { color: var(--teal-dark); }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-dark); font-size: 20px;
}
.social-links a:hover { border-color: var(--teal); background: #E5F6F8; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #9DB4D8; font-size: 13px; margin-top: 40px; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px;
  padding-top: 34px; padding-bottom: 34px;
}
.footer-logo {
  height: 72px; width: auto; margin-bottom: 12px;
  background: var(--white); border-radius: 10px; padding: 6px 12px;
}
.footer-tagline { font-style: italic; margin-top: 4px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact i { margin-right: 6px; }

/* Responsive */
@media (max-width: 860px) {
  .hero-inner, .agent-inner, .models-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero-inner { padding: 32px 20px; gap: 28px; }

  .header-inner { gap: 8px; padding-left: 14px; padding-right: 14px; }
  .nav-toggle { display: block; order: 3; padding: 6px 2px; }
  .header-actions { order: 2; margin-left: auto; gap: 6px; }
  .header-actions .btn-outline { display: none; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--navy);
    padding: 6px 20px 14px; border-top: 1px solid rgba(255, 255, 255, .12);
    z-index: 60;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 13px 4px; font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .main-nav a.active { border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--orange); }
  .header-actions .btn { padding: 8px 12px; font-size: 12.5px; }
  .brand-logo { height: 38px; }

  .btn { min-height: 44px; }
  .login-card input, .lead-card input, .lead-card textarea { font-size: 16px; min-height: 44px; }
  .login-tab, .chip { min-height: 40px; }
  .chip { display: inline-flex; align-items: center; }

  .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .modelo-options { flex-direction: column; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .painel-title { font-size: 20px; }
  .section { padding: 36px 0; }
  .section-title { font-size: 21px; }
  .model-card { padding: 22px 18px; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
}

@media (max-width: 420px) {
  .brand-logo { height: 32px; }
  .header-actions .btn { padding: 7px 10px; font-size: 12px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 23px; }
}
