:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --text: #0f172a;
  --muted: #475569;
  --border: #cbd5e1;
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --red: #dc2626;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

.hidden {
  display: none !important;
}

.topbar {
  background: var(--navy);
  color: #ffffff;
  border-bottom: 3px solid var(--emerald);
  padding: 14px 0;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.mock-pill {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #f59e0b;
}

.main-content {
  padding-top: 28px;
  padding-bottom: 48px;
}

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #f8fafc;
  padding: 30px 28px;
  border-radius: 16px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px 0;
  color: #6ee7b7;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin: 0 0 10px 0;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  line-height: 1.22;
}

.hero-sub {
  margin: 0;
  color: #cbd5e1;
  max-width: 780px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.section-hint {
  font-size: 0.88rem;
  color: var(--muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.product-card {
  background: var(--surface);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.product-card.selected {
  border-color: var(--emerald);
  background: #f8fffb;
  box-shadow: 0 10px 24px -10px rgba(5, 150, 105, 0.35);
}

.product-card.featured {
  border-color: #1e293b;
}

.product-card.featured.selected {
  border-color: var(--emerald);
}

.card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--navy);
  margin-bottom: 10px;
}

.product-card.featured .card-badge {
  background: var(--emerald);
  color: #ffffff;
}

.product-card h3 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.card-sub {
  margin: 0 0 10px 0;
  font-size: 0.87rem;
  color: var(--muted);
}

.card-deliverables {
  margin: 0 0 14px 0;
  padding-left: 17px;
  font-size: 0.82rem;
  color: #334155;
}

.card-deliverables li {
  margin-bottom: 4px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.price-tag {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}

.select-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emerald);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 16px -8px rgba(15, 23, 42, 0.12);
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.12rem;
}

.selected-pill {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.8rem;
  font-weight: 700;
}

.field-group {
  margin-bottom: 15px;
}

.field-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.req-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--emerald-dark);
}

.req-tag.optional {
  color: var(--muted);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.label-row label {
  margin-bottom: 0;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.94rem;
  color: var(--text);
  background: #ffffff;
}

input:focus {
  outline: 2px solid rgba(5, 150, 105, 0.35);
  border-color: var(--emerald);
}

.field-help {
  margin: 4px 0 0 0;
  font-size: 0.79rem;
  color: var(--muted);
}

.conc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conc-row {
  display: flex;
  gap: 8px;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .two-cols {
    grid-template-columns: 1fr;
  }
}

.btn-primary {
  width: 100%;
  background: var(--emerald);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--emerald-dark);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-secondary {
  background: #e2e8f0;
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-ghost-sm {
  background: transparent;
  color: var(--emerald-dark);
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-remove {
  background: #fee2e2;
  color: #991b1b;
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-mock {
  width: 100%;
  margin-top: 14px;
  background: #f59e0b;
  color: #1e293b;
  border: none;
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-mock:hover {
  background: #d97706;
  color: #ffffff;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.checkout-placeholder {
  text-align: center;
  padding: 16px 8px;
}

.placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 10px;
}

.trust-list {
  text-align: left;
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 14px 12px 28px;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 14px 0 0 0;
}

.stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  font-size: 0.8rem;
}

.stepper li {
  padding: 7px 9px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
}

.stepper li.active {
  background: #fef3c7;
  color: #92400e;
}

.stepper li.done {
  background: #d1fae5;
  color: #065f46;
}

.badge-status {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--navy);
}

.pix-box {
  text-align: center;
}

.pix-price-line {
  margin: 0 0 10px 0;
  font-size: 1rem;
}

.qr-wrapper {
  display: inline-block;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 12px;
}

.qr-wrapper img {
  width: 180px;
  height: 180px;
  display: block;
}

.small-label {
  display: block;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.copy-row {
  display: flex;
  gap: 8px;
}

.copy-feedback {
  margin: 6px 0 0 0;
  font-size: 0.82rem;
  color: var(--emerald-dark);
  font-weight: 700;
}

.status-box {
  text-align: center;
  padding: 18px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.status-box.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.status-box.error {
  background: #fef2f2;
  border-color: #fecaca;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px auto;
  border: 4px solid #cbd5e1;
  border-top-color: var(--emerald);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-box {
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.footer {
  border-top: 1px solid #e2e8f0;
  padding: 18px 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.input-verify-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.input-verify-row input {
  flex: 1;
  min-width: 0;
}

.btn-verify {
  background: var(--navy);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 13px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-verify:hover {
  background: var(--navy-soft);
}

.btn-verify:disabled {
  opacity: 0.65;
  cursor: wait;
}

.conc-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.verified-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 6px;
}

.conc-item .verified-pill {
  margin-top: 0;
}

.btn-link-change {
  background: transparent;
  border: 1px solid #059669;
  color: #065f46;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.candidates-box {
  margin-top: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.conc-item .candidates-box {
  margin-top: 0;
}

.candidate-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.candidate-card:hover {
  border-color: var(--emerald);
  background: #f0fdf4;
}

.candidate-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
}

.candidate-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.candidate-warn {
  font-size: 0.76rem;
  color: #b45309;
  font-weight: 600;
  margin-top: 3px;
}

.candidate-empty {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.turnstile-wrapper {
  margin: 10px 0 12px 0;
  min-height: 65px;
}
