:root {
  --bg: #f3efe7;
  --bg-soft: #fff8ef;
  --card: rgba(255, 252, 247, 0.94);
  --line: #e5d6bf;
  --text: #2f2418;
  --text-soft: #6f6254;
  --accent: #aa5b23;
  --accent-strong: #8d4513;
  --success: #1c7a43;
  --warn: #af6a12;
  --danger: #a5312a;
  --shadow: 0 18px 50px rgba(74, 43, 17, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 216, 173, 0.55), transparent 30%),
    radial-gradient(circle at right 10%, rgba(197, 121, 54, 0.16), transparent 24%),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 100%);
}

.reseller-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 18px 52px;
}

.hero-card,
.panel-card {
  background: var(--card);
  border: 1px solid rgba(229, 214, 191, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card {
  padding: 28px;
  margin-bottom: 20px;
}

.auth-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.auth-layout > #loginPanel:not(.hidden) {
  grid-column: 1 / -1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
}

.hero-copy,
.section-head p {
  color: var(--text-soft);
  max-width: 760px;
}

.hero-actions {
  margin-top: 18px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.65);
}

.panel-card {
  padding: 24px;
  margin-bottom: 20px;
}

#loginPanel {
  padding: 34px;
}

#loginPanel .section-head {
  max-width: 560px;
}

.section-head {
  margin-bottom: 18px;
}

.login-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.reseller-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.span-full,
.reseller-form > div:last-child {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid #dbc9ad;
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

#loginPanel input {
  min-height: 52px;
  font-size: 15px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(170, 91, 35, 0.55);
  box-shadow: 0 0 0 4px rgba(170, 91, 35, 0.12);
}

.plans-grid {
  display: grid;
  gap: 14px;
}

.plan-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(219, 201, 173, 0.95);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.95), rgba(252, 243, 228, 0.92));
}

.plan-card-locked {
  opacity: 0.88;
}

.plan-card h3 {
  margin: 0;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price strong {
  font-size: 28px;
}

.plan-meta,
.small-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(141, 69, 19, 0.18);
}

#loginPanel button {
  min-height: 52px;
  min-width: 190px;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.inline-note {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(170, 91, 35, 0.08);
  border: 1px solid rgba(170, 91, 35, 0.15);
  color: var(--accent-strong);
}

.checkout-status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.checkout-status.hidden,
.hidden {
  display: none;
}

.checkout-status.success {
  color: var(--success);
  background: rgba(28, 122, 67, 0.08);
  border-color: rgba(28, 122, 67, 0.15);
}

.checkout-status.warn {
  color: var(--warn);
  background: rgba(175, 106, 18, 0.09);
  border-color: rgba(175, 106, 18, 0.15);
}

.checkout-status.error {
  color: var(--danger);
  background: rgba(165, 49, 42, 0.08);
  border-color: rgba(165, 49, 42, 0.16);
}

.pix-box {
  display: grid;
  gap: 18px;
}

.pix-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 18px;
  align-items: start;
}

.pix-qr {
  display: grid;
  gap: 12px;
}

.pix-qr img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.pix-copy-code {
  width: 100%;
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
  .auth-layout,
  .pix-grid,
  .reseller-form,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  #loginPanel {
    max-width: none;
    padding: 24px;
  }
}