/* 
  Omics Lab — Visual Components (components.css)
  Author: Antigravity
  Date: May 2026
*/

/* ==========================================================================
   1. Navigation Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 110px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), backdrop-filter var(--transition-normal), height var(--transition-normal);
}

.header.scrolled {
  height: 85px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-img {
  display: block;
  width: auto;
  transition: height var(--transition-normal), max-height var(--transition-normal);
}

/* Beautiful dynamic logo scroll scaling */
.header.scrolled .logo-img {
  height: 72px !important;
  max-height: 72px !important;
}

.logo-img-light {
  display: none; /* Hide light logo in dark mode */
}

.logo-img-dark {
  display: block; /* Show dark logo in dark mode */
}

html[data-theme="light"] .logo-img-light {
  display: block !important; /* Show light logo in light mode */
}

html[data-theme="light"] .logo-img-dark {
  display: none !important; /* Hide dark logo in light mode */
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .subtitle {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--color-cellular-green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-menu {
  display: none;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
  }
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-cellular-green);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ==========================================================================
   2. Theme Toggle & Hamburger
   ========================================================================== */

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--color-cellular-green);
  background-color: rgba(20, 184, 166, 0.05);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform var(--transition-normal);
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .hamburger-btn {
    display: none;
  }
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  border-radius: 2px;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--color-cellular-green);
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: 'Inter', sans-serif;
  gap: 0.5rem;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-cellular-green);
  color: var(--color-deep-bio-blue);
}

.btn-primary:hover {
  background: var(--gradient-signature);
  color: #FFFFFF;
  box-shadow: 0 0 20px var(--glow-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--color-cellular-green);
  color: var(--color-cellular-green);
}

.btn-secondary:hover {
  background-color: rgba(20, 184, 166, 0.08);
  border-color: var(--color-cellular-green);
  box-shadow: 0 0 15px var(--glow-color);
  transform: translateY(-2px);
}

.btn-tertiary {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-cellular-green);
  font-weight: 600;
  gap: 0.25rem;
  position: relative;
}

.btn-tertiary:hover {
  color: var(--color-genomics-purple);
}

.btn-tertiary svg {
  transition: transform var(--transition-fast);
}

.btn-tertiary:hover svg {
  transform: translateX(4px);
}

.btn-disabled {
  background-color: var(--text-muted);
  color: var(--bg-primary);
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   4. Glassmorphism Cards
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15), 0 0 20px var(--glow-color);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cellular-green);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.card:hover .card-icon-wrapper {
  background: var(--gradient-accent);
  color: #FFFFFF;
  border-color: transparent;
}

/* ==========================================================================
   5. Badges & Tags
   ========================================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'IBM Plex Mono', monospace;
  background: rgba(124, 58, 237, 0.12);
  color: var(--color-genomics-purple);
  border: 1px solid rgba(124, 58, 237, 0.25);
  margin-bottom: 0.5rem;
}

.tag-green {
  background: rgba(20, 184, 166, 0.12);
  color: var(--color-cellular-green);
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.tag-gold {
  background: rgba(251, 191, 36, 0.12);
  color: var(--color-annotation-gold);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

/* ==========================================================================
   6. Custom Forms & Inputs
   ========================================================================== */

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: rgba(8, 31, 59, 0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

:root[data-theme="light"] .form-control {
  background-color: #FFFFFF;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-cellular-green);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.form-control.error {
  border-color: var(--color-expression-red);
}

.form-control.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error-msg {
  font-size: 0.8rem;
  color: var(--color-expression-red);
  margin-top: 0.25rem;
  display: none;
}

.char-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  position: absolute;
  right: 0;
  bottom: -1.25rem;
}

/* Dropdowns & Radio Buttons */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314B8A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.radio-input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 50%;
  outline: none;
  background-color: transparent;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.radio-input:checked {
  border-color: var(--color-cellular-green);
}

.radio-input::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform var(--transition-fast);
  background-color: var(--color-cellular-green);
}

.radio-input:checked::before {
  transform: scale(1);
}

/* Spinner Loader */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #FFFFFF;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.footer {
  background-color: var(--color-graphite);
  border-top: 1px solid var(--border);
  color: #94A3B8;
  padding: 5rem 0 2rem;
}

:root[data-theme="light"] .footer {
  background-color: #EFF6FF;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo-col p {
  font-size: 0.9rem;
  margin-top: 1rem;
  color: #94A3B8;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-cellular-green);
  padding-left: 4px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

:root[data-theme="light"] .footer-social-link {
  background-color: rgba(8, 31, 59, 0.05);
}

.footer-social-link:hover {
  background-color: var(--color-cellular-green);
  color: var(--color-deep-bio-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

:root[data-theme="light"] .footer-bottom {
  border-top-color: rgba(8, 31, 59, 0.05);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.85rem;
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.footer-legal-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-link:hover {
  color: var(--color-cellular-green);
}

/* ==========================================================================
   8. Scroll To Top Button
   ========================================================================== */

.scroll-top-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  z-index: 99;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
}

/* ==========================================================================
   9. Accordion (FAQ)
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
  color: var(--color-cellular-green);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-content {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.faq-content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   10. Interactive Branching Workflow Timeline (Refined Linear Path)
   ========================================================================== */

.workflow-timeline-section {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.05), transparent 50%),
    radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.03), transparent 50%),
    linear-gradient(rgba(20, 184, 166, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px, 24px 24px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 0;
}

.workflow-timeline-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Horizontal connecting line */
.workflow-connect-line {
  position: absolute;
  top: 195px;
  left: 12%;
  width: 76%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-cellular-green) 0%, var(--color-genomics-purple) 100%);
  z-index: 1;
  display: none; /* Desktop only */
  opacity: 0.4;
}

.workflow-connect-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-cellular-green), transparent);
  background-size: 200% 100%;
  animation: line-pulse 3s linear infinite;
}

@keyframes line-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.workflow-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 2;
  padding: 1rem;
}

@media (min-width: 1024px) {
  .workflow-connect-line {
    display: block;
  }
  
  .workflow-cards-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0;
  }
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.timeline-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.25), 0 0 20px var(--glow-color);
  transform: translateY(-4px);
}

.timeline-card-step {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-cellular-green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.timeline-card-graphic-box {
  height: 100px;
  background: rgba(5, 13, 26, 0.35);
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-card:hover .timeline-card-graphic-box {
  border-color: var(--border-hover);
}

.timeline-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
}

.timeline-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Interactive Path Toggle Inside Card 4 */
.path-toggle-wrapper {
  display: flex;
  background: rgba(5, 13, 26, 0.5);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px;
  margin-bottom: 1.25rem;
}

.path-toggle-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted) !important;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.path-toggle-btn.active {
  background: var(--gradient-accent);
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
}

.path-content-panel {
  display: none;
  animation: path-fade-in 0.4s ease-out forwards;
}

.path-content-panel.active {
  display: block;
}

@keyframes path-fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   11. Interactive Computational Pipeline Console & Premium Upgrades
   ========================================================================== */

.console-section {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.console-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(20, 184, 166, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px, 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.console-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  background: rgba(5, 9, 17, 0.85);
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 
    0 30px 70px -10px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(20, 184, 166, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .console-wrapper {
    grid-template-columns: 1fr 1.6fr;
  }
}

/* Tech target corners */
.console-wrapper::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; width: 14px; height: 14px;
  border-top: 2px solid var(--color-cellular-green);
  border-left: 2px solid var(--color-cellular-green);
  z-index: 10;
  pointer-events: none;
}

.console-wrapper::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px; width: 14px; height: 14px;
  border-bottom: 2px solid var(--color-genomics-purple);
  border-right: 2px solid var(--color-genomics-purple);
  z-index: 10;
  pointer-events: none;
}

.console-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.console-tab-btn {
  background: rgba(5, 9, 17, 0.35);
  border: 1px dashed rgba(20, 184, 166, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  outline: none;
  font-family: inherit;
  color: var(--text-secondary) !important;
}

.console-tab-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-cellular-green) 0%, var(--color-genomics-purple) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.console-tab-btn:hover {
  border-style: solid;
  border-color: rgba(20, 184, 166, 0.4);
  background: rgba(20, 184, 166, 0.03);
  transform: translateX(4px);
}

.console-tab-btn.active {
  background: radial-gradient(circle at left center, rgba(20, 184, 166, 0.08) 0%, rgba(5, 9, 17, 0.85) 100%);
  border: 1px solid var(--color-cellular-green);
  box-shadow: 0 0 25px rgba(20, 184, 166, 0.12), inset 0 0 10px rgba(20, 184, 166, 0.05);
  color: var(--text-primary) !important;
}

.console-tab-btn.active::before {
  opacity: 1;
}

.tab-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.tab-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-cellular-green);
  font-weight: 600;
}

.tab-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cellular-green);
  box-shadow: 0 0 6px var(--color-cellular-green);
  animation: status-pulse 1.5s infinite alternate;
}

@keyframes status-pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

.tab-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary) !important;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.console-tab-btn:hover .tab-title {
  color: var(--color-cellular-green) !important;
}

.console-tab-btn.active .tab-title {
  color: #FFFFFF !important;
}

:root[data-theme="light"] .console-tab-btn.active .tab-title {
  color: var(--color-deep-bio-blue) !important;
}

.tab-desc {
  font-size: 0.85rem;
  color: var(--text-secondary) !important;
  line-height: 1.5;
  margin: 0;
  transition: color var(--transition-fast);
}

.console-tab-btn.active .tab-desc {
  color: var(--text-secondary) !important;
}

/* Console Monitor Screen on the right */
.console-monitor {
  background: #02050a;
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 12px;
  box-shadow: 
    inset 0 0 35px rgba(0, 0, 0, 0.95), 
    0 15px 35px -5px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(20, 184, 166, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  position: relative;
}

/* Phosphor scanlines and CRT curved overlay style */
.console-monitor::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(20, 184, 166, 0.03), rgba(124, 58, 237, 0.01), rgba(20, 184, 166, 0.03));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  z-index: 10;
}

.console-monitor::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, transparent 65%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
  z-index: 11;
}

.console-topbar {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.console-window-dots {
  display: flex;
  gap: 6px;
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #FBBF24; }
.dot-green { background: #10B981; }

.console-viewport {
  flex-grow: 1;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.console-panel {
  display: none;
  height: 100%;
  animation: panel-fade 0.5s ease-out forwards;
}

.console-panel.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

@keyframes panel-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.console-visual-display {
  flex-grow: 1;
  min-height: 160px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(20, 184, 166, 0.1);
  border-radius: 8px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.console-visual-display::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.console-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.console-meta-item strong {
  color: var(--color-cellular-green);
}

/* Simulated terminal output logs shell */
.console-terminal-shell {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(20, 184, 166, 0.1);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #a3b3c6;
  min-height: 120px;
  max-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.terminal-log-line {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  line-height: 1.4;
  animation: term-fade 0.2s ease-out forwards;
}

.terminal-log-line.cmd {
  color: var(--color-cellular-green);
  font-weight: 500;
}

.terminal-log-line.info {
  color: var(--text-secondary);
}

.terminal-log-line.success {
  color: #10B981;
}

.terminal-log-line.warn {
  color: var(--color-annotation-gold);
}

.console-cmd-bar {
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.65rem 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--color-cellular-green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cmd-blink {
  animation: command-blink 1s steps(2, start) infinite;
}

@keyframes command-blink {
  to { visibility: hidden; }
}

/* Premium ambient spotlight banner layout style */
.cta-ambient-banner {
  background-color: #050d1a;
  background-image: 
    radial-gradient(circle at 15% 30%, rgba(20, 184, 166, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(124, 58, 237, 0.12) 0%, transparent 45%),
    linear-gradient(rgba(20, 184, 166, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 20px 20px, 20px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-ambient-banner::before {
  content: '';
  position: absolute;
  top: -1px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.25), transparent);
  z-index: 1;
}

.cta-ambient-banner::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2), transparent);
  z-index: 1;
}

/* Dynamic visual upgrades for standard cards */
.card-grid-enhanced {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid-enhanced {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-grid-enhanced .card {
  background: linear-gradient(135deg, rgba(8, 31, 59, 0.25) 0%, rgba(10, 14, 19, 0.55) 100%);
  border: 1px solid rgba(20, 184, 166, 0.15);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-slow);
}

.card-grid-enhanced .card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.card-grid-enhanced .card:hover::after {
  opacity: 1;
}

.card-grid-enhanced .card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35), 0 0 25px rgba(20, 184, 166, 0.15);
}

/* ==========================================================================
   12. Console Section Light Theme Adapters
   ========================================================================== */

:root[data-theme="light"] .console-wrapper {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(8, 31, 59, 0.12);
  box-shadow: 
    0 30px 70px -10px rgba(8, 31, 59, 0.08),
    0 0 40px rgba(20, 184, 166, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

:root[data-theme="light"] .console-tab-btn {
  background: rgba(8, 31, 59, 0.02);
  border-color: rgba(8, 31, 59, 0.08);
  color: var(--text-secondary) !important;
}

:root[data-theme="light"] .console-tab-btn:hover {
  background: rgba(20, 184, 166, 0.03);
  border-color: rgba(20, 184, 166, 0.3);
}

:root[data-theme="light"] .console-tab-btn.active {
  background: radial-gradient(circle at left center, rgba(20, 184, 166, 0.06) 0%, #FFFFFF 100%);
  border-color: var(--color-cellular-green);
  box-shadow: 
    0 8px 24px rgba(20, 184, 166, 0.08),
    inset 0 0 10px rgba(20, 184, 166, 0.02);
  color: var(--text-primary) !important;
}

:root[data-theme="light"] .tab-title {
  color: var(--text-primary) !important;
}

:root[data-theme="light"] .console-tab-btn:hover .tab-title {
  color: var(--color-cellular-green) !important;
}

:root[data-theme="light"] .console-tab-btn.active .tab-title {
  color: var(--color-deep-bio-blue) !important;
}

:root[data-theme="light"] .tab-desc {
  color: var(--text-secondary) !important;
}

:root[data-theme="light"] .console-tab-btn.active .tab-desc {
  color: var(--text-secondary) !important;
}

:root[data-theme="light"] .console-meta-grid {
  border-top-color: rgba(8, 31, 59, 0.08);
}

/* Light Mode Spectrometer Monitor Screen Overhaul */
:root[data-theme="light"] .console-monitor {
  background: #F8FAFC;
  border-color: rgba(8, 31, 59, 0.12);
  box-shadow: 
    inset 0 0 20px rgba(8, 31, 59, 0.02),
    0 15px 35px -5px rgba(8, 31, 59, 0.08);
}

:root[data-theme="light"] .console-monitor::before {
  background: linear-gradient(rgba(255, 255, 255, 0) 50%, rgba(8, 31, 59, 0.02) 50%);
  background-size: 100% 4px;
  opacity: 0.3;
}

:root[data-theme="light"] .console-monitor::after {
  background: radial-gradient(circle, transparent 75%, rgba(8, 31, 59, 0.03) 100%);
}

:root[data-theme="light"] .console-topbar {
  background: rgba(8, 31, 59, 0.03);
  border-bottom-color: rgba(8, 31, 59, 0.08);
  color: var(--text-muted);
}

:root[data-theme="light"] .console-visual-display {
  background: #FFFFFF;
  border-color: rgba(8, 31, 59, 0.08);
  box-shadow: 0 4px 12px rgba(8, 31, 59, 0.02);
}

:root[data-theme="light"] .console-visual-display::before {
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.04) 0%, transparent 70%);
}

:root[data-theme="light"] .console-terminal-shell {
  background: #FFFFFF;
  border-color: rgba(8, 31, 59, 0.08);
  color: var(--text-secondary);
  box-shadow: inset 0 0 10px rgba(8, 31, 59, 0.02);
}

:root[data-theme="light"] .terminal-log-line.cmd {
  color: var(--color-deep-bio-blue);
}

:root[data-theme="light"] .terminal-log-line.info {
  color: var(--text-secondary);
}

:root[data-theme="light"] .terminal-log-line.success {
  color: #059669; /* Rich legible emerald green for light success */
}

:root[data-theme="light"] .console-cmd-bar {
  background: rgba(8, 31, 59, 0.03);
  border-top-color: rgba(8, 31, 59, 0.08);
  color: var(--color-deep-bio-blue);
}

/* SVG Vector Line adaptation for light mode */
:root[data-theme="light"] .console-visual-display svg line {
  stroke: rgba(8, 31, 59, 0.08) !important;
}

:root[data-theme="light"] .console-visual-display svg path[stroke="rgba(255,255,255,0.06)"],
:root[data-theme="light"] .console-visual-display svg path[stroke="var(--border)"] {
  stroke: rgba(8, 31, 59, 0.1) !important;
}

:root[data-theme="light"] .console-visual-display svg text {
  fill: var(--text-primary) !important;
}

:root[data-theme="light"] .console-visual-display svg rect[fill="#06090e"] {
  fill: #FFFFFF !important;
  stroke: rgba(8, 31, 59, 0.12) !important;
}
