/* Aviso pós-login por inatividade e orientação visual de suporte. */
#inactivity-notice-modal {
  --in-accent: #ef4444;
  --in-accent-soft: rgba(239, 68, 68, .16);
  --in-surface: #111827;
  --in-surface-raised: #182334;
  --in-text: #f8fafc;
  --in-muted: #c6d0dd;
  z-index: 17000;
}

#inactivity-notice-modal .modal-overlay {
  background: rgba(2, 6, 23, .8);
  backdrop-filter: blur(8px);
}

.inactivity-notice-content {
  width: min(560px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 28px));
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(248, 113, 113, .42);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 0%, rgba(239, 68, 68, .2), transparent 36%),
    linear-gradient(145deg, rgba(24, 35, 52, .99), rgba(10, 16, 28, .99));
  color: var(--in-text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .58), 0 0 0 1px rgba(255, 255, 255, .05) inset;
}

.inactivity-notice-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.inactivity-notice-emblem {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(254, 202, 202, .38);
  border-radius: 15px;
  background: linear-gradient(145deg, #fb7185, #dc2626);
  color: #fff;
  box-shadow: 0 10px 24px rgba(220, 38, 38, .32);
}

.inactivity-notice-emblem .material-icons-round { font-size: 27px; }

.inactivity-notice-kicker {
  margin: 1px 0 5px;
  color: #fecaca;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.inactivity-notice-header h3 {
  margin: 0;
  color: var(--in-text);
  font-size: clamp(20px, 3.8vw, 26px);
  line-height: 1.15;
}

.inactivity-notice-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
  color: var(--in-text);
  cursor: pointer;
}

.inactivity-notice-close:hover { background: rgba(255, 255, 255, .14); }
.inactivity-notice-close:focus-visible,
.inactivity-notice-action:focus-visible,
.inactivity-notice-community:focus-visible {
  outline: 3px solid rgba(248, 113, 113, .65);
  outline-offset: 3px;
}

.inactivity-notice-body { padding: 22px 24px 24px; }

.inactivity-notice-intro {
  margin: 0;
  color: var(--in-muted);
  font-size: 15px;
  line-height: 1.62;
}

.inactivity-notice-intro strong { color: #fff; }

.inactivity-notice-policy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  margin: 19px 0;
  padding: 16px;
  border: 1px solid rgba(248, 113, 113, .42);
  border-radius: 16px;
  background: var(--in-accent-soft);
}

.inactivity-notice-policy .material-icons-round {
  color: #fda4af;
  font-size: 25px;
}

.inactivity-notice-policy h4 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 14px;
}

.inactivity-notice-policy p {
  margin: 0;
  color: #fee2e2;
  font-size: 13px;
  line-height: 1.55;
}

.inactivity-notice-paths {
  display: grid;
  gap: 12px;
  margin: 0;
}

.inactivity-notice-path {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--in-muted);
  font-size: 13px;
  line-height: 1.55;
}

.inactivity-notice-path .material-icons-round {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fda4af;
  font-size: 18px;
}

.inactivity-notice-path strong { color: #fff; }

.inactivity-notice-community {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 15px;
  border: 1px solid rgba(134, 239, 172, .42);
  border-radius: 12px;
  background: rgba(34, 197, 94, .14);
  color: #dcfce7;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.inactivity-notice-community:hover { background: rgba(34, 197, 94, .24); }

.inactivity-notice-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px 23px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.inactivity-notice-action {
  min-height: 45px;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 12px;
  background: linear-gradient(135deg, #fb7185, #dc2626);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(220, 38, 38, .28);
}

.inactivity-notice-action:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Guia sequencial com setas vermelhas para Atendimento, WhatsApp e Notificações. */
.inactivity-guide {
  position: fixed;
  inset: 0;
  z-index: 17020;
  color: #172033;
  font-family: inherit;
  pointer-events: none;
}

.inactivity-guide-shade {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.inactivity-guide-focus {
  position: fixed;
  border: 3px solid #ff3b43;
  border-radius: 15px;
  background: transparent;
  box-shadow:
    0 0 0 9999px rgba(7, 12, 22, .62),
    0 0 0 7px rgba(255, 59, 67, .22),
    0 0 32px rgba(255, 59, 67, .88);
  pointer-events: none;
  transition: left .28s ease, top .28s ease, width .28s ease, height .28s ease;
  animation: inactivity-guide-pulse 1.15s ease-in-out infinite;
}

.inactivity-guide-arrow {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: visible;
  pointer-events: none;
}

.inactivity-guide-arrow-line,
.inactivity-guide-arrow-head {
  fill: none;
  stroke: #ff3b43;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(86, 0, 6, .82));
}

.inactivity-guide-arrow-line {
  stroke-dasharray: 18 10;
  animation: inactivity-guide-dash .7s linear infinite;
}

.inactivity-guide-card {
  position: fixed;
  width: min(342px, calc(100vw - 28px));
  padding: 19px;
  border: 1px solid rgba(255, 180, 183, .82);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .99), rgba(255, 235, 235, .98));
  box-shadow: 0 24px 68px rgba(0, 0, 0, .44), inset 0 1px 0 #fff;
  pointer-events: auto;
  transition: left .28s ease, top .28s ease;
}

.inactivity-guide-step {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid rgba(220, 38, 38, .26);
  border-radius: 999px;
  background: rgba(254, 226, 226, .98);
  color: #b91c1c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.inactivity-guide-heading {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 13px;
}

.inactivity-guide-heading > .material-icons-round {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #fb7185, #dc2626);
  color: #fff;
  font-size: 23px;
  box-shadow: 0 8px 19px rgba(220, 38, 38, .3);
}

.inactivity-guide-heading h3 {
  margin: 1px 0 5px;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.2;
}

.inactivity-guide-heading p {
  margin: 0;
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.5;
}

.inactivity-guide-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
}

.inactivity-guide-skip,
.inactivity-guide-next {
  min-height: 40px;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.inactivity-guide-skip {
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #6b7280;
  text-decoration: underline;
}

.inactivity-guide-next {
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .8);
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  box-shadow: 0 7px 16px rgba(185, 28, 28, .25);
}

.inactivity-guide-skip:focus-visible,
.inactivity-guide-next:focus-visible {
  outline: 3px solid rgba(239, 68, 68, .48);
  outline-offset: 3px;
}

body[data-theme="light"] #inactivity-notice-modal {
  --in-surface: #fff;
  --in-surface-raised: #fff7f7;
  --in-text: #162032;
  --in-muted: #4b5563;
}

body[data-theme="light"] .inactivity-notice-content {
  background:
    radial-gradient(circle at 92% 0%, rgba(239, 68, 68, .15), transparent 35%),
    linear-gradient(145deg, #fff, #fff6f6);
  box-shadow: 0 28px 90px rgba(30, 41, 59, .28), 0 0 0 1px rgba(127, 29, 29, .08) inset;
}

body[data-theme="light"] .inactivity-notice-header h3,
body[data-theme="light"] .inactivity-notice-policy h4,
body[data-theme="light"] .inactivity-notice-intro strong,
body[data-theme="light"] .inactivity-notice-path strong { color: #172033; }
body[data-theme="light"] .inactivity-notice-policy p { color: #7f1d1d; }
body[data-theme="light"] .inactivity-notice-close { color: #374151; border-color: rgba(55, 65, 81, .18); }

@keyframes inactivity-guide-pulse {
  50% { box-shadow: 0 0 0 9999px rgba(7, 12, 22, .62), 0 0 0 10px rgba(255, 59, 67, .1), 0 0 42px rgba(255, 59, 67, 1); }
}

@keyframes inactivity-guide-dash { to { stroke-dashoffset: -28; } }

@media (max-width: 640px) {
  .inactivity-notice-header { padding: 19px 18px 15px; gap: 11px; }
  .inactivity-notice-emblem { width: 43px; height: 43px; }
  .inactivity-notice-body { padding: 18px; }
  .inactivity-notice-footer { padding: 14px 18px 19px; }
  .inactivity-notice-action { width: 100%; }
  .inactivity-notice-community { width: 100%; box-sizing: border-box; }
  .inactivity-guide-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .inactivity-notice-action:hover { transform: none; }
  .inactivity-guide-focus,
  .inactivity-guide-arrow-line { animation: none; }
}
