:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  --background-start: #252300;
  --background-end: #080909;
  --accent: #ddcb00;
  --text: #f5f4ec;
  --muted: #aaa99d;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 42% 52%, rgb(78 69 0 / 25%), transparent 48%),
    linear-gradient(110deg, var(--background-start) 0%, #171600 38%, #090a0a 78%, var(--background-end) 100%);
  font-size: 13px;
}

body.home-page.is-loading { overflow: hidden; }
.home-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  opacity: 1;
  transition: opacity .35s ease;
}
.home-preloader[hidden] { display: none !important; }
.home-preloader.is-hiding { opacity: 0; pointer-events: none; }
.home-preloader img { display: block; width: min(60vw, 280px); max-height: min(36vh, 180px); object-fit: contain; opacity: 0; }
.home-preloader.has-image img { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .home-preloader { transition: none; }
}

button, input, textarea { font: inherit; }
a { color: inherit; }

.home-shell {
  width: min(1000px, calc(100% - 40px));
  min-height: 530px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 108px;
}

.brand-column { padding: 65px 0 90px 18px; }
.brand-image-frame {
  width: 232px;
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px -18px;
  color: #24220a;
  text-decoration: none;
}
.brand-image-frame img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; }
.brand-image-frame.has-image img { opacity: 1; }

.brand-copy { max-width: 330px; }
.brand-copy h1 {
  max-width: 330px;
  margin: 0 0 14px;
  font-size: 19px;
  line-height: 1.12;
  letter-spacing: -.15px;
  font-weight: 700;
}
.brand-copy h1 span:last-child { color: #fff3a0; white-space: nowrap; }
.description { max-width: 310px; margin: 0 0 15px; color: #fff; font-size: 11.5px; line-height: 1.55; }

.quick-links, .social-links { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-links { flex-direction: column; align-items: flex-start; }
.pill-link {
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 22px;
  background: rgb(255 255 255 / 10%);
  color: #f6f4e9;
  text-decoration: none;
  font-size: 11px;
  font-weight: 650;
  transition: background .18s ease, transform .18s ease;
}
.pill-link:hover { background: rgb(255 255 255 / 17%); transform: translateY(-1px); }
.line-icon { font-size: 15px; line-height: 1; }
.line-icon-image { width: 17px; height: 17px; flex: 0 0 17px; object-fit: contain; }
.social-label { margin: 17px 0 12px; color: #dfddcf; font-size: 11px; font-weight: 600; }
.social-pill { min-height: 36px; padding: 0 12px; }
.social-pill > span:first-child { font-size: 13px; font-weight: 750; }

.login-card {
  min-height: 526px;
  margin-top: 8px;
  padding: 31px 32px 16px;
  border: 1px solid rgb(255 255 255 / 3%);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(155deg, #303030 0%, #242424 59%, #111 100%);
  box-shadow: 0 16px 45px rgb(0 0 0 / 14%);
}
.card-top { height: 47px; display: flex; justify-content: flex-end; align-items: flex-start; }
.plan-link {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 24px;
  background: rgb(255 255 255 / 10%);
  text-decoration: none;
  color: #e4e4e4;
  font-size: 11px;
  font-weight: 600;
}
.plan-link span:last-child { font-size: 22px; line-height: 1; }
.login-card h2 { margin: 8px 0 8px; font-size: 14px; font-weight: 700; }
.login-subtitle { margin: 0 0 13px; color: #e1e1e1; font-size: 11px; line-height: 1.45; }
.security-notice {
  min-height: 60px;
  margin-bottom: 20px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 14px;
  background: #fff9e9;
  color: #302f2b;
}
.notice-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: 2px;
  border-radius: 50%;
  background: #f1c534;
  color: white;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
}
.security-notice strong { display: block; margin-bottom: 3px; font-size: 11px; }
.security-notice p { margin: 0; color: #52504a; font-size: 10px; line-height: 1.35; }
#demo-login > label { display: block; margin: 0 0 10px; color: #f2f2f2; font-size: 11px; font-weight: 600; }
#demo-login > input, .password-field input {
  width: 100%;
  height: 39px;
  padding: 0 15px;
  border: 1px solid #494949;
  border-radius: 15px;
  outline: none;
  background: rgb(0 0 0 / 8%);
  color: white;
  font-size: 11px;
}
#demo-login > input { margin-bottom: 18px; }
#demo-login input::placeholder { color: #a4a4a4; }
#demo-login input:focus { border-color: #b8aa23; box-shadow: 0 0 0 2px rgb(221 203 0 / 13%); }
.password-field { position: relative; margin-bottom: 12px; }
.password-field input { padding-right: 44px; }
.password-toggle {
  position: absolute;
  top: 0;
  right: 7px;
  width: 32px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eee;
  cursor: pointer;
}
.password-toggle-icon { display: block; width: 18px; height: 18px; object-fit: contain; }
.password-toggle-icon-closed, .password-toggle[aria-pressed="true"] .password-toggle-icon-open { display: none; }
.password-toggle[aria-pressed="true"] .password-toggle-icon-closed { display: block; }
.form-options { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; font-size: 10px; }
.form-options a { color: #f1f1f1; font-weight: 600; text-decoration: none; }
.remember-option { display: inline-flex !important; align-items: center; gap: 7px; margin: 0 !important; font-weight: 500 !important; }
.remember-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.submit-button {
  width: 100%;
  height: 39px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 24px;
  background: var(--accent);
  color: #141300;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}
.submit-button:hover { filter: brightness(1.06); }
.connect-button-icon { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.login-feedback { min-height: 13px; margin: 6px 0 0; color: #e6d944; font-size: 9px; text-align: center; }
.captcha-copy { margin: 6px 0 0; color: #717171; font-size: 9px; line-height: 1.55; }
.captcha-copy a { color: #777; }
.captcha-brand { margin: 17px 0 0; color: #777; font-size: 8px; text-align: center; }

.home-footer {
  position: fixed;
  right: 8px;
  bottom: 8px;
  left: 8px;
  min-height: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}
.footer-image-frame {
  width: 352px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.footer-image-frame img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left bottom; opacity: 0; }
.footer-image-frame.has-image img { opacity: 1; }
.company-copy {
  width: min(460px, 48vw);
  margin: 0 5px 8px 0;
  color: #85837c;
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
}

/* Admin panel */
.admin-page {
  --admin-accent: #ddcb00;
  --admin-accent-hover: #f2e329;
  --admin-blue: #4eb6e4;
  --admin-blue-hover: #69c5eb;
  background: #111211;
  color: #efefed;
}
.admin-header {
  height: 68px;
  padding: 0 5.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #292a29;
  background: #191a19;
}
.admin-brand, .admin-preview-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.admin-brand { font-size: 14px; font-weight: 700; }
.admin-brand-logo { width: 60px; height: 32px; object-fit: contain; opacity: 0; }
.admin-brand-logo.is-loaded { opacity: 1; }
.admin-preview-link { color: #ddd; font-size: 12px; }
.admin-preview-link .connect-button-icon { width: 19px; height: 19px; flex-basis: 19px; }
body.admin-page[data-theme="dark"] .admin-preview-link .connect-button-icon { filter: invert(1); }
.admin-layout { width: min(1190px, 92%); margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 42px; }
.admin-sidebar { padding-top: 37px; }
.sidebar-heading, .eyebrow { color: #8c8d88; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.sidebar-heading-row { margin: 0 0 16px; padding: 0 5px 0 10px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-heading { margin: 0; }
.admin-sidebar-toggle { width: 26px; height: 26px; padding: 4px; display: grid; place-items: center; border: 1px solid #393b37; border-radius: 7px; background: transparent; color: #a4a59f; cursor: pointer; }
.admin-sidebar-toggle:hover { background: #20211e; color: #efefed; }
.admin-sidebar-toggle:focus-visible { outline: 2px solid var(--admin-blue); outline-offset: 2px; }
.admin-sidebar-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; transition: transform 160ms ease; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav-item {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b4b5b1;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}
.admin-nav-item > span:last-child { flex: 1; }
.admin-nav-icon, .admin-nav-car-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}
.admin-nav-icon { fill: none; stroke: #a4a59f; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; }
.admin-nav-car-icon {
  display: block;
  background-color: #a4a59f;
  -webkit-mask: url("/assets/carro.png") center / contain no-repeat;
  mask: url("/assets/carro.png") center / contain no-repeat;
}
.admin-nav-item.active { background: rgb(221 203 0 / 12%); color: var(--admin-accent); }
.admin-nav-item.active .admin-nav-icon { stroke: var(--admin-accent); }
.admin-nav-item.active .admin-nav-car-icon { background-color: var(--admin-accent); }
.admin-nav-item:hover:not(.active) { background: #20211e; color: #efefed; }
.admin-nav-item:hover .admin-nav-icon { stroke: currentColor; }
.admin-nav-item:hover .admin-nav-car-icon { background-color: currentColor; }
.admin-nav-item[hidden] { display: none; }
@media (min-width: 761px) {
  .admin-layout.is-sidebar-collapsed { grid-template-columns: 70px minmax(0, 1fr); gap: 24px; }
  .admin-layout.is-sidebar-collapsed .sidebar-heading-row { justify-content: center; padding: 0; }
  .admin-layout.is-sidebar-collapsed .sidebar-heading { display: none; }
  .admin-layout.is-sidebar-collapsed .admin-sidebar-toggle { width: 36px; }
  .admin-layout.is-sidebar-collapsed .admin-sidebar-toggle svg { transform: rotate(180deg); }
  .admin-layout.is-sidebar-collapsed .admin-nav-item { justify-content: center; gap: 0; padding: 0; }
  .admin-layout.is-sidebar-collapsed .admin-nav-item > span:last-child { display: none; }
  .admin-layout.is-sidebar-collapsed .sidebar-note { display: none; }
}
.sidebar-note { margin: 29px 9px 0; padding: 13px 11px; display: flex; gap: 8px; border: 1px solid #32332f; border-radius: 8px; color: #aaa; }
.sidebar-note span { color: var(--admin-blue); }
.sidebar-note p { margin: 0; font-size: 10px; line-height: 1.45; }
.admin-main { min-width: 0; padding: 35px 0 48px; }
.admin-heading { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.admin-heading-summary { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.admin-heading.is-plates-section { flex-direction: column; align-items: stretch; gap: 10px; }
.admin-heading.is-plates-section .admin-heading-summary { width: 100%; flex: none; align-items: flex-start; }
.admin-heading.is-plates-section #admin-plates-metrics { max-width: none; }
.admin-heading.is-ip-section { flex-direction: column; align-items: stretch; gap: 10px; }
.admin-heading.is-ip-section .admin-heading-summary { width: 100%; flex: none; align-items: flex-start; }
.admin-heading.is-ip-section #admin-ip-metrics { width: 100%; max-width: none; }
.admin-wallet[hidden] { display: none; }
.admin-wallet { min-width: 0; height: 36px; padding: 4px 8px; display: flex; align-items: center; gap: 7px; border: 1px solid #405249; border-radius: 10px; background: transparent; color: #4ade80; white-space: nowrap; }
.admin-wallet > img { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.admin-wallet > span { display: grid; gap: 2px; }
.admin-wallet-label { color: #86efac; font-size: 8px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.admin-wallet strong { color: #4ade80; font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.admin-plates-metrics[hidden] { display: none; }
.admin-plates-metrics {
  min-width: 0;
  max-width: 660px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.admin-plates-metric {
  position: relative;
  min-width: 0;
  min-height: 108px;
  padding: 12px 14px;
  display: grid;
  grid-template-rows: minmax(22px, auto) minmax(30px, 1fr) 12px;
  align-content: stretch;
  align-items: center;
  justify-items: center;
  gap: 4px;
  border: 1px solid #343a36;
  border-top: 2px solid currentColor;
  border-radius: 12px;
  background: linear-gradient(145deg, #202320, #171916 75%);
  box-shadow: 0 9px 24px rgb(0 0 0 / 17%), inset 0 1px 0 rgb(255 255 255 / 5%);
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.metric-card-heading { min-width: 0; width: 100%; padding-right: 17px; display: flex; align-items: center; justify-self: stretch; gap: 7px; text-align: left; }
.metric-card-icon { width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; }
.admin-plates-metric > strong,
.admin-plates-metric .metric-paid-line > strong { align-self: center; font-size: clamp(21px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-plates-metric .metric-paid-line { min-width: 0; max-width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; }
.admin-plates-metric .metric-percentage { font-size: inherit; font-weight: 800; }
.admin-plates-metric .metric-label { min-width: 0; color: #b6c0c1; font-size: 9px; font-weight: 650; letter-spacing: .045em; line-height: 1.2; text-transform: uppercase; }
.admin-plates-metric .metric-insight { display: inline-flex; align-items: center; gap: 3px; color: inherit; font-size: 10px; }
.admin-plates-metric .metric-insight strong { color: inherit; font-size: 10px; font-weight: 800; letter-spacing: 0; }
.admin-plates-metric[data-tone="paid"] .metric-insight { color: #b4cbb9; }
.metric-increase-icon { width: 11px; height: 11px; flex: 0 0 11px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.metric-open-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
  transition: background-color 140ms ease, color 140ms ease, opacity 140ms ease, transform 140ms ease;
}
.metric-menu-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.metric-open-button:hover { background: rgb(255 255 255 / 12%); color: inherit; opacity: 1; transform: scale(1.06); }
.metric-open-button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.admin-plates-metric[data-tone="generated"] { border-color: var(--admin-blue); background: radial-gradient(ellipse at 0% 0%, rgb(56 162 210 / 17%), transparent 65%), linear-gradient(145deg, #202729, #171b1c 75%); color: var(--admin-blue); }
.admin-plates-metric[data-tone="paid"] { border-color: #4ade80; background: radial-gradient(ellipse at 0% 0%, rgb(74 222 128 / 15%), transparent 65%), linear-gradient(145deg, #202822, #171c19 75%); color: #4ade80; }
.admin-plates-metric[data-tone="count"] { border-color: #fb923c; background: radial-gradient(ellipse at 0% 0%, rgb(251 146 60 / 15%), transparent 65%), linear-gradient(145deg, #29241f, #1d1916 75%); color: #fb923c; }
.eyebrow { margin: 0 0 8px; }
.admin-heading h1 { margin: 0 0 7px; font-size: 23px; letter-spacing: -.5px; }
.admin-heading > div > p:last-child { margin: 0; color: #9c9d98; font-size: 12px; }
.save-button, .upload-button {
  min-height: 38px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  background: var(--admin-accent);
  color: #171600;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.save-button:hover, .upload-button:hover { background: var(--admin-accent-hover); }
.admin-status { min-height: 16px; margin: -13px 0 9px; color: var(--admin-blue); font-size: 11px; }
#plates-status { min-height: 18px; margin: 8px 0 12px; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.settings-card { margin-bottom: 15px; padding: 20px; border: 1px solid #30312e; border-radius: 10px; background: #1b1c1a; }
.settings-card-heading { margin-bottom: 19px; }
.settings-card-heading h2 { margin: 0 0 5px; font-size: 13px; }
.settings-card-heading p { margin: 0; color: #92938e; font-size: 10px; }
.field-label { display: block; margin: 13px 0 7px; color: #d3d4d0; font-size: 10px; font-weight: 600; }
.text-input {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid #3b3c39;
  border-radius: 6px;
  outline: none;
  background: #151614;
  color: #eee;
  font-size: 11px;
}
.text-input:focus { border-color: #b5a800; box-shadow: 0 0 0 2px rgb(221 203 0 / 10%); }
.admin-page .text-input:focus { border-color: var(--admin-blue); box-shadow: 0 0 0 2px rgb(78 182 228 / 18%); }
.textarea-input { min-height: 66px; resize: vertical; line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field-grid > div { min-width: 0; }
.upload-row { display: flex; align-items: center; gap: 18px; }
.image-preview { width: 182px; height: 92px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px dashed #55564f; border-radius: 7px; background: #141512; color: #999; font-size: 10px; }
.image-preview img { display: none; max-width: 100%; max-height: 100%; object-fit: contain; }
.image-preview.has-image img { display: block; }
.image-preview.has-image span { display: none; }
.favicon-preview { width: 92px; height: 92px; }
.footer-preview { width: 235px; }
.upload-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.upload-actions p { width: 100%; margin: 0; color: #8c8d88; font-size: 10px; }
.upload-button { min-height: 34px; }
.remove-image-button { min-height: 34px; padding: 0 11px; border: 1px solid #454641; border-radius: 6px; background: transparent; color: #c3c4bf; cursor: pointer; font-size: 10px; }
.remove-image-button:hover { border-color: #8d8e87; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.color-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.color-field { min-height: 60px; padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #3b3c39; border-radius: 7px; background: #151614; color: #d3d4d0; font-size: 10px; }
.color-field input { width: 31px; height: 28px; padding: 2px; border: 1px solid #555; border-radius: 5px; background: transparent; cursor: pointer; }
.admin-bottom-note { margin-top: 19px; color: #92938e; font-size: 10px; }
.admin-bottom-note span { margin-right: 5px; }

/* Plate consultation */
.plate-shell {
  width: min(1000px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: center;
  gap: 108px;
  padding: 18px 0;
}
.plate-brand-column { display: flex; align-items: center; justify-content: center; }
.plate-logo-frame {
  width: 258px;
  height: 112px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  text-decoration: none;
}
.plate-logo-frame img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; }
.plate-logo-frame.has-logo img { opacity: 1; }

.plate-card {
  width: 400px;
  min-height: 584px;
  padding: 25px 31px 18px;
  border: 1px solid rgb(255 255 255 / 4%);
  border-radius: 28px;
  background: linear-gradient(160deg, #303030 0%, #272727 48%, #080909 100%);
  box-shadow: 0 16px 45px rgb(0 0 0 / 15%);
}
.plate-card-header {
  height: 35px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
}
.plate-card-header h1 { margin: 0; color: #e2e2e2; font-size: 11px; font-weight: 650; text-align: center; }
.plate-icon-button {
  width: 33px;
  height: 33px;
  padding: 7px;
  display: grid;
  place-items: center;
  border: 1px solid #585858;
  border-radius: 50%;
  background: transparent;
  color: #e8e8e8;
  cursor: pointer;
  text-decoration: none;
}
.plate-icon-button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vehicle-illustration {
  position: relative;
  width: min(250px, 100%);
  aspect-ratio: 1592 / 768;
  margin: 12px auto 5px;
}
.vehicle-illustration img { width: 100%; height: 100%; display: block; object-fit: contain; }
.vehicle-plate-text {
  position: absolute;
  top: 76.8%;
  left: 50%;
  width: 29.5%;
  height: 12.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #141414;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(7px, 2.4vw, 11px);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.plate-form { margin: 0; }
.plate-entry {
  padding: 0 12px 8px;
  overflow: hidden;
  border: 1px solid #454545;
  border-radius: 16px;
  background: linear-gradient(140deg, rgb(0 0 0 / 7%), rgb(0 0 0 / 20%));
  transition: border-color .16s ease, background .16s ease;
}
.plate-entry.invalid { border-color: #b7555a; background: linear-gradient(140deg, rgb(95 26 29 / 25%), rgb(0 0 0 / 18%)); }
.plate-label {
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #3c3c3c;
  color: #e0e0e0;
  font-size: 10px;
  font-weight: 500;
}
.plate-entry.invalid .plate-label { color: #ff777d; }
#plate-number {
  width: 100%;
  height: 53px;
  padding: 0 4px;
  display: block;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dedede;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: .58em;
  text-align: center;
  text-indent: .58em;
  text-transform: uppercase;
}
#plate-number::placeholder { color: #a6a6a8; opacity: 1; }
#plate-number:focus::placeholder { opacity: .48; }
.plate-error { margin: -1px 0 7px; color: #ff777d; font-size: 11px; line-height: 1.35; text-align: center; }
.plate-entry-divider { height: 1px; background: #3c3c3c; }
.foreign-choice {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #dedede;
  cursor: pointer;
  font-size: 11px;
}
.foreign-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track {
  width: 48px;
  height: 30px;
  flex: 0 0 48px;
  padding: 5px;
  display: block;
  border-radius: 20px;
  background: #d3d3d5;
  transition: background .15s ease;
}
.switch-track::after {
  width: 20px;
  height: 20px;
  display: block;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform .15s ease;
}
.foreign-choice input:checked + .switch-track { background: #d4c400; }
.foreign-choice input:checked + .switch-track::after { transform: translateX(18px); }
.foreign-choice input:focus-visible + .switch-track { outline: 2px solid #fff; outline-offset: 2px; }

.plate-consents { margin: 9px 0 0; display: grid; gap: 6px; }
.consent-row {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 10px;
  line-height: 1.4;
}
.consent-row > span { min-width: 0; }
.consent-row a { color: #e3e3e3; text-decoration: underline; text-underline-offset: 2px; }
.consent-row input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  appearance: none;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.consent-row input:checked { border-color: #f0f0f0; background: #f0f0f0; }
.consent-row input:checked::after {
  width: 8px;
  height: 4px;
  margin: 4px 0 0 3px;
  display: block;
  border-bottom: 2px solid #222;
  border-left: 2px solid #222;
  content: "";
  transform: rotate(-45deg);
}
.consent-row input:focus-visible { outline: 2px solid #dfce00; outline-offset: 2px; }
.plate-captcha-copy { margin: 19px 0 12px; color: #777; font-size: 9px; line-height: 1.6; }
.plate-captcha-copy a { color: #777; }
.search-debts-button {
  width: 100%;
  min-height: 40px;
  border: 1px solid #494949;
  border-radius: 22px;
  background: var(--accent);
  color: #171600;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: filter .16s ease, background .16s ease;
}
.search-debts-button:hover:not(:disabled) { filter: brightness(1.08); }
.search-debts-button:disabled {
  border-color: #3c3c3c;
  background: linear-gradient(100deg, #1a1a1a, #292929);
  color: #555;
  cursor: not-allowed;
}
.plate-feedback { min-height: 13px; margin: 6px 0 0; color: #e4d633; font-size: 9px; line-height: 1.4; text-align: center; }
.plate-support-link { margin: 3px auto 0; display: block; color: #e1e1e1; font-size: 11px; text-align: center; text-decoration: none; }
.plate-support-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .home-shell { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; }
  .login-card { padding-right: 24px; padding-left: 24px; }
  .plate-shell { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; }
  .plate-card { width: 360px; padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 700px) {
  body:not(.admin-page) { background: linear-gradient(145deg, var(--background-start), #11120e 55%, var(--background-end)); }
  .home-shell { width: min(440px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 0; }
  .brand-column { padding: 30px 0 24px 12px; }
  .brand-image-frame { width: 190px; height: 70px; margin-left: -12px; }
  .brand-copy { max-width: 100%; }
  .brand-copy h1 { max-width: 360px; font-size: 20px; }
  .login-card { min-height: auto; margin: 0 0 25px; padding: 24px; border-radius: 22px; }
  .home-footer { position: static; width: min(440px, calc(100% - 32px)); min-height: 74px; margin: 0 auto; align-items: center; gap: 12px; }
  .footer-image-frame { width: 40%; height: 58px; }
  .company-copy { width: 60%; margin: 0; font-size: 9px; }
  .plate-shell { width: min(440px, calc(100% - 32px)); min-height: auto; display: flex; flex-direction: column; gap: 0; padding: 16px 0 20px; }
  .plate-brand-column { min-height: 100px; }
  .plate-logo-frame { width: 190px; height: 82px; }
  .plate-card { width: 100%; min-height: 0; margin: 0 auto; padding: 23px 24px 18px; border-radius: 22px; }
  .vehicle-illustration { margin-top: 8px; }
}

@media (max-width: 760px) {
  .admin-layout { width: 94%; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .admin-sidebar { min-width: 0; padding-top: 17px; }
  .sidebar-heading-row, .sidebar-note { display: none; }
  .admin-nav { min-width: 0; max-width: 100%; display: flex; gap: 5px; overflow-x: auto; }
  .admin-nav-item { width: auto; flex: 0 0 auto; padding: 0 10px; font-size: 10px; }
  .admin-main { padding-top: 24px; }
  .admin-header { padding: 0 3%; }
  .admin-ip-metrics { grid-template-columns: repeat(2, minmax(92px, 1fr)); max-width: none; }
  .ip-tools { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .field-grid, .color-grid { grid-template-columns: 1fr; gap: 4px; }
  .settings-card { padding: 15px; }
  .upload-row { align-items: flex-start; flex-direction: column; }
  .image-preview, .footer-preview { width: 100%; height: 110px; }
  .admin-brand { font-size: 12px; }
  .admin-preview-link { font-size: 10px; }
  .admin-header { height: auto; min-height: 68px; flex-wrap: wrap; gap: 8px; padding-top: 9px; padding-bottom: 9px; }
  .plate-card { padding-right: 18px; padding-left: 18px; }
  .vehicle-illustration { width: 190px; height: 143px; }
  #plate-number { font-size: 21px; letter-spacing: .5em; text-indent: .5em; }
}

body.debts-page {
  min-width: 320px;
  min-height: 100vh;
  background: #f5f5f3;
  color: #242424;
  color-scheme: light;
  font-family: Inter, Arial, sans-serif;
}
.debts-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 66px 254px minmax(0, 1fr);
}
.debts-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 17px 0;
  border-right: 1px solid #e6e6e3;
  background: #f8f8f6;
}
.debts-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
  text-decoration: none;
}
.debts-logo img { width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.debts-logo.has-logo img { opacity: 1; }
.debts-rail-nav { display: grid; gap: 13px; margin-top: 37px; }
.debts-rail-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #777;
  font-size: 18px;
  text-decoration: none;
}
.debts-rail-link:hover, .debts-rail-link.is-active { background: #ede8a6; color: #292600; }
.debts-rail-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.debts-rail-bottom { margin-top: auto; }
.vehicles-panel {
  min-width: 0;
  padding: 28px 17px;
  border-right: 1px solid #e6e6e3;
  background: #fafaf8;
}
.vehicles-panel h1 { margin: 0 0 20px; font-size: 15px; font-weight: 700; }
.vehicle-summary-card {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #e8d900;
}
.vehicle-summary-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 54%);
  font-size: 18px;
}
.vehicle-summary-copy { min-width: 0; display: grid; gap: 5px; }
.vehicle-summary-copy strong { font-size: 12px; }
.vehicle-summary-copy span { color: #555; font-size: 10px; }
.vehicle-add-link { display: inline-block; margin: 13px 4px; color: #666; font-size: 10px; text-decoration: none; }
.vehicle-add-link:hover { color: #222; text-decoration: underline; }
.debts-main { min-width: 0; padding: 31px clamp(18px, 4vw, 58px) 48px; }
.debts-main-inner { width: min(100%, 900px); margin: 0 auto; }
.debts-page-header {
  min-height: 91px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
  margin-bottom: 15px;
}
.debts-page-header h2 { grid-column: 1; margin: 0; font-size: 16px; font-weight: 700; }
.debt-plate-wrap { grid-column: 2; display: grid; justify-items: center; gap: 7px; }
.debt-license-plate {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 2172 / 724;
}
.debt-license-plate img { width: 100%; height: 100%; display: block; object-fit: contain; }
.debt-license-plate > strong {
  position: absolute;
  top: 68%;
  left: 50%;
  width: 56%;
  overflow: hidden;
  color: #171717;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(11px, 2.2vw, 22px);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-align: center;
  text-overflow: clip;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.debt-plate-caption { color: #858585; font-size: 10px; }
.debts-toolbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  padding: 8px 9px 8px 16px;
  border: 1px solid #e9e9e6;
  border-radius: 14px;
  background: #fff;
}
.debts-total-label { color: #666; font-size: 12px; }
.debts-total { margin-left: 6px; color: #252525; font-size: 14px; font-weight: 750; }
.debts-total-note { display: block; margin-top: 4px; color: #999; font-size: 10px; }
.debts-primary-button {
  min-height: 38px;
  padding: 0 17px;
  border: 0;
  border-radius: 20px;
  background: #e8d900;
  color: #171600;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}
.debts-primary-button:hover:not(:disabled) { background: #f2e329; }
.debts-primary-button:disabled { background: #e5e5e1; color: #92928d; cursor: not-allowed; }
.debts-notice {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 13px;
  line-height: 0;
}
.debts-notice img { width: 100%; height: auto; min-height: 42px; display: block; object-fit: fill; }
.debts-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 9px;
}
.debts-list-heading h3 { margin: 0; font-size: 13px; }
.debts-list-heading span { color: #888; font-size: 10px; }
.charge-list { display: grid; gap: 9px; }
.charge-card {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 16px 15px 13px;
  border: 1px solid #ececea;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 2px 7px rgb(0 0 0 / 3%);
}
.charge-meta { min-width: 0; display: grid; gap: 5px; }
.charge-meta-eyebrow { color: #929292; font-size: 8px; letter-spacing: .04em; }
.charge-meta-title { font-size: 12px; }
.charge-meta-subtitle { color: #858585; font-size: 10px; }
.charge-amount { display: flex; align-items: center; gap: 12px; }
.charge-amount strong { font-size: 13px; white-space: nowrap; }
.charge-check-label { line-height: 0; }
.charge-checkbox { width: 13px; height: 13px; accent-color: #b6a900; cursor: pointer; }
.charge-open-details {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #777;
  cursor: pointer;
  font-size: 18px;
}
.charge-open-details:hover { background: #f1f1ec; }
.charge-details {
  grid-column: 1 / -1;
  margin: 3px 0 0;
  padding-top: 11px;
  border-top: 1px solid #eee;
  color: #707070;
  font-size: 10px;
  line-height: 1.6;
}
.charge-details[hidden] { display: none; }
.debts-error {
  padding: 20px;
  border: 1px solid #ececea;
  border-radius: 14px;
  background: #fff;
  color: #777;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.debts-error { border-color: #edcccc; color: #a33; }
.no-debts-state {
  display: grid;
  justify-items: center;
  padding: 14px 0 0;
  color: #252525;
}
.empty-state-check {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0f0f0;
}
.empty-state-check svg { width: 26px; height: 26px; fill: none; stroke: #222; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.no-debts-state h3 { margin: 12px 0 31px; font-size: 13px; font-weight: 500; line-height: 1.25; text-align: center; }
.empty-state-callout {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 15px;
  background: #fff9e7;
  color: #373737;
}
.empty-state-callout p { margin: 0; font-size: 10px; line-height: 1.55; }
.empty-state-warning-icon, .empty-state-info-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: #f4bf35;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.empty-state-info { width: 100%; display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 28px; color: #3e3e3e; font-size: 10px; line-height: 1.55; }
.empty-state-info-icon { background: #222; }
.empty-state-button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 23px;
  background: #e8d900;
  color: #211f00;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.empty-state-button:hover { background: #f2e329; }
#debts-toolbar[hidden], #debts-list-heading[hidden], #empty-debts[hidden] { display: none !important; }
.pix-status { margin-top: 12px; padding: 11px 13px; border-radius: 11px; background: #f3f0ce; color: #514d12; font-size: 11px; line-height: 1.5; }
.pix-dialog {
  width: min(390px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 0;
  border: 1px solid #dededb;
  border-radius: 22px;
  background: #f7f7f7;
  color: #242424;
  box-shadow: 0 18px 65px rgb(0 0 0 / 24%);
}
.pix-dialog::backdrop { background: rgb(16 16 16 / 55%); }
.pix-dialog-card { padding: 17px 18px 16px; }
.pix-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pix-dialog-header h2 { margin: 0; font-size: 13px; font-weight: 500; }
.pix-dialog-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e0e0e0;
  color: #292929;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.pix-qr-image { width: 112px; height: 112px; display: block; margin: 16px auto 17px; image-rendering: pixelated; }
.pix-waiting { display: block; margin-bottom: 11px; font-size: 12px; text-align: center; }
.pix-instructions { margin: 0 auto 11px; max-width: 315px; color: #696969; font-size: 11px; line-height: 1.55; text-align: center; }
.pix-countdown { display: table; margin: 0 auto 14px; padding: 2px 8px; border-radius: 12px; background: #e8d900; color: #161500; font-size: 12px; font-variant-numeric: tabular-nums; }
.pix-copy-row { min-height: 40px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 4px 5px 4px 12px; border: 1px solid #f0f0ee; border-radius: 24px; background: #fff; }
.pix-copy-code { min-width: 0; flex: 1; overflow: hidden; color: #555; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.pix-copy-button { min-height: 32px; display: flex; align-items: center; gap: 5px; padding: 0 11px; border: 0; border-radius: 18px; background: #e8d900; color: #171600; cursor: pointer; font-size: 10px; font-weight: 700; white-space: nowrap; }
.pix-copy-button:hover { background: #f2e329; }
.pix-copy-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.pix-payment-details { display: grid; gap: 10px; margin-bottom: 16px; }
.pix-payment-details div { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: 10px; }
.pix-payment-details span { color: #6b6b6b; }
.pix-payment-details strong { max-width: 60%; overflow-wrap: anywhere; font-size: 10px; font-weight: 650; text-align: right; }
.pix-expiration-note { display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px; border-radius: 14px; background: #fff8e4; }
.pix-expiration-note > span { width: 13px; height: 13px; flex: 0 0 13px; display: grid; place-items: center; margin-top: 1px; border-radius: 50%; background: #f3c53d; color: #fff; font-size: 9px; font-weight: 800; }
.pix-expiration-note p { margin: 0; color: #383838; font-size: 10px; line-height: 1.5; }
.pix-dialog-status { min-height: 0; margin: 8px 0 0; color: #4a661d; font-size: 10px; text-align: center; }
.pix-dialog-status:empty { display: none; }
.pix-dialog.is-pending .pix-qr-image,
.pix-dialog.is-pending .pix-waiting,
.pix-dialog.is-pending .pix-instructions,
.pix-dialog.is-pending .pix-countdown,
.pix-dialog.is-pending .pix-copy-row,
.pix-dialog.is-pending .pix-payment-details,
.pix-dialog.is-pending .pix-expiration-note,
.pix-dialog.has-error .pix-qr-image,
.pix-dialog.has-error .pix-waiting,
.pix-dialog.has-error .pix-instructions,
.pix-dialog.has-error .pix-countdown,
.pix-dialog.has-error .pix-copy-row,
.pix-dialog.has-error .pix-payment-details,
.pix-dialog.has-error .pix-expiration-note { display: none; }
.pix-dialog.is-pending .pix-dialog-status,
.pix-dialog.has-error .pix-dialog-status {
  min-height: 120px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 18px;
  line-height: 1.6;
}
.pix-dialog.is-pending .pix-dialog-status { color: #686868; }
.pix-dialog.has-error .pix-dialog-status { color: #a33; }

#admin-layout[hidden], #admin-auth[hidden] { display: none !important; }
#save-button[hidden], #admin-logout[hidden] { display: none !important; }
.admin-header-actions { display: flex; align-items: center; gap: 14px; }
.admin-logout {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d5d5d0;
  border-radius: 18px;
  background: #fff;
  color: #444;
  cursor: pointer;
  font-size: 11px;
}
.admin-logout:hover { background: #f5f5f0; }
.admin-auth { width: min(480px, calc(100% - 32px)); margin: 70px auto; }
.admin-auth-card {
  padding: 28px;
  border: 1px solid #30312e;
  border-radius: 18px;
  background: #1b1c1a;
  color: #efefed;
  box-shadow: 0 10px 32px rgb(0 0 0 / 20%);
}
.admin-auth-card h1 { margin: 0 0 8px; font-size: 21px; }
.admin-auth-card > p:not(.eyebrow):not(.admin-status) { margin: 0 0 20px; color: #a2a39f; font-size: 12px; line-height: 1.55; }
.admin-auth-card .save-button { width: 100%; margin-top: 16px; }
.admin-auth-card .text-input { color-scheme: dark; }
.admin-password-field { position: relative; }
.admin-password-field .text-input { padding-right: 46px; }
.admin-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 7px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #bfc0bb;
  cursor: pointer;
}
.admin-password-toggle:hover { color: var(--admin-accent); }
.admin-password-toggle:focus-visible { outline: 2px solid var(--admin-blue); outline-offset: 1px; }
.admin-password-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.admin-password-eye-closed, .admin-password-toggle[aria-pressed="true"] .admin-password-eye-open { display: none; }
.admin-password-toggle[aria-pressed="true"] .admin-password-eye-closed { display: block; }
.admin-section[data-panel="billing"] .text-input { color-scheme: light; }
.admin-section #billing-status, .admin-section #pix-key-status, .admin-section #credentials-status { margin: 8px 0 0; }
.admin-auth-card .admin-status { min-height: 18px; }
.admin-section[data-panel="billing"] .save-button { margin-top: 13px; }
.admin-form-note { margin: 12px 0 4px; color: #777; font-size: 11px; line-height: 1.55; }
.admin-master-note { display: grid; gap: 5px; padding: 12px; border: 1px solid #393a35; border-radius: 8px; background: #151614; color: #d3d4d0; font-size: 11px; line-height: 1.5; }
.admin-master-note strong { color: var(--admin-blue); }
.admin-master-note span { color: #999a95; }
.admin-section[data-panel="credentials"] .save-button { margin-top: 13px; }
.admin-section[data-panel="ip-access"] #ip-settings-save { margin-top: 12px; }
.admin-section[data-panel="ip-access"] #ip-settings-status { min-height: 18px; margin: 8px 0 0; }
.admin-section[data-panel="history"] #history-status { min-height: 18px; margin: 9px 0; }
.history-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.history-tab { min-height: 32px; padding: 0 12px; border: 1px solid #454641; border-radius: 6px; background: transparent; color: #c3c4bf; cursor: pointer; font-size: 10px; }
.history-tab.active { border-color: var(--admin-blue); background: #1b2b33; color: var(--admin-blue); }
.history-tab:hover { border-color: var(--admin-blue-hover); }
.admin-table-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.admin-table-heading h2 { margin: 0 0 5px; font-size: 15px; }
.admin-table-heading p { margin: 0; color: #777; font-size: 11px; line-height: 1.5; }
.admin-refresh-controls { display: flex; align-items: center; gap: 12px; }
.admin-refresh-countdown {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  color: var(--admin-accent);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.admin-refresh-countdown svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.admin-refresh-track, .admin-refresh-progress { fill: none; stroke-width: 3; }
.admin-refresh-track { stroke: #383a35; }
.admin-refresh-progress { stroke: var(--admin-accent); stroke-dasharray: 94.25; stroke-dashoffset: 0; stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.admin-record-search { max-width: 420px; margin: 14px 0 12px; }
.admin-record-search .field-label { margin-top: 0; }
.admin-record-search[hidden] { display: none !important; }
.admin-table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid #e6e6e2; border-radius: 12px; }
.paid-weekly-chart { margin: 0 0 18px; padding: 18px; overflow: hidden; border: 1px solid #34362e; border-radius: 12px; background: linear-gradient(145deg, #20221d, #171815); color: #f1f1ec; }
.paid-chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.paid-chart-heading h3 { margin: 0 0 5px; font-size: 13px; }
.paid-chart-heading p { min-height: 14px; margin: 0; color: #96988f; font-size: 10px; }
.paid-chart-pagination { display: flex; align-items: center; gap: 8px; }
.paid-chart-pagination .remove-image-button { min-height: 30px; padding: 0 9px; font-size: 10px; }
.paid-chart-pagination .remove-image-button:disabled { cursor: not-allowed; opacity: .45; }
.paid-chart-pagination span { min-width: 75px; color: #d3d4ce; font-size: 10px; text-align: center; white-space: nowrap; }
.paid-chart-total { margin: 15px 0 10px; color: #a7a99f; font-size: 10px; }
.paid-chart-total strong { margin-left: 5px; color: var(--admin-accent); font-size: 17px; font-variant-numeric: tabular-nums; }
.paid-chart-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; min-height: 148px; padding: 10px 4px 0; border-top: 1px solid #34362e; }
.paid-chart-day { display: grid; grid-template-rows: 18px 100px 16px; gap: 6px; min-width: 0; text-align: center; }
.paid-chart-amount { overflow: hidden; color: #c6c8bf; font-size: 9px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.paid-chart-track { display: flex; align-items: flex-end; justify-content: center; height: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #292b25, #22241f); }
.paid-chart-bar { width: min(28px, 58%); min-height: 3px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--admin-blue), var(--admin-accent)); box-shadow: 0 0 15px rgb(78 182 228 / 15%); transition: height .25s ease; }
.paid-chart-day-label { color: #aeb0a7; font-size: 9px; }
@media (max-width: 560px) {
  .paid-weekly-chart { padding: 14px 11px; }
  .paid-chart-heading { flex-direction: column; }
  .paid-chart-pagination { justify-content: space-between; }
  .paid-chart-bars { gap: 4px; padding-right: 0; padding-left: 0; }
  .paid-chart-amount, .paid-chart-day-label { font-size: 8px; }
}
.admin-plates-table { width: 100%; min-width: 900px; border-collapse: collapse; background: #fff; color: #333; font-size: 11px; }
.admin-plates-table th, .admin-plates-table td { padding: 11px 9px; border-bottom: 1px solid #ededeb; text-align: left; vertical-align: middle; }
.admin-plates-table th { background: #f7f7f4; color: #666; font-size: 10px; font-weight: 650; }
.admin-plates-table tr:last-child td { border-bottom: 0; }
.admin-plates-table td strong { font-size: 12px; letter-spacing: .04em; }
.admin-table-subtext { display: block; margin-top: 4px; color: #888; font-size: 9px; }
.admin-pix-not-generated { color: #c62828; font-weight: 700; }
.admin-pix-generated { color: #756800; font-weight: 700; }
.admin-table-empty { padding: 25px !important; color: #777; text-align: center !important; }
.payment-status { display: inline-block; margin-right: 7px; padding: 4px 7px; border-radius: 10px; background: #fff1d8; color: #805413; font-size: 9px; white-space: nowrap; }
.payment-status.is-paid { border: 1px solid #86efac; background: #dcfce7; color: #166534; }
.table-action-button { padding: 5px 8px; border: 1px solid #ddd; border-radius: 12px; background: #fff; color: #4a4a4a; cursor: pointer; font-size: 9px; white-space: nowrap; }
.table-action-button:hover { background: #f4f4f0; }
.table-action-button.is-danger { border-color: #efcccc; color: #a53d3d; }
.table-action-button.is-danger:hover { background: #fff5f5; }
.admin-nav-item[data-section="billing"], .admin-nav-item[data-section="plates"] { margin-top: 4px; }
.admin-nav-item[data-section="ip-access"] { margin-top: 4px; }
.admin-ip-metrics[hidden] { display: none; }
.admin-ip-metrics {
  min-width: 0;
  width: 100%;
  max-width: 610px;
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 8px;
}
.admin-ip-metric {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid #3a3b37;
  border-radius: 8px;
  background: #20211e;
  color: #ddd;
  text-align: center;
}
.admin-ip-metric strong { font-size: 18px; }
.admin-ip-metric span { color: #a5a69f; font-size: 9px; }
.admin-ip-metric[data-tone="accesses"] strong { color: var(--admin-accent); }
.admin-ip-metric[data-tone="restricted"] strong { color: var(--admin-blue); }
.admin-ip-metric[data-tone="recent"] strong { color: var(--admin-blue); }
.ip-tools { display: grid; grid-template-columns: minmax(180px, 1fr) 180px; gap: 12px; margin: 14px 0 12px; }
.ip-search, .ip-sort { display: grid; gap: 5px; color: #d3d4d0; font-size: 10px; font-weight: 600; }
.ip-table-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.remove-image-button.is-danger { border-color: #efcccc; color: #a53d3d; }
.remove-image-button.is-danger:hover { background: #fff5f5; }
.admin-ip-table { width: 100%; min-width: 920px; border-collapse: collapse; background: #fff; color: #333; font-size: 10px; }
.admin-ip-table th, .admin-ip-table td { padding: 11px 8px; border-bottom: 1px solid #ededeb; text-align: left; vertical-align: middle; }
.admin-ip-table th { background: #f7f7f4; color: #666; font-size: 9px; font-weight: 650; }
.admin-ip-table tr:last-child td { border-bottom: 0; }
.ip-status-badge { display: inline-block; padding: 4px 7px; border-radius: 10px; white-space: nowrap; }
.ip-status-badge.is-normal { background: #fff4bf; color: #655600; }
.ip-status-badge.is-restricted { background: #fde8df; color: #9c4b32; }
.ip-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; color: #c3c4bf; font-size: 10px; }
.ip-pagination[hidden] { display: none; }
.ip-pagination button:disabled { cursor: not-allowed; opacity: .5; }
.admin-confirm-dialog { width: min(420px, calc(100% - 32px)); padding: 22px; border: 1px solid #454641; border-radius: 12px; background: #20211e; color: #e2e3df; box-shadow: 0 20px 70px #0009; }
.admin-confirm-dialog::backdrop { background: #0009; }
.admin-confirm-dialog h2 { margin: 0 0 9px; font-size: 16px; }
.admin-confirm-dialog p { margin: 0; color: #b7b8b2; font-size: 12px; line-height: 1.6; }
.admin-confirm-dialog .field-label { margin-top: 16px; }
.admin-confirm-dialog .admin-status { min-height: 18px; margin: 8px 0 0; }
.admin-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.admin-metric-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: min(690px, calc(100% - 32px));
  margin: auto;
  padding: 26px;
  overflow: auto;
  border: 1px solid #3a4541;
  border-radius: 18px;
  background: radial-gradient(ellipse at 100% 0%, rgb(78 182 228 / 9%), transparent 42%), #191c19;
  color: #eff3ee;
  box-shadow: 0 28px 90px rgb(0 0 0 / 55%);
}
.admin-metric-dialog::backdrop { background: rgb(5 8 7 / 72%); backdrop-filter: blur(5px); }
.metric-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.metric-dialog-eyebrow { margin: 0 0 7px; color: var(--admin-blue); font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.metric-dialog-header h2 { margin: 0; font-size: clamp(19px, 4vw, 25px); letter-spacing: -.035em; }
.metric-dialog-header > div > p:last-child { margin: 7px 0 0; color: #aab4ae; font-size: 11px; line-height: 1.5; }
.metric-dialog-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #414a44;
  border-radius: 50%;
  background: #232823;
  color: #d7dfd8;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.metric-dialog-close:hover { background: #303830; color: #fff; }
.metric-dialog-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 14px; }
.metric-dialog-summary > div { min-width: 0; padding: 13px 15px; border: 1px solid #35443a; border-radius: 11px; background: rgb(74 222 128 / 6%); }
.metric-dialog-summary span, .plate-count-stat > span { display: block; color: #a9b5ad; font-size: 10px; }
.metric-dialog-summary strong { display: block; margin-top: 5px; color: #86efac; font-size: clamp(16px, 4vw, 21px); font-variant-numeric: tabular-nums; }
.paid-details-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; counter-reset: paid-record; }
.paid-details-item { min-width: 0; display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid #303832; border-radius: 10px; background: rgb(255 255 255 / 2%); }
.paid-details-rank { color: #75827a; font-size: 10px; font-variant-numeric: tabular-nums; }
.paid-details-record { min-width: 0; display: grid; gap: 4px; }
.paid-details-record strong { color: #f0f3ef; font-size: 12px; letter-spacing: .08em; }
.paid-details-record span { color: #909d94; font-size: 10px; }
.paid-details-amount { color: #86efac; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-dialog-empty { margin: 22px 0 4px; padding: 20px; border: 1px dashed #3c4940; border-radius: 11px; color: #aab5ad; font-size: 12px; text-align: center; }
.metric-dialog-empty[hidden] { display: none; }
.metric-dialog-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.metric-dialog-pagination[hidden] { display: none; }
.metric-dialog-pagination > span { color: #aab5ad; font-size: 10px; font-variant-numeric: tabular-nums; }
.plate-count-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.plate-count-stat { min-width: 0; padding: 19px; border: 1px solid #35414a; border-radius: 13px; background: linear-gradient(145deg, rgb(78 182 228 / 9%), rgb(255 255 255 / 2%)); }
.plate-count-stat strong { display: block; margin: 17px 0 6px; color: #73c9ed; font-size: clamp(26px, 7vw, 38px); font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plate-count-stat small { color: #9eaaa5; font-size: 10px; }
.plate-count-stat.is-pix { border-color: #3a4b3b; background: linear-gradient(145deg, rgb(74 222 128 / 9%), rgb(255 255 255 / 2%)); }
.plate-count-stat.is-pix strong { color: #86efac; }
.ip-switch-row {
  max-width: 390px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 4px 0 12px;
  padding: 10px 12px;
  border: 1px solid #393a36;
  border-radius: 8px;
  background: #171815;
  cursor: pointer;
}
.ip-switch-row span { display: grid; gap: 3px; }
.ip-switch-row strong { color: #e2e3df; font-size: 11px; }
.ip-switch-row small { color: #8e8f89; font-size: 9px; }
.ip-switch-row input {
  width: 44px;
  height: 24px;
  appearance: none;
  border-radius: 20px;
  background: #4b4c47;
  position: relative;
  cursor: pointer;
  transition: background .15s ease;
}
.ip-switch-row input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s ease;
}
.ip-switch-row input:checked { background: var(--admin-accent); }
.ip-switch-row input:checked::after { transform: translateX(20px); }

@media (max-width: 980px) {
  .debts-layout { grid-template-columns: 58px 214px minmax(0, 1fr); }
  .vehicles-panel { padding-right: 12px; padding-left: 12px; }
  .debts-main { padding-right: 24px; padding-left: 24px; }
}
@media (max-width: 720px) {
  .debts-layout { grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .debts-rail { grid-column: 1; grid-row: 1 / span 2; }
  .vehicles-panel { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-right: 0; border-bottom: 1px solid #e6e6e3; }
  .vehicles-panel h1 { flex: 0 0 auto; margin: 0; font-size: 12px; }
  .vehicle-add-link { flex: 0 0 auto; margin: 0; font-size: 9px; }
  .vehicle-summary-card { min-height: 48px; flex: 1; padding: 7px 10px; border-radius: 14px; }
  .vehicle-summary-icon { width: 31px; height: 31px; }
  .vehicle-summary-copy { gap: 3px; }
  .vehicles-empty { display: none; }
  .debts-main { grid-column: 2; grid-row: 2; padding: 22px 16px 35px; }
  .debts-page-header { min-height: 125px; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .debts-page-header h2 { grid-column: 1; grid-row: 1; }
  .debt-plate-wrap { grid-column: 1; grid-row: 2; }
  .debts-page-header h2 { font-size: 14px; }
  .debt-license-plate { width: min(100%, 280px); }
  .debt-license-plate > strong { font-size: clamp(11px, 4vw, 18px); }
  .debts-toolbar { align-items: flex-start; }
  .debts-total-label { font-size: 11px; }
  .debts-primary-button { padding: 0 12px; }
}
@media (max-width: 420px) {
  .debts-main { padding-right: 11px; padding-left: 11px; }
  .vehicles-panel { gap: 8px; padding-right: 9px; padding-left: 9px; }
  .vehicles-panel h1 { max-width: 66px; font-size: 10px; }
  .vehicle-add-link { display: none; }
  .vehicle-summary-copy strong { font-size: 10px; }
  .vehicle-summary-copy span { font-size: 9px; }
  .debt-license-plate > strong { font-size: clamp(11px, 4.2vw, 16px); }
  .debts-toolbar { padding-left: 11px; }
  .debts-total { display: block; margin: 4px 0 0; }
  .charge-card { grid-template-columns: minmax(0, 1fr) auto; gap: 5px; padding-right: 8px; padding-left: 10px; }
  .charge-amount { gap: 5px; }
  .charge-amount strong { font-size: 11px; }
  .charge-open-details { width: 20px; }
}
@media (max-width: 500px) {
  .admin-auth { margin-top: 35px; }
  .admin-auth-card { padding: 20px; }
  .admin-header-actions { margin-left: auto; gap: 8px; }
  .admin-logout { min-height: 29px; padding: 0 9px; }
  .admin-table-heading { align-items: flex-start; }
}
@media (max-width: 900px) {
  .admin-heading { flex-wrap: wrap; align-items: flex-start; }
  .admin-heading-summary { max-width: none; flex-basis: 100%; align-items: flex-end; }
  .admin-plates-metrics { max-width: none; }
  .admin-ip-metrics { max-width: none; flex-basis: 100%; }
}
@media (max-width: 520px) {
  .admin-plates-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-metric-dialog { padding: 21px 17px; }
  .plate-count-breakdown { gap: 8px; }
  .plate-count-stat { padding: 14px; }
}

.theme-toggle {
  position: relative;
  width: 62px;
  height: 32px;
  flex: 0 0 62px;
  padding: 0;
  border: 1px solid #444a4a;
  border-radius: 20px;
  background: #202a31;
  color: #b7c1c6;
  cursor: pointer;
}
.theme-toggle svg { position: absolute; top: 7px; z-index: 1; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.theme-toggle-sun { left: 7px; opacity: .65; }
.theme-toggle-moon { right: 7px; color: #b7dbf1; }
.theme-toggle-thumb { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--admin-blue); box-shadow: 0 1px 5px #0005; transition: transform .2s ease, background .2s ease; }
.theme-toggle[aria-checked="true"] { border-color: #dfcf47; background: #fff9d6; color: #615500; }
.theme-toggle[aria-checked="true"] .theme-toggle-thumb { transform: translateX(-30px); background: var(--admin-accent); }
.theme-toggle[aria-checked="true"] .theme-toggle-sun { opacity: 1; }
.theme-toggle[aria-checked="true"] .theme-toggle-moon { opacity: .55; }
.theme-toggle:focus-visible { outline: 2px solid var(--admin-blue); outline-offset: 3px; }
.access-weekly-chart {
  margin: 0 0 18px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #343b3c;
  border-radius: 12px;
  background: linear-gradient(145deg, #202729, #171b1c);
  color: #f1f3f3;
}
.access-weekly-chart[hidden] { display: none !important; }
.access-chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.access-chart-heading h3 { margin: 0 0 5px; font-size: 13px; }
.access-chart-heading p { min-height: 14px; margin: 0; color: #a0aaad; font-size: 10px; }
.access-chart-pagination { display: flex; align-items: center; gap: 8px; }
.access-chart-pagination .remove-image-button { min-height: 30px; padding: 0 9px; font-size: 10px; }
.access-chart-pagination .remove-image-button:disabled { cursor: not-allowed; opacity: .45; }
.access-chart-pagination > span { min-width: 78px; color: #d3dddf; font-size: 10px; text-align: center; white-space: nowrap; }
.access-chart-total { margin: 14px 0 7px; color: #a7b2b4; font-size: 10px; }
.access-chart-total strong { margin-left: 6px; color: var(--admin-accent); font-size: 17px; font-variant-numeric: tabular-nums; }
.access-chart-plot { display: block; width: 100%; height: auto; overflow: visible; }
.access-chart-grid { stroke: #3a4548; stroke-width: 1; }
.access-chart-y-label, .access-chart-x-label { fill: #aab5b7; font-family: inherit; font-size: 10px; }
.access-chart-area { stroke: none; }
.access-chart-line { fill: none; stroke: var(--admin-blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.access-chart-point { fill: var(--admin-accent); stroke: #182123; stroke-width: 2; }
.ip-device-cell, .ip-browser-cell { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.ip-device-icon { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.ip-device-icon.is-mobile { color: #4aa9d3; }
.ip-device-icon.is-tablet { color: #a89000; }
.ip-device-icon.is-desktop { color: #657fce; }
.ip-device-icon.is-other { color: #87949a; }
.ip-browser-cell img { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.admin-ip-table { min-width: 1120px; }

body.admin-page[data-theme="light"] {
  color-scheme: light;
  background: #f2f6f7;
  color: #1d2b32;
}
body.admin-page[data-theme="light"] .admin-header { border-color: #d6e0e3; background: #fff; }
body.admin-page[data-theme="light"] .admin-brand { color: #1d2b32; }
body.admin-page[data-theme="light"] .admin-preview-link { color: #47616b; }
body.admin-page[data-theme="light"] .admin-logout { border-color: #cbd8dc; background: #fff; color: #344b54; }
body.admin-page[data-theme="light"] .admin-logout:hover { background: #edf4f5; }
body.admin-page[data-theme="light"] .admin-sidebar-toggle { border-color: #cbd8dc; color: #53666d; }
body.admin-page[data-theme="light"] .admin-sidebar-toggle:hover { background: #edf4f5; color: #1d2b32; }
body.admin-page[data-theme="light"] .sidebar-heading,
body.admin-page[data-theme="light"] .eyebrow { color: #697d84; }
body.admin-page[data-theme="light"] .admin-nav-item { color: #4e6168; }
body.admin-page[data-theme="light"] .admin-nav-item span { color: #617780; }
body.admin-page[data-theme="light"] .admin-nav-item.active { background: #fff4bf; color: #655600; }
body.admin-page[data-theme="light"] .sidebar-note { border-color: #d5e0e2; background: #fff; color: #53666d; }
body.admin-page[data-theme="light"] .admin-heading h1,
body.admin-page[data-theme="light"] .admin-table-heading h2,
body.admin-page[data-theme="light"] .settings-card-heading h2 { color: #1d2b32; }
body.admin-page[data-theme="light"] .admin-heading > div > p:last-child,
body.admin-page[data-theme="light"] .admin-table-heading p,
body.admin-page[data-theme="light"] .settings-card-heading p,
body.admin-page[data-theme="light"] .admin-bottom-note { color: #62777f; }
body.admin-page[data-theme="light"] .admin-plates-metric { background: #fff; }
body.admin-page[data-theme="light"] .admin-plates-metric .metric-label { color: #60737a; }
body.admin-page[data-theme="light"] .admin-plates-metric .metric-insight { color: #60736a; }
body.admin-page[data-theme="light"] .admin-plates-metric[data-tone="paid"] { border-color: #15803d; color: #15803d; }
body.admin-page[data-theme="light"] .admin-plates-metric[data-tone="count"] { border-color: #c2410c; color: #c2410c; }
body.admin-page[data-theme="light"] .admin-plates-metric[data-tone="generated"] { background: radial-gradient(ellipse at 0% 0%, rgb(56 162 210 / 12%), transparent 68%), linear-gradient(145deg, #fff, #f1f8fb); }
body.admin-page[data-theme="light"] .admin-plates-metric[data-tone="paid"] { background: radial-gradient(ellipse at 0% 0%, rgb(34 197 94 / 11%), transparent 68%), linear-gradient(145deg, #fff, #f0faf3); }
body.admin-page[data-theme="light"] .admin-plates-metric[data-tone="count"] { background: radial-gradient(ellipse at 0% 0%, rgb(249 115 22 / 11%), transparent 68%), linear-gradient(145deg, #fff, #fff7ed); }
body.admin-page[data-theme="light"] .admin-wallet { border-color: #cde4d3; background: transparent; color: #15803d; }
body.admin-page[data-theme="light"] .admin-wallet > img,
body.admin-page[data-theme="light"] .metric-card-icon { filter: brightness(0) saturate(100%); }
body.admin-page[data-theme="light"] .admin-wallet-label,
body.admin-page[data-theme="light"] .admin-wallet strong { color: #15803d; }
body.admin-page[data-theme="light"] .admin-metric-dialog { border-color: #cddbd6; background: radial-gradient(ellipse at 100% 0%, rgb(78 182 228 / 10%), transparent 42%), #fff; color: #1d2b32; }
body.admin-page[data-theme="light"] .metric-dialog-header > div > p:last-child,
body.admin-page[data-theme="light"] .metric-dialog-summary span,
body.admin-page[data-theme="light"] .plate-count-stat > span { color: #62777f; }
body.admin-page[data-theme="light"] .metric-dialog-close { border-color: #cbd8d3; background: #f3f7f5; color: #40554a; }
body.admin-page[data-theme="light"] .metric-dialog-summary > div { border-color: #cce5d2; background: #f2fbf4; }
body.admin-page[data-theme="light"] .metric-dialog-summary strong,
body.admin-page[data-theme="light"] .paid-details-amount,
body.admin-page[data-theme="light"] .plate-count-stat.is-pix strong { color: #18733b; }
body.admin-page[data-theme="light"] .paid-details-item { border-color: #e0e8e3; background: #fbfdfb; }
body.admin-page[data-theme="light"] .paid-details-record strong { color: #263b30; }
body.admin-page[data-theme="light"] .paid-details-record span,
body.admin-page[data-theme="light"] .paid-details-rank,
body.admin-page[data-theme="light"] .metric-dialog-pagination > span,
body.admin-page[data-theme="light"] .plate-count-stat small { color: #66776d; }
body.admin-page[data-theme="light"] .plate-count-stat { border-color: #cce1e9; background: linear-gradient(145deg, #f1faff, #fff); }
body.admin-page[data-theme="light"] .plate-count-stat strong { color: #16749c; }
body.admin-page[data-theme="light"] .plate-count-stat.is-pix { border-color: #cce5d2; background: linear-gradient(145deg, #f2fbf4, #fff); }
body.admin-page[data-theme="light"] .settings-card { border-color: #d8e2e4; background: #fff; }
body.admin-page[data-theme="light"] .field-label,
body.admin-page[data-theme="light"] .ip-search,
body.admin-page[data-theme="light"] .ip-sort { color: #42575f; }
body.admin-page[data-theme="light"] .text-input,
body.admin-page[data-theme="light"] .color-field,
body.admin-page[data-theme="light"] .image-preview { border-color: #cbd8dc; background: #f8fbfb; color: #243941; }
body.admin-page[data-theme="light"] .admin-auth-card .text-input { color-scheme: light; }
body.admin-page[data-theme="light"] .admin-auth-card { border-color: #d5e0e2; background: #fff; color: #1d2b32; }
body.admin-page[data-theme="light"] .admin-auth-card > p:not(.eyebrow):not(.admin-status) { color: #63777e; }
body.admin-page[data-theme="light"] .admin-password-toggle { color: #526971; }
body.admin-page[data-theme="light"] .admin-form-note,
body.admin-page[data-theme="light"] .upload-actions p { color: #63777e; }
body.admin-page[data-theme="light"] .admin-master-note { border-color: #d5e0e2; background: #f2f7f7; color: #344b54; }
body.admin-page[data-theme="light"] .admin-master-note span { color: #63777e; }
body.admin-page[data-theme="light"] .history-tab { border-color: #cbd8dc; color: #526971; }
body.admin-page[data-theme="light"] .history-tab.active { border-color: var(--admin-blue); background: #e8f4f8; color: #237b9f; }
body.admin-page[data-theme="light"] .admin-table-wrap { border-color: #d8e2e4; }
body.admin-page[data-theme="light"] .paid-weekly-chart,
body.admin-page[data-theme="light"] .access-weekly-chart { border-color: #d5e0e2; background: linear-gradient(145deg, #fff, #f7fafb); color: #1d2b32; }
body.admin-page[data-theme="light"] .paid-chart-heading p,
body.admin-page[data-theme="light"] .access-chart-heading p,
body.admin-page[data-theme="light"] .paid-chart-total,
body.admin-page[data-theme="light"] .access-chart-total { color: #667b83; }
body.admin-page[data-theme="light"] .paid-chart-pagination span,
body.admin-page[data-theme="light"] .access-chart-pagination > span { color: #435b64; }
body.admin-page[data-theme="light"] .paid-chart-bars { border-color: #dce5e7; }
body.admin-page[data-theme="light"] .paid-chart-amount,
body.admin-page[data-theme="light"] .paid-chart-day-label { color: #50656d; }
body.admin-page[data-theme="light"] .paid-chart-track { background: linear-gradient(180deg, #eaf0f1, #f2f6f6); }
body.admin-page[data-theme="light"] .access-chart-grid { stroke: #dce5e7; }
body.admin-page[data-theme="light"] .access-chart-y-label,
body.admin-page[data-theme="light"] .access-chart-x-label { fill: #5d737b; }
body.admin-page[data-theme="light"] .access-chart-point { stroke: #fff; }
body.admin-page[data-theme="light"] .admin-ip-metric { border-color: #d5e0e2; background: #fff; color: #263a42; }
body.admin-page[data-theme="light"] .admin-ip-metric span { color: #647981; }
body.admin-page[data-theme="light"] .ip-pagination { color: #526971; }
body.admin-page[data-theme="light"] .remove-image-button { border-color: #cbd8dc; color: #405860; }
body.admin-page[data-theme="light"] .remove-image-button:hover { border-color: #7a9aa5; background: #f1f7f8; }
body.admin-page[data-theme="light"] .admin-confirm-dialog { border-color: #d5e0e2; background: #fff; color: #1d2b32; }
body.admin-page[data-theme="light"] .admin-confirm-dialog p { color: #60757d; }
body.admin-page[data-theme="light"] .ip-switch-row { border-color: #d5e0e2; background: #f8fbfb; }
body.admin-page[data-theme="light"] .ip-switch-row strong { color: #263a42; }
body.admin-page[data-theme="light"] .ip-switch-row small { color: #667b83; }

@media (max-width: 560px) {
  .access-weekly-chart { padding: 14px 11px; }
  .access-chart-heading { flex-direction: column; }
  .access-chart-pagination { width: 100%; justify-content: space-between; }
  .access-chart-y-label, .access-chart-x-label { font-size: 9px; }
}

.appearance-actions { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-appearance-status { min-height: 16px; margin: 12px 0 8px; color: var(--admin-blue); font-size: 11px; }
body.admin-page[data-theme="light"] { color: var(--admin-panel-text-color, #1d2b32); }
body.admin-page[data-theme="dark"] { color: var(--admin-panel-text-color, #efefed); }
body.admin-page[data-theme] .admin-brand,
body.admin-page[data-theme] .admin-preview-link,
body.admin-page[data-theme] .sidebar-heading,
body.admin-page[data-theme] .eyebrow,
body.admin-page[data-theme] .admin-nav-item:not(.active),
body.admin-page[data-theme] .sidebar-note,
body.admin-page[data-theme] .admin-heading h1,
body.admin-page[data-theme] .admin-heading > div > p:last-child,
body.admin-page[data-theme] .admin-table-heading h2,
body.admin-page[data-theme] .admin-table-heading p,
body.admin-page[data-theme] .settings-card-heading h2,
body.admin-page[data-theme] .settings-card-heading p,
body.admin-page[data-theme] .field-label,
body.admin-page[data-theme] .color-field,
body.admin-page[data-theme] .admin-bottom-note,
body.admin-page[data-theme] .admin-form-note,
body.admin-page[data-theme] .upload-actions p,
body.admin-page[data-theme] .admin-auth-card {
  color: var(--admin-panel-text-color);
}
body.admin-page[data-theme] .save-button,
body.admin-page[data-theme] .upload-button,
body.admin-page[data-theme] .admin-logout,
body.admin-page[data-theme] .remove-image-button:not(.is-danger),
body.admin-page[data-theme] .table-action-button:not(.is-danger),
body.admin-page[data-theme] .history-tab.active {
  border-color: var(--admin-panel-button-color);
  background-color: var(--admin-panel-button-color);
  color: var(--admin-panel-button-text-color);
}
body.admin-page[data-theme] .save-button:hover,
body.admin-page[data-theme] .upload-button:hover,
body.admin-page[data-theme] .admin-logout:hover,
body.admin-page[data-theme] .remove-image-button:not(.is-danger):hover,
body.admin-page[data-theme] .table-action-button:not(.is-danger):hover,
body.admin-page[data-theme] .history-tab.active:hover {
  filter: brightness(1.08);
}
body.admin-page[data-theme="light"] .admin-nav-item:not(.active):not(:hover) .admin-nav-car-icon {
  background-color: #617780;
}
body.admin-page[data-theme="light"] .admin-nav-item:hover:not(.active) {
  background: #e6eef0;
  color: #1d2b32;
}
body.admin-page[data-theme="light"] .admin-nav-item:hover:not(.active) > span {
  color: #1d2b32;
}
body.admin-page[data-theme="light"] .admin-nav-item:hover:not(.active) .admin-nav-icon {
  stroke: currentColor;
}
