/* ── PORTAL GLOBAL FOOTER & DISCLAIMERS ── */
.portal-footer {
  margin-top: 60px;
  border-top: 1px solid rgba(226, 184, 83, 0.1);
  padding: 40px 24px;
  background: rgba(8, 7, 14, 0.4);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.portal-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.portal-footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.portal-footer-links a:hover {
  color: var(--gold);
}

.portal-footer-links a:hover {
  color: var(--gold);
}

.portal-disclaimer {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(226, 184, 83, 0.05);
  border-radius: 14px;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: justify;
  opacity: 0.85;
}

/* 🪐 HORIZONTAL SCROLL-BAR CATEGORIES (ASTRO7 STYLE) */
.category-scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 4px;
  margin-bottom: 24px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge */
}
.category-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.category-scroll-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(15, 13, 22, 0.75);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.category-scroll-item:hover, .category-scroll-item.active {
  color: var(--text);
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--border-glow);
  box-shadow: var(--glow), 0 4px 15px rgba(226, 184, 83, 0.15);
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .category-scroll-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 8px 0;
  }

  .category-scroll-item {
    min-width: 0;
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.16;
    padding: 10px 8px;
    font-size: 0.78rem;
    border-radius: 12px;
  }
}

@media (max-width: 420px) {
  .category-scroll-container {
    grid-template-columns: 1fr;
  }
}

.category-seo-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 18px 24px;
  margin-bottom: 24px;
  text-align: left;
}
.category-seo-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--gold);
}
.category-seo-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

/* 🔒 NEON KEYBOARD FOR PIN LOGS & SHADOW STORAGE */
.pin-keyboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 280px;
  margin: 20px auto 0 auto;
}
.pin-keyboard-btn {
  background: rgba(15, 13, 22, 0.8);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 800;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pin-keyboard-btn:hover {
  background: rgba(226, 184, 83, 0.08);
  border-color: var(--border-glow);
  box-shadow: var(--glow);
  transform: scale(1.05);
}
.pin-keyboard-btn:active {
  transform: scale(0.95);
}
.pin-display-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 15px;
}
.pin-display-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  transition: all 0.25s;
}
.pin-display-dot.filled {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: var(--glow);
}

/* ✋ PALM LASER SCANNING */
.palm-scan-area {
  position: relative;
  width: 200px;
  height: 260px;
  border: 2.5px dashed var(--border-glow);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 13, 22, 0.4);
}
.palm-laser-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--purple), var(--pink), transparent);
  box-shadow: var(--glow-pink);
  z-index: 50;
  animation: scanLaser 2s infinite ease-in-out;
}
@keyframes scanLaser {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* 🚀 INTERACTIVE ONBOARDING OVERLAY */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 9, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.onboarding-overlay.active {
  display: flex;
}
.onboarding-card {
  background: rgba(15, 13, 22, 0.95);
  border: 1.5px solid var(--border-glow);
  border-radius: 28px;
  padding: 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: var(--glow), 0 20px 50px rgba(0,0,0,0.8);
  animation: fadeUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.onboarding-step-indicator {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.onboarding-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.onboarding-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
}
.onboarding-highlight {
  outline: 3px solid var(--pink) !important;
  outline-offset: 4px;
  box-shadow: var(--glow-pink) !important;
  z-index: 100001 !important;
  position: relative !important;
}

/* 🚨 UGC POST PULSING DANGER DANGER NEON (TRIGGERED BY TriggerWords) */
.post-danger-neon {
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.15) !important;
  animation: pulseDanger 2s infinite ease-in-out;
}
@keyframes pulseDanger {
  0% { border-color: rgba(239, 68, 68, 0.4); box-shadow: 0 0 15px rgba(239, 68, 68, 0.15); }
  50% { border-color: rgba(239, 68, 68, 0.8); box-shadow: 0 0 25px rgba(239, 68, 68, 0.35); }
  100% { border-color: rgba(239, 68, 68, 0.4); box-shadow: 0 0 15px rgba(239, 68, 68, 0.15); }
}

/* ── GLOBAL MODALS & OVERLAYS (Destiny CMS & Public Pages) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 9, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: rgba(15, 13, 22, 0.95);
  border: 1.5px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 600px;
  box-shadow: var(--glow), 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  animation: fadeUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Welcome Gate UI --- */
.welcome-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 9, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  backdrop-filter: blur(20px);
  animation: fadeIn 0.4s ease both;
}

.welcome-card {
  background: #0f0d1a;
  border: 1px solid rgba(226, 184, 83, 0.2);
  border-radius: 24px;
  width: 90%;
  max-width: 820px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(226, 184, 83, 0.1);
  text-align: center;
}

.welcome-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #e2b853, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Inter Tight', sans-serif;
}

.welcome-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.welcome-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.welcome-option-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.welcome-option-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 184, 83, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.welcome-option-card.active {
  border-color: #e2b853;
  background: rgba(226, 184, 83, 0.05);
  box-shadow: 0 0 20px rgba(226, 184, 83, 0.15);
}

.welcome-option-icon {
  font-size: 2.5rem;
}

.welcome-option-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.welcome-option-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Light Mode Card inside Welcome Gate Options */
.welcome-option-card.light-card.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}
.welcome-option-card.light-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

/* Accordion for theme light/dark inside welcome option card */
.theme-subselector {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.theme-sub-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-sub-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 760px) {
  .welcome-gate-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 18px 10px;
  }

  .welcome-card {
    width: min(100%, 360px);
    max-width: calc(100vw - 20px);
    padding: 22px 14px;
    border-radius: 18px;
  }

  .welcome-title {
    font-size: 1.45rem;
    line-height: 1.18;
  }

  .welcome-subtitle {
    font-size: 0.84rem;
    margin-bottom: 18px;
  }

  .welcome-options {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }

  .welcome-option-card {
    width: 100%;
    max-width: 100%;
    padding: 16px 14px;
  }

  .welcome-option-title,
  .welcome-option-desc {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .theme-subselector {
    flex-wrap: wrap;
  }

  .theme-sub-btn {
    min-width: 110px;
  }
}

.theme-sub-btn.active-sub {
  background: #fff;
  color: #000;
  border-color: #fff;
}
