:root {
  --bg: #101410;
  --bg-soft: #1c241c;
  --bg-panel: rgba(17, 22, 17, 0.84);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --card: rgba(255, 255, 255, 0.94);
  --card-border: rgba(255, 255, 255, 0.54);
  --accent: #f1cf23;
  --green: #75a51e;
  --electric: #4dffb2;
  --rose: #ff61ae;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  --radius-card: 1.35rem;
  --radius-button: 0.9rem;
  --radius-panel: 1.6rem;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    linear-gradient(145deg, rgba(117, 165, 30, 0.22), transparent 34%),
    linear-gradient(210deg, rgba(241, 207, 35, 0.16), transparent 28%),
    linear-gradient(135deg, #0e120e 0%, #182017 45%, #111611 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.055) 0,
      rgba(255, 255, 255, 0.055) 1px,
      transparent 1px,
      transparent 18px
    );
  opacity: 0.22;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.3)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
}

.landing {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2rem 1rem;
  place-items: center;
}

.cmc-body .landing {
  place-items: start center;
}

.cmc-body .brand-stack {
  gap: 1.28rem;
}

.cmc-logo-lockup {
  position: relative;
  width: min(100%, 25.5rem);
  margin-bottom: clamp(2.25rem, 7vw, 3.35rem);
}

.cmc-logo-lockup .logo-card {
  width: 100%;
}

.brand-stack {
  display: grid;
  width: min(100%, 30rem);
  gap: 1.15rem;
  justify-items: center;
}

.logo-card {
  display: grid;
  width: min(100%, 25.5rem, calc(100svh - 14rem));
  max-width: min(25.5rem, calc(100svh - 14rem));
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
padding: 1rem;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
border-radius: 1rem;
}

.nfc-badge-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 23rem);
  min-height: 3.85rem;
  padding: 0.85rem 1.05rem;
  color: #101410;
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.2)),
    linear-gradient(135deg, #f1cf23 0%, #ffffff 46%, #4dffb2 100%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-button);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(77, 255, 178, 0.14);
}

.nfc-badge-card span {
  max-width: 19rem;
}

.cmc-body .brand-stack .cmc-badge {
  display: grid;
  position: absolute;
  bottom: clamp(-2.4rem, -7vw, -1.75rem);
  left: clamp(1.05rem, 9vw, 3.1rem);
  z-index: 2;
  width: clamp(4.85rem, 19vw, 6.25rem);
  aspect-ratio: 1;
  padding: 0.42rem;
  place-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(0, 142, 68, 0.86);
  border-radius: 0.82rem;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.24),
    0 0 0 5px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cmc-body .brand-stack .cmc-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 166, 78, 1);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 5px rgba(255, 255, 255, 0.1);
}

.cmc-body .brand-stack .cmc-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.instagram-button {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: min(100%, 23rem);
  min-height: 3.5rem;
  padding: 0.8rem 1.05rem;
  gap: 0.7rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(8, 12, 8, 0.42), rgba(8, 12, 8, 0.12) 48%, rgba(8, 12, 8, 0.38)),
    linear-gradient(135deg, #2f7e20 0%, #75a51e 32%, #f1cf23 64%, #3d8d21 100%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-button);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.32),
    0 12px 30px rgba(117, 165, 30, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  isolation: isolate;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.instagram-button::before {
  position: absolute;
  inset: 1px;
  z-index: 0;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 48%);
  border-radius: calc(var(--radius-button) - 2px);
}

.instagram-button span,
.instagram-icon {
  position: relative;
  z-index: 1;
}

.instagram-button:hover,
.share-pill:hover,
.quick-filter:hover,
.ghost-link:hover,
.secondary-button:hover,
.primary-button:hover {
  transform: translateY(-2px);
}

.instagram-button:hover {
  background:
    linear-gradient(90deg, rgba(8, 12, 8, 0.34), rgba(8, 12, 8, 0.08) 48%, rgba(8, 12, 8, 0.3)),
    linear-gradient(135deg, #3f9225 0%, #8fbd22 32%, #ffd832 64%, #4aa329 100%);
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.38),
    0 16px 36px rgba(241, 207, 35, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.instagram-button:focus-visible,
.cmc-badge:focus-visible,
.share-pill:focus-visible,
.quick-filter:focus-visible,
.ghost-link:focus-visible,
.secondary-button:focus-visible,
.primary-button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(241, 207, 35, 0.82);
  outline-offset: 4px;
}

.instagram-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.cmc-link-button {
  min-height: 3.3rem;
}

.share-shell {
  display: grid;
  width: min(100%, 23rem);
  gap: 0.7rem;
}

.share-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.share-pill,
.quick-filter,
.ghost-link,
.secondary-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.share-pill {
  font-size: 0.88rem;
  font-weight: 700;
}

.share-caption,
.metric-label,
.metric-delta small,
.operator-chip-copy span,
.filters-label,
.metrics-lead,
.login-helper {
  color: var(--muted);
}

.share-caption {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.45;
}

.share-feedback {
  min-height: 1.1rem;
  text-align: center;
  color: #dfffcf;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.share-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.partner-section {
  display: grid;
  width: min(100%, 25.5rem);
  margin-top: 0.45rem;
  gap: 0.9rem;
  justify-items: center;
}

.partner-divider {
  display: grid;
  position: relative;
  width: 100%;
  height: 1.15rem;
  place-items: center;
  overflow: hidden;
}

.partner-divider::before,
.partner-divider::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.partner-divider::before {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(77, 255, 178, 0.58) 16%,
    rgba(241, 207, 35, 0.9) 50%,
    rgba(117, 165, 30, 0.68) 84%,
    transparent 100%
  );
  box-shadow:
    0 0 16px rgba(241, 207, 35, 0.28),
    0 0 24px rgba(77, 255, 178, 0.2);
}

.partner-divider::after {
  width: 4.6rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, var(--accent), transparent);
  filter: blur(0.2px);
  opacity: 0;
  animation: partner-divider-glint 4.2s ease-in-out infinite;
}

.partner-heading {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.partner-logo-card {
  display: grid;
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 2494 / 994;
  padding: 0;
  place-items: center;
  justify-self: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 241, 0.95)) padding-box,
    linear-gradient(135deg, rgba(255, 80, 80, 0.95), rgba(241, 207, 35, 0.9), rgba(117, 165, 30, 0.7)) border-box;
  border: 2px solid transparent;
  border-radius: 1.18rem;
  box-shadow:
    0 26px 58px rgba(0, 0, 0, 0.42),
    0 0 0 3px rgba(255, 91, 91, 0.14),
    0 0 42px rgba(255, 68, 68, 0.28),
    0 0 70px rgba(241, 207, 35, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  isolation: isolate;
  overflow: visible;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.partner-logo-card::before,
.partner-logo-card::after {
  position: absolute;
  inset: -1.05rem;
  z-index: -1;
  content: "";
  pointer-events: none;
  border-radius: 1.75rem;
}

.partner-logo-card::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 87, 87, 0.42), transparent 32%),
    radial-gradient(circle at 78% 26%, rgba(255, 143, 86, 0.34), transparent 34%),
    radial-gradient(circle at 50% 92%, rgba(255, 55, 55, 0.32), transparent 36%);
  filter: blur(14px);
  opacity: 0.78;
  transform: translateY(0);
  animation: partner-red-vapors 6.2s ease-in-out infinite;
}

.partner-logo-card::after {
  inset: -0.5rem;
  background:
    linear-gradient(115deg, transparent 8%, rgba(255, 255, 255, 0.34) 22%, transparent 38%),
    radial-gradient(circle at 48% 50%, rgba(255, 90, 90, 0.22), transparent 58%);
  filter: blur(5px);
  opacity: 0.48;
  mix-blend-mode: screen;
  animation: partner-card-breath 4.8s ease-in-out infinite;
}

.partner-logo-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 30px 66px rgba(0, 0, 0, 0.48),
    0 0 0 4px rgba(255, 91, 91, 0.18),
    0 0 52px rgba(255, 68, 68, 0.34),
    0 16px 36px rgba(241, 207, 35, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.partner-logo-card:focus-visible {
  outline: 3px solid rgba(241, 207, 35, 0.82);
  outline-offset: 4px;
}

.partner-logo-card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(1.18rem - 3px);
  object-fit: cover;
  position: relative;
  z-index: 1;
}

@keyframes partner-divider-glint {
  0%,
  18% {
    opacity: 0;
    transform: translateX(-13rem);
  }

  34% {
    opacity: 0.95;
  }

  58% {
    opacity: 0.45;
    transform: translateX(13rem);
  }

  76%,
  100% {
    opacity: 0;
    transform: translateX(13rem);
  }
}

@keyframes partner-red-vapors {
  0%,
  100% {
    opacity: 0.62;
    transform: translate3d(-0.18rem, 0.08rem, 0) scale(0.98);
  }

  38% {
    opacity: 0.9;
    transform: translate3d(0.18rem, -0.18rem, 0) scale(1.03);
  }

  68% {
    opacity: 0.72;
    transform: translate3d(0.34rem, 0.12rem, 0) scale(1.01);
  }
}

@keyframes partner-card-breath {
  0%,
  100% {
    opacity: 0.34;
    transform: scale(0.99);
  }

  50% {
    opacity: 0.62;
    transform: scale(1.018);
  }
}

.metrics-body {
  min-height: 100vh;
  min-height: 100svh;
}

.metrics-refresh-flash {
  position: fixed;
  inset: 0;
  z-index: 90;
  border: 4px solid rgba(77, 255, 178, 0);
  box-shadow: inset 0 0 0 1px rgba(77, 255, 178, 0);
  opacity: 0;
  pointer-events: none;
}

.metrics-refresh-flash.is-active {
  animation: metrics-refresh-flash 980ms ease-out;
}

@keyframes metrics-refresh-flash {
  0% {
    border-color: rgba(77, 255, 178, 0);
    box-shadow:
      inset 0 0 0 1px rgba(77, 255, 178, 0),
      inset 0 0 0 0 rgba(77, 255, 178, 0);
    opacity: 0;
  }

  12% {
    border-color: rgba(77, 255, 178, 1);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.64),
      inset 0 0 32px rgba(77, 255, 178, 0.62),
      0 0 34px rgba(77, 255, 178, 0.5);
    opacity: 1;
  }

  100% {
    border-color: rgba(77, 255, 178, 0);
    box-shadow:
      inset 0 0 0 1px rgba(77, 255, 178, 0),
      inset 0 0 0 rgba(77, 255, 178, 0);
    opacity: 0;
  }
}

.metrics-shell {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
}

.metrics-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.metrics-title-wrap {
  display: grid;
  gap: 0.4rem;
}

.metrics-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.metrics-lead {
  margin: 0;
  line-height: 1.6;
  max-width: 70ch;
}

.metrics-actions,
.quick-filters {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.filters-panel,
.metric-card,
.chart-panel,
.security-audit-panel,
.security-list-card,
.security-method-grid article,
.login-modal-card,
.status-banner {
  background: rgba(17, 22, 17, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.filters-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.date-range-form {
  display: flex;
  gap: 0.8rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.date-range-form label,
.login-form label {
  display: grid;
  gap: 0.35rem;
}

.date-range-form input,
.login-form input {
  min-width: 11rem;
  min-height: 2.95rem;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 0.9rem;
}

.share-total-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  align-items: stretch;
  gap: 1rem;
}

.share-settings-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-items: stretch;
  max-width: 52rem;
}

.share-settings-form label,
.share-settings-form input {
  width: 100%;
}

.share-settings-form .btn-align-box {
  justify-self: start;
}

.perpetual-total-card {
  display: grid;
  gap: 0.85rem;
  align-content: center;
  min-height: 100%;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(77, 255, 178, 0.1), rgba(241, 207, 35, 0.08)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(77, 255, 178, 0.18);
  border-radius: 1rem;
}

.perpetual-total-card h2 {
  margin: 0;
  font-size: 1rem;
}

.perpetual-total-grid {
  display: grid;
  gap: 0.65rem;
}

.perpetual-total-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.62rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.perpetual-total-item span {
  color: var(--muted);
  font-weight: 750;
}

.perpetual-total-item strong {
  font-size: 1.35rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.filters-label,
.login-form span {
  font-size: 0.9rem;
  font-weight: 700;
}

.quick-filter.is-active,
.ghost-link {
  background: rgba(77, 255, 178, 0.12);
  border-color: rgba(77, 255, 178, 0.26);
}

.primary-button {
  background:
    linear-gradient(90deg, rgba(8, 12, 8, 0.42), rgba(8, 12, 8, 0.12) 48%, rgba(8, 12, 8, 0.38)),
    linear-gradient(135deg, #2f7e20 0%, #75a51e 32%, #f1cf23 64%, #3d8d21 100%);
  border-color: rgba(255,255,255,0.34);
  color: #fff;
  font-weight: 800;
}

.metrics-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.metric-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
}

.metric-value {
  font-size: clamp(1.4rem, 2vw, 1.95rem);
  font-weight: 800;
}

.metric-delta {
  font-weight: 800;
  font-size: 0.95rem;
}

.metric-delta.up { color: var(--electric); }
.metric-delta.down { color: #ff9ebf; }
.metric-delta.flat { color: var(--muted); }

.nfc-merch-panel {
  display: grid;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 1.15rem;
  background:
    linear-gradient(135deg, rgba(77, 255, 178, 0.1), rgba(241, 207, 35, 0.07)),
    rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(77, 255, 178, 0.18);
  border-radius: var(--radius-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.nfc-merch-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.nfc-merch-heading > div {
  display: grid;
  gap: 0.5rem;
}

.nfc-merch-heading h2,
.nfc-merch-group h3 {
  margin: 0;
}

.nfc-merch-heading h2 {
  font-size: 1.25rem;
}

.nfc-merch-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.nfc-merch-grid,
.nfc-merch-group,
.nfc-merch-card {
  display: grid;
}

.nfc-merch-grid {
  gap: 0.85rem;
}

.nfc-merch-group {
  gap: 0.85rem;
  padding: 0.95rem;
  background: rgba(4, 8, 6, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

.nfc-merch-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.nfc-merch-actions {
  display: grid;
  gap: 0.5rem;
  justify-items: end;
}

.nfc-merch-group h3 {
  font-size: 1rem;
}

.nfc-merch-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.nfc-merch-card {
  gap: 0.5rem;
  min-height: 8.25rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
}

.nfc-upgrade-modes-card {
  position: relative;
  grid-column: span 2;
  gap: 1rem;
  padding: 1.05rem;
  background:
    linear-gradient(135deg, rgba(77, 255, 178, 0.08), rgba(241, 207, 35, 0.08)),
    rgba(255, 255, 255, 0.075);
  overflow: hidden;
  isolation: isolate;
}

.nfc-upgrade-modes-card > .metric-label,
.nfc-upgrade-mode-grid {
  position: relative;
  z-index: 2;
}

.nfc-upgrade-magic-field {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  mix-blend-mode: screen;
}

.nfc-upgrade-magic-field::after {
  position: absolute;
  right: -8%;
  bottom: -3.2rem;
  left: -8%;
  height: clamp(5.5rem, 42%, 11rem);
  content: "";
  background:
    radial-gradient(ellipse at 22% 64%, rgba(77, 255, 178, 0.24), transparent 42%),
    radial-gradient(ellipse at 48% 54%, rgba(255, 97, 174, 0.22), transparent 44%),
    radial-gradient(ellipse at 72% 68%, rgba(89, 168, 255, 0.24), transparent 44%),
    radial-gradient(ellipse at 52% 82%, rgba(241, 207, 35, 0.18), transparent 48%);
  filter: blur(14px) saturate(1.55);
  animation: upgrade-epic-pool 7.5s ease-in-out infinite alternate;
}

.nfc-upgrade-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.nfc-upgrade-mode-card {
  display: grid;
  position: relative;
  grid-template-rows: auto 1fr;
  gap: 0.9rem;
  min-height: 16.5rem;
  padding: 0.95rem;
  background: rgba(4, 8, 6, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  isolation: isolate;
}

.nfc-upgrade-mode-card::before,
.nfc-upgrade-mode-card::after {
  position: absolute;
  inset: -32%;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.nfc-upgrade-mode-card::before {
  opacity: 0.68;
  animation: nfc-upgrade-card-flow 12s ease-in-out infinite alternate;
}

.nfc-upgrade-mode-card::after {
  opacity: 0.46;
  animation: nfc-upgrade-card-bursts 5.8s ease-in-out infinite;
}

.nfc-upgrade-mode-card-epic::before {
  background:
    conic-gradient(from 120deg at 26% 30%, rgba(255, 97, 174, 0.45), rgba(89, 168, 255, 0.34), rgba(77, 255, 178, 0.4), rgba(241, 207, 35, 0.2), rgba(255, 97, 174, 0.45)),
    radial-gradient(circle at 78% 22%, rgba(156, 107, 255, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(77, 255, 178, 0.08), rgba(255, 97, 174, 0.08));
}

.nfc-upgrade-mode-card-epic::after {
  background:
    radial-gradient(circle at 22% 22%, rgba(77, 255, 178, 0.72) 0 0.32rem, transparent 0.38rem),
    radial-gradient(circle at 82% 28%, rgba(255, 97, 174, 0.62) 0 0.26rem, transparent 0.32rem),
    radial-gradient(circle at 56% 78%, rgba(241, 207, 35, 0.62) 0 0.22rem, transparent 0.3rem),
    radial-gradient(circle at 36% 66%, rgba(89, 168, 255, 0.62) 0 0.24rem, transparent 0.32rem);
}

.nfc-upgrade-mode-card-bronze::before {
  background:
    conic-gradient(from 80deg at 26% 30%, rgba(255, 224, 180, 0.42), rgba(230, 144, 70, 0.38), rgba(125, 53, 27, 0.34), rgba(244, 176, 108, 0.3), rgba(255, 224, 180, 0.42)),
    radial-gradient(circle at 78% 22%, rgba(255, 224, 180, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(230, 144, 70, 0.11), rgba(125, 53, 27, 0.1));
}

.nfc-upgrade-mode-card-bronze::after {
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 224, 180, 0.72) 0 0.32rem, transparent 0.38rem),
    radial-gradient(circle at 82% 28%, rgba(230, 144, 70, 0.68) 0 0.26rem, transparent 0.32rem),
    radial-gradient(circle at 56% 78%, rgba(125, 53, 27, 0.62) 0 0.22rem, transparent 0.3rem),
    radial-gradient(circle at 36% 66%, rgba(244, 176, 108, 0.64) 0 0.24rem, transparent 0.32rem);
}

.nfc-upgrade-mode-card-prata::before {
  background:
    conic-gradient(from 96deg at 26% 30%, rgba(255, 255, 255, 0.42), rgba(219, 231, 238, 0.36), rgba(127, 144, 154, 0.32), rgba(245, 249, 251, 0.32), rgba(255, 255, 255, 0.42)),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.25), transparent 34%),
    linear-gradient(135deg, rgba(219, 231, 238, 0.1), rgba(127, 144, 154, 0.1));
}

.nfc-upgrade-mode-card-prata::after {
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.72) 0 0.32rem, transparent 0.38rem),
    radial-gradient(circle at 82% 28%, rgba(219, 231, 238, 0.68) 0 0.26rem, transparent 0.32rem),
    radial-gradient(circle at 56% 78%, rgba(127, 144, 154, 0.62) 0 0.22rem, transparent 0.3rem),
    radial-gradient(circle at 36% 66%, rgba(245, 249, 251, 0.64) 0 0.24rem, transparent 0.32rem);
}

.nfc-upgrade-mode-card-gold::before {
  background:
    conic-gradient(from 80deg at 26% 30%, rgba(255, 246, 189, 0.42), rgba(248, 212, 92, 0.38), rgba(185, 119, 18, 0.34), rgba(255, 231, 145, 0.28), rgba(255, 246, 189, 0.42)),
    radial-gradient(circle at 78% 22%, rgba(255, 246, 189, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(248, 212, 92, 0.1), rgba(185, 119, 18, 0.1));
}

.nfc-upgrade-mode-card-gold::after {
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 246, 189, 0.72) 0 0.32rem, transparent 0.38rem),
    radial-gradient(circle at 82% 28%, rgba(248, 212, 92, 0.68) 0 0.26rem, transparent 0.32rem),
    radial-gradient(circle at 56% 78%, rgba(185, 119, 18, 0.62) 0 0.22rem, transparent 0.3rem),
    radial-gradient(circle at 36% 66%, rgba(255, 231, 145, 0.64) 0 0.24rem, transparent 0.32rem);
}

.nfc-upgrade-mode-card-platina::before {
  background:
    conic-gradient(from 96deg at 26% 30%, rgba(255, 255, 255, 0.42), rgba(217, 243, 255, 0.36), rgba(152, 199, 216, 0.34), rgba(201, 188, 255, 0.3), rgba(255, 255, 255, 0.42)),
    radial-gradient(circle at 78% 22%, rgba(217, 243, 255, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(217, 243, 255, 0.1), rgba(201, 188, 255, 0.1));
}

.nfc-upgrade-mode-card-platina::after {
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.72) 0 0.32rem, transparent 0.38rem),
    radial-gradient(circle at 82% 28%, rgba(217, 243, 255, 0.68) 0 0.26rem, transparent 0.32rem),
    radial-gradient(circle at 56% 78%, rgba(152, 199, 216, 0.62) 0 0.22rem, transparent 0.3rem),
    radial-gradient(circle at 36% 66%, rgba(201, 188, 255, 0.64) 0 0.24rem, transparent 0.32rem);
}

.nfc-upgrade-mode-card:not(.nfc-upgrade-mode-card-epic)::before,
.nfc-upgrade-mode-card:not(.nfc-upgrade-mode-card-epic)::after {
  display: none;
  animation: none;
}

.nfc-authorized-tags-card {
  grid-column: span 3;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 18rem;
  background:
    linear-gradient(135deg, rgba(77, 255, 178, 0.1), rgba(255, 97, 174, 0.07)),
    rgba(4, 8, 6, 0.34);
}

.nfc-authorized-tags-card::before {
  background:
    conic-gradient(from 120deg at 26% 30%, rgba(77, 255, 178, 0.34), rgba(241, 207, 35, 0.12), rgba(255, 97, 174, 0.22), rgba(77, 255, 178, 0.34)),
    linear-gradient(135deg, rgba(77, 255, 178, 0.08), rgba(255, 255, 255, 0.03));
}

.nfc-authorized-tags-head {
  display: flex;
  position: relative;
  z-index: 1;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.nfc-authorized-tags-table-shell {
  position: relative;
  z-index: 1;
  min-height: 12rem;
  overflow: auto;
  background: rgba(4, 8, 6, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
}

.nfc-authorized-tags-table {
  width: 100%;
  min-width: 45rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}

.nfc-authorized-tags-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.62rem 0.7rem;
  color: rgba(232, 245, 239, 0.82);
  font-weight: 850;
  text-align: left;
  background: rgba(17, 22, 17, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nfc-authorized-tags-table td {
  padding: 0.68rem 0.7rem;
  color: rgba(232, 245, 239, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.nfc-authorized-tags-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.026);
}

.nfc-authorized-tags-table td.tag-id {
  color: var(--text);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.nfc-authorized-tags-table td.empty {
  height: 8.5rem;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.nfc-authorized-tag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.nfc-authorized-tag-actions form {
  margin: 0;
}

.nfc-authorized-tag-action {
  min-height: 2rem;
  padding: 0.34rem 0.62rem;
  color: var(--text);
  font-weight: 850;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.62rem;
  cursor: pointer;
}

.nfc-authorized-tag-action.edit {
  color: #dfffe8;
  background: rgba(77, 255, 178, 0.1);
  border-color: rgba(77, 255, 178, 0.24);
}

.nfc-authorized-tag-action.delete {
  color: #ffd9e5;
  background: rgba(255, 97, 174, 0.1);
  border-color: rgba(255, 97, 174, 0.24);
}

.nfc-authorized-tags-pagination {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.nfc-authorized-tags-pagination span {
  min-width: 8.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.nfc-authorized-tags-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.nfc-upgrade-mode-head {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(5.4rem, auto) minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  min-height: 3.35rem;
}

.nfc-upgrade-mode-head > strong {
  max-width: 100%;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.metrics-body .nfc-upgrade-mode-head {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 2.55rem;
}

.metrics-body .nfc-upgrade-mode-head > strong {
  display: none;
}

.nfc-upgrade-mode-head .upgrade-word-card {
  min-width: 5.35rem;
  min-height: 1.9rem;
  padding-inline: 0.55rem;
  font-size: 0.78rem;
  border-radius: 0.78rem;
  white-space: nowrap;
}

.nfc-upgrade-mode-metrics {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  align-self: stretch;
  align-items: stretch;
}

.nfc-upgrade-mode-metric {
  display: grid;
  grid-template-rows: minmax(3.75rem, auto) minmax(2.85rem, auto) auto;
  align-items: start;
  gap: 0.32rem;
  min-height: 10rem;
  padding: 0.9rem 0.78rem;
  background: rgba(8, 12, 8, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nfc-upgrade-mode-metric .metric-label {
  min-height: 3.45rem;
  font-size: clamp(0.82rem, 0.95vw, 0.98rem);
  font-weight: 780;
  line-height: 1.18;
}

.nfc-upgrade-mode-metric .metric-value {
  align-self: center;
  font-size: clamp(1.72rem, 2.35vw, 2.25rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.nfc-upgrade-mode-metric .metric-delta {
  align-self: end;
  min-height: 2.55rem;
  font-size: clamp(0.86rem, 1vw, 0.98rem);
  line-height: 1.08;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.nfc-upgrade-mode-metric .metric-delta small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72em;
  line-height: 1.1;
  white-space: nowrap;
}

@keyframes nfc-upgrade-card-flow {
  0% {
    transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1);
  }

  100% {
    transform: translate3d(5%, 3%, 0) rotate(18deg) scale(1.08);
  }
}

@keyframes nfc-upgrade-card-bursts {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.92);
    opacity: 0.26;
  }

  42% {
    transform: translate3d(3%, -4%, 0) scale(1.06);
    opacity: 0.56;
  }

  68% {
    transform: translate3d(-4%, 3%, 0) scale(1);
    opacity: 0.38;
  }
}

.metrics-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cmc-metrics-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
  margin: 1rem 0 0;
}

.cmc-metrics-grid .chart-panel {
  align-content: start;
}

.cmc-metrics-grid .cmc-timeline-panel {
  grid-template-rows: auto minmax(420px, 1fr);
  align-content: stretch;
  min-height: 100%;
}

.chart-wrap.cmc-timeline-chart-wrap {
  height: auto;
  min-height: 420px;
}

.chart-wrap.cmc-timeline-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.cmc-metrics-grid .chart-panel h2 {
  min-height: 1.55rem;
}

.cmc-metrics-grid .chart-panel p {
  min-height: 3.2em;
}

.chart-panel {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem;
}

.chart-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
}

.chart-panel-heading > div {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.chart-panel-action {
  min-height: 2.35rem;
  padding: 0.52rem 0.7rem;
  white-space: nowrap;
}

.chart-panel.wide {
  grid-column: span 2;
}

.chart-panel h2,
.metrics-modal-title {
  margin: 0;
  font-size: 1.2rem;
}

.chart-panel p,
.status-banner,
.login-helper {
  margin: 0;
  line-height: 1.6;
}

.chart-wrap {
  position: relative;
  height: 340px;
}

.operator-list {
  display: grid;
  gap: 0.65rem;
}

.operator-list.compact {
  max-height: 15rem;
  overflow-y: auto;
  padding-right: 0.15rem;
  scrollbar-color: rgba(77, 255, 178, 0.42) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.operator-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.55rem;
  padding: 0.58rem 0.68rem;
  border-radius: 0.86rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.operator-chip-logo {
  display: grid;
  flex: 0 0 auto;
  min-width: 3rem;
  width: auto;
  height: 2.45rem;
  padding: 0 0.48rem;
  place-items: center;
  border-radius: 0.74rem;
  background: rgba(77,255,178,0.12);
  border: 1px solid rgba(77,255,178,0.18);
  color: var(--electric);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
}

.operator-chip.is-connection .operator-chip-logo {
  min-width: 3.25rem;
  background: rgba(77, 255, 178, 0.16);
  border-color: rgba(77, 255, 178, 0.32);
  color: #8cffc6;
}

.operator-chip.is-unknown .operator-chip-logo {
  min-width: 8.4rem;
  padding-inline: 0.72rem;
  color: #101410;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.24)),
    linear-gradient(135deg, #f1cf23 0%, #4dffb2 100%);
  border-color: rgba(255, 255, 255, 0.42);
}

.operator-chip-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.operator-chip-copy {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.08rem 0.35rem;
}

.operator-chip-copy strong {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-chip-copy span {
  color: var(--muted);
}

.operator-chip.is-connection .operator-chip-copy span {
  color: var(--text);
  font-weight: 800;
}

.operator-chip.is-unknown .operator-chip-copy span {
  color: var(--text);
  font-weight: 800;
}

.security-audit-panel {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 1.1rem;
}

.security-audit-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.security-audit-head h2,
.security-list-head h3 {
  margin: 0;
}

.security-audit-head p,
.security-list-head p,
.security-method-grid span,
.security-empty,
.security-attempt-row small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.security-total-card {
  display: grid;
  min-width: 10rem;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(77, 255, 178, 0.1);
  border: 1px solid rgba(77, 255, 178, 0.18);
}

.security-total-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.security-total-card strong {
  font-size: 1.65rem;
}

.security-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 0.85rem;
}

.security-method-grid article {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem;
  box-shadow: none;
}

.security-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.security-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.security-chip strong {
  color: var(--muted);
}

.security-list-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  box-shadow: none;
}

.security-list-head,
.security-attempt-row {
  display: grid;
  grid-template-columns: 10rem 11rem minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.security-list-head {
  grid-template-columns: 1fr auto;
}

.security-list-head > span {
  color: var(--muted);
  font-weight: 800;
}

.security-attempt-list {
  display: grid;
  gap: 0.5rem;
}

.security-attempt-row {
  padding: 0.72rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.security-attempt-row time {
  color: var(--muted);
  font-size: 0.86rem;
}

.security-attempt-row span,
.security-attempt-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.security-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.ghost-link.is-disabled {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}

.status-banner {
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.status-banner.error {
  color: #ffd9e5;
  background: rgba(255, 97, 174, 0.08);
  border-color: rgba(255, 97, 174, 0.28);
}

.dashboard-body {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.dashboard-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  height: 100svh;
  padding: clamp(1rem, 2vw, 1.7rem);
  gap: clamp(0.8rem, 1.2vw, 1.2rem);
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-status {
  display: grid;
  grid-template-columns: var(--dashboard-top-card-size) var(--dashboard-top-card-size);
  grid-auto-rows: var(--dashboard-top-card-size);
  align-items: center;
  gap: 0.75rem;
  --dashboard-top-card-size: clamp(7.15rem, 7.25vw, 8.7rem);
}

.dashboard-page-card,
.dashboard-qr-card {
  display: grid;
  inline-size: var(--dashboard-top-card-size);
  block-size: var(--dashboard-top-card-size);
  width: var(--dashboard-top-card-size) !important;
  height: var(--dashboard-top-card-size) !important;
  min-width: var(--dashboard-top-card-size) !important;
  min-height: var(--dashboard-top-card-size) !important;
  max-width: var(--dashboard-top-card-size) !important;
  max-height: var(--dashboard-top-card-size) !important;
  aspect-ratio: 1;
  place-items: center;
  background: rgba(17, 22, 17, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.dashboard-page-card {
  color: var(--electric);
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  font-weight: 900;
}

.dashboard-qr-card {
  padding: 0;
  background: #ffffff;
}

.dashboard-qr-card img {
  display: block;
  width: calc(100% - 0.9rem);
  height: calc(100% - 0.9rem);
  object-fit: contain;
}

.dashboard-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.dashboard-slide {
  position: absolute;
  inset: 0;
  display: grid;
  gap: clamp(0.8rem, 1.1vw, 1rem);
  align-content: stretch;
  opacity: 0;
  transform: translate3d(0, 1.15rem, 0) scale(0.992);
  pointer-events: none;
  transition: opacity 680ms ease, transform 680ms ease;
}

.dashboard-slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.dashboard-count-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.65rem, 0.9vw, 0.95rem);
  min-height: 0;
}

.dashboard-count-card {
  min-height: 0;
  padding: clamp(0.75rem, 1vw, 1rem);
}

.dashboard-nfc-panel {
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.dashboard-nfc-panel .nfc-merch-grid,
.dashboard-nfc-panel .nfc-merch-group {
  min-height: 0;
}

.dashboard-nfc-panel .nfc-merch-card {
  min-height: clamp(6.4rem, 10vh, 8.25rem);
}

.dashboard-nfc-panel .nfc-upgrade-mode-card {
  min-height: clamp(9.5rem, 18vh, 12rem);
}

.dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.2vw, 1rem);
  min-height: 0;
}

.dashboard-chart-grid.two {
  grid-template-rows: 1fr;
}

.dashboard-chart-panel {
  min-height: 0;
  padding: clamp(0.85rem, 1.2vw, 1.15rem);
  grid-template-rows: auto minmax(0, 1fr);
}

.dashboard-chart-panel-full {
  height: 100%;
}

.dashboard-chart-panel .chart-wrap {
  height: auto;
  min-height: 0;
}

.dashboard-chart-panel-full .chart-wrap,
.dashboard-chart-grid .chart-wrap {
  height: 100%;
}

.dashboard-security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(0.8rem, 1.2vw, 1rem);
  min-height: 0;
}

.dashboard-security-panel,
.dashboard-security-list {
  min-height: 0;
  overflow: hidden;
}

.dashboard-security-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.dashboard-security-panel .security-method-grid {
  align-self: stretch;
  height: 100%;
}

.dashboard-security-list .security-attempt-list {
  max-height: none;
  overflow: hidden;
}

.dashboard-security-list .security-attempt-row {
  padding: 0.58rem 0;
}

.dashboard-security-method-card {
  min-height: 0;
  height: 100%;
  align-content: space-between;
}

.dashboard-security-method-card > b {
  color: #ffffff;
  font-size: clamp(3.65rem, 6.6vw, 7.1rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.dashboard-security-method-card:first-child > b {
  color: var(--electric);
}

.dashboard-security-method-card:nth-child(2) > b {
  color: #ffb74d;
}

.dashboard-security-method-card:nth-child(3) > b {
  color: #ff9ebf;
}

@media (max-width: 1180px) {
  .dashboard-count-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-chart-grid,
  .dashboard-security-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-status {
    display: none;
  }
}

.upgrade-body,
.upgrade-landing-body {
  isolation: isolate;
}

.upgrade-body {
  background:
    linear-gradient(145deg, rgba(117, 165, 30, 0.22), transparent 34%),
    linear-gradient(210deg, rgba(241, 207, 35, 0.16), transparent 28%),
    linear-gradient(135deg, #0e120e 0%, #182017 45%, #111611 100%);
}

.upgrade-mode-epic {
  background:
    linear-gradient(140deg, rgba(77, 255, 178, 0.2), transparent 30%),
    linear-gradient(222deg, rgba(255, 97, 174, 0.2), transparent 32%),
    linear-gradient(28deg, rgba(89, 168, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #101410 0%, #1b1725 50%, #111611 100%);
}

.upgrade-mode-bronze {
  background:
    linear-gradient(145deg, rgba(255, 224, 180, 0.18), transparent 32%),
    linear-gradient(212deg, rgba(183, 90, 37, 0.22), transparent 32%),
    linear-gradient(135deg, #130c08 0%, #26130b 46%, #111611 100%);
}

.upgrade-mode-prata {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(212deg, rgba(174, 189, 199, 0.22), transparent 32%),
    linear-gradient(135deg, #0e1214 0%, #1a2227 46%, #111611 100%);
}

.upgrade-mode-gold {
  background:
    linear-gradient(145deg, rgba(255, 246, 189, 0.2), transparent 32%),
    linear-gradient(212deg, rgba(216, 155, 33, 0.22), transparent 32%),
    linear-gradient(135deg, #12100a 0%, #211c10 46%, #111611 100%);
}

.upgrade-mode-platina {
  background:
    linear-gradient(145deg, rgba(217, 243, 255, 0.18), transparent 32%),
    linear-gradient(212deg, rgba(201, 188, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #0f1216 0%, #1c2530 46%, #111611 100%);
}

.upgrade-bg-canvas,
.upgrade-confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.upgrade-bg-canvas {
  z-index: 0;
}

.upgrade-confetti-canvas {
  z-index: 1;
}

.upgrade-confetti-canvas.is-bursting {
  z-index: 6;
}

.upgrade-body .upgrade-shell,
.upgrade-landing-body .landing {
  position: relative;
  z-index: 2;
}

.upgrade-shell {
  display: grid;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1.4rem 1rem;
  place-items: center;
}

.upgrade-choice-body {
  --upgrade-choice-width: min(76vw, 17rem);
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 18% 34%, rgba(77, 255, 178, 0.18), transparent 30%),
    radial-gradient(circle at 82% 58%, rgba(255, 97, 174, 0.16), transparent 30%),
    linear-gradient(135deg, #07090c 0%, #11131b 44%, #080a0f 100%);
  overflow-x: hidden;
}

.upgrade-choice-body .upgrade-shell {
  min-height: max(100svh, 56rem);
  padding-block: clamp(1.5rem, 4vh, 3rem) clamp(7rem, 16vh, 10rem);
  overflow: hidden;
}

.upgrade-stack {
  display: grid;
  position: relative;
  z-index: 4;
  width: min(100%, 30rem);
  gap: 1rem;
  justify-items: center;
}

.upgrade-body .logo-card {
  width: min(76vw, 17rem);
}

.upgrade-choice-body .logo-card {
  width: var(--upgrade-choice-width);
  height: auto;
  aspect-ratio: 1;
  border-radius: 1.55rem;
}

.upgrade-epic-vapor-field {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  mix-blend-mode: screen;
}

.upgrade-epic-vapor-field::after {
  position: absolute;
  right: -12%;
  bottom: -4rem;
  left: -12%;
  height: clamp(8rem, 22vh, 15rem);
  content: "";
  background:
    radial-gradient(ellipse at 22% 66%, rgba(77, 255, 178, 0.28), transparent 42%),
    radial-gradient(ellipse at 48% 54%, rgba(255, 97, 174, 0.26), transparent 44%),
    radial-gradient(ellipse at 70% 70%, rgba(89, 168, 255, 0.28), transparent 44%),
    radial-gradient(ellipse at 52% 82%, rgba(241, 207, 35, 0.2), transparent 48%);
  filter: blur(16px) saturate(1.55);
  animation: upgrade-epic-pool 7.5s ease-in-out infinite alternate;
}

.upgrade-epic-vapor,
.upgrade-epic-vapor-settle {
  position: absolute;
  display: block;
  width: var(--vapor-size, 1.2rem);
  aspect-ratio: 1;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--vapor-color, #ffffff) 0 18%, rgba(255, 255, 255, 0.26) 36%, transparent 72%);
  border-radius: 46% 54% 58% 42% / 54% 44% 56% 46%;
  filter: blur(var(--vapor-blur, 0.3rem)) saturate(1.85);
  mix-blend-mode: screen;
}

.upgrade-epic-vapor {
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.7) rotate(var(--vapor-rotate, 0deg));
  animation: upgrade-epic-vapor-fall var(--vapor-duration, 6200ms) cubic-bezier(0.15, 0.82, 0.28, 1) forwards;
}

.upgrade-epic-vapor-settle {
  bottom: var(--settle-bottom, 1.6rem);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.5);
  animation: upgrade-epic-vapor-settle var(--settle-duration, 12000ms) ease-out forwards;
}

.upgrade-logo-lockup {
  position: relative;
  width: min(100%, 25.5rem);
  margin-bottom: clamp(2.2rem, 7vw, 3.3rem);
}

.upgrade-logo-lockup .logo-card {
  width: 100%;
}

.upgrade-corner-badge {
  display: grid;
  position: absolute;
  bottom: clamp(-2.35rem, -7vw, -1.7rem);
  left: clamp(1.05rem, 9vw, 3.1rem);
  z-index: 2;
  min-width: clamp(5.4rem, 22vw, 6.8rem);
  min-height: clamp(2.9rem, 12vw, 3.5rem);
  padding: 0.28rem;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.48);
  border-radius: 0.82rem;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    0 0 0 5px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.upgrade-corner-badge .upgrade-word-card {
  min-width: 100%;
  min-height: 2.3rem;
  font-size: clamp(0.82rem, 3.2vw, 1.02rem);
}

.upgrade-choice-panel,
.upgrade-choice-form {
  display: grid;
  width: var(--upgrade-choice-width, min(100%, 23rem));
  gap: 0.95rem;
  justify-items: center;
}

.upgrade-choice-panel {
  padding-block: 0.3rem;
}

.upgrade-choice-button {
  --choice-a: #4dffb2;
  --choice-b: #59a8ff;
  --choice-c: #ff61ae;
  --choice-rgb: 77, 255, 178;
  --choice-duration: 4200ms;
  --choice-drift: 0.22rem;
  display: grid;
  position: relative;
  width: 100%;
  min-height: 5.8rem;
  padding: 0.85rem 1rem;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025)),
    linear-gradient(135deg, rgba(7, 9, 12, 0.96), rgba(17, 20, 28, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.65rem;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  animation: upgrade-choice-breathe var(--choice-duration) ease-in-out infinite alternate;
}

.upgrade-choice-button::before,
.upgrade-choice-button::after,
.upgrade-choice-aura,
.upgrade-choice-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.upgrade-choice-button::before,
.upgrade-choice-button::after,
.upgrade-choice-aura {
  content: "";
  border-radius: inherit;
  display: none;
}

.upgrade-choice-button::before {
  z-index: 1;
  inset: 0.18rem;
  background:
    radial-gradient(ellipse at var(--choice-spark-x, 50%) var(--choice-spark-y, 50%), rgba(var(--choice-rgb), 0.42), transparent 34%),
    radial-gradient(ellipse at var(--choice-orb-x, 70%) var(--choice-orb-y, 32%), rgba(255, 255, 255, 0.2), transparent 38%),
    radial-gradient(ellipse at var(--choice-orb-b-x, 24%) var(--choice-orb-b-y, 76%), rgba(var(--choice-rgb), 0.26), transparent 42%);
  border-radius: 1.35rem;
  filter: blur(10px) saturate(1.45);
  opacity: 0.5;
  transform: scale(0.96);
  animation: upgrade-choice-inner-magic var(--choice-cloud-duration, 6200ms) ease-in-out infinite alternate;
}

.upgrade-choice-button::after {
  z-index: 0;
  inset: -34%;
  background:
    radial-gradient(circle at 30% 30%, var(--choice-a), transparent 34%),
    radial-gradient(circle at 74% 42%, var(--choice-b), transparent 32%),
    radial-gradient(circle at 50% 78%, var(--choice-c), transparent 36%);
  filter: blur(26px) saturate(1.28);
  opacity: 0.3;
  border-radius: 50%;
  animation: upgrade-choice-cloud var(--choice-cloud-duration, 6200ms) ease-in-out infinite alternate;
}

.upgrade-choice-aura {
  z-index: 1;
  background:
    linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.2) 46%, transparent 72%),
    radial-gradient(circle at var(--choice-spark-x, 70%) var(--choice-spark-y, 34%), rgba(255, 255, 255, 0.22), transparent 22%);
  mix-blend-mode: screen;
  opacity: 0.52;
  transform: translateX(-28%);
  animation: upgrade-choice-aura var(--choice-aura-duration, 3600ms) ease-in-out infinite;
}

.upgrade-choice-particles {
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
}

.upgrade-choice-button .upgrade-word-card {
  position: relative;
  z-index: 3;
  min-width: 8.35rem;
  min-height: 2.65rem;
  font-size: 1.08rem;
  border-radius: 999px;
  transform: translateZ(0);
}

.upgrade-choice-button:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.upgrade-choice-button:active {
  transform: translateY(1px) scale(0.992);
}

.upgrade-choice-particle {
  position: absolute;
  display: block;
  left: var(--particle-left, 50%);
  top: var(--particle-top, 50%);
  width: var(--particle-size, 0.42rem);
  aspect-ratio: 1;
  background: var(--particle-color, #ffffff);
  border-radius: 999px;
  box-shadow:
    0 0 12px var(--particle-color, #ffffff),
    0 0 24px var(--particle-color, #ffffff);
  filter: blur(var(--particle-blur, 0));
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.4);
  animation: upgrade-choice-particle var(--particle-duration, 1400ms) ease-out forwards;
}

.upgrade-choice-particle.is-vapor {
  background:
    radial-gradient(circle, var(--particle-color, #ffffff) 0 16%, rgba(255, 255, 255, 0.32) 38%, transparent 74%);
  border-radius: 45% 55% 61% 39% / 54% 46% 58% 42%;
  filter: blur(var(--particle-blur, 0.22rem)) saturate(1.9);
  mix-blend-mode: screen;
}

.upgrade-choice-button-bronze {
  --choice-a: #ffe0b4;
  --choice-b: #e69046;
  --choice-c: #b75a25;
  --choice-rgb: 230, 144, 70;
}

.upgrade-choice-button-prata {
  --choice-a: #ffffff;
  --choice-b: #dbe7ee;
  --choice-c: #7f909a;
  --choice-rgb: 219, 231, 238;
}

.upgrade-choice-button-gold {
  --choice-a: #fff6bd;
  --choice-b: #f8d45c;
  --choice-c: #d89b21;
  --choice-rgb: 248, 212, 92;
}

.upgrade-choice-button-platina {
  --choice-a: #ffffff;
  --choice-b: #d9f3ff;
  --choice-c: #c9bcff;
  --choice-rgb: 217, 243, 255;
}

.upgrade-choice-button-epic {
  --choice-a: #ff61ae;
  --choice-b: #38a8ff;
  --choice-c: #4dffb2;
  --choice-rgb: 255, 97, 174;
  min-height: 6.65rem;
  margin-top: 0.3rem;
  background:
    radial-gradient(ellipse at var(--choice-spark-x, 28%) var(--choice-spark-y, 22%), rgba(var(--choice-rgb), 0.38), transparent 38%),
    radial-gradient(ellipse at var(--choice-orb-x, 74%) var(--choice-orb-y, 72%), rgba(77, 255, 178, 0.24), transparent 42%),
    radial-gradient(ellipse at var(--choice-orb-b-x, 34%) var(--choice-orb-b-y, 78%), rgba(89, 168, 255, 0.18), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    linear-gradient(135deg, rgba(7, 9, 12, 0.96), rgba(17, 20, 28, 0.94));
  border-color: rgba(255, 255, 255, 0.48);
  overflow: visible;
  z-index: 5;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 20px 50px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(255, 97, 174, 0.28),
    0 0 52px rgba(77, 255, 178, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.upgrade-choice-button-epic::before,
.upgrade-choice-button-epic::after,
.upgrade-choice-button-epic .upgrade-choice-aura {
  display: block;
}

.upgrade-choice-button-epic:hover {
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 20px 50px rgba(0, 0, 0, 0.42),
    0 0 36px rgba(var(--choice-rgb), 0.34),
    0 0 72px rgba(77, 255, 178, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.upgrade-choice-button-epic .upgrade-choice-particles {
  inset: -3rem -2.6rem -3.6rem;
  z-index: 4;
  overflow: visible;
  border-radius: 2.4rem;
}

.upgrade-choice-button-epic .upgrade-word-card {
  z-index: 6;
}

@keyframes upgrade-choice-breathe {
  0% {
    transform: translate3d(0, calc(var(--choice-drift) * -1), 0);
    filter: saturate(1.05) brightness(0.98);
  }
  100% {
    transform: translate3d(0, var(--choice-drift), 0);
    filter: saturate(1.28) brightness(1.08);
  }
}

@keyframes upgrade-choice-inner-magic {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(0.96);
    opacity: 0.42;
  }
  45% {
    transform: translate3d(2%, 3%, 0) scale(1.03);
    opacity: 0.66;
  }
  100% {
    transform: translate3d(4%, -1%, 0) scale(1.08);
    opacity: 0.5;
  }
}

@keyframes upgrade-choice-cloud {
  0% {
    transform: translate3d(-4%, -3%, 0) rotate(-6deg) scale(0.95);
    opacity: 0.22;
  }
  100% {
    transform: translate3d(5%, 4%, 0) rotate(7deg) scale(1.08);
    opacity: 0.42;
  }
}

@keyframes upgrade-choice-aura {
  0% {
    transform: translateX(-34%) skewX(-8deg);
    opacity: 0;
  }
  42% {
    opacity: 0.58;
  }
  100% {
    transform: translateX(34%) skewX(-8deg);
    opacity: 0;
  }
}

@keyframes upgrade-choice-particle {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.35);
  }
  18% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--particle-dx, 1rem), var(--particle-dy, -1rem), 0) scale(var(--particle-scale, 1));
  }
}

@keyframes upgrade-epic-vapor-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.45) rotate(var(--vapor-rotate, 0deg));
  }
  12% {
    opacity: var(--vapor-opacity, 0.56);
  }
  72% {
    opacity: calc(var(--vapor-opacity, 0.56) * 0.78);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--vapor-dx, 0), var(--vapor-fall, 30rem), 0) scale(var(--vapor-scale, 1.45)) rotate(calc(var(--vapor-rotate, 0deg) + var(--vapor-spin, 80deg)));
  }
}

@keyframes upgrade-epic-vapor-settle {
  0% {
    opacity: 0;
    transform: translate3d(0, 1.4rem, 0) scale(0.5);
  }
  20% {
    opacity: 0.48;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--settle-dx, 0), -2.6rem, 0) scale(var(--settle-scale, 2.2));
  }
}

@keyframes upgrade-epic-pool {
  0% {
    transform: translate3d(-2%, 0, 0) scaleY(0.86);
    opacity: 0.56;
  }
  100% {
    transform: translate3d(2%, -0.8rem, 0) scaleY(1.1);
    opacity: 0.86;
  }
}

.upgrade-word-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.35rem;
  min-height: 2.05rem;
  padding: 0.25rem 0.65rem;
  color: #ffffff;
  font-weight: 950;
  line-height: 1;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  text-shadow:
    0 1px 0 #111,
    1px 0 0 #111,
    -1px 0 0 #111,
    0 -1px 0 #111,
    0 2px 8px rgba(0, 0, 0, 0.42);
  -webkit-text-stroke: 0.035rem rgba(14, 18, 14, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.2);
}

.upgrade-word-epic {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.12)),
    linear-gradient(135deg, #ff4fa3 0%, #8a62ff 24%, #38a8ff 48%, #4dffb2 70%, #f1cf23 100%);
}

.upgrade-word-bronze {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.16)),
    linear-gradient(135deg, #7d351b 0%, #b75a25 28%, #f4b06c 54%, #e69046 74%, #ffe0b4 100%);
}

.upgrade-word-prata {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.34), rgba(0, 0, 0, 0.16)),
    linear-gradient(135deg, #7f909a 0%, #aebdc7 26%, #ffffff 54%, #dbe7ee 76%, #f5f9fb 100%);
}

.upgrade-word-gold {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.28), rgba(0, 0, 0, 0.18)),
    linear-gradient(135deg, #9f610d 0%, #f4bc35 22%, #fff2a8 48%, #d49a23 70%, #fff6bd 100%);
}

.upgrade-word-platina {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), rgba(255, 255, 255, 0.32), rgba(0, 0, 0, 0.14)),
    linear-gradient(135deg, #8ba9b8 0%, #d9f3ff 28%, #ffffff 52%, #c9bcff 74%, #eefcff 100%);
}

.upgrade-active-card,
.upgrade-success-card {
  display: grid;
  width: min(100%, 23rem);
  gap: 0.45rem;
  padding: 1.1rem;
  text-align: center;
  background: rgba(17, 22, 17, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-panel);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.upgrade-active-card {
  overflow: hidden;
}

.upgrade-active-card::before {
  display: block;
  width: 4.3rem;
  aspect-ratio: 1;
  margin: 0 auto 0.25rem;
  content: "";
  border-radius: 50%;
  border: 0.42rem solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(241, 207, 35, 0.96);
  animation: upgrade-timer-spin 1.05s linear infinite;
}

.upgrade-mode-gold .upgrade-active-card::before {
  border: 0;
  background: conic-gradient(from 0deg, #fff9c8, #f8d45c, #b97712, #fff2a8, #fff9c8);
  box-shadow:
    0 0 22px rgba(248, 212, 92, 0.42),
    0 0 44px rgba(255, 246, 189, 0.22);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 0.42rem), #000 calc(100% - 0.4rem));
  mask: radial-gradient(farthest-side, transparent calc(100% - 0.42rem), #000 calc(100% - 0.4rem));
}

.upgrade-mode-bronze .upgrade-active-card::before {
  border: 0;
  background: conic-gradient(from 0deg, #ffe0b4, #e69046, #7d351b, #f4b06c, #ffe0b4);
  box-shadow:
    0 0 22px rgba(230, 144, 70, 0.38),
    0 0 44px rgba(255, 224, 180, 0.18);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 0.42rem), #000 calc(100% - 0.4rem));
  mask: radial-gradient(farthest-side, transparent calc(100% - 0.42rem), #000 calc(100% - 0.4rem));
}

.upgrade-mode-prata .upgrade-active-card::before {
  border: 0;
  background: conic-gradient(from 0deg, #ffffff, #dbe7ee, #7f909a, #f5f9fb, #ffffff);
  box-shadow:
    0 0 22px rgba(219, 231, 238, 0.34),
    0 0 44px rgba(255, 255, 255, 0.18);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 0.42rem), #000 calc(100% - 0.4rem));
  mask: radial-gradient(farthest-side, transparent calc(100% - 0.42rem), #000 calc(100% - 0.4rem));
}

.upgrade-mode-platina .upgrade-active-card::before {
  border: 0;
  background: conic-gradient(from 0deg, #ffffff, #d9f3ff, #98c7d8, #c9bcff, #ffffff);
  box-shadow:
    0 0 22px rgba(217, 243, 255, 0.34),
    0 0 44px rgba(201, 188, 255, 0.2);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 0.42rem), #000 calc(100% - 0.4rem));
  mask: radial-gradient(farthest-side, transparent calc(100% - 0.42rem), #000 calc(100% - 0.4rem));
}

.upgrade-mode-epic .upgrade-active-card::before {
  border: 0;
  background: conic-gradient(from 0deg, #ff61ae, #8a62ff, #38a8ff, #4dffb2, #f1cf23, #ff61ae);
  box-shadow:
    0 0 22px rgba(77, 255, 178, 0.36),
    0 0 44px rgba(255, 97, 174, 0.22);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 0.42rem), #000 calc(100% - 0.4rem));
  mask: radial-gradient(farthest-side, transparent calc(100% - 0.42rem), #000 calc(100% - 0.4rem));
}

.upgrade-active-card p,
.upgrade-success-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.upgrade-active-card strong {
  min-width: 4.5rem;
  color: #ffffff;
  font-size: clamp(2.4rem, 14vw, 4rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.36),
    0 0 20px rgba(255, 255, 255, 0.18);
}

.upgrade-active-eyebrow,
.upgrade-success-eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.upgrade-mode-gold .upgrade-active-eyebrow {
  color: #fff2a8;
  text-shadow:
    0 0 12px rgba(255, 246, 189, 0.48),
    0 0 28px rgba(248, 212, 92, 0.28);
}

.upgrade-mode-bronze .upgrade-active-eyebrow {
  color: #ffe0b4;
  text-shadow:
    0 0 12px rgba(244, 176, 108, 0.42),
    0 0 28px rgba(183, 90, 37, 0.24);
}

.upgrade-mode-prata .upgrade-active-eyebrow {
  color: #f5f9fb;
  text-shadow:
    0 0 12px rgba(219, 231, 238, 0.42),
    0 0 28px rgba(174, 189, 199, 0.24);
}

.upgrade-mode-platina .upgrade-active-eyebrow {
  color: #eefcff;
  text-shadow:
    0 0 12px rgba(217, 243, 255, 0.44),
    0 0 28px rgba(201, 188, 255, 0.24);
}

.upgrade-mode-epic .upgrade-active-eyebrow {
  color: #ffffff;
  background: linear-gradient(90deg, #ff61ae, #8a62ff 24%, #38a8ff 48%, #4dffb2 72%, #f1cf23);
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 0 8px rgba(77, 255, 178, 0.26))
    drop-shadow(0 0 18px rgba(255, 97, 174, 0.16));
  -webkit-text-fill-color: transparent;
}

.upgrade-success-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 6vw, 2rem);
  line-height: 1.1;
}

.upgrade-success-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 23rem);
  min-height: 3.2rem;
  padding: 0.78rem 0.95rem;
  color: #dfffcf;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  background: rgba(17, 22, 17, 0.76);
  border: 1px solid rgba(77, 255, 178, 0.32);
  border-radius: var(--radius-button);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.upgrade-return-button,
.upgrade-logout-link {
  width: min(100%, 23rem);
}

.upgrade-success-return {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: min(100%, 23rem);
  min-height: 3.5rem;
  padding: 0.8rem 1.05rem;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-button);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  isolation: isolate;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}

.upgrade-success-return::before,
.upgrade-success-return::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
}

.upgrade-success-return::before {
  z-index: -2;
  background: rgba(255, 255, 255, 0.055);
}

.upgrade-success-return::after {
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  background:
    linear-gradient(90deg, rgba(8, 12, 8, 0.42), rgba(8, 12, 8, 0.12) 48%, rgba(8, 12, 8, 0.38)),
    linear-gradient(135deg, #2f7e20 0%, #75a51e 32%, #f1cf23 64%, #3d8d21 100%);
  animation: upgrade-success-return-fill var(--upgrade-return-duration, 5000ms) linear forwards;
}

.upgrade-success-return span {
  position: relative;
  z-index: 1;
  max-width: 18rem;
}

.upgrade-pin-input {
  width: 100%;
  min-height: 4.5rem;
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 0.42rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.nfc-badge-upgrade {
  display: grid;
  gap: 0.35rem;
  color: #101410;
}

.nfc-badge-upgrade .upgrade-badge-label {
  display: inline-flex;
  justify-self: center;
  min-height: 1.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.62rem;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1;
  border-radius: 0.55rem;
  text-shadow:
    0 1px 0 #111,
    1px 0 0 #111,
    -1px 0 0 #111,
    0 -1px 0 #111;
  -webkit-text-stroke: 0.026rem rgba(14, 18, 14, 0.88);
}

.upgrade-mode-epic .nfc-badge-upgrade,
.nfc-badge-upgrade-epic {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.28)),
    linear-gradient(135deg, #ff61ae 0%, #59a8ff 28%, #4dffb2 58%, #f1cf23 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.34),
    0 0 0 3px rgba(255, 97, 174, 0.16),
    0 0 44px rgba(77, 255, 178, 0.2);
}

.upgrade-mode-bronze .nfc-badge-upgrade,
.nfc-badge-upgrade-bronze {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24)),
    linear-gradient(135deg, #7d351b 0%, #b75a25 32%, #f4b06c 58%, #ffe0b4 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.34),
    0 0 0 3px rgba(230, 144, 70, 0.18),
    0 0 44px rgba(230, 144, 70, 0.18);
}

.upgrade-mode-prata .nfc-badge-upgrade,
.nfc-badge-upgrade-prata {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.28)),
    linear-gradient(135deg, #7f909a 0%, #dbe7ee 34%, #ffffff 58%, #aebdc7 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.34),
    0 0 0 3px rgba(219, 231, 238, 0.18),
    0 0 44px rgba(219, 231, 238, 0.18);
}

.upgrade-mode-gold .nfc-badge-upgrade,
.nfc-badge-upgrade-gold {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.28)),
    linear-gradient(135deg, #b97712 0%, #f8d45c 32%, #fff6bd 54%, #d89b21 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.34),
    0 0 0 3px rgba(248, 212, 92, 0.18),
    0 0 48px rgba(248, 212, 92, 0.2);
}

.upgrade-mode-platina .nfc-badge-upgrade,
.nfc-badge-upgrade-platina {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.28)),
    linear-gradient(135deg, #8ba9b8 0%, #d9f3ff 32%, #ffffff 54%, #c9bcff 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.34),
    0 0 0 3px rgba(217, 243, 255, 0.18),
    0 0 48px rgba(201, 188, 255, 0.2);
}

.upgrade-mode-epic .upgrade-badge-label {
  background: linear-gradient(135deg, #ff4fa3, #38a8ff 48%, #4dffb2);
}

.upgrade-mode-bronze .upgrade-badge-label {
  background: linear-gradient(135deg, #7d351b, #e69046 48%, #ffe0b4);
}

.upgrade-mode-prata .upgrade-badge-label {
  background: linear-gradient(135deg, #7f909a, #dbe7ee 48%, #ffffff);
}

.upgrade-mode-gold .upgrade-badge-label {
  background: linear-gradient(135deg, #9f610d, #f4bc35 45%, #fff2a8);
}

.upgrade-mode-platina .upgrade-badge-label {
  background: linear-gradient(135deg, #8ba9b8, #d9f3ff 48%, #c9bcff);
}

.upgrade-landing-body .logo-card {
  box-shadow:
    var(--shadow),
    0 0 44px rgba(241, 207, 35, 0.16);
}

.upgrade-landing-body .share-shell,
.upgrade-landing-body .instagram-button,
.upgrade-success-card,
.upgrade-success-strip {
  position: relative;
  z-index: 2;
}

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

@keyframes upgrade-success-return-fill {
  to {
    transform: scaleX(1);
  }
}

.upgrade-complete-body .upgrade-shell {
  place-items: center;
}

.upgrade-complete-body .upgrade-stack {
  min-height: calc(100svh - 2.8rem);
  align-content: center;
  justify-content: center;
}

.upgrade-complete-body .upgrade-logo-lockup,
.upgrade-complete-body .upgrade-success-return {
  justify-self: center;
}

.upgrade-complete-body .upgrade-logo-lockup {
  margin-top: 0;
  margin-bottom: clamp(2.65rem, 8vw, 3.55rem);
}

.upgrade-complete-body .upgrade-logo-lockup .logo-card {
  width: 100%;
}

.upgrade-complete-body .upgrade-logo-lockup .upgrade-corner-badge {
  left: 50%;
  bottom: clamp(-2.45rem, -7vw, -1.85rem);
  transform: translateX(-50%);
}

.upgrade-complete-body .upgrade-success-return {
  margin-top: -0.55rem;
}

.upgrade-reader-close-body {
  --reader-a: #4dff72;
  --reader-b: #bcff3d;
  --reader-c: #4dffb2;
  --reader-d: #f1cf23;
  --reader-a-rgb: 77, 255, 114;
  --reader-b-rgb: 188, 255, 61;
  --reader-c-rgb: 77, 255, 178;
  --reader-d-rgb: 241, 207, 35;
  --reader-bg-a: #07190b;
  --reader-bg-b: #0e3815;
  --reader-glow: rgba(77, 255, 114, 0.44);
  --reader-hot: rgba(188, 255, 61, 0.92);
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 36%, rgba(var(--reader-a-rgb), 0.34), transparent 34%),
    radial-gradient(circle at 18% 20%, rgba(var(--reader-b-rgb), 0.2), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(var(--reader-c-rgb), 0.18), transparent 35%),
    linear-gradient(135deg, var(--reader-bg-a) 0%, var(--reader-bg-b) 48%, var(--reader-bg-a) 100%);
  background-color: #050805;
  isolation: isolate;
  overflow: hidden;
}

.upgrade-reader-close-body.upgrade-mode-bronze {
  --reader-a: #ffe0b4;
  --reader-b: #e69046;
  --reader-c: #b75a25;
  --reader-d: #f4b06c;
  --reader-a-rgb: 255, 224, 180;
  --reader-b-rgb: 230, 144, 70;
  --reader-c-rgb: 183, 90, 37;
  --reader-d-rgb: 244, 176, 108;
  --reader-bg-a: #1b0d06;
  --reader-bg-b: #3f1f0d;
  --reader-glow: rgba(230, 144, 70, 0.46);
  --reader-hot: rgba(255, 224, 180, 0.94);
}

.upgrade-reader-close-body.upgrade-mode-prata {
  --reader-a: #ffffff;
  --reader-b: #dbe7ee;
  --reader-c: #aebdc7;
  --reader-d: #f5f9fb;
  --reader-a-rgb: 255, 255, 255;
  --reader-b-rgb: 219, 231, 238;
  --reader-c-rgb: 174, 189, 199;
  --reader-d-rgb: 245, 249, 251;
  --reader-bg-a: #0d1214;
  --reader-bg-b: #243039;
  --reader-glow: rgba(219, 231, 238, 0.44);
  --reader-hot: rgba(255, 255, 255, 0.94);
}

.upgrade-reader-close-body.upgrade-mode-gold {
  --reader-a: #fff2a8;
  --reader-b: #f8d45c;
  --reader-c: #d89b21;
  --reader-d: #ffffff;
  --reader-a-rgb: 255, 242, 168;
  --reader-b-rgb: 248, 212, 92;
  --reader-c-rgb: 216, 155, 33;
  --reader-d-rgb: 255, 255, 255;
  --reader-bg-a: #1b1004;
  --reader-bg-b: #3f2708;
  --reader-glow: rgba(248, 212, 92, 0.48);
  --reader-hot: rgba(255, 242, 168, 0.94);
}

.upgrade-reader-close-body.upgrade-mode-platina {
  --reader-a: #ffffff;
  --reader-b: #d9f3ff;
  --reader-c: #98c7d8;
  --reader-d: #c9bcff;
  --reader-a-rgb: 255, 255, 255;
  --reader-b-rgb: 217, 243, 255;
  --reader-c-rgb: 152, 199, 216;
  --reader-d-rgb: 201, 188, 255;
  --reader-bg-a: #0e1218;
  --reader-bg-b: #1b3341;
  --reader-glow: rgba(217, 243, 255, 0.46);
  --reader-hot: rgba(255, 255, 255, 0.94);
}

.upgrade-reader-close-body.upgrade-mode-epic {
  --reader-a: #ff61ae;
  --reader-b: #8a62ff;
  --reader-c: #38a8ff;
  --reader-d: #4dffb2;
  --reader-a-rgb: 255, 97, 174;
  --reader-b-rgb: 138, 98, 255;
  --reader-c-rgb: 56, 168, 255;
  --reader-d-rgb: 77, 255, 178;
  --reader-bg-a: #11071c;
  --reader-bg-b: #10234a;
  --reader-glow: rgba(138, 98, 255, 0.46);
  --reader-hot: rgba(77, 255, 178, 0.92);
}

.upgrade-reader-close-body::before,
.upgrade-reader-close-body::after,
.upgrade-reader-close-shell::before,
.upgrade-reader-close-shell::after {
  position: fixed;
  inset: -22vmax;
  content: "";
  pointer-events: none;
}

.upgrade-reader-close-body::before {
  z-index: 0;
  background:
    conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(var(--reader-a-rgb), 0.3) 38deg, transparent 72deg, rgba(var(--reader-b-rgb), 0.28) 128deg, transparent 172deg, rgba(var(--reader-c-rgb), 0.24) 226deg, transparent 280deg, rgba(var(--reader-d-rgb), 0.24) 330deg, transparent 360deg);
  filter: blur(18px) saturate(1.2);
  opacity: 0.76;
  animation: upgrade-reader-energy-breathe 3s ease-in-out infinite;
}

.upgrade-reader-close-body::after {
  z-index: 0;
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0,
      transparent 18px,
      rgba(var(--reader-b-rgb), 0.11) 19px,
      transparent 20px
    );
  opacity: 0.34;
  animation: upgrade-reader-current 900ms linear infinite;
}

.upgrade-reader-close-shell::before {
  z-index: 4;
  opacity: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(var(--reader-a-rgb), 0.96), transparent 23%),
    radial-gradient(circle at 72% 26%, rgba(var(--reader-b-rgb), 0.92), transparent 29%),
    radial-gradient(circle at 48% 74%, rgba(var(--reader-c-rgb), 0.92), transparent 32%),
    radial-gradient(circle at 78% 78%, rgba(var(--reader-d-rgb), 0.78), transparent 26%),
    conic-gradient(from 120deg, var(--reader-a), var(--reader-b), var(--reader-c), var(--reader-d), var(--reader-a));
  filter: saturate(1.55) blur(8px);
  transform: scale(0.4);
  will-change: opacity, transform;
}

.upgrade-reader-close-body.is-electrifying .upgrade-reader-close-shell::before {
  animation: upgrade-reader-window-fill 1s ease-out forwards;
}

.upgrade-reader-close-shell::after {
  z-index: 60;
  inset: 0;
  background: #000000;
  opacity: 0;
  transform: translateZ(0);
  will-change: opacity;
}

.upgrade-reader-close-body.is-powering-down .upgrade-reader-close-shell::after {
  animation: upgrade-reader-blackout 2s ease-in forwards;
}

.upgrade-reader-close-shell {
  display: grid;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2rem 1rem;
  place-items: center;
}

.upgrade-reader-close-stack {
  display: grid;
  position: relative;
  z-index: 7;
  width: min(100%, 23rem);
  gap: 1rem;
  justify-items: center;
}

.upgrade-reader-close-logo {
  position: relative;
  width: min(76vw, 17rem);
  height: auto;
  aspect-ratio: 1;
  padding: 1rem;
  overflow: visible;
  border-color: rgba(var(--reader-b-rgb), 0.72);
  box-shadow:
    0 0 0 1px rgba(var(--reader-a-rgb), 0.3),
    0 0 28px var(--reader-glow),
    0 0 72px rgba(var(--reader-b-rgb), 0.28),
    var(--shadow);
  isolation: isolate;
  animation: upgrade-reader-logo-charge 3s ease-in-out forwards;
}

.upgrade-reader-close-logo::before,
.upgrade-reader-close-logo::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.upgrade-reader-close-logo::before {
  inset: -1.25rem;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--reader-b-rgb), 0.3), transparent 52%),
    radial-gradient(circle at 50% 50%, rgba(var(--reader-a-rgb), 0.34), transparent 68%);
  border-radius: 1.9rem;
  filter: blur(14px);
  opacity: 0.9;
  animation: upgrade-reader-logo-aura 3s ease-in-out forwards;
}

.upgrade-reader-close-logo::after {
  inset: -0.48rem;
  z-index: -1;
  border: 2px solid rgba(var(--reader-b-rgb), 0.48);
  border-radius: 1.6rem;
  box-shadow:
    0 0 18px var(--reader-glow),
    inset 0 0 20px rgba(var(--reader-a-rgb), 0.22);
  animation: upgrade-reader-logo-pulse 850ms ease-in-out infinite alternate;
}

.upgrade-reader-close-logo .logo {
  position: relative;
  z-index: 3;
}

.upgrade-reader-contour {
  position: absolute;
  inset: -0.12rem;
  z-index: 2;
  border: 2px solid rgba(var(--reader-b-rgb), 0.86);
  border-radius: 1.35rem;
  box-shadow:
    0 0 18px var(--reader-glow),
    inset 0 0 16px rgba(var(--reader-c-rgb), 0.22);
  opacity: 0;
  mix-blend-mode: screen;
}

.upgrade-reader-close-body.is-electrifying .upgrade-reader-contour-a {
  animation: upgrade-reader-contour-blast-a 1.65s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.upgrade-reader-contour-b {
  border-color: rgba(var(--reader-c-rgb), 0.82);
}

.upgrade-reader-close-body.is-electrifying .upgrade-reader-contour-b {
  animation: upgrade-reader-contour-blast-b 1.65s cubic-bezier(0.19, 1, 0.22, 1) forwards 80ms;
}

.upgrade-reader-contour-c {
  border-color: rgba(var(--reader-d-rgb), 0.78);
}

.upgrade-reader-close-body.is-electrifying .upgrade-reader-contour-c {
  animation: upgrade-reader-contour-blast-c 1.65s cubic-bezier(0.19, 1, 0.22, 1) forwards 160ms;
}

.upgrade-reader-contour-d {
  border-color: rgba(255, 255, 255, 0.74);
}

.upgrade-reader-close-body.is-electrifying .upgrade-reader-contour-d {
  animation: upgrade-reader-contour-blast-d 1.65s cubic-bezier(0.19, 1, 0.22, 1) forwards 240ms;
}

.upgrade-reader-close-card {
  width: min(100%, 21rem);
  padding: 0.95rem 1.05rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  background: rgba(13, 30, 14, 0.78);
  border: 1px solid rgba(var(--reader-b-rgb), 0.3);
  border-radius: var(--radius-button);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(var(--reader-a-rgb), 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.upgrade-reader-close-body.is-powering-down .upgrade-reader-close-stack,
.upgrade-reader-close-body.is-powering-down .upgrade-reader-close-card {
  animation: upgrade-reader-card-hide 2s ease-in forwards;
}

@keyframes upgrade-reader-energy-breathe {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.74;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.98;
  }
}

@keyframes upgrade-reader-current {
  to {
    transform: translate3d(24px, 0, 0);
  }
}

@keyframes upgrade-reader-logo-pulse {
  to {
    transform: scale(1.035);
    opacity: 0.72;
  }
}

@keyframes upgrade-reader-logo-aura {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.74;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes upgrade-reader-logo-charge {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  18% {
    transform: translate3d(1px, -1px, 0) scale(1.006);
  }
  37% {
    transform: translate3d(-1px, 1px, 0) scale(1.012);
  }
  62% {
    transform: translate3d(1px, 1px, 0) scale(1.018);
  }
  86% {
    transform: translate3d(-1px, -1px, 0) scale(1.024);
  }
}

@keyframes upgrade-reader-contour-blast-a {
  0% {
    opacity: 0;
    transform: scale(0.98) translate3d(0, 0, 0);
  }
  18% {
    opacity: 0.96;
  }
  100% {
    opacity: 0;
    transform: scale(4.8) translate3d(-20vw, -14vh, 0) rotate(9deg);
  }
}

@keyframes upgrade-reader-contour-blast-b {
  0% {
    opacity: 0;
    transform: scale(0.98) translate3d(0, 0, 0);
  }
  20% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(5.2) translate3d(18vw, -18vh, 0) rotate(-7deg);
  }
}

@keyframes upgrade-reader-contour-blast-c {
  0% {
    opacity: 0;
    transform: scale(0.98) translate3d(0, 0, 0);
  }
  24% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: scale(5.5) translate3d(-14vw, 22vh, 0) rotate(-11deg);
  }
}

@keyframes upgrade-reader-contour-blast-d {
  0% {
    opacity: 0;
    transform: scale(0.98) translate3d(0, 0, 0);
  }
  16% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: scale(5) translate3d(20vw, 18vh, 0) rotate(13deg);
  }
}

@keyframes upgrade-reader-window-fill {
  0% {
    opacity: 0;
    transform: scale(0.42) rotate(-5deg);
  }
  60% {
    opacity: 0.76;
    transform: scale(0.9) rotate(2deg);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.12) rotate(0deg);
  }
}

@keyframes upgrade-reader-blackout {
  0% {
    opacity: 0;
  }
  52% {
    opacity: 0.58;
  }
  100% {
    opacity: 1;
  }
}

@keyframes upgrade-reader-card-hide {
  0% {
    opacity: 1;
    filter: brightness(1);
  }
  100% {
    opacity: 0;
    filter: brightness(0);
  }
}


.nfc-read-paused-body {
  overflow: hidden;
}

.nfc-read-paused-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2rem 1rem;
  place-items: center;
}

.nfc-read-paused-stack {
  display: grid;
  width: min(100%, 25.5rem);
  gap: 1.05rem;
  justify-items: center;
}

.nfc-read-paused-logo {
  width: min(76vw, 17rem);
  height: auto;
  aspect-ratio: 1;
  padding: 1rem;
}

.nfc-read-pause-progress {
  position: relative;
  width: min(76vw, 17rem);
  height: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.nfc-read-pause-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background:
    linear-gradient(90deg, rgba(8, 12, 8, 0.3), rgba(8, 12, 8, 0.04) 48%, rgba(8, 12, 8, 0.24)),
    linear-gradient(135deg, #2f7e20 0%, #75a51e 32%, #f1cf23 64%, #3d8d21 100%);
  border-radius: inherit;
  animation: nfc-read-pause-fill var(--pause-duration, 10000ms) linear forwards;
}

@keyframes nfc-read-pause-fill {
  to {
    transform: scaleX(1);
  }
}

.login-modal.nfc-audit-modal {
  padding: clamp(0.65rem, 2vw, 1.2rem);
}

.login-modal-card.nfc-audit-modal-card {
  width: min(98vw, 78rem);
  max-height: min(92vh, 54rem);
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  overflow: hidden;
  border-radius: 1.25rem;
}

.nfc-audit-modal-head,
.nfc-audit-search,
.nfc-audit-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.nfc-audit-modal-head > div {
  display: grid;
  gap: 0.28rem;
}

.nfc-audit-close {
  min-width: 5.8rem;
}

.nfc-audit-search {
  align-items: end;
  flex-wrap: wrap;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

.nfc-audit-search label {
  display: grid;
  flex: 1 1 22rem;
  gap: 0.35rem;
}

.nfc-audit-search span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.nfc-audit-search input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.68rem 0.8rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.95rem;
}

.nfc-audit-summary {
  min-height: 2.2rem;
  padding: 0.62rem 0.75rem;
  color: rgba(232, 245, 239, 0.84);
  font-size: 0.88rem;
  font-weight: 740;
  background: rgba(77, 255, 178, 0.075);
  border: 1px solid rgba(77, 255, 178, 0.16);
  border-radius: 0.95rem;
}

.nfc-audit-table-shell {
  min-height: 18rem;
  max-height: min(56vh, 43rem);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(4, 8, 6, 0.34);
}

.nfc-audit-table {
  width: 100%;
  min-width: 76rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
}

.nfc-audit-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0;
  background: rgba(17, 22, 17, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nfc-audit-table th button,
.nfc-audit-table th > span {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.6rem;
  padding: 0.62rem 0.7rem;
  color: rgba(232, 245, 239, 0.82);
  font: inherit;
  font-weight: 850;
  text-align: left;
  background: transparent;
  border: 0;
}

.nfc-audit-table th button {
  cursor: pointer;
}

.nfc-audit-table th button.is-active {
  color: #ffffff;
  background: rgba(77, 255, 178, 0.12);
}

.nfc-audit-table th button.is-active::after {
  margin-left: 0.35rem;
  content: "↓";
  color: #4dffb2;
}

.nfc-audit-table th button.is-active[data-direction="asc"]::after {
  content: "↑";
}

.nfc-audit-table td {
  max-width: 16rem;
  padding: 0.68rem 0.7rem;
  color: rgba(232, 245, 239, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.nfc-audit-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.026);
}

.nfc-audit-table tr.is-pioneer td {
  background: rgba(241, 207, 35, 0.11);
}

.nfc-audit-table tr.has-upgrade td.upgrade {
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(77, 255, 178, 0.28);
}

.nfc-audit-table td.numeric,
.nfc-audit-table td.tag,
.nfc-audit-table td.code {
  font-variant-numeric: tabular-nums;
}

.nfc-audit-table td.tag {
  color: #ffffff;
  font-weight: 900;
}

.nfc-audit-table td.code {
  max-width: 13rem;
  color: rgba(232, 245, 239, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.nfc-audit-pagination {
  justify-content: flex-end;
}

.nfc-audit-pagination span {
  min-width: 8.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.nfc-audit-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.login-modal.authorized-tag-capture-modal,
.login-modal.authorized-tag-edit-modal {
  padding: clamp(0.75rem, 3vw, 1.25rem);
}

.login-modal-card.authorized-tag-capture-card,
.login-modal-card.authorized-tag-edit-card {
  width: min(100%, 31rem);
  gap: 1rem;
  border-radius: 1.15rem;
}

.authorized-tag-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.authorized-tag-modal-head > div {
  display: grid;
  gap: 0.28rem;
}

.authorized-tag-modal-head .secondary-button {
  min-width: 5.8rem;
}

.authorized-tag-capture-form[hidden],
.authorized-tag-capture-wait[hidden],
.authorized-tag-capture-status[hidden] {
  display: none;
}

.authorized-tag-capture-card .upgrade-active-card {
  width: 100%;
  margin: 0;
}

.authorized-tag-capture-status {
  margin: 0;
}

.authorized-tag-modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(7, 11, 8, 0.74);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
}

.modal-backdrop.is-visible,
.login-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.login-modal-card {
  width: min(100%, 28rem);
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem;
}

.login-form {
  display: grid;
  gap: 0.85rem;
}

.is-blurred {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .metrics-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .metrics-shell {
    width: min(100%, calc(100% - 1.2rem));
  }

  .metrics-hero,
  .filters-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .share-total-panel {
    grid-template-columns: 1fr;
  }

  .metrics-charts-grid,
  .cmc-metrics-grid,
  .security-method-grid {
    grid-template-columns: 1fr;
  }

  .cmc-metrics-grid .chart-panel h2,
  .cmc-metrics-grid .chart-panel p {
    min-height: 0;
  }

  .chart-panel-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .nfc-merch-group-header {
    flex-direction: column;
    align-items: stretch;
  }

  .nfc-merch-actions {
    justify-items: stretch;
  }

  .nfc-authorized-tags-card {
    grid-column: 1 / -1;
  }

  .chart-panel-action {
    width: 100%;
  }

  .cmc-metrics-grid .cmc-timeline-panel {
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .chart-wrap.cmc-timeline-chart-wrap {
    height: 340px;
    min-height: 340px;
  }

  .security-audit-head,
  .security-list-head {
    grid-template-columns: 1fr;
  }

  .security-audit-head {
    flex-direction: column;
  }

  .security-attempt-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .chart-panel.wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .share-grid-compact,
  .metrics-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-modal-card.nfc-audit-modal-card {
    width: min(100%, calc(100vw - 1rem));
    max-height: 94vh;
    padding: 1rem;
  }

  .nfc-audit-modal-head,
  .nfc-audit-search,
  .nfc-audit-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .nfc-audit-search label,
  .nfc-audit-search button,
  .nfc-audit-pagination button,
  .nfc-audit-pagination span {
    width: 100%;
  }

  .nfc-audit-table {
    min-width: 66rem;
  }

  .nfc-authorized-tags-table {
    min-width: 42rem;
  }
}

@media (max-width: 420px) {
  .landing {
    padding: 1.25rem 0.9rem;
  }

  .brand-stack {
    gap: 0.95rem;
  }

  .logo-card {
    width: min(100%, 20.75rem);
    padding: 0.8rem;
    border-radius: 1.1rem;
  }

  .cmc-logo-lockup {
    width: min(100%, 20.75rem);
    margin-bottom: 2.65rem;
  }

  .upgrade-logo-lockup {
    width: min(100%, 20.75rem);
    margin-bottom: 2.65rem;
  }

  .logo {
    border-radius: 0.82rem;
  }

  .instagram-button {
    min-height: 3.35rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.94rem;
  }

  .partner-section {
    width: min(100%, 20.75rem);
  }

  .partner-logo-card {
    border-radius: 1rem;
  }

  .partner-logo-card img {
    border-radius: calc(1rem - 3px);
  }
}

@media (max-width: 640px) {
  .share-grid-compact,
  .metrics-card-grid,
  .nfc-merch-card-grid {
    grid-template-columns: 1fr;
  }

  .nfc-upgrade-modes-card {
    grid-column: auto;
  }

  .nfc-authorized-tags-card {
    grid-column: 1 / -1;
  }

  .nfc-upgrade-mode-grid,
  .nfc-upgrade-mode-metrics {
    grid-template-columns: 1fr;
  }

  .nfc-authorized-tags-head,
  .nfc-authorized-tags-pagination,
  .authorized-tag-modal-head {
    align-items: stretch;
    flex-direction: column;
  }

  .nfc-authorized-tags-pagination button,
  .nfc-authorized-tags-pagination span,
  .authorized-tag-modal-actions {
    width: 100%;
  }

  .authorized-tag-modal-actions {
    grid-template-columns: 1fr;
  }

  .share-shell,
  .instagram-button {
    width: min(100%, 23rem);
  }

  .date-range-form {
    flex-direction: column;
    align-items: stretch;
  }

  .date-range-form input,
  .login-form input,
  .quick-filter,
  .ghost-link,
  .secondary-button,
  .primary-button {
    width: 100%;
  }

  .chart-wrap {
    height: 300px;
  }

  .chart-wrap.cmc-timeline-chart-wrap {
    height: 300px;
    min-height: 300px;
  }
}

@media (min-width: 800px) {
  .landing {
    padding: 3rem 1.5rem;
  }

  .brand-stack {
    gap: 1.3rem;
  }

  .cmc-logo-lockup {
    width: min(100%, 27rem);
  }

  .upgrade-logo-lockup {
    width: min(100%, 27rem);
  }

  .logo-card {
    width: min(100%, 27rem);
    padding: 1.15rem;
  }

  .partner-section {
    width: min(100%, 27rem);
  }
}

.upgrade-body .logo-card {
  width: min(76vw, 17rem);
  padding: 1rem;
}

@media (max-width: 420px) {
  .upgrade-body .logo-card {
    width: min(74vw, 16.5rem);
  }
}

.upgrade-choice-body {
  --upgrade-choice-width: min(76vw, 17rem);
}

.upgrade-choice-body .logo-card,
.upgrade-choice-body .upgrade-choice-panel,
.upgrade-choice-body .upgrade-choice-form {
  width: var(--upgrade-choice-width);
}

.upgrade-choice-body .logo-card {
  height: auto;
  aspect-ratio: 1;
  border-radius: 1.55rem;
}

@media (max-width: 420px) {
  .upgrade-choice-body {
    --upgrade-choice-width: min(74vw, 16.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Login do dashboard otimizado para browsers de TV/Philips.
   Evita dependência do teclado nativo/IME e permite comando remoto. */
.tv-pin-input {
  cursor: default;
}

.tv-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(4.2rem, 1fr));
  gap: 0.62rem;
}

.tv-keypad button {
  min-height: 3.9rem;
  padding: 0.72rem;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.tv-keypad button:focus,
.tv-keypad button:focus-visible {
  outline: 3px solid rgba(241, 207, 35, 0.96);
  outline-offset: 2px;
}

.tv-keypad-continue {
  background: linear-gradient(135deg, #2f7e20, #75a51e 45%, #f1cf23) !important;
}

.tv-keypad-secondary {
  background: rgba(255,255,255,0.06) !important;
}

.tv-login-submit {
  display: none;
}

@media (max-width: 480px) {
  .tv-keypad {
    grid-template-columns: repeat(3, minmax(3.5rem, 1fr));
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .modal-backdrop,
  .login-modal-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}


/* Fallback para browsers de TV que não suportam aspect-ratio corretamente. */
.logo-card {
  height: 25.5rem;
}
@media (max-width: 520px) {
  .logo-card {
    height: calc(100vw - 2rem);
  }
}
.tv-pin-label > span,
.login-helper {
  display: none !important;
}


/* TV safe: mantém tamanhos originais dos cards, reduz só efeitos pesados. */
.dashboard-body .metrics-refresh-flash { display: none !important; }
.dashboard-body .dashboard-slide { transition: opacity .2s linear !important; }
.dashboard-body .metric-card,
.dashboard-body .chart-panel,
.dashboard-body .security-audit-panel,
.dashboard-body .security-list-card,
.dashboard-body .nfc-merch-panel,
.dashboard-body .nfc-merch-card {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* TV Philips / browser proprietario: fallback de layout sem depender de CSS grid moderno.
   Ativado apenas quando o JS adiciona .dashboard-tv-layout ao <body>. */
.dashboard-body.dashboard-tv-layout .dashboard-shell {
  display: block;
  position: relative;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  padding: 2.1vh 2.2vw;
  overflow: hidden;
}

.dashboard-body.dashboard-tv-layout .dashboard-hero {
  display: block;
  position: relative;
  min-height: 13.5vh;
  padding-right: 14rem;
}

.dashboard-body.dashboard-tv-layout .metrics-title {
  font-size: 5.5vw;
  line-height: 0.95;
}

.dashboard-body.dashboard-tv-layout .eyebrow {
  font-size: 1.38vw;
}

.dashboard-body.dashboard-tv-layout .dashboard-status {
  display: block;
  position: absolute;
  top: 1.2vh;
  right: 1.5vw;
  width: 13rem;
  height: 6.2rem;
}

.dashboard-body.dashboard-tv-layout .dashboard-page-card,
.dashboard-body.dashboard-tv-layout .dashboard-qr-card {
  position: absolute;
  top: 0;
  width: 5.9rem !important;
  height: 5.9rem !important;
  min-width: 5.9rem !important;
  min-height: 5.9rem !important;
  max-width: 5.9rem !important;
  max-height: 5.9rem !important;
  box-sizing: border-box;
}

.dashboard-body.dashboard-tv-layout .dashboard-page-card { left: 0; }
.dashboard-body.dashboard-tv-layout .dashboard-qr-card { right: 0; }

.dashboard-body.dashboard-tv-layout .dashboard-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.dashboard-body.dashboard-tv-layout .dashboard-slide {
  position: absolute;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  display: block;
  width: calc(100vw - 18rem);
  height: 78vh;
  max-width: none;
  overflow: hidden;
}

.dashboard-body.dashboard-tv-layout .dashboard-slide.is-active {
  opacity: 1;
  transform: none;
}

.dashboard-body.dashboard-tv-layout .dashboard-count-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75vw;
  width: 100%;
  height: 11.5vh;
  min-height: 7.2rem;
}

.dashboard-body.dashboard-tv-layout .dashboard-count-card {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 0.82rem;
}

.dashboard-body.dashboard-tv-layout .dashboard-count-card .metric-label {
  font-size: 1.05vw;
  line-height: 1.15;
}

.dashboard-body.dashboard-tv-layout .dashboard-count-card .metric-value {
  font-size: 2.15vw;
  line-height: 1;
}

.dashboard-body.dashboard-tv-layout .dashboard-count-card .metric-delta {
  font-size: 0.95vw;
}

.dashboard-body.dashboard-tv-layout .dashboard-nfc-panel {
  margin-top: 1.1vh;
  width: 100%;
  height: 62vh;
  box-sizing: border-box;
  overflow: hidden;
}

.dashboard-body.dashboard-tv-layout .dashboard-nfc-panel .nfc-merch-card {
  min-height: 8.5vh;
}

.dashboard-body.dashboard-tv-layout .dashboard-chart-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15vw;
  width: 100%;
  height: 100%;
}

.dashboard-body.dashboard-tv-layout .dashboard-chart-grid.two {
  flex-wrap: nowrap;
}

.dashboard-body.dashboard-tv-layout .dashboard-chart-grid .dashboard-chart-panel {
  width: calc(50% - 0.65vw);
  height: calc(50% - 0.65vw);
  box-sizing: border-box;
}

.dashboard-body.dashboard-tv-layout .dashboard-chart-grid.two .dashboard-chart-panel {
  width: calc(50% - 0.65vw);
  height: 68vh;
}

.dashboard-body.dashboard-tv-layout .dashboard-chart-panel-full {
  width: 100%;
  height: 72vh;
  box-sizing: border-box;
}

.dashboard-body.dashboard-tv-layout .dashboard-chart-panel {
  display: block;
  padding: 1.2rem;
  overflow: hidden;
}

.dashboard-body.dashboard-tv-layout .dashboard-chart-panel h2 {
  font-size: 1.55vw;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.dashboard-body.dashboard-tv-layout .dashboard-chart-panel .chart-wrap {
  display: block;
  width: 100%;
  height: calc(100% - 2.5rem) !important;
  min-height: 0;
}

.dashboard-body.dashboard-tv-layout .dashboard-chart-panel canvas {
  width: 100% !important;
  height: 100% !important;
}

.dashboard-body.dashboard-tv-layout .dashboard-security-grid {
  display: flex;
  gap: 1.15vw;
  width: 100%;
  height: 72vh;
}

.dashboard-body.dashboard-tv-layout .dashboard-security-panel {
  width: 58%;
  height: 100%;
  box-sizing: border-box;
}

.dashboard-body.dashboard-tv-layout .dashboard-security-list {
  width: 40%;
  height: 100%;
  box-sizing: border-box;
}

.dashboard-body.dashboard-tv-layout .dashboard-security-method-card > b {
  font-size: 5.2vw;
}

.dashboard-body.dashboard-tv-layout .security-method-grid {
  display: flex;
  gap: 0.8vw;
}

.dashboard-body.dashboard-tv-layout .security-method-grid article {
  flex: 1 1 0;
}

@media (min-width: 1200px) {
  .dashboard-body:not(.dashboard-tv-layout) .dashboard-stage {
    height: calc(100vh - 10.5rem);
  }
}

/* TV Philips: expansão da área útil dos slides.
   Mantém o computador moderno inalterado porque só atua quando o body recebe .dashboard-tv-layout. */
.dashboard-body.dashboard-tv-layout .dashboard-shell {
  padding: 2.0vh 2.0vw !important;
}

.dashboard-body.dashboard-tv-layout .dashboard-hero {
  min-height: 13.0vh !important;
  padding-right: 14rem !important;
}

.dashboard-body.dashboard-tv-layout .dashboard-stage {
  width: 100% !important;
  height: 83.8vh !important;
  min-height: 0 !important;
}

.dashboard-body.dashboard-tv-layout .dashboard-slide {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  box-sizing: border-box !important;
}

/* Slide 1: métricas + NFC ocupam toda a altura disponível. */
.dashboard-body.dashboard-tv-layout .dashboard-count-grid {
  width: 100% !important;
  height: 14.2vh !important;
  min-height: 7.4rem !important;
  margin: 0 !important;
}

.dashboard-body.dashboard-tv-layout .dashboard-count-card {
  height: 100% !important;
}

.dashboard-body.dashboard-tv-layout .dashboard-nfc-panel {
  width: 100% !important;
  height: calc(100% - 15.4vh) !important;
  margin-top: 1.2vh !important;
}

.dashboard-body.dashboard-tv-layout .dashboard-nfc-panel .nfc-merch-grid,
.dashboard-body.dashboard-tv-layout .dashboard-nfc-panel .nfc-merch-group,
.dashboard-body.dashboard-tv-layout .dashboard-nfc-panel .nfc-merch-card-grid {
  height: 100% !important;
  min-height: 0 !important;
}

/* Slides de gráficos: usar toda a largura e altura do stage. */
.dashboard-body.dashboard-tv-layout .dashboard-chart-grid,
.dashboard-body.dashboard-tv-layout .dashboard-chart-grid.two,
.dashboard-body.dashboard-tv-layout .dashboard-security-grid {
  width: 100% !important;
  height: 100% !important;
}

.dashboard-body.dashboard-tv-layout .dashboard-chart-grid .dashboard-chart-panel {
  width: calc(50% - 0.58vw) !important;
  height: calc(50% - 0.58vw) !important;
}

.dashboard-body.dashboard-tv-layout .dashboard-chart-grid.two .dashboard-chart-panel {
  width: calc(50% - 0.58vw) !important;
  height: 100% !important;
}

.dashboard-body.dashboard-tv-layout .dashboard-chart-panel-full {
  width: 100% !important;
  height: 100% !important;
}

.dashboard-body.dashboard-tv-layout .dashboard-chart-panel .chart-wrap {
  height: calc(100% - 2.8rem) !important;
}

.dashboard-body.dashboard-tv-layout .dashboard-security-panel,
.dashboard-body.dashboard-tv-layout .dashboard-security-list {
  height: 100% !important;
}

.dashboard-body.dashboard-tv-layout .dashboard-security-panel {
  width: 63% !important;
}

.dashboard-body.dashboard-tv-layout .dashboard-security-list {
  width: 35.85% !important;
}

/* Televisões 16:9 de baixa resolução/zoom interno: um pouco mais de área vertical. */
@media (min-aspect-ratio: 16/10) {
  .dashboard-body.dashboard-tv-layout .dashboard-hero {
    min-height: 12.4vh !important;
  }

  .dashboard-body.dashboard-tv-layout .dashboard-stage {
    height: 84.6vh !important;
  }
}

/* iOS 2FA upgrade: when a valid authorization tag is opened as the normal tag landing,
   keep the tag content visible for 5s and then fade the whole page to black for 2s. */
.access-reader-complete-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: #000000;
  opacity: 0;
  transform: translateZ(0);
  will-change: opacity;
}
.access-reader-complete-body.is-powering-down::after {
  animation: upgrade-reader-blackout 2s ease-in forwards;
}
.access-reader-complete-body.is-powering-down .landing {
  animation: upgrade-reader-card-hide 2s ease-in forwards;
}

.portachaves-launch-button {
  width: min(100%, 23rem);
  min-height: 3.1rem;
  font-weight: 800;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.08);
  border-color: rgba(77, 255, 178, 0.34);
}

.portachaves-actions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 23rem);
  gap: 0.55rem;
  align-items: stretch;
}

.portachaves-actions-row.has-locations-button {
  grid-template-columns: minmax(0, 1fr) 3.1rem;
}

.portachaves-actions-row .portachaves-launch-button {
  width: 100%;
}

.portachaves-locations-button {
  width: 3.1rem;
  min-width: 3.1rem;
  padding-inline: 0;
  gap: 0;
}

.portachaves-locations-button .material-symbols-outlined,
.portachaves-calendar-toggle .material-symbols-outlined {
  font-size: 1.25rem;
  line-height: 1;
}

.portachaves-info-card,
.portachaves-modal-card,
.portachaves-qr-modal-card {
  width: min(92vw, 72rem);
}

.portachaves-info-card {
  max-height: min(88vh, 58rem);
  overflow: auto;
}

.portachaves-page-shell {
  padding-bottom: 3rem;
}

.portachaves-page-grid {
  display: grid;
  gap: 1rem;
}

.portachaves-page-card {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.portachaves-locations-card {
  max-height: min(88vh, 58rem);
  overflow: auto;
}

.portachaves-locations-toolbar {
  display: flex;
  justify-content: flex-start;
}

.portachaves-range-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.portachaves-calendar-toggle {
  min-width: 2.9rem;
  padding-inline: 0.75rem;
}

.portachaves-locations-view.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

.portachaves-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portachaves-calendar-head strong {
  text-transform: capitalize;
}

.portachaves-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  border-radius: 1rem;
  padding: 0.35rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 58%),
    rgba(7, 11, 9, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 38px rgba(0, 0, 0, 0.22);
}

.portachaves-calendar-cell {
  display: grid;
  min-height: 4.4rem;
  place-items: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.portachaves-calendar-cell.is-head {
  min-height: 2.6rem;
  font-size: 0.86rem;
  font-weight: 800;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.portachaves-calendar-cell.is-empty {
  background: rgba(255, 255, 255, 0.02);
}

.portachaves-calendar-cell.is-active {
  position: relative;
  isolation: isolate;
  color: #ffffff;
  font-weight: 900;
  background:
    linear-gradient(90deg, rgba(8, 12, 8, 0.42), rgba(8, 12, 8, 0.12) 48%, rgba(8, 12, 8, 0.38)),
    linear-gradient(135deg, #2f7e20 0%, #75a51e 32%, #f1cf23 64%, #3d8d21 100%);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 12px 30px rgba(117, 165, 30, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  text-shadow:
    0 1px 0 rgba(32, 38, 35, 0.95),
    0 2px 6px rgba(32, 38, 35, 0.72);
}

.portachaves-calendar-cell.is-active::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 0.9rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  opacity: 0.42;
  animation: portachaves-vapor-rise 4.6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.portachaves-calendar-cell.is-disabled {
  color: rgba(255, 255, 255, 0.34);
  cursor: not-allowed;
}

.portachaves-calendar-cell.is-past-event {
  color: #ffffff;
  font-weight: 800;
  background:
    linear-gradient(145deg, rgba(20, 34, 24, 0.96) 0%, rgba(42, 64, 24, 0.94) 42%, rgba(101, 88, 18, 0.9) 100%);
  border-color: rgba(180, 207, 73, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(22, 28, 23, 0.28);
  text-shadow:
    0 1px 0 rgba(24, 28, 26, 0.92),
    0 2px 5px rgba(24, 28, 26, 0.58);
}

.portachaves-calendar-cell.is-past-event.is-disabled {
  color: #ffffff;
  opacity: 0.88;
}

.portachaves-calendar-cell.is-selected {
  outline: 2px solid rgba(241, 207, 35, 0.7);
  outline-offset: -2px;
}

.portachaves-calendar-cell.is-in-range {
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(42, 72, 30, 0.46), rgba(78, 102, 34, 0.42));
  border-color: rgba(140, 176, 62, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 12px rgba(38, 62, 27, 0.1);
  text-shadow:
    0 1px 0 rgba(24, 28, 26, 0.7),
    0 2px 3px rgba(24, 28, 26, 0.24);
}

.portachaves-calendar-pick {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.portachaves-calendar-pick:not(.is-disabled):not(.is-active):not(.is-in-range) {
  background: rgba(255, 255, 255, 0.03);
}

.portachaves-calendar-pick.is-selected {
  border-color: rgba(241, 207, 35, 0.82);
  box-shadow:
    0 0 0 1px rgba(241, 207, 35, 0.38),
    inset 0 0 0 1px rgba(241, 207, 35, 0.28);
}

.portachaves-calendar-pick.is-active,
.portachaves-calendar-pick.is-active.is-selected {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  text-shadow:
    0 1px 0 rgba(32, 38, 35, 0.95),
    0 2px 6px rgba(32, 38, 35, 0.72);
}

.portachaves-calendar-pick.is-in-range,
.portachaves-calendar-pick.is-in-range.is-selected {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  background:
    linear-gradient(180deg, rgba(42, 72, 30, 0.46), rgba(78, 102, 34, 0.42)) !important;
  border-color: rgba(140, 176, 62, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 12px rgba(38, 62, 27, 0.1);
}

.portachaves-calendar-pick.is-past-event,
.portachaves-calendar-pick.is-past-event.is-selected {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  text-shadow:
    0 1px 0 rgba(24, 28, 26, 0.92),
    0 2px 5px rgba(24, 28, 26, 0.58);
}

.portachaves-calendar-details {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.portachaves-info-body,
.portachaves-editor-section {
  display: grid;
  gap: 1rem;
}

.portachaves-info-body {
  margin-top: 1rem;
}

.portachaves-copy-card,
.portachaves-pillars,
.portachaves-agenda-card,
.qr-metrics-table-shell,
.portachaves-table-shell {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
}

.portachaves-copy-card,
.portachaves-pillars {
  padding: 1rem 1.1rem;
}

.portachaves-copy-card p,
.portachaves-pillars li,
.portachaves-editor-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.portachaves-pillars h3,
.portachaves-agenda-head h3,
.portachaves-editor-head h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.portachaves-pillars ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.7rem;
  list-style: none;
}

.portachaves-pillars li {
  display: grid;
  grid-template-columns: 0.9rem 1fr;
  gap: 0.65rem;
  align-items: start;
}

.portachaves-pillars li::before {
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.35rem;
  content: "";
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--electric));
  box-shadow: 0 0 0 4px rgba(77, 255, 178, 0.12);
}

.portachaves-agenda {
  display: grid;
  gap: 0.8rem;
}

.portachaves-agenda-list {
  display: grid;
  gap: 0.8rem;
}

.portachaves-agenda-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.portachaves-agenda-card.is-highlighted {
  border-color: rgba(77, 255, 178, 0.42);
  box-shadow: 0 0 0 3px rgba(77, 255, 178, 0.12);
}

.portachaves-agenda-meta {
  display: grid;
  gap: 0.2rem;
}

.portachaves-agenda-meta strong {
  font-size: 1rem;
}

.portachaves-agenda-meta span {
  color: rgba(255, 255, 255, 0.72);
}

.portachaves-upgrade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 800;
}

.portachaves-upgrade-badge.is-active {
  color: #f6fff9;
  background: rgba(12, 35, 24, 0.88);
  border: 1px solid rgba(77, 255, 178, 0.82);
  box-shadow:
    0 0 0 1px rgba(77, 255, 178, 0.18),
    0 0 18px rgba(77, 255, 178, 0.2),
    0 0 34px rgba(77, 255, 178, 0.12);
  position: relative;
  overflow: hidden;
}

.portachaves-upgrade-badge.is-active::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 75%, rgba(77, 255, 178, 0.18), transparent 28%),
    radial-gradient(circle at 55% 42%, rgba(77, 255, 178, 0.16), transparent 25%),
    radial-gradient(circle at 70% 14%, rgba(77, 255, 178, 0.14), transparent 22%);
  filter: blur(8px);
  animation: portachaves-vapor-rise 4.8s ease-in-out infinite;
  pointer-events: none;
}

.portachaves-form textarea,
.portachaves-form input[type="text"],
.portachaves-form input[type="date"],
.portachaves-form input[type="time"] {
  width: 100%;
}

.portachaves-form textarea {
  display: block;
  min-height: 15rem;
  resize: vertical;
  inline-size: 100%;
  max-inline-size: 100%;
}

.portachaves-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.portachaves-form-actions.is-hidden {
  display: none;
}

.portachaves-table-shell,
.qr-metrics-table-shell {
  overflow-x: auto;
}

.portachaves-table input[type="text"],
.portachaves-table input[type="date"],
.portachaves-table input[type="time"] {
  min-width: 8.5rem;
}

.portachaves-picker-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.portachaves-input-shell {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.9rem;
  padding: 0 0.7rem;
  gap: 0.55rem;
  background: rgba(11, 16, 12, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
}

.portachaves-picker-trigger:focus-visible .portachaves-input-shell {
  outline: 2px solid rgba(241, 207, 35, 0.72);
  outline-offset: 2px;
}

.portachaves-inline-icon {
  display: inline-flex;
  color: #ffffff;
  flex: 0 0 auto;
  cursor: pointer;
  pointer-events: none;
}

.portachaves-inline-icon svg {
  display: block;
  pointer-events: none;
}

.portachaves-input-shell input[type="date"],
.portachaves-input-shell input[type="time"] {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  padding-left: 0;
  padding-right: 0;
}

.portachaves-input-shell input[type="date"]::-webkit-calendar-picker-indicator,
.portachaves-input-shell input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0;
}

.portachaves-picker-value {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.portachaves-picker-value.is-placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.portachaves-upgrades-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  user-select: none;
  position: relative;
  width: max-content;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.portachaves-upgrades-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.portachaves-upgrades-content {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  white-space: nowrap;
}

.portachaves-upgrades-icon {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
}

.portachaves-upgrades-toggle .unchecked {
  color: #ffffff;
}

.portachaves-upgrades-toggle .checked {
  display: none;
  color: #4dffb2;
  text-shadow:
    0 0 12px rgba(77, 255, 178, 0.32),
    0 0 22px rgba(77, 255, 178, 0.18);
}

.portachaves-upgrades-toggle .portachaves-upgrades-text {
  min-width: 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  white-space: nowrap;
  text-align: center;
}

.portachaves-table td:nth-child(4),
.portachaves-table th:nth-child(4) {
  white-space: nowrap;
}

.portachaves-upgrades-toggle.is-checked {
  border-color: rgba(77, 255, 178, 0.8);
  box-shadow:
    0 0 0 1px rgba(77, 255, 178, 0.34),
    0 0 18px rgba(77, 255, 178, 0.22),
    0 0 34px rgba(77, 255, 178, 0.12);
}

.portachaves-upgrades-toggle.is-checked::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 30% 50%, rgba(77, 255, 178, 0.2), transparent 42%),
    radial-gradient(circle at 70% 50%, rgba(77, 255, 178, 0.16), transparent 48%);
  pointer-events: none;
  filter: blur(8px);
}

.portachaves-upgrades-toggle.is-checked .unchecked {
  display: none;
}

.portachaves-upgrades-toggle.is-checked .checked {
  display: inline-block;
}

.portachaves-upgrades-toggle.is-checked .portachaves-upgrades-text {
  color: #4dffb2;
}

.portachaves-upgrades-toggle:focus-within {
  outline: 2px solid rgba(241, 207, 35, 0.72);
  outline-offset: 2px;
}

.portachaves-code {
  color: var(--electric);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.portachaves-qr-preview-shell {
  display: grid;
  padding: 1.25rem;
  place-items: center;
}

.portachaves-qr-preview-shell img {
  width: min(100%, 34rem);
  padding: 20px;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.3);
}

.qr-metrics-panel {
  margin-top: 1.25rem;
}

.qr-metrics-table td strong {
  color: var(--electric);
}

.nfc-authorized-tag-action.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.portachaves-toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 10040;
  width: min(28rem, calc(100vw - 2.4rem));
}

.portachaves-delete-card {
  width: min(92vw, 28rem);
}

.portachaves-qr-head {
  align-items: flex-start;
}

.portachaves-qr-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.portachaves-picker-card {
  width: min(92vw, 38rem);
}

.portachaves-calendar-pick {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.portachaves-calendar-pick.is-disabled {
  cursor: not-allowed;
}

.portachaves-time-picker {
  display: grid;
  gap: 1.1rem;
}

.portachaves-clock-face {
  position: relative;
  width: min(18rem, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 58%),
    repeating-conic-gradient(from -90deg, rgba(255, 255, 255, 0.18) 0deg 1deg, transparent 1deg 30deg),
    rgba(7, 11, 9, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.28);
}

.portachaves-clock-face::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.portachaves-clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: center bottom;
  border-radius: 999px;
  background: #ffffff;
}

.portachaves-clock-hand.hour {
  width: 0.34rem;
  height: 27%;
}

.portachaves-clock-hand.minute {
  width: 0.24rem;
  height: 38%;
  background: var(--electric);
  box-shadow: 0 0 14px rgba(77, 255, 178, 0.32);
}

.portachaves-clock-center {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.95rem;
  height: 0.95rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.portachaves-time-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.portachaves-time-controls label {
  display: grid;
  gap: 0.45rem;
}

.portachaves-time-controls select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 16, 12, 0.9);
  color: #ffffff;
}

.portachaves-picker-selection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.portachaves-picker-selection-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.portachaves-picker-selection-item span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 700;
}

.portachaves-picker-selection-item strong {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.25;
}

@keyframes portachaves-vapor-rise {
  0% {
    transform: translateY(10px) scale(0.98);
    opacity: 0.72;
  }
  50% {
    transform: translateY(-6px) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: translateY(-14px) scale(1.04);
    opacity: 0.74;
  }
}

@media (max-width: 720px) {
  .portachaves-agenda-card,
  .portachaves-editor-head {
    flex-direction: column;
    align-items: stretch;
  }

  .portachaves-info-card,
  .portachaves-modal-card,
  .portachaves-qr-modal-card {
    width: min(94vw, 42rem);
  }

  .portachaves-locations-card .authorized-tag-modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .portachaves-locations-card .authorized-tag-modal-head .secondary-button,
  .portachaves-locations-card .portachaves-range-switch > .quick-filter {
    width: 100%;
    min-width: 0;
  }

  .portachaves-locations-card .portachaves-range-switch {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .portachaves-locations-card .portachaves-calendar-toggle {
    padding-inline: 1rem;
  }

  .portachaves-locations-card .portachaves-calendar-head {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: stretch;
  }

  .portachaves-locations-card .portachaves-calendar-head strong {
    grid-column: 1 / -1;
    order: -1;
    text-align: center;
    white-space: nowrap;
    text-transform: none;
  }

  .portachaves-locations-card .portachaves-calendar-head .secondary-button {
    width: 100%;
  }
}


/* Ajustes pedidos 2026-05-28: descrição do porta-chaves alinhada à largura do card */
.portachaves-description-card,
.portachaves-description-card .portachaves-form,
.portachaves-description-card .portachaves-form label,
.portachaves-description-card textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.portachaves-description-card,
.portachaves-description-card .portachaves-form,
.portachaves-description-card .portachaves-form label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
}

.portachaves-description-card textarea {
  inline-size: 100%;
  display: block;
  min-width: 0;
}

/* Estado desativado explícito para navegação de calendário sem passado disponível */
.portachaves-calendar-head .secondary-button:disabled,
.portachaves-calendar-head .secondary-button[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.35);
}
