/* ==========================================================================
   TNI CORE PORTAL - STYLESHEET
   Steampunk + Techie + Stargate / Sci-Fi Theme
   Greyscale / Dark Tone Palette with Controlled Energy Accents
   ========================================================================== */

:root {
  --bg-deep: #050608;
  --bg-dark: #0a0c12;
  --bg-panel: #11141c;
  --bg-panel-trans: rgba(17, 20, 28, 0.92);
  
  --grey-100: #f0f2f5;
  --grey-200: #d0d5dd;
  --grey-400: #98a2b3;
  --grey-600: #475467;
  --grey-800: #1d2430;
  --grey-900: #0f131a;

  /* Steampunk & Tech Accents */
  --brass-gold: #c8964d;
  --brass-dark: #7b5929;
  --steampunk-gear: #3e3427;
  
  --portal-blue: #00d2ff;
  --portal-blue-dark: #0066cc;
  --portal-blue-glow: rgba(0, 210, 255, 0.45);
  
  --chevron-amber: #ff8c00;
  --chevron-glow: rgba(255, 140, 0, 0.7);

  --font-display: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Share Tech Mono', monospace;

  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--grey-200);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Background Canvas */
#warp-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   HEADER HUD & BRANDING
   ========================================================================== */
.portal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.95) 0%, rgba(5, 6, 8, 0.6) 80%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 20;
  backdrop-filter: blur(5px);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.3));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--grey-100);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--grey-400);
}

.hud-telemetry {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(17, 20, 28, 0.7);
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.telemetry-item .label {
  color: var(--grey-600);
  margin-right: 0.35rem;
}

.telemetry-item .val {
  color: var(--portal-blue);
  font-weight: bold;
}

.status-pulse {
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; text-shadow: 0 0 4px var(--portal-blue); }
  50% { opacity: 1; text-shadow: 0 0 12px var(--portal-blue); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  color: var(--grey-200);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hud-btn:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: var(--portal-blue);
  color: #fff;
  box-shadow: 0 0 10px var(--portal-blue-glow);
}

.hud-btn.active {
  border-color: var(--portal-blue);
  color: var(--portal-blue);
}

/* ==========================================================================
   MAIN UNIVERSE & STARGATE DIALING SYSTEM
   ========================================================================== */
.portal-universe {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding-top: 2rem;
}

.stargate-container {
  position: relative;
  width: 620px;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Steampunk Mechanical Gears & Circuits */
.steampunk-gear-layer {
  position: absolute;
  inset: -60px;
  pointer-events: none;
  z-index: 1;
}

.gear {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(200, 150, 77, 0.35);
  box-shadow: inset 0 0 25px rgba(123, 89, 41, 0.2);
}

.gear-outer-counter {
  inset: 10px;
  border: 3px dotted rgba(200, 150, 77, 0.25);
  animation: spin-counter 120s linear infinite;
}

.gear-clockwork-small {
  width: 130px;
  height: 130px;
  border: 2px dashed rgba(200, 150, 77, 0.3);
  animation: spin-clockwise 40s linear infinite;
}

.gear-clockwork-small.top-left {
  top: -20px;
  left: -20px;
}

.gear-clockwork-small.bottom-right {
  bottom: -20px;
  right: -20px;
  animation-direction: reverse;
}

.techie-circuits {
  position: absolute;
  inset: -40px;
  background-image: 
    radial-gradient(circle at center, transparent 320px, rgba(0, 210, 255, 0.05) 321px, transparent 323px),
    radial-gradient(circle at center, transparent 380px, rgba(200, 150, 77, 0.06) 381px, transparent 383px);
  border-radius: 50%;
}

@keyframes spin-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-counter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Orbital Tracks for Navigation Globes */
.orbital-track {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.track-1 {
  width: 780px;
  height: 780px;
  border-color: rgba(0, 210, 255, 0.12);
  animation: spin-clockwise 240s linear infinite;
}

.track-2 {
  width: 900px;
  height: 900px;
  border-color: rgba(200, 150, 77, 0.1);
  animation: spin-counter 300s linear infinite;
}

/* Stargate Dialing Wheel (Image + Rotating Mechanism) */
.stargate-dialing-wheel {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  z-index: 4;
  transition: transform 3.2s cubic-bezier(0.25, 1, 0.2, 1);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.gate-ring-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: contrast(1.1) brightness(0.95);
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
}

/* 9 Interactive Chevrons */
.chevrons-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chevron {
  position: absolute;
  width: 24px;
  height: 14px;
  background: rgba(255, 140, 0, 0.2);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  border: 1px solid rgba(255, 140, 0, 0.4);
  transform-origin: center 260px;
  left: calc(50% - 12px);
  top: 6px;
  transition: all 0.4s ease;
}

.chevron.chevron-1 { transform: rotate(0deg); }
.chevron.chevron-2 { transform: rotate(40deg); }
.chevron.chevron-3 { transform: rotate(80deg); }
.chevron.chevron-4 { transform: rotate(120deg); }
.chevron.chevron-5 { transform: rotate(160deg); }
.chevron.chevron-6 { transform: rotate(200deg); }
.chevron.chevron-7 { transform: rotate(240deg); }
.chevron.chevron-8 { transform: rotate(280deg); }
.chevron.chevron-9 { transform: rotate(320deg); }

.chevron.locked {
  background: var(--chevron-amber);
  box-shadow: 0 0 25px var(--chevron-glow), 0 0 45px var(--chevron-amber);
  border-color: #fff;
  transform-origin: center 260px;
  filter: brightness(1.6);
}

/* Central Event Horizon & Wormhole Vortex */
.portal-event-horizon {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 
    inset 0 0 40px rgba(0, 210, 255, 0.8),
    0 0 40px rgba(0, 120, 255, 0.5);
  background: radial-gradient(circle, #05162a 0%, #020914 80%, #000 100%);
}

.vortex-plasma {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 45% 45%, rgba(0, 210, 255, 0.35) 0%, rgba(0, 90, 200, 0.2) 50%, transparent 80%);
  filter: blur(12px);
  animation: swirl 8s infinite linear;
}

.vortex-singularity {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 1px solid rgba(0, 210, 255, 0.4);
  box-shadow: inset 0 0 20px rgba(0, 210, 255, 0.6);
  animation: pulse-singularity 3s infinite ease-in-out;
}

@keyframes swirl {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  to { transform: rotate(360deg) scale(1); }
}

@keyframes pulse-singularity {
  0%, 100% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}

.portal-core-emblem {
  position: relative;
  z-index: 6;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(5, 10, 20, 0.75);
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
  backdrop-filter: blur(3px);
}

.tni-crest {
  max-width: 95px;
  max-height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.8));
  transition: transform 0.5s ease;
}

.stargate-container:hover .tni-crest {
  transform: scale(1.06);
}

/* ==========================================================================
   ORBITAL PLANETARY GLOBES (NAVIGATION LINKS)
   ========================================================================== */
.globes-nav {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.globe-node {
  position: absolute;
  pointer-events: auto;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

/* Positioning the 4 Globes at 4 Cardinal / Diagonal Points */
/* Top-Left: Onboarding (315 deg) */
.globe-onboarding {
  top: 15px;
  left: -80px;
}

/* Top-Right: Payment (45 deg) */
.globe-payment {
  top: 15px;
  right: -90px;
  flex-direction: row-reverse;
  text-align: right;
}

/* Bottom-Right: Projects (135 deg) */
.globe-projects {
  bottom: 25px;
  right: -80px;
  flex-direction: row-reverse;
  text-align: right;
}

/* Bottom-Left: BICSI (225 deg) */
.globe-bicsi {
  bottom: 25px;
  left: -90px;
}

/* 3D Celestial Globe Sphere */
.globe-sphere {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 35%, #2a3447 0%, #10141f 65%, #05070d 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 0 25px rgba(0, 0, 0, 0.9),
    inset -8px -8px 20px rgba(0, 0, 0, 0.9),
    inset 4px 4px 10px rgba(255, 255, 255, 0.2);
  color: var(--grey-100);
  transition: var(--transition-smooth);
}

.globe-sphere::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 210, 255, 0.4);
  animation: spin-clockwise 20s linear infinite;
}

.globe-rings {
  position: absolute;
  width: 100px;
  height: 28px;
  border: 1px solid rgba(200, 150, 77, 0.35);
  border-radius: 50%;
  transform: rotate(-25deg);
  pointer-events: none;
}

.globe-icon {
  z-index: 2;
  transition: transform 0.3s ease;
}

/* Globe Text Labels */
.globe-label {
  display: flex;
  flex-direction: column;
  background: rgba(15, 19, 26, 0.85);
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  border-left: 2px solid var(--portal-blue);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  min-width: 130px;
  transition: var(--transition-smooth);
}

.globe-payment .globe-label,
.globe-projects .globe-label {
  border-left: none;
  border-right: 2px solid var(--portal-blue);
}

.gl-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--portal-blue);
  letter-spacing: 1.5px;
}

.gl-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--grey-100);
}

.gl-sub {
  font-size: 0.75rem;
  color: var(--grey-400);
}

/* Hover & Focus States for Globes */
.globe-node:hover,
.globe-node:focus-visible {
  transform: scale(1.08);
}

.globe-node:hover .globe-sphere,
.globe-node:focus-visible .globe-sphere {
  border-color: var(--portal-blue);
  box-shadow: 
    0 0 30px var(--portal-blue-glow),
    inset -5px -5px 15px rgba(0, 0, 0, 0.8),
    inset 5px 5px 15px rgba(0, 210, 255, 0.5);
}

.globe-node:hover .globe-icon,
.globe-node:focus-visible .globe-icon {
  transform: scale(1.15);
  color: var(--portal-blue);
}

.globe-node:hover .globe-label,
.globe-node:focus-visible .globe-label {
  border-color: var(--chevron-amber);
  background: rgba(22, 28, 38, 0.95);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}

/* ==========================================================================
   HYPERDRIVE JUMP HUD NOTIFIER
   ========================================================================== */
.hyperdrive-hud {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2.5rem;
  background: rgba(5, 8, 14, 0.95);
  border: 1.5px solid var(--portal-blue);
  box-shadow: 0 0 50px var(--portal-blue-glow), inset 0 0 30px rgba(0, 210, 255, 0.2);
  border-radius: 6px;
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hyperdrive-hud.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hud-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(0, 210, 255, 0.2);
  border-top-color: var(--portal-blue);
  border-right-color: var(--chevron-amber);
  border-radius: 50%;
  animation: spin-clockwise 0.8s linear infinite;
  margin-bottom: 1rem;
}

.hud-msg-main {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 10px var(--portal-blue);
}

.hud-msg-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--grey-400);
  letter-spacing: 2px;
  margin-top: 0.3rem;
}

/* ==========================================================================
   FOOTER BAR
   ========================================================================== */
.portal-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: linear-gradient(0deg, rgba(5, 6, 8, 0.95) 0%, rgba(5, 6, 8, 0.6) 80%, transparent 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  z-index: 20;
  backdrop-filter: blur(5px);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--grey-400);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--portal-blue);
  box-shadow: 0 0 8px var(--portal-blue);
}

.footer-center .tip-text {
  color: var(--brass-gold);
  letter-spacing: 1px;
}

.quick-link-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.8rem;
  color: var(--grey-200);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  border-radius: 3px;
  transition: var(--transition-smooth);
}

.quick-link-btn:hover {
  background: rgba(200, 150, 77, 0.15);
  border-color: var(--brass-gold);
  color: #fff;
}

/* ==========================================================================
   NATIVE MODAL DIALOGS (Compliant with Modern Web Guidance)
   ========================================================================== */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(8px);
}

.cyber-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 780px;
  width: 90vw;
  margin: auto;
  outline: none;
}

.cyber-dialog.large-dialog {
  max-width: 1040px;
}

.cyber-dialog[open] {
  display: flex;
  animation: dialog-warp-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dialog-warp-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dialog-box {
  position: relative;
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.95),
    0 0 30px rgba(0, 210, 255, 0.15);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Steampunk / Cyber Corner Brackets */
.dialog-box::before,
.dialog-box::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  border-color: var(--portal-blue);
  z-index: 5;
}

.dialog-box::before {
  top: 0;
  left: 0;
  border-top: 3px solid var(--portal-blue);
  border-left: 3px solid var(--portal-blue);
}

.dialog-box::after {
  bottom: 0;
  right: 0;
  border-bottom: 3px solid var(--chevron-amber);
  border-right: 3px solid var(--chevron-amber);
}

.dialog-header {
  padding: 1.25rem 1.75rem;
  background: rgba(10, 14, 22, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
}

.dialog-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--portal-blue);
  margin-bottom: 0.25rem;
}

.dialog-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--grey-100);
}

.dialog-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--grey-400);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dialog-close-btn:hover {
  background: rgba(255, 70, 70, 0.2);
  border-color: #ff4d4d;
  color: #fff;
}

.dialog-body {
  padding: 1.75rem;
  max-height: 75vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--grey-600) transparent;
}

.dialog-intro {
  font-size: 0.95rem;
  color: var(--grey-400);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   FORMS & CONTROLS
   ========================================================================== */
.cyber-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--grey-400);
  text-transform: uppercase;
}

.form-group input,
.form-group select {
  background: rgba(8, 11, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  color: var(--grey-100);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--portal-blue);
  box-shadow: 0 0 10px var(--portal-blue-glow);
  background: rgba(12, 17, 26, 0.95);
}

/* Role Selector Tabs */
.role-selector,
.payment-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.role-btn,
.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: var(--grey-400);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.role-btn.active,
.tab-btn.active {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--portal-blue);
  color: var(--grey-100);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

/* Auto Email Box */
.auto-email-box {
  background: rgba(5, 8, 14, 0.9);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.email-preview-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--portal-blue);
  letter-spacing: 1px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--portal-blue);
  box-shadow: 0 0 8px var(--portal-blue);
  animation: pulse-glow 1.5s infinite;
}

.email-display {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.email-display .prefix {
  color: var(--chevron-amber);
}

.email-display .domain {
  color: var(--portal-blue);
}

.email-note {
  font-size: 0.78rem;
  color: var(--grey-400);
}

/* Roundcube Skin Preview */
.roundcube-skin-preview {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: #090c12;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.skin-bar {
  background: #141924;
  padding: 0.4rem 0.8rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--grey-400);
}

.skin-badge {
  color: var(--brass-gold);
}

.skin-mock-content {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 70px;
}

.mock-sidebar {
  background: #0d121c;
  padding: 0.6rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--grey-400);
}

.mock-main {
  padding: 0.6rem;
  display: flex;
  align-items: center;
}

.mock-mail-item {
  color: var(--grey-200);
}

/* Submit Buttons */
.form-actions {
  margin-top: 0.8rem;
}

.submit-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(90deg, #0066cc 0%, #0099ff 100%);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.3);
}

.submit-btn:hover {
  background: linear-gradient(90deg, #0080ff 0%, #00bfff 100%);
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
  transform: translateY(-1px);
}

.success-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid var(--portal-blue);
  border-radius: 4px;
  text-align: center;
}

.success-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--portal-blue);
  color: #000;
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--grey-400);
}

/* Projects Cards */
.sharepoint-auth-card {
  background: rgba(7, 10, 16, 0.9);
  border: 1px solid rgba(0, 120, 212, 0.4);
  padding: 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.sp-logo-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.sp-brand {
  color: #00a4ef;
  font-weight: bold;
}

.sp-status {
  color: var(--portal-blue);
}

.section-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--grey-400);
  letter-spacing: 1.5px;
  margin-bottom: 0.8rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
  transition: var(--transition-smooth);
}

.project-card:hover {
  background: rgba(0, 210, 255, 0.05);
  border-color: rgba(0, 210, 255, 0.3);
}

.proj-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-weight: bold;
}

.proj-badge.tier-1 { background: rgba(0, 210, 255, 0.15); color: var(--portal-blue); }
.proj-badge.tier-2 { background: rgba(200, 150, 77, 0.15); color: var(--brass-gold); }
.proj-badge.tier-3 { background: rgba(255, 255, 255, 0.1); color: var(--grey-200); }

.proj-info h4 {
  font-size: 0.95rem;
  color: var(--grey-100);
}

.proj-info p {
  font-size: 0.75rem;
  color: var(--grey-400);
}

.proj-link-btn {
  background: rgba(0, 120, 212, 0.2);
  border: 1px solid #0078d4;
  color: #fff;
  padding: 0.35rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-decoration: none;
  border-radius: 3px;
}

/* BICSI Staff Grid */
.bicsi-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.bicsi-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--grey-400);
  padding: 0.45rem 0.9rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.bicsi-filter-btn.active {
  background: rgba(200, 150, 77, 0.2);
  border-color: var(--brass-gold);
  color: #fff;
}

.staff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.staff-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.9rem;
  display: flex;
  gap: 0.9rem;
}

.staff-avatar {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: rgba(200, 150, 77, 0.2);
  border: 1px solid var(--brass-gold);
  color: var(--brass-gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.staff-avatar.tech {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--portal-blue);
  color: var(--portal-blue);
}

.staff-details h4 {
  font-size: 0.9rem;
  color: var(--grey-100);
}

.staff-details p {
  font-size: 0.75rem;
  color: var(--grey-400);
  margin: 0.2rem 0;
}

.cert-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  font-weight: bold;
}

.rcdd-pill {
  background: rgba(200, 150, 77, 0.15);
  color: var(--brass-gold);
}

.tech-pill {
  background: rgba(0, 210, 255, 0.15);
  color: var(--portal-blue);
}

.staff-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  margin-top: 0.2rem;
}

.staff-status.online { color: #00ffaa; }
.staff-status.standby { color: var(--chevron-amber); }

/* Training Modules Box */
.training-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-top: 0.6rem;
}

.train-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--portal-blue);
  padding: 0.3rem 0.6rem;
  background: rgba(0, 210, 255, 0.1);
  border-radius: 3px;
}

.enroll-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.35rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 3px;
}

.enroll-btn:hover {
  background: var(--brass-gold);
  color: #000;
}

/* Verse Image Reference */
.verse-reference-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .stargate-container {
    width: 480px;
    height: 480px;
  }
  .stargate-dialing-wheel {
    width: 420px;
    height: 420px;
  }
  .chevron {
    transform-origin: center 210px;
  }
  .portal-event-horizon {
    width: 200px;
    height: 200px;
  }
  .track-1 { width: 620px; height: 620px; }
  .track-2 { width: 720px; height: 720px; }

  .globe-onboarding { top: 10px; left: -40px; }
  .globe-payment { top: 10px; right: -40px; }
  .globe-projects { bottom: 10px; right: -40px; }
  .globe-bicsi { bottom: 10px; left: -40px; }
  
  .hud-telemetry { display: none; }
}

@media (max-width: 768px) {
  .portal-universe {
    padding-top: 5rem;
    padding-bottom: 4rem;
    overflow-y: auto;
  }
  .stargate-container {
    width: 340px;
    height: 340px;
  }
  .stargate-dialing-wheel {
    width: 300px;
    height: 300px;
  }
  .chevron {
    transform-origin: center 150px;
    width: 16px;
    height: 10px;
  }
  .portal-event-horizon {
    width: 140px;
    height: 140px;
  }
  .portal-core-emblem {
    width: 80px;
    height: 80px;
  }
  .tni-crest {
    max-width: 60px;
    max-height: 60px;
  }
  .track-1, .track-2, .steampunk-gear-layer { display: none; }

  .globes-nav {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    pointer-events: auto;
  }
  .globe-node {
    position: static;
    flex-direction: column !important;
    text-align: center !important;
  }
  .globe-label {
    min-width: unset;
    border: 1px solid rgba(0, 210, 255, 0.3) !important;
  }

  .form-row, .staff-grid {
    grid-template-columns: 1fr;
  }
  .portal-footer {
    font-size: 0.65rem;
    padding: 0 1rem;
  }
  .footer-center { display: none; }
}
