* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ==========================================
   DEFAULT STATE: LOGGED-OUT LIGHT MODE
   ========================================== */
body {
  background-color: #ffffff;
  color: #000000;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================
   RESPONSIVE NAVIGATION BAR
   ========================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #e5e7eb;
  padding: 15px 30px;
  border-bottom: 2px solid #d1d5db;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  gap: 15px;
}

.nav-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  flex: 0 0 auto;
}

.logo-link img {
  height: 50px;
  width: auto;
  display: block;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid #9ca3af;
  color: #1f2937;
  font-size: 1.5rem;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  gap: 20px;
}

.nav-links a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #3b82f6;
}

.nav-links a.active {
  color: #3b82f6;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 4px;
}

.search-profile-container {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.search-box {
  display: flex;
  position: relative;
}

.search-box input {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #000000;
  border-radius: 4px 0 0 4px;
  outline: none;
  min-width: 140px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.search-box button {
  padding: 8px 12px;
  background: #3b82f6;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
}

/* ==========================================
   OVERRIDE STATE: LOGGED-IN DARK MODE
   ========================================== */
html.dark-mode body,
body.dark-mode {
  background-color: #0b0f19;
  color: #e2e8f0;
}

html.dark-mode .navbar,
body.dark-mode .navbar {
  background-color: #111827;
  border-bottom: 2px solid #1f2937;
}

html.dark-mode .mobile-menu-btn,
body.dark-mode .mobile-menu-btn {
  color: #e2e8f0;
  border-color: #374151;
}

html.dark-mode .nav-links a,
body.dark-mode .nav-links a {
  color: #9ca3af;
}

html.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a:hover {
  color: #3b82f6;
}

html.dark-mode .search-box input,
body.dark-mode .search-box input {
  background: #1f2937;
  border: 1px solid #374151;
  color: #fff;
}

html.dark-mode .switch-oval,
body.dark-mode .switch-oval {
  background-color: #10b981;
}

html.dark-mode .switch-circle,
body.dark-mode .switch-circle {
  transform: translateX(22px);
}

/* ==========================================
   OVAL TOGGLE SWITCH & USER CONTROLS
   ========================================== */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

.switch-oval {
  position: relative;
  width: 50px;
  height: 26px;
  background-color: #cbd5e1;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  transition: background-color 0.3s ease;
}

.switch-circle {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.user-display {
  font-weight: bold;
  color: #10b981;
  background: #064e3b;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #047857;
  display: inline-block;
  cursor: pointer;
  white-space: nowrap;
}

.btn-nav {
  padding: 8px 14px;
  background-color: #374151;
  border: 1px solid #4b5563;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.btn-nav:hover {
  background-color: #4b5563;
}

#auth-nav-btn {
  background-color: #3b82f6;
  color: #ffffff;
  border: 1px solid #2563eb;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

#auth-nav-btn:hover {
  background-color: #1d4ed8;
}

.hidden {
  display: none !important;
}

/* ==========================================
   MODAL BOX CONTAINER INTERFACES
   ========================================== */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #111827;
  padding: 35px 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #1f2937;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.modal-content-wide {
  max-width: 600px;
}

.admin-log-box {
  max-height: 350px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.9rem;
  text-align: left;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  word-break: break-word;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 28px;
  cursor: pointer;
}

.close-btn:hover {
  color: white;
}

.modal-content h2 {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 25px;
  color: #3b82f6;
  letter-spacing: 1px;
  padding-right: 20px;
}

.auth-panel h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
  border-bottom: 1px solid #374151;
  padding-bottom: 8px;
  color: #ffffff;
}

.btn-primary {
  background-color: #10b981;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #059669;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #ffffff;
}

.input-group input {
  width: 100%;
  padding: 10px;
  background: #1f2937;
  border: 1px solid #374151;
  color: white;
  border-radius: 4px;
  outline: none;
}

.btn-link {
  background: none;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

.toggle-text {
  margin-top: 15px;
  font-size: 0.85rem;
  text-align: center;
  color: #ffffff;
}

.show-password-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.show-password-container label {
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
}
/* ==========================================================
   VULCAN SIRC WORKSPACE ALIGNMENT & RESPONSIVE MEDIA
   ========================================================== */
.main-content {
  text-align: center !important;
  width: 100%;
  max-width: 900px;
  margin: 0 auto !important;
  padding: 40px 24px;
  flex: 1;
}

.main-content h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.3;
}

.main-content h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: #ef4444 !important;
}

.main-content h4 {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  line-height: 1.5;
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
  text-align: center !important;
  margin-top: 30px !important;
  margin-bottom: 15px !important;
  width: 100% !important;
}

/* Specific Responsive Image Classes */
.hero-logo {
  max-height: 260px;
  width: auto;
  max-width: 80%;
  height: auto;
  display: block !important;
  margin: 25px auto !important;
  object-fit: contain;
}

.team-photo {
  max-height: 450px;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
}

.aqua-photo {
  max-height: 550px;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
}

.research-img-medium {
  max-height: 300px;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
}

.research-infographic {
  width: 100%;
  max-width: 750px;
  height: auto;
  border-radius: 8px;
}

.element-pair {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 25px auto;
  max-width: 750px;
}

.element-pair img {
  max-height: 240px;
  width: auto;
  max-width: 48%;
  margin: 0 !important;
  border-radius: 8px;
}

.main-content img,
.main-content canvas,
.main-content iframe,
.main-image-container,
.model-window {
  display: block !important;
  margin: 25px auto !important;
  text-align: center !important;
  max-width: 100%;
  height: auto;
}

.main-content p {
  text-align: left !important;
  line-height: 1.8 !important;
  max-width: 750px;
  margin: 0 auto 22px auto !important;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.main-content div.codename-list,
.main-content ul {
  text-align: left !important;
  max-width: 750px;
  margin: 10px auto !important;
  padding-left: 20px;
}

/* ==========================================
   3D PLASMA ENGINE CONTAINER (projects.html)
   ========================================== */
.engine-box-wrap {
  width: 100%;
  max-width: 700px;
  height: 450px;
  background: transparent;
  margin: 25px auto;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  touch-action: none;
  user-select: none;
}

#v-offline-canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  cursor: grab;
}

.engine-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #4a5568;
  font-family: sans-serif;
  font-size: 11px;
  pointer-events: none;
}

/* ==========================================
   PROFILE PAGE DOSSIER & EDIT FORMS
   ========================================== */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 25px auto;
  text-align: left;
}

.profile-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.profile-card-full {
  grid-column: 1 / -1;
}

html.dark-mode .profile-card,
body.dark-mode .profile-card {
  background: #111827;
  border-color: #1f2937;
}

.profile-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  gap: 12px;
  flex-wrap: wrap;
}

.profile-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: bold;
  color: #64748b;
}

.info-val {
  font-weight: 600;
  font-size: 0.98rem;
  color: #0f172a;
}

html.dark-mode .info-val,
body.dark-mode .info-val {
  color: #f8fafc;
}

.profile-field {
  margin-bottom: 14px;
}

.profile-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

html.dark-mode .profile-field label,
body.dark-mode .profile-field label {
  color: #cbd5e1;
}

.profile-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  outline: none;
}

html.dark-mode .profile-field input,
body.dark-mode .profile-field input {
  background: #1f2937;
  border-color: #374151;
  color: #ffffff;
}

.prof-check-label {
  color: #334155 !important;
  font-size: 0.85rem;
  cursor: pointer;
}

html.dark-mode .prof-check-label,
body.dark-mode .prof-check-label {
  color: #cbd5e1 !important;
}

.profile-pass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.profile-feedback {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.profile-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
}

.profile-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #ef4444;
}

/* ==========================================================
   DYNAMIC ADAPTIVE FOOTER BLOCK CONTAINER
   ========================================================== */
footer {
  text-align: center !important;
  padding: 15px 20px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  background-color: #e5e7eb !important;
  color: #4b5563 !important;
  border-top: 2px solid #d1d5db !important;
  width: 100% !important;
  margin-top: auto !important;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html.dark-mode footer,
body.dark-mode footer {
  background-color: #111827 !important;
  color: #9ca3af !important;
  border-top: 2px solid #1f2937 !important;
}

/* ==========================================
   GOOGLE-LIKE LIVE SEARCH POPUP
   ========================================== */
.search-popup {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1010;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
}

.search-popup-item {
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
  color: #64748b;
}

.search-popup-item:hover {
  background-color: #f8fafc;
}

.search-popup-item:last-child {
  border-bottom: none;
}

html.dark-mode .search-popup,
body.dark-mode .search-popup {
  background-color: #000000;
  border: 1px solid #374151;
}

html.dark-mode .search-popup-item,
body.dark-mode .search-popup-item {
  color: #ffffff;
  border-bottom: 1px solid #1f2937;
}

html.dark-mode .search-popup-item:hover,
body.dark-mode .search-popup-item:hover {
  background-color: #111827;
}
/* ==========================================
   VULCAN RESEARCH SEGMENTED ROADMAP
   ========================================== */
:root {
  --tl-inactive-ring: #6b7280;
  --tl-inactive-core: #4b5563;
  --tl-track-grey: #4b5563;
}

body.light-mode {
  --tl-inactive-ring: #6b7280;
  --tl-inactive-core: #9ca3af;
  --tl-track-grey: #d1d5db;
}

.vulcan-timeline-container {
  width: 100%;
  margin: 50px auto;
  padding: 20px 0 60px 0;
  background-color: transparent;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.timeline-nodes-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 155px);
  width: max-content;
}

.timeline-node-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.outer-node-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--tl-inactive-ring);
  box-sizing: border-box;
  z-index: 2;
}

.inner-node-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--tl-inactive-core);
}

.timeline-node-item::after {
  content: '';
  position: absolute;
  top: 17px;
  left: calc(50% + 20px);
  width: 115px;
  height: 6px;
  border-radius: 3px;
  z-index: 1;
}

.active-green .outer-node-ring { border-color: #2ecc71; }
.active-green .inner-node-core { background-color: #2ecc71; }
.active-green::after { background: linear-gradient(90deg, #2ecc71, #27ae60); }

.active-green-partial .outer-node-ring { border-color: #2ecc71; }
.active-green-partial .inner-node-core { background-color: #2ecc71; }
.active-green-partial::after {
  background: linear-gradient(90deg,
    #2ecc71 0%,
    #27ae60 80%,
    var(--tl-track-grey) 80%,
    var(--tl-track-grey) 100%
  );
}

.launch-node .outer-node-ring { border-color: var(--tl-inactive-ring); }
.launch-node .inner-node-core { background-color: var(--tl-inactive-core); }
.launch-node::after { background-color: var(--tl-track-grey); }

.active-grey .outer-node-ring { border-color: var(--tl-inactive-ring); }
.active-grey .inner-node-core { background-color: var(--tl-inactive-core); }
.active-grey::after { background-color: var(--tl-track-grey); }

.last-node::after { display: none !important; }

.node-content {
  position: absolute;
  top: 52px;
  width: 140px;
  text-align: center;
}

.node-content h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 !important;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

/* ==========================================
   VULCAN SYSTEM LINK STATE ARCHITECTURE
   ========================================== */
a:link {
  color: #00d2ff;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:visited {
  color: #a8a29e;
  text-decoration: none;
}

a:hover {
  color: #2ecc71;
  text-decoration: underline;
}

a:active {
  color: #e74c3c;
}

body.light-mode a:link { color: #0056b3; }
body.light-mode a:visited { color: #718096; }
body.light-mode a:hover { color: #27ae60; }
body.light-mode a:active { color: #c0392b; }

/* ==========================================
   VULCAN AEROSPACE TABLE STYLING
   ========================================== */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 25px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.rocket-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-family: sans-serif;
  text-align: left;
  background: #ffffff;
  color: #1e293b;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.rocket-table thead tr {
  background: #0f172a;
  border-bottom: 2px solid #38bdf8;
}

.rocket-table th {
  padding: 14px;
  font-weight: 600;
  color: #38bdf8;
}

.rocket-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
}

.rocket-table tbody tr:last-child {
  border-bottom: none;
}

.rocket-table td {
  padding: 12px 14px;
}

.rocket-table .rocket-name {
  font-weight: bold;
  color: #0369a1;
}

html.dark-mode .table-container,
body.dark-mode .table-container {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

html.dark-mode .rocket-table,
body.dark-mode .rocket-table {
  background: #1e293b;
  color: #f8fafc;
}

html.dark-mode .rocket-table tbody tr,
body.dark-mode .rocket-table tbody tr {
  border-bottom: 1px solid #334155;
}

html.dark-mode .rocket-table .rocket-name,
body.dark-mode .rocket-table .rocket-name {
  color: #bae6fd;
}

html.dark-mode .rocket-table tbody tr:hover,
body.dark-mode .rocket-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================
   VULCAN AEROSPACE FLIGHT SIMULATION DECK
   ========================================== */
.system-section {
  margin-top: 40px;
}

.vulcan-terminal-header {
  background: #0f172a;
  border: 1px solid #e2e8f0;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-title {
  color: #64748b;
  font-family: monospace;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: left;
}

.vulcan-deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 12px 12px;
  padding: 24px;
  font-family: sans-serif;
}

.vulcan-card {
  display: flex;
  flex-direction: column;
}

.card-header {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 20px;
  border-left: 3px solid #0284c7;
  padding-left: 8px;
  font-family: monospace;
  text-align: left;
}

.slider-wrapper {
  margin-bottom: 20px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: bold;
  color: #0f172a;
  margin-bottom: 6px;
  font-family: monospace;
}

.glitch-value {
  color: #0284c7;
  font-weight: bold;
}

.slider-wrapper input[type="range"] {
  width: 100%;
  accent-color: #0284c7;
  cursor: pointer;
}

.vulcan-btn {
  background: #0f172a;
  color: white;
  border: none;
  padding: 14px;
  font-family: monospace;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  margin-top: auto;
  transition: background 0.2s ease;
}

.vulcan-btn:hover {
  background: #0284c7;
}

.gauge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.telemetry-node {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px;
  border-radius: 8px;
}

.node-label {
  font-size: 10px;
  color: #64748b;
  font-family: monospace;
}

.node-data {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: bold;
  color: #0f172a;
  font-family: monospace;
  margin-top: 4px;
}

.unit {
  font-size: 12px;
  color: #94a3b8;
}

.trajectory-canvas-wrap {
  position: relative;
  width: 100%;
  background: #f1f5f9;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

#flightCanvas {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}

.status-ticker {
  background: #0f172a;
  padding: 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 11px;
  text-align: left;
  word-break: break-word;
}

.ticker-tag { color: #64748b; }
.ticker-text { color: #38bdf8; }

html.dark-mode .trajectory-canvas-wrap,
body.dark-mode .trajectory-canvas-wrap { background: #090d16; border-color: #334155; }
html.dark-mode .vulcan-terminal-header,
body.dark-mode .vulcan-terminal-header { background: #090d16; border-color: #334155; }
html.dark-mode .terminal-title,
body.dark-mode .terminal-title { color: #38bdf8; }
html.dark-mode .vulcan-deck-grid,
body.dark-mode .vulcan-deck-grid { background: #0b0f19; border-color: #334155; }
html.dark-mode .slider-header,
body.dark-mode .slider-header { color: #cbd5e1; }
html.dark-mode .glitch-value,
body.dark-mode .glitch-value { color: #38bdf8; }
html.dark-mode .telemetry-node,
body.dark-mode .telemetry-node { background: #111827; border-color: #1e293b; }
html.dark-mode .node-data,
body.dark-mode .node-data { color: #ffffff; }
html.dark-mode .vulcan-btn,
body.dark-mode .vulcan-btn { background: #1e293b; border: 1px solid #38bdf8; color: #38bdf8; }
html.dark-mode .vulcan-btn:hover,
body.dark-mode .vulcan-btn:hover { background: #38bdf8; color: #0f172a; }

/* ==========================================
   FLOATING BACK TO TOP BUTTON
   ========================================== */
#backToTopBtn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #0f172a;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

#backToTopBtn:hover {
  background-color: #0284c7;
  transform: translateY(-3px);
}

html.dark-mode #backToTopBtn,
body.dark-mode #backToTopBtn {
  background-color: #38bdf8;
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

html.dark-mode #backToTopBtn:hover,
body.dark-mode #backToTopBtn:hover {
  background-color: #7dd3fc;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
}

/* ==========================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================== */
@media (max-width: 992px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px;
  }

  .nav-top-row {
    width: 100%;
  }

  .mobile-menu-btn {
    display: inline-block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 12px 0;
    gap: 14px;
    border-top: 1px solid rgba(156, 163, 175, 0.3);
    border-bottom: 1px solid rgba(156, 163, 175, 0.3);
  }

  .nav-links.open {
    display: flex;
  }

  .search-profile-container {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .search-box {
    flex: 1 1 220px;
    max-width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .vulcan-timeline-container {
    display: block;
    padding: 20px;
  }

  .timeline-nodes-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
  }

  .timeline-node-item {
    flex-direction: row;
    width: 100%;
    align-items: center;
  }

  .timeline-node-item::after {
    top: 40px;
    left: 17px;
    width: 6px;
    height: 50px;
  }

  .active-green-partial::after {
    background: linear-gradient(180deg,
      #2ecc71 0%,
      #27ae60 80%,
      var(--tl-track-grey) 80%,
      var(--tl-track-grey) 100%
    );
  }

  .node-content {
    position: relative;
    top: 0;
    text-align: left;
    margin-left: 20px;
    width: auto;
  }

  .node-content h3 {
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .main-content {
    padding: 24px 16px;
  }

  .hero-logo {
    max-height: 170px;
    max-width: 70%;
  }

  .logo-link img {
    height: 42px;
  }

  .element-pair img {
    max-width: 100%;
    max-height: 220px;
  }

  .engine-box-wrap {
    height: 320px;
  }

  .modal-content {
    padding: 26px 18px;
  }

  .vulcan-deck-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .gauge-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
}
.user-display {
  font-weight: bold;
  color: #ffffff;
  background: #10b981;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #059669;
  display: inline-block;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html.dark-mode .user-display,
body.dark-mode .user-display {
  color: #10b981;
  background: #064e3b;
  border-color: #047857;
}
/* Individual Sizing for Research Infographics (No HTML changes needed) */

/* 1. plasma.png: Keep at 480px max-height (360px on phone) */
img[src="plasma.png"].research-infographic {
  width: auto !important;
  max-width: 100% !important;
  max-height: 480px !important;
  height: auto !important;
}

/* 2. idkidc.webp: Restore full readable width like before */
img[src="idkidc.webp"].research-infographic {
  width: 100% !important;
  max-width: 750px !important;
  max-height: none !important;
  height: auto !important;
}

/* 3. rahatftal.jpg: Let it span readable width instead of shrinking by height */
img[src="rahatftal.jpg"].research-infographic {
  width: 100% !important;
  max-width: 550px !important;
  max-height: none !important;
  height: auto !important;
}

@media (max-width: 600px) {
  img[src="plasma.png"].research-infographic {
    max-height: 360px !important;
  }

  img[src="idkidc.webp"].research-infographic,
  img[src="rahatftal.jpg"].research-infographic {
    max-width: 100% !important;
  }
}
.search-popup {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
}

.search-result-item {
  display: block;
  padding: 10px 14px;
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f1f5f9;
}

body.dark-mode .search-popup {
  background: #0f172a;
  border-color: #334155;
}

body.dark-mode .search-result-item {
  color: #f8fafc;
  border-bottom-color: #1e293b;
}

body.dark-mode .search-result-item:hover {
  background: #1e293b;
}


