/* ─────────────────────────────────────────────────────────────
   uziii2208 // Cyber Notice Dual-Layer Popup Stylesheet
   Theme: Beralock Cyber-Aesthetic (Red #e8192c / Base #050508)
   Fonts: Minecraftia (UI) + Chakra Petch (Content) + JetBrains Mono (Code)
───────────────────────────────────────────────────────────── */

#migration-banner {
  display: none !important;
}

/* ─── FULLSCREEN MODAL OVERLAY ─── */
.cyber-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(4, 4, 7, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s;
}

.cyber-notice-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* ─── DIALOG CONTAINER ─── */
.cyber-notice-dialog {
  position: relative;
  width: 100%;
  max-width: 650px;
  max-height: 92vh;
  overflow-y: auto;
  background: #090910;
  border: 1px solid var(--border-red);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(232, 25, 44, 0.22);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cyber-notice-overlay.active .cyber-notice-dialog {
  transform: translateY(0) scale(1);
}

/* Corner laser accents */
.notice-corner-bracket {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  border-color: var(--red);
  z-index: 2;
}
.notice-corner-bracket.top-left {
  top: 2px;
  left: 2px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
}
.notice-corner-bracket.top-right {
  top: 2px;
  right: 2px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
}
.notice-corner-bracket.bottom-left {
  bottom: 2px;
  left: 2px;
  border-bottom: 2px solid var(--red);
  border-left: 2px solid var(--red);
}
.notice-corner-bracket.bottom-right {
  bottom: 2px;
  right: 2px;
  border-bottom: 2px solid var(--red);
  border-right: 2px solid var(--red);
}

.notice-decor-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent);
  pointer-events: none;
  z-index: 2;
}

/* ─── MODAL HEADER ─── */
.notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: #06060a;
  position: relative;
  flex-wrap: wrap;
}

.notice-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse-notice-dot 1.4s infinite;
}

@keyframes pulse-notice-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.notice-hud-freq {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
}

.notice-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  padding: 5px 11px;
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notice-tab:hover {
  color: #fff;
  border-color: var(--border-red-focus);
  background: rgba(232, 25, 44, 0.08);
}

.notice-tab.active {
  background: rgba(232, 25, 44, 0.16);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 12px var(--red-glow);
}

.notice-tab .tab-index {
  color: var(--red);
  font-family: var(--font-code);
  font-size: 0.68rem;
  font-weight: 700;
}

.notice-pulse-badge {
  font-size: 0.55rem;
  background: var(--red);
  color: #fff;
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  animation: badge-pulse 1.8s infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.notice-close-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding: 6px;
  cursor: pointer;
  transition: all 0.16s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notice-close-btn:hover {
  color: #fff;
  border-color: var(--border-red-focus);
  background: rgba(232, 25, 44, 0.12);
}

.notice-close-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.18s ease, stroke 0.18s ease;
  pointer-events: none;
}

.notice-close-btn:hover .notice-close-svg {
  stroke: #ffffff;
  transform: rotate(90deg);
}

/* ─── MODAL BODY & LAYERS ─── */
.notice-body {
  padding: 20px 22px;
}

.notice-layer {
  display: none;
}

.notice-layer.active {
  display: block;
  animation: notice-layer-fade 0.22s ease-out;
}

@keyframes notice-layer-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.notice-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.notice-cyber-tag {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  padding: 2px 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.notice-cyber-tag.tag-sys {
  color: var(--red);
  background: rgba(232, 25, 44, 0.1);
  border: 1px solid var(--red-dim);
}

.notice-cyber-tag.tag-alert {
  color: #ff9944;
  background: rgba(255, 153, 68, 0.1);
  border: 1px solid rgba(255, 153, 68, 0.3);
}

.notice-cyber-tag.tag-admin {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.notice-cyber-tag.tag-chill {
  color: #38ef7d;
  background: rgba(56, 239, 125, 0.1);
  border: 1px solid rgba(56, 239, 125, 0.3);
}

.notice-layer-indicator {
  margin-left: auto;
  font-family: var(--font-code);
  font-size: 0.65rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border: 1px solid var(--border);
}

.notice-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

/* ─── LAYER 1: TERMINAL & MIGRATION INFO ─── */
.notice-terminal-box {
  background: #050509;
  border: 1px solid var(--border-red);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-family: var(--font-code);
  font-size: 0.76rem;
  line-height: 1.6;
}

.term-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.term-row:last-child {
  margin-bottom: 0;
}

.term-dim {
  color: var(--text-muted);
}
.term-strike {
  color: var(--text-dim);
  text-decoration: line-through;
}
.term-highlight {
  color: #ffffff;
  font-weight: 600;
}
.term-text {
  color: var(--text-dim);
}
.term-badge {
  font-size: 0.62rem;
  padding: 0 4px;
}
.term-badge.badge-warn {
  color: #ff9944;
  border: 1px solid rgba(255, 153, 68, 0.3);
}
.term-badge.badge-ok {
  color: #38ef7d;
  border: 1px solid rgba(56, 239, 125, 0.3);
}

.notice-desc {
  font-family: var(--font-content);
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 14px;
}
.notice-desc strong {
  color: #fff;
}

.notice-ext-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(232, 25, 44, 0.04);
  border: 1px dashed var(--border-red);
  margin-bottom: 18px;
  font-size: 0.8rem;
}
.ext-prompt {
  color: var(--text-muted);
  font-family: var(--font-content);
}
.notice-ext-link {
  color: var(--red);
  text-decoration: none;
  font-family: var(--font-code);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  transition: color 0.15s;
}
.notice-ext-link:hover {
  color: #ff4455;
  text-decoration: underline;
}

/* ─── LAYER 2: QUOTE BOX & URGE HUB ─── */
.notice-quote-box {
  background: rgba(232, 25, 44, 0.06);
  border-left: 3px solid var(--red);
  padding: 14px 16px;
  margin-bottom: 16px;
  position: relative;
}

.quote-prompt-tag {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  color: var(--red);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.quote-text {
  font-family: var(--font-content);
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.6;
}

.email-highlight {
  color: #ff4455;
  background: rgba(232, 25, 44, 0.15);
  padding: 1px 6px;
  border-radius: 2px;
  font-family: var(--font-code);
  font-weight: 600;
  word-break: break-all;
}

.urge-hub {
  background: #05050a;
  border: 1px solid var(--border);
  padding: 14px;
  margin-bottom: 16px;
}

.urge-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}
.urge-tag {
  color: var(--red);
}
.urge-hint {
  color: var(--text-muted);
}

.urge-topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.urge-topic-btn {
  background: #0a0a12;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-content);
  font-size: 0.78rem;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.urge-topic-btn:hover {
  background: #11111e;
  border-color: var(--border-red-focus);
  color: #ffffff;
}

.urge-topic-btn.active {
  background: rgba(232, 25, 44, 0.14);
  border-color: var(--red);
  color: #ffffff;
  box-shadow: inset 0 0 10px rgba(232, 25, 44, 0.22);
}

.urge-topic-btn .topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.topic-svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-dim);
  transition: stroke 0.16s ease, transform 0.16s ease, filter 0.16s ease;
  vertical-align: middle;
  pointer-events: none;
}

.urge-topic-btn:hover .topic-svg {
  stroke: #ffffff;
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px var(--red-glow));
}

.urge-topic-btn.active .topic-svg {
  stroke: var(--red);
  filter: drop-shadow(0 0 8px rgba(232, 25, 44, 0.85));
}

.urge-action-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-urge-mail {
  flex: 1;
  min-width: 200px;
  background: linear-gradient(135deg, #e8192c, #b01020);
  color: #fff;
  border: none;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  padding: 10px 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.16s ease;
  box-shadow: 0 4px 16px rgba(232, 25, 44, 0.35);
  cursor: pointer;
}
.btn-urge-mail:hover {
  background: linear-gradient(135deg, #ff2e43, #c41325);
  box-shadow: 0 4px 22px rgba(232, 25, 44, 0.55);
}

.mail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mail-svg {
  width: 15px;
  height: 15px;
  stroke: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.45));
  transition: transform 0.16s ease;
  pointer-events: none;
  vertical-align: middle;
}

.btn-urge-mail:hover .mail-svg {
  transform: scale(1.12);
  filter: drop-shadow(0 0 8px #ffffff);
}

.btn-copy-email {
  flex: 1;
  min-width: 200px;
  background: #0e0e18;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-code);
  font-size: 0.7rem;
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.16s ease;
}
.btn-copy-email:hover {
  border-color: var(--border-red-focus);
  background: #141424;
  color: #fff;
}

.copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.copy-svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-dim);
  transition: all 0.16s ease;
  pointer-events: none;
  vertical-align: middle;
}

.btn-copy-email:hover .copy-svg {
  stroke: var(--red);
  transform: scale(1.12);
  filter: drop-shadow(0 0 6px var(--red-glow));
}

/* ─── ACTION ROWS ─── */
.notice-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-notice-next,
.btn-notice-confirm {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red-laser);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 14px var(--red-glow);
}
.btn-notice-next:hover,
.btn-notice-confirm:hover {
  background: #ff2e43;
  box-shadow: 0 0 22px rgba(232, 25, 44, 0.5);
}

.btn-notice-dismiss,
.btn-notice-prev {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-notice-dismiss:hover,
.btn-notice-prev:hover {
  color: #fff;
  border-color: var(--border-red-focus);
  background: rgba(232, 25, 44, 0.08);
}

.btn-arrow-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.18s ease;
  vertical-align: middle;
  pointer-events: none;
}

.btn-notice-next:hover .btn-arrow-svg {
  transform: translateX(3px);
}

.btn-notice-prev:hover .btn-arrow-svg {
  transform: translateX(-3px);
}

/* Generic SVG icon support inside notice system */
.notice-svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  pointer-events: none;
}

.broadcast-svg {
  width: 14px;
  height: 14px;
  stroke: var(--red);
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(232, 25, 44, 0.6));
  vertical-align: middle;
}
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-notice-dismiss:hover,
.btn-notice-prev:hover {
  color: #fff;
  border-color: var(--border-red-focus);
  background: rgba(232, 25, 44, 0.08);
}

/* ─── MODAL FOOTER ─── */
.notice-footer-hud {
  padding: 8px 18px;
  border-top: 1px solid var(--border);
  background: #050508;
  font-family: var(--font-code);
  font-size: 0.62rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.notice-footer-hud .hud-key {
  color: var(--red);
  font-weight: 600;
}

/* ─── NAVBAR NOTICE HUD BUTTON ─── */
.nav-notice-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.notice-beacon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse-notice-dot 1.4s infinite;
}

.notice-badge-count {
  background: var(--red);
  color: #fff;
  font-family: var(--font-code);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 2px;
  line-height: 1.3;
}

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 640px) {
  .cyber-notice-dialog {
    max-height: 95vh;
  }
  .notice-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .notice-tabs {
    width: 100%;
    justify-content: flex-start;
  }
  .notice-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
  }
  .notice-body {
    padding: 16px 14px;
  }
  .urge-topics-grid {
    grid-template-columns: 1fr;
  }
  .urge-action-bar {
    flex-direction: column;
  }
  .btn-urge-mail, .btn-copy-email {
    width: 100%;
  }
  .notice-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-notice-next, .btn-notice-confirm, .btn-notice-dismiss, .btn-notice-prev {
    width: 100%;
    justify-content: center;
  }
}
