:root {
  --black: #000;
  --ink: #000;
  --muted: #6b7280;
  --gray-1: #f3f4f6;
  --gray-2: #cbd5e1;
  --gray-3: #d1d5db;
  --brand: #ff9f1c;
  --lime: #e5ff51;
  --radius: 12px;
  --radius-lg: 14px;
  --maxw: 580px;
  --bd: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Ubuntu, sans-serif;
  color: var(--ink);
  background: #eee;
}

/* Appbar */
.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--bd);
  padding: 12px;
}

.appbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  background: #fff;
}

.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  color: #000;
  background: #fff;
}

.appbar__title {
  margin: 0;
  text-align: center;
  font-weight: 400;
  color: #000;
  font-size: 18px;
  background: #fff;
}

.appbar__spacer {
  display: block;
  width: 36px;
}

/* Hero Section */
.hero-strap {
  overflow: visible;
}

.search-wrap {
  position: absolute;
  left: 50%;
  top: 230px;
  transform: translate(-50%, 50%);
  width: min(var(--maxw), 94vw);
  z-index: 5;
}

.hero-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  max-width: 1150px;
  margin: 0 auto;
  filter: brightness(0.5);
}

.search-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 400;
  margin: 0 0 8px;
  font-size: 18px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 34px #00000047;
}

.search input {
  width: 100%;
  padding: 18px 44px 18px 16px;
  border: 0;
  outline: none;
  font-size: 16px;
  border-radius: 12px;
}

/* Page */
.page {
  padding-bottom: 90px;
}

.container {
  width: min(var(--maxw), 94vw);
  margin: 60px auto;
}

.section-title {
  font-size: 18px;
  font-weight: 400;
  color: #000;
  margin: 14px 0 12px;
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--gray-2);
}

.section-stamp {
  font-size: 16px;
  white-space: nowrap;
  color: #000;
  font-weight: 700;
}

.section-stamp:before {
  content: "Atualizado em: ";
  color: #000;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.7;
}

/* Row */
.row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 12px 6px;
}

.row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #000;
}

.row--bulk {
  border-bottom: 1px solid var(--gray-2);
  margin-bottom: 16px;
}

strong#bulkLabel {
  font-weight: 400;
  font-size: 14px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Alerta de Multas */
.alerta-multas {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #dc2626;
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.5;
}

.alerta-multas svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alerta-multas span {
  flex: 1;
}

.alerta-multas strong {
  font-weight: 700;
}

/* Total Card */
.total-card {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%);
  width: min(var(--maxw), 94vw);
  background: #fff;
  border: 1px solid var(--gray-2);
  border-radius: 12px;
  box-shadow: 0 30px 70px #00000059;
  padding: 12px 16px 16px;
  max-height: 50vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch !important;
}

strong#totalTitle {
  color: #000;
  font-size: 18px;
  font-weight: 400;
}

.total-head {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.total-head .th-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.total-head .th-bottom {
  border-top: 1px solid var(--gray-2);
  padding-top: 10px;
  color: #363636;
}

.total-head .chev {
  transition: transform 0.18s ease;
}

.total-value {
  font-weight: 900;
  font-size: 18px;
  color: #000;
}

.total-body {
  border-top: 1px solid var(--gray-2);
  padding: 12px 16px 16px;
}

.resumo-placa {
  margin: 6px 0 12px;
}

.resumo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.resumo-total {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--gray-2);
  padding-top: 10px;
  margin: 8px 0 0;
  font-size: 16px;
}

.resumo-total > strong {
  margin-left: auto;
  color: #000;
}

strong#resumoPlaca {
  color: #000;
}

/* Buttons */
.btn-continue {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn-continue--inline {
  width: auto;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.btn-continue:disabled {
  background: var(--gray-3);
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-continue:not(:disabled) {
  background: var(--black);
  color: var(--lime);
  cursor: pointer;
  box-shadow: 0 16px 40px #00000040;
  font-size: 16px;
  font-weight: 400;
}

.total-head[aria-expanded="false"] #btnContinuarTop {
  display: inline-flex;
}

/* Payment Section */
.section-sub {
  margin: 0 0 12px;
  color: #6b7280;
}

.pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pay-item {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--gray-2);
  cursor: pointer;
}

.pay-item:last-child {
  border-bottom: none;
}

.pay-texts strong {
  color: #000;
  font-weight: 400;
  font-size: 18px;
}

.pay-texts small {
  display: block;
  color: #000;
  font-size: 14px;
  margin-top: 2px;
}

section#paySection .section-title,
section#cardSection .section-title {
  font-size: 24px;
  font-weight: 400;
  color: #000;
  margin: 0;
  border-bottom: none;
  padding-bottom: 10px;
}

section#paySection .section-sub {
  margin: 0 0 12px;
  color: #000;
  font-size: 14px;
}

/* Summary Card */
.summary-card {
  max-width: 520px;
  border: 1px solid var(--gray-2);
  border-radius: 12px;
  background: #fff;
  padding: 24px 20px;
  margin: 0 auto;
}

.summary-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 12px;
  column-gap: 12px;
}

.summary-total-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #eef9c7;
  padding: 16px 18px;
  border-radius: 8px;
}

.summary-total-row > span {
  color: #000;
}

.summary-total-row > strong {
  color: #000;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}

/* Pix Section */
.pix-countdown {
  margin: 10px 0 12px;
  color: #000;
  text-align: center;
}

.qr-box {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
  border-radius: 6px;
  background: repeating-conic-gradient(#000 0, #000 25%, #fff 0, #fff 50%) 50% / 20px 20px;
  box-shadow: 0 8px 30px #00000026;
}

.pix-hint {
  max-width: 520px;
  color: #000;
  margin: 0 auto;
  padding: 10px 0;
}

.code-box {
  width: min(520px, 94vw);
  border: 1px solid var(--gray-2);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: block;
  margin-inline: auto;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
  padding-top: 20px;
}

.btn-ghost {
  background: #fff !important;
  color: #111 !important;
  border: 1px solid var(--gray-2);
  box-shadow: none !important;
}

/* Empty State */
.empty {
  text-align: center;
  padding: 28px 12px 8px;
  color: #111;
}

.empty__icon {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 12px;
  opacity: 0.9;
}

.empty__title {
  margin: 0 0 6px;
  font-weight: 600;
}

.empty__desc {
  margin: 0 auto;
  max-width: 520px;
  line-height: 1.35;
}

.empty-info {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  margin: 22px auto 120px;
  width: min(var(--maxw), 94vw);
  background: #eee;
  border: 1px solid #9ca3af;
  border-radius: 12px;
  padding: 16px;
}

.empty-info__icon {
  width: 40px;
  height: auto;
  margin-top: 20px;
}

.empty-info__text {
  color: #4b5563;
}

/* Dialog */
.dlg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  z-index: 1000;
}

.dlg__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #00000073;
}

.dlg__card {
  position: relative;
  margin: 35vh auto 0;
  width: min(480px, 92%);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 25px 80px #00000059;
}

.dlg__title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 0 8px;
  text-align: center;
}

.dlg__primary {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: #000;
  color: #e5ff51;
  font-weight: 700;
  cursor: pointer;
}

.dlg__secondary {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-top: 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-weight: 500;
  cursor: pointer;
}

.hero__input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  font-family: Ubuntu, sans-serif;
  transition: border-color 0.2s;
}

.m__grab {
  width: 56px;
  height: 4px;
  background: #d1d5db;
  border-radius: 999px;
  margin: 0 auto 10px;
}

/* Loading */
.hidden {
  display: none !important;
}

.loading-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding-top: 80px;
}

.loading-title {
  font-weight: 500;
  color: #6b6b6b;
  font-size: 18px;
}

.loading-sub {
  font-size: 0.95rem;
  color: #6b6b6b;
}

.skel-list {
  width: 100%;
  display: grid;
  gap: 16px;
  justify-items: center;
  margin-top: 12px;
}

.skel-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  padding: 20px 24px;
  width: 100%;
  max-width: 580px;
  min-height: 96px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.skel-left {
  display: grid;
  gap: 10px;
  width: 100%;
}

.skel-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e9eef5 0%, #f3f6fb 40%, #e9eef5 80%);
  animation: skel 1.2s infinite linear;
}

.skel-line.w80 {
  width: 80%;
}

.skel-line.w60 {
  width: 60%;
}

.skel-line.w40 {
  width: 40%;
}

.skel-chip {
  height: 22px;
  width: 120px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, #e9eef5 0%, #f3f6fb 40%, #e9eef5 80%);
  animation: skel 1.2s infinite linear;
}

@keyframes skel {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

/* Responsive */
@media (max-width: 720px) {
  .hero-strap {
    height: 160px;
    margin-bottom: 150px;
  }

  .container {
    width: min(96vw, 680px);
    margin-top: 20px;
  }

  .row {
    grid-template-columns: 16px 0.5fr 1fr;
  }

  label.row.row--bulk {
    grid-template-columns: 0.1fr 1fr;
  }
}

@media (max-width: 480px) {
  .section-bar {
    justify-content: center;
    align-items: center;
    gap: 40px;
  }
}

.page,
.container,
.hero-strap {
  overflow: visible !important;
}


