:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #0b1220;
  --line: #263244;
  --line-2: #334155;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --white: #f8fafc;
  --blue: #38bdf8;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top left, #1e3a8a 0, transparent 30%), var(--bg);
  color: var(--text);
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .95), rgba(13, 148, 136, .9));
  box-shadow: 0 16px 38px rgba(0, 0, 0, .25);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  color: var(--white);
}

.hero p {
  margin: 0;
  max-width: 760px;
  line-height: 1.55;
  color: #dbeafe;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
  color: #bfdbfe !important;
  margin-bottom: 8px !important;
}

.hero-card {
  min-width: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 18px;
  background: rgba(15, 23, 42, .35);
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--white);
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, .2);
}

.form-card,
.panel {
  background: rgba(17, 24, 39, .96);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.panel {
  margin-top: 18px;
  background: rgba(15, 23, 42, .92);
}

.section-title {
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--white);
}

.section-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.spacing-top {
  margin-top: 26px;
}

.choice-grid,
.grid {
  display: grid;
  gap: 14px;
}

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

.choice-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  border-radius: 16px;
  padding: 15px;
  cursor: pointer;
}

.choice-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .08);
}

.choice-card input {
  width: auto;
  margin-top: 3px;
}

.choice-card strong {
  display: block;
  color: var(--white);
  margin-bottom: 5px;
}

.choice-card span {
  display: block;
  color: var(--muted);
  line-height: 1.4;
  font-size: 13px;
}

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

.span-12 { grid-column: span 12; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 7px;
}

.field small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 13px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: #070d19;
  color: var(--white);
  outline: none;
  font-size: 15px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .15);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  font-size: 15px;
}

.btn.primary {
  background: var(--green);
  color: #052e16;
}

.btn.secondary {
  background: #334155;
  color: var(--white);
}

.btn.danger {
  background: var(--red);
  color: #fff;
}

.message {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.message.success {
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .35);
  color: #bbf7d0;
}

.message.error {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .35);
  color: #fecaca;
}

.message.info {
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(56, 189, 248, .35);
  color: #bae6fd;
}

.preview {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--panel-2);
}

.preview h3 {
  margin: 0 0 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #bfdbfe;
  background: #172033;
}

.hidden {
  display: none !important;
}

.hint-box {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(56, 189, 248, .08);
  border: 1px solid rgba(56, 189, 248, .24);
  color: #bae6fd;
  line-height: 1.55;
  font-family: monospace;
}

.iphone-lote {
  border: 1px solid #334155;
  margin-top: 16px;
}

.lote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}

.lote-header h3 {
  margin: 0;
  color: var(--white);
}

@media (max-width: 860px) {
  .hero,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }

  .hero-card {
    min-height: 70px;
  }

  .span-6,
  .span-4,
  .span-3 {
    grid-column: span 12;
  }
}
