.cacheless-admin,
.cacheless-pos,
.cacheless-card {
  --cl-blue: #071b3a;
  --cl-gold: #d8ad45;
  --cl-line: #dbe3ee;
  --cl-bg: #f6f8fb;
}

.cacheless-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.cacheless-metrics div,
.cacheless-pos,
.cacheless-card {
  background: #fff;
  border: 1px solid var(--cl-line);
  border-left: 5px solid var(--cl-gold);
  padding: 18px;
}

.cacheless-metrics strong {
  display: block;
  color: var(--cl-blue);
  font-size: 26px;
}

.cacheless-metrics span {
  color: #607086;
}

.cacheless-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
  padding: 16px;
  background: var(--cl-bg);
  border: 1px solid var(--cl-line);
}

.cacheless-form input,
.cacheless-form select,
.cacheless-pos input,
.cacheless-pos select {
  min-height: 38px;
  min-width: 180px;
}

.cacheless-pos {
  max-width: 520px;
  margin: 0 0 18px;
}

.cacheless-pos label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 700;
}

.cacheless-pos input,
.cacheless-pos select {
  width: 100%;
  max-width: 100%;
}

.cacheless-result {
  margin-top: 12px;
  min-height: 24px;
}

.cacheless-result.is-error {
  color: #b42318;
}

.cacheless-result.is-success {
  color: #067647;
}

.cacheless-card {
  max-width: 360px;
  text-align: center;
}

.cacheless-card img {
  width: 220px;
  height: 220px;
}

.cacheless-card-detail {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.cacheless-card-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.cacheless-card-form label,
.cacheless-inline-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cacheless-inline-form {
  flex-direction: row;
  align-items: center;
}

.cacheless-print-sheet {
  display: grid;
  gap: 8mm;
  align-items: start;
}

.cacheless-format-business_card {
  grid-template-columns: repeat(2, 90mm);
  grid-auto-rows: 50mm;
  gap: 8mm 8mm;
}

.cacheless-print-card {
  width: 90mm;
  height: 50mm;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30mm;
  grid-template-rows: auto auto 1fr auto;
  gap: 2mm 5mm;
  padding: 4mm 5mm;
  overflow: visible;
  break-inside: avoid;
  background: #071b3a;
  color: #fff;
  border: 1px solid #d8ad45;
  outline: 0.35mm dashed rgba(216,173,69,0.45);
  outline-offset: 1.6mm;
}

.cacheless-print-brand {
  grid-column: 1 / -1;
  color: #f0cf75;
  font-size: 13pt;
  font-weight: 800;
  line-height: 1;
}

.cacheless-print-parish {
  font-weight: 700;
  font-size: 7.5pt;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cacheless-print-event {
  color: #dbe3ee;
  font-size: 7pt;
}

.cacheless-print-code {
  align-self: end;
  color: #fff;
  font-size: 7pt;
  line-height: 1.2;
}

.cacheless-print-code strong,
.cacheless-print-code span {
  display: block;
}

.cacheless-print-code strong {
  color: #f0cf75;
  font-size: 8.2pt;
  letter-spacing: 0.2mm;
}

.cacheless-print-code span {
  color: #dbe3ee;
  font-size: 6.2pt;
}

.cacheless-print-card img {
  grid-row: 2 / 4;
  grid-column: 2;
  align-self: center;
  width: 30mm;
  height: 30mm;
  background: #fff;
  padding: 1.5mm;
}

.cacheless-format-credit_card_br .cacheless-print-card {
  width: 85.6mm;
  height: 54mm;
  border-radius: 3mm;
}

.cacheless-format-business_card .cacheless-print-card:nth-child(10n) {
  break-after: page;
  page-break-after: always;
}

.cacheless-format-thermal .cacheless-print-card {
  width: 58mm;
  height: 72mm;
  grid-template-columns: 1fr;
  text-align: center;
}

.cacheless-format-thermal .cacheless-print-card img {
  grid-row: auto;
  grid-column: auto;
  justify-self: center;
}

.cacheless-print-document {
  display: grid;
  gap: 14mm;
  align-items: start;
  justify-content: start;
}

.cacheless-print-page {
  position: relative;
  box-sizing: border-box;
  break-after: page;
  page-break-after: always;
  background: #fff;
}

.cacheless-print-page--business {
  width: 210mm;
  min-height: 297mm;
  padding: 23.5mm 15mm;
  display: grid;
  grid-template-columns: repeat(2, 90mm);
  grid-auto-rows: 50mm;
  gap: 0;
}

.cacheless-print-page--credit {
  width: 89.6mm;
  height: 57.98mm;
  padding: 2mm;
  background:
    linear-gradient(#10223b, #10223b) left 2mm top 2mm / 7mm 0.25mm no-repeat,
    linear-gradient(#10223b, #10223b) left 2mm top 2mm / 0.25mm 7mm no-repeat,
    linear-gradient(#10223b, #10223b) right 2mm top 2mm / 7mm 0.25mm no-repeat,
    linear-gradient(#10223b, #10223b) right 2mm top 2mm / 0.25mm 7mm no-repeat,
    linear-gradient(#10223b, #10223b) left 2mm bottom 2mm / 7mm 0.25mm no-repeat,
    linear-gradient(#10223b, #10223b) left 2mm bottom 2mm / 0.25mm 7mm no-repeat,
    linear-gradient(#10223b, #10223b) right 2mm bottom 2mm / 7mm 0.25mm no-repeat,
    linear-gradient(#10223b, #10223b) right 2mm bottom 2mm / 0.25mm 7mm no-repeat,
    #fff;
}

.cacheless-print-face {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  break-inside: avoid;
  background-color: #071b3a;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
}

.cacheless-print-face--business {
  width: 90mm;
  height: 50mm;
  border-radius: 2.4mm;
}

.cacheless-print-face--credit {
  width: 85.6mm;
  height: 53.98mm;
  border-radius: 3mm;
}

.cacheless-print-front {
  background-size: cover;
  background-position: center;
}

.cacheless-print-front-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2.4mm;
  padding: 5mm;
  background:
    radial-gradient(circle at 80% 20%, rgba(213, 178, 66, 0.22), transparent 34%),
    linear-gradient(135deg, #071b3a 0%, #10284a 72%, #0b1d35 100%);
}

.cacheless-print-front-fallback span {
  color: #f2cf68;
  font-size: 13pt;
  font-weight: 900;
  line-height: 1;
}

.cacheless-print-front-fallback img {
  width: 18mm;
  height: 12mm;
  object-fit: contain;
}

.cacheless-print-front-fallback strong {
  width: 72%;
  font-size: 9pt;
  line-height: 1.14;
}

.cacheless-print-front-fallback em {
  width: 80%;
  color: rgba(255,255,255,0.78);
  font-size: 6.6pt;
  font-style: normal;
  line-height: 1.2;
}

.cacheless-print-back {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 35mm;
  grid-template-rows: 1fr;
  gap: 4mm;
  padding: 4.2mm;
  background:
    linear-gradient(135deg, rgba(213,178,66,0.14), transparent 28%),
    linear-gradient(160deg, #071b3a 0%, #0b2341 100%);
}

.cacheless-print-back.is-mirrored {
  transform: scaleX(-1);
}

.cacheless-print-back-copy {
  min-width: 0;
  display: grid;
  align-content: space-between;
  gap: 2mm;
}

.cacheless-print-back-head {
  display: flex;
  align-items: center;
  gap: 2mm;
}

.cacheless-print-back-head img {
  width: 14mm;
  height: 10mm;
  object-fit: contain;
  flex: 0 0 auto;
}

.cacheless-print-back-head strong {
  display: block;
  color: #f2cf68;
  font-size: 12pt;
  font-weight: 900;
  line-height: 1;
}

.cacheless-print-back-head span {
  display: block;
  margin-top: 1.2mm;
  color: rgba(255,255,255,0.72);
  font-size: 5.4pt;
  font-weight: 800;
  letter-spacing: 0.45mm;
}

.cacheless-print-back-text strong,
.cacheless-print-back-text span,
.cacheless-print-back-code strong,
.cacheless-print-back-code span {
  display: block;
}

.cacheless-print-back-text strong {
  color: #fff;
  font-size: 6.8pt;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cacheless-print-back-text span {
  margin-top: 1mm;
  color: rgba(255,255,255,0.76);
  font-size: 5.8pt;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cacheless-print-back-code strong {
  color: #f2cf68;
  font-size: 10pt;
  letter-spacing: 0.6mm;
  line-height: 1;
}

.cacheless-print-back-code span {
  margin-top: 1mm;
  color: rgba(255,255,255,0.72);
  font-size: 5.5pt;
}

.cacheless-print-qr {
  align-self: center;
  justify-self: end;
  width: 33mm;
  height: 33mm;
  padding: 1mm;
  box-sizing: border-box;
  background: #fff;
}

.cacheless-print-gold-line {
  position: absolute;
  left: 4.2mm;
  right: 4.2mm;
  bottom: 3mm;
  height: 0.35mm;
  background: linear-gradient(90deg, transparent, rgba(242,207,104,0.7), transparent);
}

.cacheless-print-gold-dot {
  position: absolute;
  right: 42mm;
  top: 6mm;
  width: 2mm;
  height: 2mm;
  border-radius: 999px;
  background: #f2cf68;
  box-shadow: 4mm 5mm 0 rgba(242,207,104,0.36);
}

.cacheless-app-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: #0f1a2f;
  color: #142037;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cacheless-app {
  max-width: 520px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(20,32,55,0.04), transparent 180px),
    #f7f6f3;
  overflow-x: hidden;
}

.cacheless-app-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 14px max(14px, env(safe-area-inset-left));
  background: #142037;
  color: #fff;
  box-shadow: 0 10px 24px rgba(20,32,55,0.16);
}

.cacheless-status,
.cacheless-app-brand,
.cacheless-operator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cacheless-status {
  margin-bottom: 40px;
  font-size: 19px;
  font-weight: 800;
}

.cacheless-app-brand strong {
  font-size: 20px;
}

.cacheless-app-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.18));
}

.cacheless-app-brand span {
  flex: 0 1 auto;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.18);
  color: #98a3b3;
  font-weight: 800;
  letter-spacing: 1px;
}

.cacheless-app-brand a {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.cacheless-operator {
  justify-content: flex-start;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
}

.cacheless-operator > div {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #3b485c;
  font-weight: 900;
}

.cacheless-operator p {
  margin: 0;
}

.cacheless-operator small,
.cacheless-operator span {
  display: block;
  color: #9ba5b3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.cacheless-operator strong {
  display: block;
  max-width: 280px;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cacheless-app-functions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 16px;
  padding-bottom: 2px;
}

.cacheless-app-functions span {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(213,178,66,0.35);
  border-radius: 999px;
  color: #d5b242;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cacheless-app-main {
  padding: 18px max(14px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}

.cacheless-app-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(20,32,55,0.08);
}

.cacheless-collaborators {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.cacheless-collaborators[hidden] {
  display: none;
}

.cacheless-collaborators div {
  padding: 14px;
  border: 1px solid #e2e5eb;
  border-radius: 16px;
  background: #fff;
}

.cacheless-collaborators span {
  display: block;
  color: #748198;
  font-size: 13px;
}

.cacheless-app-tabs button,
.cacheless-app-submit {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #6b7789;
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cacheless-app-tabs .is-active,
.cacheless-app-submit {
  background: #142037;
  color: #fff;
}

.cacheless-app-main h1 {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
  color: #a8afb8;
  font-size: 15px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}

.cacheless-app-main h1::before,
.cacheless-app-main h1::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e3e0d9;
}

.cacheless-app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  animation: cacheless-slide-in 160ms ease-out;
}

.cacheless-app-action {
  min-width: 0;
  min-height: 128px;
  padding: 18px 12px;
  border: 1px solid #e6e7eb;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fbfaf7);
  color: #142037;
  box-shadow: 0 14px 34px rgba(20,32,55,0.06);
}

.cacheless-app-action i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: #142037;
  color: #fff;
  font-size: 30px;
  font-style: normal;
}

.cacheless-app-action strong,
.cacheless-app-action span {
  display: block;
  overflow-wrap: anywhere;
}

.cacheless-app-action strong {
  font-size: 17px;
  font-weight: 900;
}

.cacheless-app-action span {
  color: #768297;
  font-size: 12px;
  font-weight: 700;
}

.cacheless-app-action.is-red { color: #d33b35; border-color: #f4d9d7; }
.cacheless-app-action.is-red i { background: #d33b35; }
.cacheless-app-action.is-blue { color: #27469d; border-color: #bfd7ff; }
.cacheless-app-action.is-blue i { background: #4f7ee8; }
.cacheless-app-action.is-gold { color: #765030; border-color: #f3d783; }
.cacheless-app-action.is-gold i { background: #eba630; }
.cacheless-app-action.is-green { color: #43a04f; border-color: #d9f1dd; }
.cacheless-app-action.is-green i { background: #49a252; }
.cacheless-app-action.is-selected { outline: 4px solid rgba(20,32,55,0.14); }

.cacheless-app-panel {
  margin-top: 0;
  padding: 18px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(20,32,55,0.08);
  animation: cacheless-slide-in 160ms ease-out;
}

.cacheless-app[data-screen="flow"] .cacheless-app-tabs,
.cacheless-app[data-screen="flow"] .cacheless-app-main > h1 {
  display: none;
}

@keyframes cacheless-slide-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cacheless-app-panel h2 {
  margin: 0 0 16px;
}

.cacheless-flow-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cacheless-flow-head small {
  display: block;
  color: #8b95a4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  letter-spacing: 0;
}

.cacheless-flow-head h2 {
  margin: 0;
}

.cacheless-app-back {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f5f3ef;
  color: #142037;
  font-size: 28px;
  line-height: 1;
}

.cacheless-app-panel[data-step="amount"] .cacheless-step-scan,
.cacheless-app-panel[data-step="scan"] .cacheless-step-amount {
  display: none;
}

.cacheless-app-panel label {
  display: block;
  margin: 14px 0;
  color: #667286;
  font-weight: 800;
}

.cacheless-scanner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 20px;
  background: #0f1a2f;
  border: 1px solid rgba(213,178,66,0.36);
}

.cacheless-scanner-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cacheless-scan-frame {
  position: absolute;
  inset: 13%;
  border: 3px solid #d5b242;
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(15,26,47,0.48), 0 0 26px rgba(213,178,66,0.24);
}

.cacheless-scan-frame::before,
.cacheless-scan-frame::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1px;
  background: rgba(213,178,66,0.7);
}

.cacheless-scan-frame::before { top: 50%; }
.cacheless-scan-frame::after { display: none; }

.cacheless-scan-frame {
  background:
    linear-gradient(#d5b242, #d5b242) left top / 28px 4px no-repeat,
    linear-gradient(#d5b242, #d5b242) left top / 4px 28px no-repeat,
    linear-gradient(#d5b242, #d5b242) right top / 28px 4px no-repeat,
    linear-gradient(#d5b242, #d5b242) right top / 4px 28px no-repeat,
    linear-gradient(#d5b242, #d5b242) left bottom / 28px 4px no-repeat,
    linear-gradient(#d5b242, #d5b242) left bottom / 4px 28px no-repeat,
    linear-gradient(#d5b242, #d5b242) right bottom / 28px 4px no-repeat,
    linear-gradient(#d5b242, #d5b242) right bottom / 4px 28px no-repeat;
}

.cacheless-scan-status {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(20,32,55,0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.cacheless-scan-status.is-error {
  background: rgba(211,59,53,0.9);
}

.cacheless-device-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 4px;
}

.cacheless-device-controls button {
  min-height: 44px;
  border: 1px solid #d9dee8;
  border-radius: 14px;
  background: #f8f7f4;
  color: #142037;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cacheless-device-controls button.is-active {
  border-color: #d5b242;
  background: #d5b242;
  color: #142037;
}

.cacheless-app-amount {
  display: block;
  margin: 16px 0;
}

.cacheless-app-amount > span {
  display: block;
  margin-bottom: 8px;
  color: #667286;
  font-weight: 800;
  text-transform: uppercase;
}

.cacheless-money-display {
  display: grid;
  place-items: center;
  min-height: 72px;
  border: 1px solid rgba(213,178,66,0.42);
  border-radius: 18px;
  background: #142037;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.cacheless-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.cacheless-key {
  min-height: 58px;
  border: 1px solid #e2e5eb;
  border-radius: 16px;
  background: #fff;
  color: #142037;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(20,32,55,0.05);
}

.cacheless-key:active {
  transform: translateY(1px);
  background: #f6f1df;
}

.cacheless-key.is-muted {
  color: #6d7787;
  background: #f7f8fa;
}

.cacheless-app-panel input,
.cacheless-app-panel select {
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  border: 1px solid #d9dee8;
  border-radius: 14px;
  font-size: 18px;
}

.cacheless-app-submit {
  width: 100%;
  margin-top: 8px;
}

.cacheless-app-next,
.cacheless-public-submit {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: #d5b242;
  color: #142037;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cacheless-app-footer {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(520px, 100%);
  transform: translateX(-50%);
  padding: 18px;
  background: rgba(245,243,239,0.94);
  color: #c5c2bd;
  text-align: center;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.cacheless-toast {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(12, 20, 34, 0.62);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cacheless-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cacheless-toast.is-error {
  background: rgba(40, 15, 20, 0.68);
}

.cacheless-toast__content {
  width: min(360px, 100%);
  padding: 28px 22px 22px;
  border: 1px solid rgba(73,162,82,0.28);
  border-radius: 24px;
  background: #11213a;
  box-shadow: 0 24px 60px rgba(5, 10, 20, 0.38);
  text-align: center;
  transform: translateY(14px) scale(0.96);
  transition: transform 180ms ease;
}

.cacheless-toast.is-visible .cacheless-toast__content {
  transform: translateY(0) scale(1);
}

.cacheless-toast.is-error .cacheless-toast__content {
  border-color: rgba(211,59,53,0.36);
  background: #381b20;
}

.cacheless-toast__icon {
  position: absolute;
  top: calc(50% - 134px);
  left: 50%;
  z-index: 1;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #49a252;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  transform: translateX(-50%) scale(0.8);
  transition: transform 180ms ease;
}

.cacheless-toast.is-visible .cacheless-toast__icon {
  transform: translateX(-50%) scale(1);
}

.cacheless-toast.is-error .cacheless-toast__icon {
  background: #d33b35;
}

.cacheless-toast strong,
.cacheless-toast span {
  display: block;
}

.cacheless-toast strong {
  margin: 10px 0 8px;
  color: #d5b242;
  font-size: 22px;
}

.cacheless-toast span {
  color: #dbe3ee;
  font-size: 14px;
}

.cacheless-toast__action {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  border: 0;
  border-radius: 16px;
  background: #d5b242;
  color: #142037;
  font-size: 15px;
  font-weight: 900;
}

.cacheless-toast__action.cacheless-toast__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: #45a657;
  color: #fff;
  text-decoration: none;
}

.cacheless-modal {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: end center;
  padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: rgba(12,20,34,0.62);
}

.cacheless-modal[hidden] {
  display: none;
}

.cacheless-modal__card {
  width: min(520px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(213,178,66,0.24);
  border-radius: 24px;
  background: #f7f6f3;
  box-shadow: 0 24px 70px rgba(5,10,20,0.36);
  animation: cacheless-slide-in 160ms ease-out;
}

.cacheless-modal__card label {
  display: block;
  margin: 12px 0;
  color: #667286;
  font-weight: 800;
}

.cacheless-modal__card input,
.cacheless-modal__card select {
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  border: 1px solid #d9dee8;
  border-radius: 14px;
  background: #fff;
  color: #142037;
  font-size: 17px;
}

.cacheless-modal-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #142037;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.cacheless-virtual-page {
  width: min(520px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 14px;
  margin: 0 auto;
  padding: 24px;
}

.cacheless-virtual-card {
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(213,178,66,0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 8%, rgba(213,178,66,0.22), transparent 32%),
    linear-gradient(145deg, #071b3a, #142037);
  color: #fff;
  box-shadow: 0 24px 70px rgba(5,10,20,0.34);
  text-align: center;
}

.cacheless-virtual-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.cacheless-virtual-card__brand img {
  width: 56px;
  height: 42px;
  object-fit: contain;
}

.cacheless-virtual-card__brand strong,
.cacheless-virtual-card__brand span {
  display: block;
  text-align: left;
}

.cacheless-virtual-card__brand strong {
  color: #f2cf68;
  font-size: 28px;
  line-height: 1;
}

.cacheless-virtual-card__brand span {
  color: #c7d0dd;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cacheless-virtual-card__qr {
  width: min(260px, 80vw);
  height: min(260px, 80vw);
  padding: 10px;
  border-radius: 18px;
  background: #fff;
}

.cacheless-virtual-card p,
.cacheless-virtual-owner {
  margin: 10px 0 0;
  color: #dbe3ee;
  font-weight: 800;
}

.cacheless-tenant-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: #f5f6f8;
  color: #142037;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cacheless-tenant-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 18px;
  background: #142037;
  color: #fff;
}

.cacheless-tenant-nav strong {
  color: #d5b242;
  font-size: 24px;
}

.cacheless-tenant-nav > span {
  margin-bottom: 18px;
  color: #bfc8d6;
}

.cacheless-tenant-nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: #dbe3ee;
  font-weight: 800;
  text-decoration: none;
}

.cacheless-tenant-nav a.is-active,
.cacheless-tenant-nav a:hover {
  background: rgba(213,178,66,0.16);
  color: #f2cf68;
}

.cacheless-tenant-main {
  min-width: 0;
  padding: 34px;
}

@media (max-width: 820px) {
  .cacheless-tenant-shell {
    grid-template-columns: 1fr;
  }

  .cacheless-tenant-nav {
    position: sticky;
    top: 0;
    z-index: 4;
    flex-direction: row;
    overflow-x: auto;
    padding: 16px;
  }

  .cacheless-tenant-nav strong,
  .cacheless-tenant-nav > span {
    display: none;
  }

  .cacheless-tenant-main {
    padding: 22px 16px;
  }
}

.cacheless-processing {
  position: fixed;
  inset: 0;
  z-index: 19;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 26, 47, 0.58);
  color: #fff;
}

.cacheless-processing[hidden] {
  display: none;
}

.cacheless-processing strong {
  display: block;
  min-width: 230px;
  padding: 78px 22px 24px;
  border: 1px solid rgba(213,178,66,0.32);
  border-radius: 24px;
  background: #142037;
  box-shadow: 0 24px 60px rgba(5,10,20,0.35);
  color: #d5b242;
  text-align: center;
}

.cacheless-processing span {
  position: absolute;
  width: 42px;
  height: 42px;
  margin-top: -44px;
  border: 4px solid rgba(255,255,255,0.22);
  border-top-color: #d5b242;
  border-radius: 50%;
  animation: cacheless-spin 780ms linear infinite;
}

@keyframes cacheless-spin {
  to { transform: rotate(360deg); }
}

.cacheless-public-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: #142037;
  color: #142037;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cacheless-public-recharge {
  max-width: 520px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  background: #f5f3ef;
}

.cacheless-public-recharge header {
  padding: max(28px, env(safe-area-inset-top)) 22px 24px;
  background: #142037;
  color: #fff;
}

.cacheless-public-recharge header strong {
  display: block;
  color: #fff;
  font-size: 28px;
}

.cacheless-public-recharge header span {
  display: block;
  margin-top: 10px;
  color: #d5b242;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cacheless-public-recharge header h1 {
  margin: 16px 0 8px;
  font-size: 28px;
  line-height: 1.1;
}

.cacheless-public-recharge header p {
  max-width: 34ch;
  margin: 0;
  color: #b8c1cf;
}

.cacheless-public-card {
  padding: 20px 18px 34px;
}

.cacheless-public-card label {
  display: block;
  margin: 14px 0;
  color: #667286;
  font-weight: 800;
  text-transform: uppercase;
}

.cacheless-public-card input {
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  border: 1px solid #d9dee8;
  border-radius: 14px;
  font-size: 18px;
}

.cacheless-public-link {
  display: block;
  padding: 14px 16px;
  border: 1px solid #e2e5eb;
  border-radius: 16px;
  background: #fff;
  color: #142037;
  font-weight: 900;
  text-decoration: none;
}

.cacheless-auth {
  width: min(520px, calc(100% - 32px));
  margin: 32px auto;
  padding: 28px;
  border-radius: 22px;
  background: #f5f3ef;
  color: #142037;
}

.cacheless-auth h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.cacheless-auth label {
  display: block;
  margin: 12px 0;
  color: #667286;
  font-weight: 800;
  text-transform: uppercase;
}

.cacheless-auth input,
.cacheless-auth textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  border: 1px solid #d9dee8;
  border-radius: 14px;
  font-size: 17px;
}

.cacheless-dashboard-ui .cacheless-panel-grid,
.cacheless-booth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.cacheless-ui-card,
.cacheless-booth-card {
  padding: 22px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20,32,55,0.06);
}

.cacheless-action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.cacheless-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  color: #142037;
  font-weight: 800;
  text-decoration: none;
}

.cacheless-action.is-dark { background: #142037; color: #fff; }
.cacheless-action.is-red { background: #d13a35; color: #fff; border-color: #d13a35; }
.cacheless-action.is-gold { background: #eba630; color: #fff; border-color: #eba630; }
.cacheless-action.is-green { background: #48a255; color: #fff; border-color: #48a255; }

.cacheless-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef2f7;
  color: #142037;
  font-size: 13px;
  vertical-align: middle;
}

.cacheless-clean-table {
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 430px) {
  .cacheless-app-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cacheless-app-brand span {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .cacheless-app-grid {
    gap: 12px;
  }

  .cacheless-app-action {
    min-height: 146px;
    border-radius: 18px;
  }

  .cacheless-app-action i {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    font-size: 30px;
  }

  .cacheless-app-action strong {
    font-size: 17px;
  }

  .cacheless-app-action span {
    font-size: 11px;
  }

  .cacheless-app-main h1 {
    gap: 12px;
    letter-spacing: 5px;
  }

  .cacheless-money-display {
    min-height: 64px;
    font-size: 30px;
  }
}

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

  .cacheless-card-detail,
  .cacheless-card-form {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    margin: 0;
  }

  #adminmenumain,
  #wpadminbar,
  .notice,
  .cacheless-print-wrap h1,
  .cacheless-print-wrap p {
    display: none !important;
  }

  #wpcontent,
  #wpbody-content {
    margin: 0 !important;
    padding: 0 !important;
  }

  html,
  body,
  .cacheless-admin,
  .cacheless-print-wrap {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .cacheless-print-document {
    display: block;
    gap: 0;
  }

  .cacheless-print-page {
    margin: 0;
    box-shadow: none;
  }

  .cacheless-print-sheet {
    padding: 8mm;
    grid-template-columns: repeat(auto-fit, minmax(85.6mm, max-content));
  }

  .cacheless-format-business_card {
    grid-template-columns: repeat(2, 90mm);
    grid-auto-rows: 50mm;
    gap: 8mm 8mm;
  }

  .cacheless-format-business_card .cacheless-print-card:nth-child(10n) {
    break-after: page;
    page-break-after: always;
  }
}
