:root {
  --bg0: #0b1220;
  --bg1: #111a2e;
  --bg2: #18233b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eefc;
  --muted: #9aabcc;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --danger: #fb7185;
  --ok: #34d399;
  --warn: #fbbf24;
  --card: rgba(17, 26, 46, 0.88);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Sora", "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(45, 212, 191, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(56, 189, 248, 0.14), transparent 50%),
    linear-gradient(180deg, var(--bg0), #070b14 70%);
  background-attachment: fixed;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #041018;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 10px 30px rgba(45,212,191,0.25);
}
.logo span { opacity: 0.55; font-weight: 500; font-size: 0.85rem; margin-left: 4px; }

.hero-card, .panel, .box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card {
  padding: 36px 32px;
  margin-bottom: 20px;
  animation: rise 0.55s ease both;
}
.hero-card h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.12);
  color: var(--ok);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
}

.panel { padding: 22px; margin-bottom: 18px; animation: rise 0.65s ease both; }
.panel h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.meta div {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.meta label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.meta strong { font-size: 0.98rem; font-weight: 600; }

.deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.deliverable {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 64px;
}
.deliverable i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #14b8a6);
  color: #04201c;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.btn-block { width: 100%; }

.price {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.04em;
  margin: 4px 0 0;
}
.price small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pix-box {
  text-align: center;
  padding: 8px 0 4px;
}
.pix-box img {
  width: min(240px, 100%);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}
.pix-code {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  word-break: break-all;
  text-align: left;
  color: #c9d7f5;
}
.timer {
  margin-top: 12px;
  color: var(--warn);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.terms {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  margin: 14px 0;
}
.terms input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.terms label { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.terms a { color: var(--accent); }

.signature input {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font: inherit;
}
.signature input:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.muted { color: var(--muted); }
.err {
  color: var(--danger);
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.25);
  padding: 10px 12px;
  border-radius: 10px;
  margin: 10px 0;
  font-size: 0.9rem;
}
.ok-banner {
  color: var(--ok);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 10px 12px;
  border-radius: 10px;
  margin: 10px 0;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid rgba(45, 212, 191, 0.25);
}
.timeline li {
  position: relative;
  padding: 0 0 16px 18px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15);
}
.timeline strong { display: block; }
.timeline span { color: var(--muted); font-size: 0.85rem; }

.checklist { display: grid; gap: 8px; }
.check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.bar {
  width: 110px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 40;
}
.modal-bg.open { display: flex; }
.modal {
  width: min(560px, 100%);
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  max-height: 80vh;
  overflow: auto;
}
.modal h3 { margin: 0 0 12px; font-family: var(--display); }

/* Admin */
.admin-wrap { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 60px; }
.admin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}
.table th { color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-draft { background: rgba(255,255,255,0.06); color: var(--muted); }
.status-pending { background: rgba(251, 191, 36, 0.15); color: var(--warn); }
.status-paid, .status-delivered { background: rgba(52, 211, 153, 0.15); color: var(--ok); }
.status-expired { background: rgba(251, 113, 133, 0.15); color: var(--danger); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.8rem; color: var(--muted); }
.field input, .field textarea, .field select {
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font: inherit;
}
.field textarea { min-height: 90px; resize: vertical; }

.login-card {
  width: min(420px, calc(100% - 32px));
  margin: 10vh auto;
  padding: 28px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.home-hero {
  min-height: calc(100vh - 80px);
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 40px 0;
}
.home-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
  max-width: 12ch;
}
.home-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 42ch;
}
