/* ── Portal do Revendedor ─────────────────────────────────────────────────── */

/* H2 das seções com tipografia editorial consistente com hero/sobre */
.reseller-benefits .section-heading h2,
.reseller-how .section-heading h2,
.reseller-form-section .section-heading h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.008em;
  color: var(--text-900, #10232f);
  margin: 8px 0 0;
  text-wrap: balance;
}

.reseller-benefits .section-heading,
.reseller-how .section-heading,
.reseller-form-section .section-heading {
  text-align: center;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}


/* ── Hero ─────────────────────────────────────────────────────────────────── */
.reseller-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(31, 79, 134, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(15, 91, 69, 0.45) 0%, transparent 50%),
    linear-gradient(135deg, #07372b 0%, #0e2b4f 100%);
  color: #fff;
  padding: clamp(72px, 10vw, 120px) clamp(20px, 4vw, 40px) clamp(64px, 9vw, 96px);
  text-align: center;
  overflow: hidden;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}

.reseller-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

.reseller-hero-content {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.reseller-hero .eyebrow {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.reseller-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 700;
  margin: 18px 0 18px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.reseller-hero p {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  opacity: .82;
  margin-bottom: 36px;
  line-height: 1.6;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.reseller-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn-reseller-primary {
  padding: 14px 28px;
  border-radius: 12px;
  background: #fff;
  color: var(--green-700, #0f5b45);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.btn-reseller-primary:hover { box-shadow: 0 8px 24px rgba(0,0,0,.2); transform: translateY(-2px); }

.btn-reseller-secondary {
  padding: 14px 28px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s;
}
.btn-reseller-secondary:hover { background: rgba(255,255,255,.25); }

/* ── Benefits ─────────────────────────────────────────────────────────────── */
.reseller-benefits {
  padding: 64px 24px;
  background: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.benefit-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px;
  border: 1px solid var(--sand-200, #efe5d6);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.benefit-card:hover {
  box-shadow: 0 16px 40px rgba(16, 35, 47, .08);
  transform: translateY(-3px);
  border-color: var(--green-700);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(15, 91, 69, .25);
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-900, #10232f);
  letter-spacing: -0.005em;
}

.benefit-card p {
  font-size: .9rem;
  color: var(--text-700, #5d6c78);
  line-height: 1.6;
  margin: 0;
}

/* ── How it works ─────────────────────────────────────────────────────────── */
.reseller-how {
  padding: 64px 24px;
  background: var(--sand-100, #f6f1e8);
  text-align: center;
}

.how-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.how-step {
  background: #fff;
  border-radius: 22px;
  padding: 36px 28px 30px;
  max-width: 260px;
  flex: 1 1 220px;
  box-shadow: 0 10px 28px rgba(16, 35, 47, .06);
  border: 1px solid var(--sand-200, #efe5d6);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green-700, #0f5b45), var(--green-900, #07372b));
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 8px 20px rgba(15, 91, 69, .28);
}

.how-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-900, #10232f);
  letter-spacing: -0.005em;
}
.how-step p {
  font-size: .9rem;
  color: var(--text-700, #5d6c78);
  line-height: 1.55;
  margin: 0;
}

.how-arrow {
  font-size: 1.6rem;
  color: var(--green-700, #0f5b45);
  opacity: .35;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .how-arrow { display: none; }
}

/* ── Stats ────────────────────────────────────────────────────────────────── */
.reseller-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(31, 79, 134, 0.30) 0%, transparent 55%),
    linear-gradient(135deg, var(--green-700, #0f5b45) 0%, var(--green-900, #07372b) 100%);
  padding: 0;
}

.reseller-stats .stat-card {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, .12);
  padding: 40px 24px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reseller-stats .stat-card:last-child { border-right: none; }

.reseller-stats .stat-number {
  color: var(--gold-400, #d2a651);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
}

.reseller-stats .stat-label {
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
  line-height: 1.4;
}

@media (max-width: 540px) {
  .reseller-stats .stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .reseller-stats .stat-card:last-child { border-bottom: none; }
}

/* ── Registration form ───────────────────────────────────────────────────── */
.reseller-form-section {
  padding: 64px 24px;
  background: #fff;
}

.reseller-form-section .section-heading p {
  color: var(--text-700, #5d6c78);
  margin-top: 8px;
  font-size: .92rem;
}

.reseller-form {
  max-width: 680px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .83rem;
  font-weight: 700;
  color: var(--text-900, #10232f);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 11px 14px;
  border: 1.5px solid #d0d7df;
  border-radius: 10px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text-900, #10232f);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-700, #0f5b45);
  box-shadow: 0 0 0 3px rgba(15,91,69,.1);
}

.form-notice {
  font-size: .78rem;
  color: var(--text-700, #5d6c78);
  text-align: center;
}

.btn-reseller-submit {
  padding: 14px;
  border-radius: 12px;
  background: var(--green-700, #0f5b45);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}
.btn-reseller-submit:hover   { background: var(--green-900, #07372b); }
.btn-reseller-submit:disabled { opacity: .6; cursor: not-allowed; }

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: 14px;
  padding: 18px 20px;
  font-size: .9rem;
  color: #065f46;
}
.form-success span { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.form-success strong { display: block; margin-bottom: 4px; }

.form-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .88rem;
  color: #991b1b;
}

/* ── Reseller Dashboard ───────────────────────────────────────────────────── */
.reseller-dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 64px);
}

@media (max-width: 768px) {
  .reseller-dash-layout { grid-template-columns: 1fr; }
}

.reseller-sidebar {
  background: var(--ink-900, #08141c);
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reseller-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  transition: background .12s, color .12s;
}

.reseller-sidebar a:hover,
.reseller-sidebar a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.reseller-main {
  padding: 32px 28px;
  background: var(--sand-100, #f6f1e8);
}

.reseller-pending-notice {
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .9rem;
  color: #92400e;
  margin-bottom: 24px;
}

/* ── FAQ Reseller ───────────────────────────────────────────────────── */
.reseller-faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 22px 48px;
}
.reseller-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rs-faq-item {
  background: #fff;
  border: 1px solid #eef2f0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.rs-faq-item[open] {
  border-color: rgba(15, 91, 69, 0.30);
  box-shadow: 0 4px 14px rgba(8, 20, 28, 0.04);
}
.rs-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: #10232f;
  min-height: 52px;
}
.rs-faq-item summary::-webkit-details-marker { display: none; }
.rs-faq-q { font-weight: 700; flex: 1; line-height: 1.3; }
.rs-faq-caret {
  font-size: 1.2rem;
  color: #8590a0;
  transition: transform .2s, color .15s;
  flex-shrink: 0;
}
.rs-faq-item[open] .rs-faq-caret { transform: rotate(180deg); color: #0f5b45; }
.rs-faq-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5d6c78;
  padding: 0 20px 18px;
  margin: 0;
}

@media (max-width: 600px) {
  .reseller-faq { padding: 0 16px 36px; }
  .rs-faq-item summary { padding: 14px 16px; font-size: 0.9rem; }
  .rs-faq-item p { padding: 0 16px 16px; font-size: 0.84rem; }
}
