/* ── Base ─────────────────────────────────────── */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #050816;
  color: #f9fafb;
  -webkit-text-size-adjust: 100%;
}

/* ── Layout ───────────────────────────────────── */
.zp-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 12px 48px;
}

@media (min-width: 480px) {
  .zp-container {
    padding: 24px 16px 48px;
  }
}

/* ── Header ───────────────────────────────────── */
header {
  margin-bottom: 20px;
}

header h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  line-height: 1.2;
}

@media (min-width: 480px) {
  header h1 {
    font-size: 1.9rem;
  }
}

header p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* ── Card ─────────────────────────────────────── */
.zp-card {
  background: #0b1120;
  border-radius: 12px;
  padding: 16px 14px;
  margin-bottom: 16px;
  border: 1px solid #111827;
}

@media (min-width: 480px) {
  .zp-card {
    padding: 18px 16px;
    margin-bottom: 18px;
  }
}

/* ── Grid ─────────────────────────────────────── */
.zp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 16px;
}

@media (min-width: 600px) {
  .zp-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zp-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Field ────────────────────────────────────── */
.zp-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zp-label {
  font-size: 0.85rem;
  color: #e5e7eb;
}

.zp-label span {
  color: #f97316;
  margin-left: 4px;
}

/* ── Inputs ───────────────────────────────────── */
.zp-input,
.zp-textarea,
.zp-select {
  background: #020617;
  border-radius: 8px;
  border: 1px solid #1f2937;
  padding: 10px 12px;
  color: #f9fafb;
  font-size: 1rem;
  outline: none;
  min-height: 44px;
  box-sizing: border-box;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.zp-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 fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.zp-input::placeholder,
.zp-textarea::placeholder {
  color: #6b7280;
}

.zp-input:focus,
.zp-textarea:focus,
.zp-select:focus {
  border-color: #6366f1;
}

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

/* ── Botões ───────────────────────────────────── */
.zp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.zp-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  background: #111827;
  color: #e5e7eb;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.zp-btn:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.6);
}

.zp-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.zp-btn-primary {
  background: #6366f1;
  color: #f9fafb;
}

.zp-btn-primary:hover {
  background: #4f46e5;
}

.zp-btn-outline {
  border: 1px solid #374151;
}

/* ── Títulos de seção ─────────────────────────── */
.zp-section-title {
  font-size: 1rem;
  margin: 0 0 12px;
}

/* ── Output (resumo) ──────────────────────────── */
.zp-output {
  background: #020617;
  border-radius: 8px;
  border: 1px solid #1f2937;
  padding: 10px 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* ── Helper text ──────────────────────────────── */
.zp-helper {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ── Tabela ───────────────────────────────────── */
.zp-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
}

.zp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 480px;
}

.zp-table th,
.zp-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #111827;
  white-space: nowrap;
}

.zp-table th {
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Anúncios ─────────────────────────────────── */
.zp-ad {
  margin: 0 0 16px;
  min-height: 50px;
  overflow: hidden;
  border-radius: 8px;
}

/* ── Ações da tabela ──────────────────────────── */
.cx-acoes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Linha em edição ──────────────────────────── */
.cx-editando-row {
  background: rgba(99, 102, 241, 0.12);
  outline: 1px solid rgba(99, 102, 241, 0.4);
}

/* ── Cores entrada / saída ────────────────────── */
.cx-entrada {
  color: #4ade80;
  font-weight: 600;
}

.cx-saida {
  color: #f87171;
  font-weight: 600;
}

/* ── FAQ ──────────────────────────────────────── */
.zp-faq-item {
  padding: 14px 0;
  border-bottom: 1px solid #111827;
}

.zp-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.zp-faq-item h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #e5e7eb;
  font-weight: 600;
}

.zp-faq-item p {
  margin: 0;
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────── */
footer {
  margin-top: 24px;
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
}
