:root {
  --brand: #224b6a;
  --brand-2: #2f668d;
  --brand-soft: #eaf2f7;
  --ink: #1e2a33;
  --muted: #667784;
  --line: #dbe4ea;
  --surface: #ffffff;
  --page: #f4f7f9;
  --success: #1f7a55;
  --success-soft: #eaf7f1;
  --warning: #a56b00;
  --warning-soft: #fff6df;
  --danger: #a33a3a;
  --shadow: 0 14px 40px rgba(25, 54, 74, .10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--page); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 102, 141, .10), transparent 30rem),
    var(--page);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(120deg, #1f4664, #2a5c7f);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 4px 16px rgba(16, 45, 64, .16);
}
.brand-wrap {
  width: min(1080px, calc(100% - 28px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-logo {
  width: 215px;
  height: auto;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}
.brand-title {
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.24);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-title strong {
  font-size: 1.28rem;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: .01em;
  text-shadow: 0 1px 1px rgba(0,0,0,.10);
}

.app-shell {
  width: min(980px, calc(100% - 28px));
  margin: 28px auto 60px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.centered { text-align: center; padding: 54px 28px; }
.centered p { max-width: 580px; margin-left: auto; margin-right: auto; }

.period-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 17px 20px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 26px rgba(34, 75, 106, .16);
}
.period-card > div { display: flex; flex-direction: column; gap: 3px; }
.period-card strong { font-size: 1.04rem; }
.period-card .eyebrow { color: rgba(255,255,255,.72); }
.deadline { text-align: right; }
.deadline span { font-size: .75rem; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .08em; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 18px;
}
.step {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px;
  pointer-events: none;
}
.step span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
}
.step.active { color: var(--brand); font-weight: 700; }
.step.active span { border-color: var(--brand); background: var(--brand); color: #fff; }
.step.done { color: var(--success); }
.step.done span { border-color: var(--success); background: var(--success-soft); color: var(--success); }

.section-heading { margin-bottom: 24px; }
.section-heading h1 { margin: 5px 0 7px; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.55; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: .72rem;
  font-weight: 800;
  color: var(--brand-2);
}
.muted { color: var(--muted); }
code { background: #eef3f6; padding: 2px 6px; border-radius: 6px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field > span { font-weight: 700; font-size: .92rem; }
.field input, .field select {
  width: 100%;
  border: 1px solid #cbd7df;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  min-height: 48px;
}
.field input:focus, .field select:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(47, 102, 141, .12);
}

.actions { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.actions.right { justify-content: flex-end; }
.actions.split { justify-content: space-between; }
.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  min-height: 46px;
  font-weight: 800;
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .58; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 7px 18px rgba(34,75,106,.18); }
.btn.primary:hover { background: #193d58; }
.btn.secondary { background: #edf3f7; color: var(--brand); border: 1px solid #d6e1e8; }
.btn.success { background: var(--success); }

.notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  margin: 0 0 20px;
  font-size: .92rem;
  line-height: 1.45;
}
.notice.info { background: var(--brand-soft); color: #24506f; border: 1px solid #d3e4ef; }
.notice.warning-soft { margin-top: 18px; background: var(--warning-soft); color: #735018; border: 1px solid #f0dfaa; }

.sticky-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.running-total {
  flex: 0 0 auto;
  min-width: 94px;
  padding: 10px 14px;
  text-align: center;
  background: var(--brand-soft);
  border: 1px solid #d7e5ee;
  border-radius: 14px;
}
.running-total span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.running-total strong { display: block; margin-top: 2px; font-size: 1.35rem; color: var(--brand); }

.catalog { display: flex; flex-direction: column; gap: 18px; }
.category-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.category-title {
  margin: 0;
  padding: 13px 16px;
  background: #f1f6f9;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: var(--brand);
}
.product-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f4;
}
.product-row:last-child { border-bottom: 0; }
.product-name { line-height: 1.35; font-weight: 650; }
.qty-control { display: grid; grid-template-columns: 38px 58px 38px; align-items: center; gap: 6px; }
.qty-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #cfdbe3;
  border-radius: 10px;
  background: #f7fafb;
  color: var(--brand);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 800;
}
.qty-input {
  width: 58px;
  height: 38px;
  text-align: center;
  border: 1px solid #cfdbe3;
  border-radius: 10px;
  font-weight: 800;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.review-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.review-meta > div {
  padding: 13px 14px;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.review-meta span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.review-meta strong { font-size: .95rem; }
.review-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.review-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.review-table th, .review-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #edf1f4; }
.review-table th:last-child, .review-table td:last-child { text-align: right; width: 95px; }
.review-table thead { background: #f1f6f9; color: var(--brand); }
.review-table tfoot { background: var(--brand-soft); color: var(--brand); }
.review-table tfoot th { border-bottom: 0; }

.status-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 900;
}
.status-icon.success { color: var(--success); background: var(--success-soft); }
.status-icon.warning { color: var(--warning); background: var(--warning-soft); }
.status-icon.lock { background: var(--brand-soft); }
.protocol-card {
  width: min(360px, 100%);
  margin: 22px auto;
  padding: 16px;
  border: 1px dashed #aac1cf;
  background: #f7fafb;
  border-radius: 14px;
}
.protocol-card span { display: block; font-size: .75rem; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
.protocol-card strong { display: block; margin-top: 5px; font-size: 1.25rem; color: var(--brand); word-break: break-word; }
.success-summary { color: var(--muted); line-height: 1.6; margin-bottom: 22px; }
.success-order-summary {
  width: min(620px, 100%);
  margin: 0 auto 22px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.success-order-summary h2 {
  margin: 0;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--brand);
  background: #f1f6f9;
  border-bottom: 1px solid var(--line);
}
.success-order-items { display: flex; flex-direction: column; }
.success-order-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid #edf1f4;
}
.success-order-row span { line-height: 1.35; }
.success-order-row strong { color: var(--brand); min-width: 34px; text-align: right; }
.success-order-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 13px 16px;
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 800;
}
.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.btn.whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #128c4e;
  color: #fff;
  box-shadow: 0 7px 18px rgba(18, 140, 78, .18);
}
.btn.whatsapp:hover { background: #0f7a43; }

.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  border: 4px solid #dce7ed;
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 30px));
  padding: 13px 16px;
  border-radius: 12px;
  color: #fff;
  background: #25333d;
  box-shadow: 0 12px 28px rgba(0,0,0,.20);
  text-align: center;
  font-weight: 700;
}
.toast.error { background: var(--danger); }
.footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 0 18px 30px; }

@media (max-width: 700px) {
  .brand-wrap { min-height: 66px; gap: 11px; }
  .brand-logo { width: 157px; max-height: 52px; }
  .brand-title { padding-left: 11px; }
  .brand-title strong { font-size: 1.02rem; }
  .app-shell { width: min(100% - 18px, 980px); margin-top: 16px; }
  .panel { padding: 20px 16px; border-radius: 16px; }
  .period-card { padding: 14px 15px; }
  .steps { gap: 2px; }
  .step { flex-direction: column; gap: 4px; font-size: .7rem; }
  .step small { font-size: .69rem; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .field.full { grid-column: auto; }
  .sticky-heading { align-items: center; }
  .section-heading h1 { font-size: 1.45rem; }
  .product-row { padding: 13px 12px; gap: 10px; }
  .product-name { font-size: .90rem; }
  .qty-control { grid-template-columns: 36px 50px 36px; gap: 4px; }
  .qty-btn { width: 36px; height: 36px; }
  .qty-input { width: 50px; height: 36px; }
  .review-meta { grid-template-columns: 1fr; }
  .success-actions { flex-direction: column; }
  .success-actions .btn { width: 100%; }
  .success-order-row { padding: 10px 12px; gap: 10px; }
  .success-order-total { padding: 12px; }
  .actions.split { gap: 8px; }
  .actions.split .btn { flex: 1; padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 430px) {
  .brand-logo { width: 139px; }
  .brand-title strong { font-size: .94rem; }
  .period-card { align-items: flex-start; }
  .deadline { text-align: left; }
  .product-row { grid-template-columns: 1fr; }
  .qty-control { justify-self: end; }
}

/* Painel do Superintendente */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.btn.compact { padding: 9px 13px; font-size: .88rem; }
.btn.full-width { width: 100%; }
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.footer-admin-link {
  border: 0;
  padding: 5px 8px;
  color: var(--brand);
  background: transparent;
  font-size: .80rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-admin-link:hover { color: #163a55; }

.admin-top-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}
.admin-login-panel {
  width: min(560px, 100%);
  margin: 0 auto;
  text-align: center;
  padding-top: 42px;
  padding-bottom: 42px;
}
.status-icon.admin { background: var(--brand-soft); color: var(--brand); }
.admin-login-panel h1 { margin: 8px 0 8px; }
.admin-login-panel > p { color: var(--muted); line-height: 1.55; }
.admin-login-form {
  width: min(390px, 100%);
  margin: 24px auto 0;
  display: grid;
  gap: 14px;
  text-align: left;
}
.admin-login-form .btn { width: 100%; }
.admin-login-help { margin: 16px auto 0; max-width: 430px; font-size: .82rem; }

.admin-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}
.admin-dashboard-head h1 { margin: 4px 0 4px; font-size: 1.8rem; color: var(--brand); }
.admin-dashboard-head p { margin: 0; color: var(--muted); }
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.metric-card {
  min-height: 112px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25,54,74,.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric-card span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.metric-card strong { color: var(--ink); font-size: 2rem; line-height: 1; }
.metric-card.success-tone { background: #f2faf6; border-color: #d6eee2; }
.metric-card.success-tone strong { color: var(--success); }
.metric-card.warning-tone { background: #fffaf0; border-color: #f0e2ba; }
.metric-card.warning-tone strong { color: var(--warning); }
.metric-card.brand-tone { background: var(--brand); border-color: var(--brand); }
.metric-card.brand-tone span { color: rgba(255,255,255,.78); }
.metric-card.brand-tone strong { color: #fff; }

.admin-control-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.admin-control-card h2 { margin: 4px 0 3px; font-size: 1.15rem; color: var(--brand); }
.admin-control-card p { margin: 0; }

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.admin-section { padding: 22px; }
.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.admin-section-head h2 { margin: 4px 0 0; color: var(--brand); font-size: 1.16rem; }
.admin-section-head p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.admin-filter select {
  min-width: 124px;
  border: 1px solid #cddbe4;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
}

.admin-unit-list { display: flex; flex-direction: column; gap: 8px; }
.admin-unit-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 13px;
  text-align: left;
}
button.admin-unit-row:hover { border-color: #afc5d3; background: #f9fbfc; }
.admin-unit-main { min-width: 0; }
.admin-unit-name { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }
.admin-unit-meta { margin-top: 4px; color: var(--muted); font-size: .80rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-unit-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.admin-unit-total { color: var(--brand); font-weight: 850; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}
.status-badge.sent { color: var(--success); background: var(--success-soft); }
.status-badge.pending { color: var(--warning); background: var(--warning-soft); }

.pending-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pending-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f7f9fa;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
}
.pending-empty {
  width: 100%;
  padding: 18px;
  border-radius: 12px;
  background: var(--success-soft);
  color: var(--success);
  text-align: center;
  font-weight: 800;
}

.admin-betel-section { margin-bottom: 16px; }
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 650px; background: #fff; }
.admin-table th, .admin-table td { padding: 11px 12px; border-bottom: 1px solid #edf1f4; text-align: left; vertical-align: middle; }
.admin-table thead { background: #f1f6f9; color: var(--brand); }
.admin-table th:nth-last-child(-n+2), .admin-table td:nth-last-child(-n+2) { text-align: center; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tfoot { background: var(--brand-soft); color: var(--brand); font-weight: 850; }
.admin-table tfoot th { border-bottom: 0; }
.admin-table .zero { color: #9aa8b1; }
.admin-table .positive { color: var(--brand); font-weight: 850; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 20px;
  background: rgba(17, 32, 42, .58);
  display: grid;
  place-items: center;
}
.modal-card {
  width: min(800px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.modal-head h2 { margin: 4px 0 0; color: var(--brand); }
.modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5f8fa;
  color: var(--brand);
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 820px) {
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .admin-dashboard-head { align-items: flex-start; flex-direction: column; }
  .admin-head-actions { width: 100%; }
  .admin-head-actions .btn { flex: 1; }
  .admin-control-card { align-items: stretch; flex-direction: column; }
  .admin-control-card .btn { width: 100%; }
  .admin-section { padding: 18px 14px; }
  .admin-section-head { align-items: stretch; flex-direction: column; }
  .admin-filter select { width: 100%; }
  .admin-unit-row { grid-template-columns: 1fr; }
  .admin-unit-side { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .modal-backdrop { padding: 10px; }
  .modal-card { padding: 16px 12px; border-radius: 15px; }
}

/* =========================================================
   V2.2 — Identidade visual mais moderna e colorida
   ========================================================= */
:root {
  --brand: #174f78;
  --brand-2: #2479a8;
  --brand-3: #4c9cc7;
  --brand-soft: #e9f5fb;
  --ink: #172632;
  --muted: #667985;
  --line: #dce8ee;
  --surface: rgba(255,255,255,.96);
  --page: #f4f9fc;
  --success: #168558;
  --success-soft: #e7f8f0;
  --warning: #b97808;
  --warning-soft: #fff5d9;
  --danger: #b44242;
  --purple: #6e5db7;
  --purple-soft: #f0edff;
  --orange: #d8732b;
  --orange-soft: #fff0e5;
  --teal: #168c91;
  --teal-soft: #e5f8f7;
  --shadow: 0 18px 50px rgba(22, 70, 97, .12);
  --shadow-soft: 0 10px 28px rgba(22, 70, 97, .08);
  --radius: 22px;
}

html { background: #f4f9fc; }
body {
  background:
    radial-gradient(circle at 8% 2%, rgba(52, 154, 202, .16), transparent 25rem),
    radial-gradient(circle at 95% 12%, rgba(111, 91, 183, .10), transparent 24rem),
    linear-gradient(180deg, #f9fcfe 0%, #eef7fb 100%);
  background-attachment: fixed;
}

.topbar {
  background:
    linear-gradient(120deg, rgba(15, 61, 94, .98), rgba(27, 104, 151, .98) 55%, rgba(25, 134, 145, .96));
  border-bottom: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 28px rgba(13, 53, 80, .20);
  backdrop-filter: blur(10px);
}
.brand-wrap { min-height: 82px; }
.brand-title strong {
  font-size: 1.42rem;
  letter-spacing: .015em;
  text-shadow: 0 2px 8px rgba(0,0,0,.16);
}

.app-shell { width: min(1040px, calc(100% - 28px)); }
.panel {
  border: 1px solid rgba(194, 218, 229, .78);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.period-card {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(120deg, #174f78 0%, #277eaa 55%, #1c9297 100%);
  box-shadow: 0 14px 34px rgba(24, 93, 132, .22);
}
.period-card::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  right: -38px;
  top: -68px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
}
.period-card strong { font-size: 1.12rem; }

.steps {
  padding: 7px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(208, 226, 235, .82);
  box-shadow: var(--shadow-soft);
}
.step { border-radius: 13px; transition: background .18s ease, color .18s ease; }
.step.active { background: linear-gradient(135deg, #ecf8fd, #eef4ff); color: #175b88; }
.step.active span {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-2), var(--teal));
  box-shadow: 0 5px 13px rgba(28, 116, 155, .22);
}
.step.done { background: #edf9f4; }
.step.done span { background: var(--success); color: #fff; border-color: var(--success); }

.section-heading h1 { color: #143f5d; letter-spacing: -.015em; }
.eyebrow { color: #2479a8; letter-spacing: .12em; }

.field input, .field select {
  border: 1px solid #c9dce6;
  background: rgba(255,255,255,.94);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.field input:focus, .field select:focus {
  border-color: #2a85b2;
  box-shadow: 0 0 0 4px rgba(45, 139, 181, .13);
}

.btn {
  border-radius: 14px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: saturate(1.06); }
.btn.primary {
  background: linear-gradient(135deg, #18577f, #2685b2);
  box-shadow: 0 9px 22px rgba(29, 101, 143, .22);
}
.btn.primary:hover { background: linear-gradient(135deg, #154c70, #2379a4); }
.btn.secondary {
  background: linear-gradient(180deg, #f8fbfd, #edf5f9);
  border-color: #d0e1e9;
}
.btn.success { background: linear-gradient(135deg, #168558, #22a66c); }
.btn.whatsapp { background: linear-gradient(135deg, #128c4e, #20b565); }
.btn.disabled { opacity: .48; pointer-events: none; }

.notice { border-radius: 15px; }
.notice.info { background: linear-gradient(135deg, #eaf6fc, #edf3ff); }
.notice.warning-soft { background: linear-gradient(135deg, #fff8e4, #fff1dd); }

.running-total {
  background: linear-gradient(135deg, #e9f7fc, #e9f9f6);
  border-color: #cce7ea;
  box-shadow: 0 6px 16px rgba(25, 114, 142, .08);
}

.category-card {
  border: 0;
  box-shadow: var(--shadow-soft);
  border-radius: 18px;
  position: relative;
}
.category-title {
  padding: 15px 17px;
  border-bottom: 0;
  font-weight: 850;
}
.category-card:nth-child(6n + 1) .category-title { background: linear-gradient(135deg, #eaf6ff, #dff3ff); color: #176b9c; }
.category-card:nth-child(6n + 2) .category-title { background: linear-gradient(135deg, #f1edff, #e8e3ff); color: #6756b2; }
.category-card:nth-child(6n + 3) .category-title { background: linear-gradient(135deg, #e5f9f5, #ddf5ee); color: #16815e; }
.category-card:nth-child(6n + 4) .category-title { background: linear-gradient(135deg, #fff1e6, #ffe8da); color: #b85f25; }
.category-card:nth-child(6n + 5) .category-title { background: linear-gradient(135deg, #fff8dc, #fff0c8); color: #9a6b06; }
.category-card:nth-child(6n + 6) .category-title { background: linear-gradient(135deg, #e9f8f9, #dbf3f5); color: #147c82; }
.product-row { border-bottom-color: #edf3f6; }
.product-row:hover { background: #fbfdfe; }
.qty-btn {
  border-color: #c9dfe9;
  background: linear-gradient(180deg, #fff, #edf7fb);
  color: #176b98;
}
.qty-btn:hover { background: #e7f5fb; }

.protocol-card {
  background: linear-gradient(135deg, #eef8fc, #eef4ff);
  border-color: #d1e8f2;
}
.success-order-summary { border-color: #d7e7ee; box-shadow: var(--shadow-soft); }

/* Dashboard moderno */
.admin-dashboard-head {
  padding: 4px 2px 2px;
}
.admin-dashboard-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.45rem);
  color: #143f5d;
  letter-spacing: -.025em;
}
.admin-metrics { gap: 14px; }
.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 19px;
  border: 0;
  box-shadow: var(--shadow-soft);
  transition: transform .16s ease, box-shadow .16s ease;
}
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(24, 83, 114, .12); }
.metric-card::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  right: -22px;
  top: -23px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.metric-card span { font-size: .84rem; }
.metric-card strong { font-size: 2.25rem; }
.metric-card:not(.success-tone):not(.warning-tone):not(.brand-tone) {
  background: linear-gradient(135deg, #f0edff, #e9f1ff);
}
.metric-card:not(.success-tone):not(.warning-tone):not(.brand-tone) strong { color: var(--purple); }
.metric-card.success-tone { background: linear-gradient(135deg, #e8faf2, #def6e9); }
.metric-card.warning-tone { background: linear-gradient(135deg, #fff7df, #ffedd8); }
.metric-card.brand-tone { background: linear-gradient(135deg, #174f78, #2784ad 60%, #178d94); }

.admin-progress-card {
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid #d8e7ee;
  box-shadow: var(--shadow-soft);
}
.admin-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 12px;
}
.admin-progress-head > div { display: grid; gap: 4px; }
.admin-progress-head strong { color: #173f59; font-size: 1rem; }
.admin-progress-percent {
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--teal);
}
.admin-progress-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7f0f4;
  box-shadow: inset 0 1px 2px rgba(17, 67, 91, .08);
}
.admin-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2479a8, #1fa36d, #d0a026);
  transition: width .4s ease;
}

.admin-control-card {
  border: 0;
  background: linear-gradient(135deg, #f4f9fc, #eef9f7);
  box-shadow: var(--shadow-soft);
}
.admin-control-card h2 { color: #174f78; }

.admin-section { border: 0; box-shadow: var(--shadow-soft); }
.admin-section-head h2 { color: #173f59; font-size: 1.25rem; }
.admin-filter select { border-radius: 12px; background: #f8fbfd; }

.admin-unit-row {
  border: 1px solid #dbe8ee;
  border-radius: 15px;
  padding: 14px 15px;
  box-shadow: 0 5px 14px rgba(29, 82, 107, .045);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
button.admin-unit-row:hover {
  border-color: #9fc7da;
  background: #f6fbfd;
  transform: translateY(-1px);
}
.admin-unit-row.sent-row { border-left: 5px solid #24a36f; }
.admin-unit-row.pending-row { border-left: 5px solid #e0a83c; background: #fffdf8; }
.admin-unit-name { font-size: .98rem; color: #183c53; }
.admin-unit-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 7px;
  color: var(--muted);
  font-size: .76rem;
}
.admin-unit-details b { color: #436273; }
.admin-unit-details.pending-text { color: #a2711b; }
.admin-unit-open { font-size: .74rem; color: #2479a8; font-weight: 800; }
.status-badge.sent { color: #0f7e51; background: #dcf6e9; }
.status-badge.pending { color: #9b6810; background: #fff1c9; }

.pending-chip {
  border: 0;
  background: linear-gradient(135deg, #fff4d4, #fff0e5);
  color: #80551b;
  box-shadow: inset 0 0 0 1px #f3ddb0;
}
.pending-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.admin-betel-section {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,253,.98));
}
.admin-table-wrap { border-radius: 15px; border-color: #d9e7ed; }
.admin-table thead { background: linear-gradient(90deg, #e9f5fb, #e9f8f4); color: #174f78; }
.admin-table tbody tr:nth-child(even) { background: #fbfdfe; }
.admin-table tbody tr:hover { background: #f1f8fb; }
.admin-table tfoot { background: linear-gradient(90deg, #e9f5fb, #e4f7ef); }
.admin-table .positive {
  color: #0f7f54;
  background: #effaf5;
  border-radius: 8px;
}

.modal-backdrop { backdrop-filter: blur(5px); background: rgba(11, 42, 60, .58); }
.modal-card { border-radius: 22px; border: 1px solid rgba(255,255,255,.42); }

.footer-admin-link {
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 999px;
  background: #e9f5fb;
  border: 1px solid #d2e8f2;
}
.footer-admin-link:hover { background: #dff1fa; }

@media (max-width: 700px) {
  .brand-wrap { min-height: 72px; }
  .brand-title strong { font-size: 1.06rem; }
  .panel { border-radius: 18px; }
  .steps { border-radius: 15px; }
  .pending-actions { grid-template-columns: 1fr; }
  .admin-progress-head { align-items: flex-start; }
  .admin-unit-details { display: grid; gap: 4px; }
}

/* =========================================================
   V2.3 — Identidade oficial AD Viçosa + visual premium
   ========================================================= */
:root {
  --navy-950: #062c4e;
  --navy-900: #083961;
  --blue-700: #0f5f96;
  --blue-600: #167db2;
  --cyan-500: #11a7c5;
  --teal-500: #12a68d;
  --green-500: #25a96f;
  --violet-500: #7059c7;
  --amber-500: #e3a029;
  --coral-500: #e86e4f;
  --premium-border: rgba(154, 199, 220, .52);
  --premium-shadow: 0 22px 60px rgba(11, 63, 96, .13);
  --premium-shadow-soft: 0 12px 32px rgba(11, 63, 96, .09);
}

html { background: #eef8fc; }
body {
  background:
    radial-gradient(circle at 8% -4%, rgba(22, 125, 178, .20), transparent 27rem),
    radial-gradient(circle at 100% 12%, rgba(18, 166, 141, .14), transparent 30rem),
    radial-gradient(circle at 4% 92%, rgba(112, 89, 199, .11), transparent 25rem),
    linear-gradient(180deg, #f8fcff 0%, #eef8fc 58%, #f6fbfd 100%);
  background-attachment: fixed;
}
body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
}
body::before {
  width: 330px;
  height: 330px;
  left: -190px;
  bottom: -150px;
  background: linear-gradient(135deg, rgba(112,89,199,.16), rgba(22,125,178,.04));
}
body::after {
  width: 290px;
  height: 290px;
  right: -150px;
  top: 145px;
  background: linear-gradient(135deg, rgba(18,166,141,.12), rgba(17,167,197,.03));
}

.topbar {
  position: sticky;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% -35%, rgba(17,167,197,.36), transparent 22rem),
    linear-gradient(112deg, #062f54 0%, #0b4d7a 42%, #0f6f91 73%, #118b92 100%);
  border-bottom: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 10px 34px rgba(6, 44, 78, .24);
}
.topbar::after {
  content: '';
  position: absolute;
  inset: auto -80px -98px auto;
  width: 270px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.055);
  transform: rotate(-14deg);
  pointer-events: none;
}
.brand-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 92px;
  gap: 22px;
}
.brand-logo {
  width: 240px;
  max-height: 72px;
  filter: drop-shadow(0 5px 14px rgba(0,0,0,.18));
}
.brand-title {
  padding-left: 22px;
  border-left: 1px solid rgba(255,255,255,.30);
}
.brand-title strong {
  font-size: clamp(1.25rem, 2vw, 1.62rem);
  font-weight: 900;
  letter-spacing: -.01em;
  text-shadow: 0 3px 12px rgba(0,0,0,.20);
}

.app-shell {
  width: min(1100px, calc(100% - 30px));
  margin-top: 24px;
}
.panel {
  position: relative;
  border: 1px solid var(--premium-border);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(255,255,255,.985), rgba(250,253,255,.965));
  box-shadow: var(--premium-shadow);
}
.step-panel {
  overflow: hidden;
}
.step-panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500), var(--teal-500));
}
#step2::before { background: linear-gradient(90deg, var(--violet-500), var(--blue-600), var(--cyan-500)); }
#step3::before { background: linear-gradient(90deg, var(--amber-500), var(--coral-500), var(--green-500)); }

.period-card {
  min-height: 82px;
  padding: 20px 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.18), transparent 10rem),
    linear-gradient(118deg, #073d6b 0%, #0f6698 47%, #1395a6 100%);
  box-shadow: 0 16px 38px rgba(8, 78, 118, .24);
}
.period-card::before {
  content: '◷';
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-right: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.period-card { justify-content: flex-start; }
.period-card > div:first-of-type { margin-right: auto; }
.period-card strong { font-size: 1.2rem; }

.steps {
  position: relative;
  gap: 5px;
  padding: 9px;
  border: 1px solid rgba(180, 211, 224, .66);
  border-radius: 20px;
  background: rgba(255,255,255,.80);
  box-shadow: var(--premium-shadow-soft);
  backdrop-filter: blur(16px);
}
.step {
  min-height: 48px;
  border-radius: 14px;
}
.step span {
  width: 31px;
  height: 31px;
  border-width: 2px;
}
.step.active {
  color: #0d5e90;
  background: linear-gradient(135deg, #e5f6fd, #e9f7f2);
  box-shadow: inset 0 0 0 1px rgba(82, 174, 207, .12);
}
.step.active span {
  background: linear-gradient(135deg, #0d6ea5, #16a5a3);
  box-shadow: 0 7px 16px rgba(15, 111, 155, .24);
}
.step.done {
  color: #14845a;
  background: linear-gradient(135deg, #e7f9f1, #edf9f7);
}

.section-heading { margin-bottom: 26px; }
.section-heading h1 {
  margin-top: 7px;
  color: #0c3556;
  font-size: clamp(1.65rem, 3.2vw, 2.22rem);
  font-weight: 900;
  letter-spacing: -.028em;
}
.section-heading p { color: #607786; }
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e7f6fd, #e8f8f3);
  color: #126a97;
  letter-spacing: .105em;
}

.field { gap: 8px; }
.field > span { color: #203d52; font-weight: 800; }
.field input,
.field select {
  min-height: 52px;
  border: 1.5px solid #c9dfe9;
  border-radius: 15px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 4px 14px rgba(24, 94, 126, .035), inset 0 1px 0 rgba(255,255,255,.9);
}
.field input:hover,
.field select:hover { border-color: #a9cedf; }
.field input:focus,
.field select:focus {
  border-color: #1d8fba;
  box-shadow: 0 0 0 4px rgba(22, 141, 184, .13), 0 8px 22px rgba(25, 94, 126, .06);
}

.btn {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 15px;
  font-weight: 900;
  letter-spacing: .005em;
}
.btn.primary {
  background: linear-gradient(135deg, #0b63a5 0%, #0e84bb 47%, #14aa8d 100%);
  box-shadow: 0 11px 26px rgba(11, 109, 157, .24);
}
.btn.primary:hover {
  background: linear-gradient(135deg, #095993 0%, #0c79ac 48%, #12987e 100%);
}
.btn.secondary {
  background: linear-gradient(180deg, #ffffff, #eef7fb);
  border: 1px solid #cfe3ec;
  color: #0e5f8d;
  box-shadow: 0 6px 16px rgba(25, 94, 126, .06);
}
.btn.success { background: linear-gradient(135deg, #158a5b, #25b675); }
.btn.whatsapp { background: linear-gradient(135deg, #0e9a55, #24c56f); }

.notice.info {
  background: linear-gradient(135deg, #e7f6fd, #edf2ff);
  border-color: #cfe5f2;
}
.notice.warning-soft {
  background: linear-gradient(135deg, #fff7dc, #fff0e8);
  border-color: #f1dbb2;
}

.running-total {
  border: 0;
  background: linear-gradient(135deg, #e5f7fd, #e6faf3);
  box-shadow: 0 9px 22px rgba(20, 112, 145, .10);
}
.running-total strong { color: #0c6e99; }

.category-card {
  border: 1px solid rgba(195, 218, 228, .62);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(16, 80, 112, .075);
  transition: transform .16s ease, box-shadow .16s ease;
}
.category-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(16, 80, 112, .10);
}
.category-title {
  padding: 16px 18px;
  font-size: 1.04rem;
  letter-spacing: -.01em;
}
.category-card:nth-child(7n + 1) .category-title { background: linear-gradient(120deg, #dff5ff, #e9f7ff); color: #0c6c9f; }
.category-card:nth-child(7n + 2) .category-title { background: linear-gradient(120deg, #eee9ff, #f5f0ff); color: #6651b4; }
.category-card:nth-child(7n + 3) .category-title { background: linear-gradient(120deg, #ddf8ed, #eafaf4); color: #167c59; }
.category-card:nth-child(7n + 4) .category-title { background: linear-gradient(120deg, #fff0dd, #fff6e9); color: #b76524; }
.category-card:nth-child(7n + 5) .category-title { background: linear-gradient(120deg, #fff7d6, #fffbea); color: #916708; }
.category-card:nth-child(7n + 6) .category-title { background: linear-gradient(120deg, #def7f8, #e9fbfa); color: #117c82; }
.category-card:nth-child(7n + 7) .category-title { background: linear-gradient(120deg, #ffe8ec, #fff1f2); color: #b14a60; }
.product-row { padding: 15px 18px; }
.product-row:hover { background: linear-gradient(90deg, rgba(236,248,253,.75), rgba(255,255,255,.9)); }
.qty-btn {
  border: 1px solid #c8e0ea;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #edf8fc);
  color: #0b6c9d;
  box-shadow: 0 4px 10px rgba(19, 91, 124, .06);
}
.qty-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #197fac, #18a095);
}
.qty-input { border-radius: 12px; border-color: #c8e0ea; }

.review-meta { gap: 14px; }
.review-meta > div {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 7px 18px rgba(22, 79, 105, .06);
}
.review-meta > div:nth-child(1) { background: linear-gradient(135deg, #e7f5fd, #f1faff); }
.review-meta > div:nth-child(2) { background: linear-gradient(135deg, #eeeaff, #f7f4ff); }
.review-meta > div:nth-child(3) { background: linear-gradient(135deg, #e5f9f0, #f0fcf7); }
.review-meta > div:nth-child(4) { background: linear-gradient(135deg, #fff5dc, #fff9ec); }
.review-table-wrap {
  border: 1px solid #d4e7ef;
  border-radius: 18px;
  box-shadow: 0 9px 22px rgba(15, 75, 103, .055);
}
.review-table thead { background: linear-gradient(90deg, #e5f5fb, #e8f8f3); }
.review-table tbody tr:nth-child(even) { background: #fbfdfe; }
.review-table tfoot { background: linear-gradient(90deg, #e7f6fd, #e6f8ef); }

#successView {
  background:
    radial-gradient(circle at 50% -8%, rgba(37,169,111,.15), transparent 20rem),
    linear-gradient(155deg, rgba(255,255,255,.99), rgba(246,252,249,.98));
}
.status-icon.success {
  color: #fff;
  background: linear-gradient(135deg, #15925f, #26bd79);
  box-shadow: 0 10px 26px rgba(21, 146, 95, .22);
}
.protocol-card {
  border: 0;
  background: linear-gradient(135deg, #e5f6fd, #eef3ff);
  box-shadow: 0 10px 24px rgba(18, 95, 133, .09);
}
.success-order-summary {
  border: 0;
  border-radius: 20px;
  box-shadow: var(--premium-shadow-soft);
}
.success-order-summary h2 { background: linear-gradient(90deg, #e6f5fc, #e7f8f1); }
.success-order-total { background: linear-gradient(90deg, #e7f5fb, #e3f7ed); }

/* Painel administrativo */
.admin-login-panel {
  overflow: hidden;
  border-top: 5px solid transparent;
  border-image: linear-gradient(90deg, var(--blue-600), var(--violet-500), var(--teal-500)) 1;
}
.status-icon.admin {
  color: #fff;
  background: linear-gradient(135deg, #0f6fa5, #7059c7);
  box-shadow: 0 10px 26px rgba(68, 83, 169, .20);
}
.admin-dashboard-head {
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(231,246,253,.86), rgba(235,249,244,.88));
  border: 1px solid #d6e8ef;
  box-shadow: var(--premium-shadow-soft);
}
.admin-dashboard-head h1 { color: #0b3556; }
.admin-metrics { gap: 15px; }
.metric-card {
  min-height: 132px;
  border-radius: 20px;
}
.metric-card:nth-child(1) { background: linear-gradient(135deg, #e9e5ff, #edf4ff); }
.metric-card.success-tone { background: linear-gradient(135deg, #dff8ec, #ecfbf4); }
.metric-card.warning-tone { background: linear-gradient(135deg, #fff3cf, #fff2e4); }
.metric-card.brand-tone { background: linear-gradient(135deg, #073d6b, #0f6d98 55%, #149695); }
.metric-card strong { font-size: 2.4rem; }
.admin-progress-card,
.admin-control-card,
.admin-section {
  border: 1px solid rgba(190, 217, 228, .62);
  border-radius: 20px;
  box-shadow: var(--premium-shadow-soft);
}
.admin-progress-track { height: 13px; background: #e4eff3; }
.admin-progress-fill { background: linear-gradient(90deg, #0c6ea3 0%, #19a594 50%, #2eb56d 100%); }
.admin-control-card { background: linear-gradient(135deg, #eef8fd, #eef9f5); }
.admin-unit-row { border-radius: 16px; }
.admin-unit-row.sent-row { border-left: 6px solid #22aa70; background: linear-gradient(90deg, #f4fcf8, #fff); }
.admin-unit-row.pending-row { border-left: 6px solid #e2a62c; background: linear-gradient(90deg, #fffaf0, #fff); }
.status-badge.sent { background: #dcf7e9; }
.status-badge.pending { background: #fff0c2; }
.pending-chip { background: linear-gradient(135deg, #fff3cf, #fff0e2); }
.admin-betel-section { overflow: hidden; }
.admin-table thead { background: linear-gradient(90deg, #dff3fb, #e2f7ef); }
.admin-table tbody tr:hover { background: #eef8fb; }
.admin-table .positive {
  display: inline-block;
  min-width: 34px;
  padding: 4px 8px;
  background: #e2f8ee;
  color: #128157;
}
.modal-card {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 28px 85px rgba(5, 40, 63, .35);
}

.footer {
  color: #617887;
}
.footer-admin-link {
  padding: 9px 15px;
  border: 1px solid #cfe5ef;
  background: linear-gradient(135deg, #e5f5fb, #e9f8f3);
  color: #0e608e;
  box-shadow: 0 6px 16px rgba(24, 96, 126, .06);
}

@media (max-width: 700px) {
  .brand-wrap { min-height: 78px; gap: 12px; }
  .brand-logo { width: 172px; max-height: 60px; }
  .brand-title { padding-left: 12px; }
  .brand-title strong { font-size: 1.08rem; }
  .app-shell { width: min(100% - 18px, 1100px); margin-top: 15px; }
  .panel { padding: 21px 16px; border-radius: 19px; }
  .period-card { min-height: 72px; padding: 15px 16px; border-radius: 18px; }
  .period-card::before { width: 38px; height: 38px; border-radius: 12px; margin-right: 8px; }
  .period-card strong { font-size: 1.04rem; }
  .steps { padding: 6px; border-radius: 16px; }
  .section-heading h1 { font-size: 1.55rem; }
  .metric-card strong { font-size: 2.15rem; }
  .admin-dashboard-head { padding: 16px; }
}

@media (max-width: 430px) {
  .brand-logo { width: 148px; }
  .brand-title strong { font-size: .96rem; }
  .period-card { flex-wrap: wrap; }
  .deadline { width: 100%; margin-left: 50px; }
  .product-row { border-radius: 0; }
}

/* =========================================================
   V2.4 — REDESIGN VISUAL COMPLETO
   Identidade oficial AD Viçosa + interface mais colorida,
   moderna e com contraste reforçado em desktop e mobile.
   ========================================================= */
:root {
  --brand: #083f72;
  --brand-2: #0d78b8;
  --brand-3: #0ea5b7;
  --cyan: #17c7c4;
  --teal: #0ca678;
  --violet: #7657d7;
  --violet-soft: #f1edff;
  --amber: #f0a522;
  --rose: #e85d75;
  --ink: #0d2f49;
  --muted: #637b8e;
  --surface: rgba(255,255,255,.95);
  --line: rgba(138, 183, 209, .34);
  --brand-soft: #e9f7ff;
  --success: #138a5c;
  --success-soft: #e5f8ef;
  --warning: #a96600;
  --warning-soft: #fff3d4;
  --danger: #b43c4e;
  --shadow: 0 22px 65px rgba(7, 63, 105, .14);
  --shadow-soft: 0 12px 32px rgba(7, 63, 105, .09);
  --radius: 24px;
}

html {
  background: #eef9fd;
}
body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 3% 12%, rgba(37, 125, 255, .19), transparent 27rem),
    radial-gradient(circle at 94% 8%, rgba(13, 194, 192, .19), transparent 28rem),
    radial-gradient(circle at 12% 92%, rgba(132, 91, 234, .15), transparent 30rem),
    radial-gradient(circle at 92% 88%, rgba(29, 199, 148, .15), transparent 30rem),
    linear-gradient(145deg, #eef9ff 0%, #f8fbff 46%, #eefbf7 100%);
  background-attachment: fixed;
}
body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  width: 36vw;
  height: 36vw;
  min-width: 340px;
  min-height: 340px;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}
body::before {
  left: -18vw;
  bottom: -18vw;
  background: radial-gradient(circle, rgba(115, 82, 220, .18), rgba(49, 132, 255, .04) 62%, transparent 70%);
}
body::after {
  right: -17vw;
  top: 16vh;
  background: radial-gradient(circle, rgba(18, 202, 174, .18), rgba(56, 170, 224, .04) 62%, transparent 70%);
}

.topbar {
  background:
    radial-gradient(circle at 92% -40%, rgba(56, 224, 206, .40), transparent 28%),
    linear-gradient(110deg, #073864 0%, #075184 38%, #087aa2 72%, #0b9a9e 100%);
  border-bottom: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 35px rgba(6, 50, 82, .24);
}
.topbar::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 238, 228, .9), transparent);
}
.brand-wrap {
  width: min(1120px, calc(100% - 30px));
  min-height: 90px;
  gap: 26px;
}
.brand-logo {
  width: 235px;
  max-height: 70px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.16));
}
.brand-title {
  min-height: 46px;
  justify-content: center;
  padding-left: 24px;
  border-left-color: rgba(255,255,255,.35);
}
.brand-title strong {
  font-size: clamp(1.22rem, 2.3vw, 1.62rem);
  font-weight: 900;
  letter-spacing: -.012em;
  text-shadow: 0 3px 14px rgba(0,0,0,.18);
}

.app-shell {
  width: min(1060px, calc(100% - 30px));
  margin-top: 30px;
}

.period-card {
  min-height: 112px;
  padding: 20px 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 15%, rgba(89, 246, 223, .32), transparent 20%),
    radial-gradient(circle at 74% 115%, rgba(34, 208, 221, .28), transparent 35%),
    linear-gradient(115deg, #073f73 0%, #0966a0 48%, #0b98a7 100%);
  border: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 18px 44px rgba(6, 67, 111, .25);
}
.period-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,.10), transparent 38%, rgba(255,255,255,.05));
  pointer-events: none;
}
.period-main {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 16px !important;
}
.period-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.period-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255,255,255,.20), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 7px 18px rgba(0,0,0,.12);
}
.period-icon svg { width: 28px; height: 28px; }
.period-card .eyebrow {
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: #06395f !important;
  background: #e5fbff !important;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 4px 12px rgba(6, 55, 88, .12);
  font-size: .70rem;
  font-weight: 950;
  letter-spacing: .11em;
  text-shadow: none !important;
}
.period-card strong {
  color: #fff;
  font-size: clamp(1.12rem, 2.3vw, 1.36rem);
  font-weight: 950;
  text-shadow: 0 2px 12px rgba(0,0,0,.22);
}
.deadline { position: relative; z-index: 1; }
.deadline span { color: rgba(255,255,255,.88); }

.steps {
  position: relative;
  padding: 9px;
  gap: 8px;
  border-radius: 22px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(145, 194, 219, .38);
  box-shadow: 0 14px 38px rgba(8, 70, 108, .10);
  backdrop-filter: blur(14px);
}
.step {
  min-height: 54px;
  border-radius: 16px;
  font-weight: 750;
}
.step span {
  width: 30px;
  height: 30px;
  border-width: 2px;
  box-shadow: 0 4px 10px rgba(9, 76, 113, .07);
}
.step.active {
  color: #075784;
  background: linear-gradient(135deg, rgba(210, 245, 255, .95), rgba(224, 250, 241, .94));
  box-shadow: inset 0 0 0 1px rgba(73, 176, 203, .16);
}
.step.active span {
  background: linear-gradient(145deg, #0877b4, #11b39c);
  box-shadow: 0 7px 18px rgba(9, 125, 162, .25);
}
.step.done {
  color: #0f815c;
  background: linear-gradient(135deg, #e9fbf3, #e6f9f7);
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(151, 197, 219, .36);
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(250,253,255,.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.step-panel::before,
.admin-login-panel::before,
.admin-section::before,
.admin-control-card::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, #0b72b2, #12c4c1 50%, #16aa78);
}
.step-panel > *, .admin-login-panel > *, .admin-section > *, .admin-control-card > * { position: relative; z-index: 1; }
.step-panel::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 210px;
  height: 210px;
  right: -95px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 193, 211, .12), transparent 68%);
  pointer-events: none;
}

.section-heading .eyebrow,
.admin-dashboard-head .eyebrow,
.admin-section-head .eyebrow,
.admin-control-card .eyebrow,
.admin-progress-card .eyebrow,
.admin-login-panel .eyebrow,
#successView > .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: #0875a9;
  background: linear-gradient(135deg, #e7f7ff, #e9fbf4);
  border: 1px solid #d1edf0;
  letter-spacing: .09em;
}
.section-heading h1,
.admin-dashboard-head h1,
.admin-section-head h2,
.admin-login-panel h1,
.modal-head h2 {
  color: #0b3654;
}
.section-heading h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 950;
  letter-spacing: -.025em;
}

.form-grid { gap: 20px; }
.field > span {
  color: #143d59;
  font-size: .92rem;
  font-weight: 850;
}
.field.field-unit > span::before,
.field.field-person > span::before,
.field.field-phone > span::before,
.admin-login-form .field > span::before {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 7px;
  border-radius: 8px;
  vertical-align: -6px;
  color: #0876a8;
  background: #e8f7fc;
  font-size: .78rem;
  font-weight: 950;
}
.field.field-unit > span::before { content: '⌂'; color: #0d956f; background: #e7f9f1; }
.field.field-person > span::before { content: '●'; }
.field.field-phone > span::before { content: '☎'; color: #0c9567; background: #e8f9f0; }
.admin-login-form .field > span::before { content: '◆'; color: #6a54c6; background: #f0edff; }
.field input,
.field select {
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(120, 174, 204, .44);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 5px 14px rgba(10, 69, 104, .04), inset 0 1px 0 rgba(255,255,255,.9);
}
.field input:hover,
.field select:hover { border-color: rgba(71, 153, 194, .64); }
.field input:focus,
.field select:focus {
  border-color: #0e9fc4;
  box-shadow: 0 0 0 4px rgba(13, 166, 191, .13), 0 9px 22px rgba(8, 88, 125, .07);
  transform: translateY(-1px);
}

.actions { margin-top: 28px; }
.btn {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 15px;
  font-weight: 900;
  letter-spacing: .005em;
}
.btn.primary {
  background: linear-gradient(125deg, #0967aa 0%, #0a97bd 55%, #10ad89 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(8, 126, 162, .26);
}
.btn.primary:hover {
  background: linear-gradient(125deg, #075b98 0%, #078bae 55%, #0c9d7c 100%);
  box-shadow: 0 14px 30px rgba(8, 126, 162, .32);
}
.btn.secondary {
  color: #0c5d89;
  background: linear-gradient(180deg, #fff, #eef8fc);
  border: 1px solid #cce4ef;
  box-shadow: 0 7px 16px rgba(7, 80, 116, .06);
}
.btn.whatsapp {
  background: linear-gradient(135deg, #0d9a59, #24c474);
  box-shadow: 0 10px 24px rgba(17, 159, 92, .22);
}
.btn.success { background: linear-gradient(135deg, #128a5a, #20b973); }

.notice.info {
  color: #0b5f82;
  background: linear-gradient(135deg, #e3f7ff, #e9f9ff 48%, #eafbf4);
  border-color: #c9e9ee;
}
.notice.warning-soft {
  color: #805005;
  background: linear-gradient(135deg, #fff6d9, #fff0df);
  border-color: #f3daa2;
}

.running-total {
  min-width: 112px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #e1f6ff, #e5fbf3);
  border: 1px solid #c8e8eb;
  box-shadow: 0 10px 24px rgba(6, 111, 147, .10);
}
.running-total strong { color: #087ca5; font-size: 1.55rem; }

.catalog { gap: 22px; }
.category-card {
  border-radius: 20px;
  box-shadow: 0 13px 34px rgba(7, 69, 105, .09);
  border: 1px solid rgba(151, 195, 216, .26);
  transition: transform .18s ease, box-shadow .18s ease;
}
.category-card:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(7, 69, 105, .12); }
.category-title {
  padding: 16px 18px;
  font-size: 1.02rem;
  font-weight: 950;
  border-bottom: 1px solid rgba(255,255,255,.72);
}
.category-card:nth-child(7n + 1) .category-title { background: linear-gradient(120deg, #dff4ff, #dcecff); color: #075e9d; }
.category-card:nth-child(7n + 2) .category-title { background: linear-gradient(120deg, #eee7ff, #e7eaff); color: #6348bb; }
.category-card:nth-child(7n + 3) .category-title { background: linear-gradient(120deg, #ddfaed, #e4f9f5); color: #0e805d; }
.category-card:nth-child(7n + 4) .category-title { background: linear-gradient(120deg, #fff0df, #ffe6d8); color: #b45e20; }
.category-card:nth-child(7n + 5) .category-title { background: linear-gradient(120deg, #fff8d7, #ffedc5); color: #946500; }
.category-card:nth-child(7n + 6) .category-title { background: linear-gradient(120deg, #e0f8fb, #dff4ff); color: #08798b; }
.category-card:nth-child(7n + 7) .category-title { background: linear-gradient(120deg, #ffe8ee, #f5e7ff); color: #a2406e; }
.product-row { padding: 15px 18px; }
.product-row:hover { background: linear-gradient(90deg, rgba(235,248,255,.65), rgba(240,252,247,.45)); }
.qty-btn {
  border: 1px solid #bcdde9;
  background: linear-gradient(145deg, #fff, #e8f7fb);
  color: #0878a7;
  box-shadow: 0 5px 12px rgba(8, 105, 143, .06);
}
.qty-btn:hover { background: linear-gradient(145deg, #e7f7ff, #e7fbf4); }
.qty-input { border-color: #c6dee9; background: #fff; }

.review-meta > div {
  padding: 15px 16px;
  border-radius: 16px;
  border-color: rgba(138, 185, 209, .32);
  background: linear-gradient(145deg, #f9fcff, #eff9fb);
  box-shadow: 0 7px 17px rgba(7, 71, 108, .05);
}
.review-meta > div:nth-child(2) { background: linear-gradient(145deg, #fbf9ff, #f1efff); }
.review-meta > div:nth-child(3) { background: linear-gradient(145deg, #f7fff9, #ebf9f2); }
.review-meta > div:nth-child(4) { background: linear-gradient(145deg, #fffaf1, #fff2dc); }
.review-table-wrap,
.admin-table-wrap {
  border-radius: 18px;
  border-color: rgba(131, 183, 208, .34);
  box-shadow: 0 8px 24px rgba(7, 73, 110, .05);
}
.review-table thead,
.admin-table thead {
  background: linear-gradient(90deg, #e3f5ff, #e6f9f4);
  color: #0a5e86;
}
.review-table tfoot,
.admin-table tfoot {
  background: linear-gradient(90deg, #dff4ff, #e4f9f1);
  color: #075f83;
}

.status-icon.success {
  color: #0d8c5a;
  background: linear-gradient(135deg, #e1faec, #dff7f5);
  box-shadow: 0 10px 24px rgba(15, 141, 91, .10);
}
.protocol-card {
  border: 1px solid #bcdfe9;
  background: linear-gradient(135deg, #e6f7ff, #ecf5ff 54%, #e9fbf3);
  box-shadow: 0 10px 25px rgba(7, 93, 128, .08);
}
.protocol-card strong { color: #075f94; }
.success-order-summary {
  border-radius: 20px;
  border-color: rgba(133, 188, 211, .32);
  box-shadow: 0 15px 36px rgba(8, 75, 109, .09);
}
.success-order-summary h2 { background: linear-gradient(90deg, #e3f5ff, #e7faf4); color: #075d83; }
.success-order-total { background: linear-gradient(90deg, #def3ff, #e3faef); }

/* Painel do Superintendente — V2.4 */
.admin-dashboard-head {
  padding: 8px 4px 6px;
}
.admin-dashboard-head h1 { color: #0a3d5c; font-weight: 950; }
.admin-metrics { gap: 16px; }
.metric-card {
  min-height: 136px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 16px 38px rgba(7, 67, 103, .11);
}
.metric-card span { color: rgba(10, 50, 76, .72); font-weight: 850; }
.metric-card strong { font-size: 2.5rem; font-weight: 950; }
.metric-card:not(.success-tone):not(.warning-tone):not(.brand-tone) {
  background: linear-gradient(145deg, #eee8ff, #e5efff);
}
.metric-card:not(.success-tone):not(.warning-tone):not(.brand-tone) strong { color: #6949c4; }
.metric-card.success-tone { background: linear-gradient(145deg, #ddfaec, #dff8f5); }
.metric-card.success-tone strong { color: #0b8b5d; }
.metric-card.warning-tone { background: linear-gradient(145deg, #fff4d0, #ffe9d5); }
.metric-card.warning-tone strong { color: #ad6800; }
.metric-card.brand-tone {
  background: linear-gradient(135deg, #07518a 0%, #078bb1 58%, #0ba78e 100%);
}
.metric-card.brand-tone span { color: rgba(255,255,255,.88); }
.metric-card.brand-tone strong { color: #fff; }
.metric-card::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  right: -46px;
  bottom: -52px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
}
.admin-progress-card {
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(235,249,253,.93));
  border-color: rgba(136, 189, 213, .34);
  box-shadow: 0 14px 36px rgba(7, 73, 110, .09);
}
.admin-progress-track { height: 14px; background: #e2edf2; }
.admin-progress-fill { background: linear-gradient(90deg, #0c71b2 0%, #11b8ad 55%, #1ab276 100%); }
.admin-control-card {
  background: linear-gradient(135deg, #e9f7ff, #eefbf5);
  border: 1px solid rgba(128, 187, 210, .26);
}
.admin-section {
  border: 1px solid rgba(143, 192, 213, .28);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(249,253,255,.95));
}
.admin-unit-row {
  border-radius: 17px;
  padding: 15px 16px;
  background: linear-gradient(145deg, #fff, #fbfdff);
}
.admin-unit-row.sent-row {
  border-left: 6px solid #12a775;
  background: linear-gradient(90deg, #f0fcf6, #fff 24%);
}
.admin-unit-row.pending-row {
  border-left: 6px solid #eaa32d;
  background: linear-gradient(90deg, #fff8e8, #fff 24%);
}
.status-badge.sent { color: #08764f; background: #dbf8ea; }
.status-badge.pending { color: #9b6100; background: #fff0c9; }
.pending-chip {
  border: 0;
  background: linear-gradient(135deg, #fff5d8, #ffe9db);
  color: #8e5800;
  box-shadow: inset 0 0 0 1px rgba(232, 170, 58, .20);
}
.modal-backdrop {
  background: rgba(4, 34, 55, .68);
  backdrop-filter: blur(6px);
}
.modal-card {
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}

.footer {
  color: #58778a;
}
.footer-admin-link {
  padding: 9px 15px;
  border-radius: 999px;
  text-decoration: none;
  color: #075f91;
  background: linear-gradient(135deg, rgba(229,247,255,.92), rgba(230,251,243,.92));
  border: 1px solid #cbe7ec;
  box-shadow: 0 8px 20px rgba(7, 80, 116, .07);
}
.footer-admin-link:hover { color: #06476e; transform: translateY(-1px); }

@media (max-width: 700px) {
  .brand-wrap { min-height: 76px; gap: 13px; }
  .brand-logo { width: 168px; max-height: 58px; }
  .brand-title { padding-left: 13px; min-height: 40px; }
  .brand-title strong { font-size: 1rem; }
  .app-shell { width: min(100% - 18px, 1060px); margin-top: 17px; }
  .period-card { min-height: 94px; padding: 15px 16px; border-radius: 20px; }
  .period-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; }
  .period-icon svg { width: 24px; height: 24px; }
  .period-card .eyebrow { padding: 4px 8px; font-size: .62rem; }
  .period-card strong { font-size: 1.03rem; }
  .steps { border-radius: 18px; padding: 6px; }
  .step { min-height: 52px; }
  .panel { border-radius: 19px; }
  .step-panel::after { width: 150px; height: 150px; }
  .section-heading h1 { font-size: 1.55rem; }
  .field input, .field select { min-height: 52px; }
  .admin-metrics { gap: 10px; }
  .metric-card { min-height: 116px; padding: 16px; }
  .metric-card strong { font-size: 2.1rem; }
}

@media (max-width: 430px) {
  .brand-logo { width: 145px; }
  .brand-title strong { font-size: .90rem; line-height: 1.05; }
  .period-card { gap: 10px; }
  .period-main { gap: 10px !important; }
  .period-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .period-card strong { font-size: .96rem; }
  .steps { gap: 3px; }
  .step small { font-size: .66rem; }
  .section-heading .eyebrow { font-size: .64rem; }
  .metric-card { min-height: 108px; }
  .metric-card strong { font-size: 1.95rem; }
}

/* =============================================================
   V2.5 — Splash animada + identidade oficial + fundo vivo
   ============================================================= */

:root {
  --v25-blue: #07518a;
  --v25-cyan: #07a8c7;
  --v25-teal: #0bbf9a;
  --v25-violet: #7558df;
  --v25-pink: #da6fb3;
  --v25-gold: #f5bd43;
}

body.splash-active { overflow: hidden; }

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(89, 112, 255, .72), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(20, 226, 207, .62), transparent 31%),
    radial-gradient(circle at 80% 86%, rgba(109, 75, 223, .58), transparent 34%),
    radial-gradient(circle at 18% 88%, rgba(27, 191, 166, .48), transparent 34%),
    linear-gradient(135deg, #061b3d 0%, #073c70 35%, #075d89 63%, #086e7f 100%);
  animation: splashAutoHide 2.55s ease forwards;
}
.splash-screen::before {
  content: '';
  position: absolute;
  inset: -30%;
  z-index: -2;
  opacity: .46;
  background:
    conic-gradient(from 180deg at 50% 50%, rgba(11, 191, 154, .28), rgba(105, 74, 223, .28), rgba(6, 169, 200, .30), rgba(11, 191, 154, .28));
  filter: blur(70px);
  animation: splashRotate 9s linear infinite;
}
.splash-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 80%);
}
.splash-aurora {
  position: absolute;
  width: 48vmax;
  height: 48vmax;
  min-width: 380px;
  min-height: 380px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: .25;
  pointer-events: none;
  animation: splashFloat 6s ease-in-out infinite alternate;
}
.splash-aurora-a { left: -22vmax; top: -20vmax; background: #6b5ce7; }
.splash-aurora-b { right: -20vmax; top: -22vmax; background: #08c6bb; animation-delay: -.9s; }
.splash-aurora-c { right: 10vmax; bottom: -35vmax; background: #098bc1; animation-delay: -1.8s; }
.splash-content {
  width: min(480px, calc(100% - 40px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 26px 30px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
  box-shadow: 0 28px 90px rgba(0, 20, 50, .38), inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(22px) saturate(130%);
  animation: splashContentIn .75s cubic-bezier(.2,.78,.22,1) both;
}
.splash-app-icon {
  width: 148px;
  height: 148px;
  padding: 7px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(5, 19, 39, .86);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 24px 55px rgba(0,0,0,.34), 0 0 0 8px rgba(255,255,255,.055);
  animation: splashIconPulse 1.9s ease-in-out infinite;
}
.splash-app-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; display: block; }
.splash-brand-logo {
  width: min(270px, 72vw);
  max-height: 94px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.22));
  margin-bottom: 13px;
}
.splash-title {
  font-size: clamp(1.25rem, 4.6vw, 1.72rem);
  font-weight: 950;
  letter-spacing: -.02em;
  text-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.splash-subtitle {
  margin-top: 6px;
  color: rgba(255,255,255,.78);
  font-size: .86rem;
  font-weight: 650;
}
.splash-loader {
  position: relative;
  width: 178px;
  height: 6px;
  margin-top: 23px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.20);
}
.splash-loader span {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff, #63f2dc, #79bcff);
  box-shadow: 0 0 18px rgba(99, 242, 220, .64);
  animation: splashLoad 1.18s ease-in-out infinite;
}
.splash-leaving {
  animation: splashExit .58s ease forwards !important;
}

@keyframes splashRotate { to { transform: rotate(360deg); } }
@keyframes splashFloat { from { transform: translate3d(-2%, -1%, 0) scale(.96); } to { transform: translate3d(4%, 4%, 0) scale(1.08); } }
@keyframes splashContentIn { from { opacity: 0; transform: translateY(28px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes splashIconPulse { 0%,100% { transform: scale(1); box-shadow: 0 24px 55px rgba(0,0,0,.34), 0 0 0 8px rgba(255,255,255,.055); } 50% { transform: scale(1.035); box-shadow: 0 28px 62px rgba(0,0,0,.38), 0 0 0 12px rgba(90,235,220,.08); } }
@keyframes splashLoad { 0% { transform: translateX(-115%); } 55% { transform: translateX(90%); } 100% { transform: translateX(270%); } }
@keyframes splashExit { to { opacity: 0; visibility: hidden; transform: scale(1.018); } }
@keyframes splashAutoHide { 0%, 88% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Fundo com profundidade e movimento discreto */
html { background: #eef9ff; }
body {
  background:
    radial-gradient(circle at 5% 10%, rgba(57, 123, 255, .22), transparent 24rem),
    radial-gradient(circle at 93% 11%, rgba(0, 206, 193, .22), transparent 26rem),
    radial-gradient(circle at 13% 90%, rgba(121, 83, 225, .18), transparent 28rem),
    radial-gradient(circle at 91% 88%, rgba(24, 196, 139, .16), transparent 27rem),
    linear-gradient(145deg, #eef9ff 0%, #f9fbff 41%, #f3f1ff 70%, #eefbf7 100%);
  background-attachment: fixed;
}
body::before {
  background:
    radial-gradient(circle at 45% 45%, rgba(123, 80, 225, .19), transparent 56%),
    radial-gradient(circle at 70% 28%, rgba(41, 128, 255, .12), transparent 52%);
  animation: ambientBlobA 12s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(circle at 52% 48%, rgba(14, 206, 178, .20), transparent 58%),
    radial-gradient(circle at 26% 70%, rgba(42, 178, 223, .12), transparent 55%);
  animation: ambientBlobB 14s ease-in-out infinite alternate;
}
@keyframes ambientBlobA { from { transform: translate3d(-1.5%, 0, 0) scale(.96); } to { transform: translate3d(3%, -2%, 0) scale(1.07); } }
@keyframes ambientBlobB { from { transform: translate3d(1%, -1%, 0) scale(.98); } to { transform: translate3d(-3%, 3%, 0) scale(1.08); } }

.topbar {
  background:
    radial-gradient(circle at 82% -55%, rgba(87, 245, 224, .50), transparent 34%),
    linear-gradient(105deg, #062f59 0%, #07568c 37%, #087da5 68%, #0a9e99 100%);
}
.brand-logo { filter: drop-shadow(0 6px 18px rgba(0,0,0,.22)); }

.period-card {
  background-size: 145% 145%;
  background:
    radial-gradient(circle at 92% 8%, rgba(93, 244, 221, .34), transparent 22%),
    linear-gradient(115deg, #063f75 0%, #0868a4 43%, #0797b0 74%, #0ab69b 100%);
  box-shadow: 0 22px 54px rgba(3, 66, 111, .28), 0 0 0 1px rgba(255,255,255,.10) inset;
}
.period-card .eyebrow {
  color: #063c61 !important;
  background: linear-gradient(135deg, #ffffff, #ddfaff) !important;
  border: 1px solid rgba(255,255,255,.9) !important;
}
.period-icon {
  background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.09));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 10px 26px rgba(0,0,0,.14), 0 0 0 5px rgba(255,255,255,.04);
}

.steps {
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(241,250,255,.78));
  box-shadow: 0 16px 42px rgba(8, 70, 108, .12);
}
.step.active {
  background: linear-gradient(135deg, rgba(220,245,255,.95), rgba(222,250,241,.93));
  border-radius: 15px;
}
.step.active span {
  border: 0;
  background: linear-gradient(135deg, #0876ba, #0bb7a0);
  box-shadow: 0 7px 18px rgba(7, 135, 164, .22);
}

.panel.step-panel,
.admin-login-panel,
.admin-section,
.admin-control-card,
#successView {
  background:
    radial-gradient(circle at 100% 0%, rgba(39, 185, 219, .07), transparent 18rem),
    linear-gradient(145deg, rgba(255,255,255,.985), rgba(250,253,255,.965));
  border: 1px solid rgba(134, 187, 212, .34);
  box-shadow: 0 20px 58px rgba(7, 69, 105, .115);
  backdrop-filter: blur(10px);
}

.section-heading h1,
.admin-dashboard-head h1 {
  background: linear-gradient(100deg, #083d67 0%, #086ca0 54%, #0a8e83 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.field input,
.field select,
.admin-filter select {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,251,255,.98));
  box-shadow: 0 8px 22px rgba(7, 78, 117, .045), inset 0 1px 0 rgba(255,255,255,.95);
}

.btn.primary {
  background: linear-gradient(120deg, #0868b6 0%, #08a4be 48%, #0bbf8e 100%);
  box-shadow: 0 14px 31px rgba(7, 135, 167, .30);
}
.btn.primary:hover {
  background: linear-gradient(120deg, #075da4 0%, #0797b0 48%, #0aaf82 100%);
  box-shadow: 0 17px 36px rgba(7, 135, 167, .35);
}

/* Mais cor e leitura nas áreas administrativas */
.metric-card:nth-child(1) {
  background: linear-gradient(145deg, #eee8ff, #e2efff 58%, #e7f7ff);
}
.metric-card.success-tone { background: linear-gradient(145deg, #dcfae9, #e1faf7); }
.metric-card.warning-tone { background: linear-gradient(145deg, #fff5cd, #ffe8d8); }
.metric-card.brand-tone { background: linear-gradient(135deg, #07518b 0%, #078db3 52%, #0bb395 100%); }

.footer-admin-link {
  background: linear-gradient(135deg, rgba(228,247,255,.96), rgba(228,251,243,.95), rgba(241,236,255,.92));
  box-shadow: 0 10px 25px rgba(7, 80, 116, .09);
}

@media (prefers-reduced-motion: reduce) {
  .splash-screen,
  .splash-content,
  .splash-app-icon,
  .splash-loader span,
  .splash-aurora,
  body::before,
  body::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 700px) {
  .splash-content { width: min(420px, calc(100% - 28px)); padding: 24px 18px 26px; border-radius: 28px; }
  .splash-app-icon { width: 126px; height: 126px; border-radius: 30px; }
  .splash-app-icon img { border-radius: 23px; }
  .splash-brand-logo { width: min(230px, 72vw); }
  .splash-loader { width: 150px; }
}

@media (max-width: 430px) {
  .splash-content { padding-top: 22px; }
  .splash-app-icon { width: 112px; height: 112px; }
  .splash-title { font-size: 1.24rem; }
  .splash-subtitle { font-size: .78rem; }
}
