/* ==========================================================================
   NULLPOINT™ — UI Components & Micro-Interactions
   ========================================================================== */

/* Custom Cursor (Desktop Only) */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.05s linear;
  box-shadow: 0 0 10px var(--accent-blue);
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: calc(var(--z-cursor) - 1);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s, background-color 0.3s;
}

body.cursor-hover .custom-cursor {
  transform: translate(-50%, -50%) scale(0.4);
  background-color: var(--accent-purple);
}

body.cursor-hover .custom-cursor-follower {
  width: 60px;
  height: 60px;
  border-color: var(--accent-purple);
  background-color: rgba(139, 92, 246, 0.08);
}

@media (pointer: coarse), (max-width: 1024px) {
  .custom-cursor, .custom-cursor-follower {
    display: none !important;
  }
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-color var(--transition-normal);
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.site-header.scrolled {
  background-color: rgba(7, 7, 11, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  flex-wrap: nowrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(7, 7, 11, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.brand-mark-img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.55));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.brand-logo:hover .brand-mark {
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.45);
}

.brand-logo:hover .brand-mark-img {
  transform: rotate(20deg) scale(1.08);
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.9));
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  white-space: nowrap;
}

.brand-tm {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-purple);
}

/* Corporate Live Status Pill */
.corporate-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 32px;
  padding: 0 0.85rem;
  background: rgba(14, 15, 26, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 320px;
  line-height: 1;
  user-select: none;
}

.corporate-status-pill:hover {
  border-color: var(--accent-purple);
  background: rgba(22, 24, 42, 0.95);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-success);
  box-shadow: 0 0 8px var(--accent-success);
  transition: background-color 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.status-dot.questionable {
  background-color: var(--accent-warning);
  box-shadow: 0 0 8px var(--accent-warning);
}

.status-dot.collapsing {
  background-color: var(--accent-danger);
  box-shadow: 0 0 8px var(--accent-danger);
}

.status-dot.glitch {
  animation: pulseGlitch 0.4s infinite alternate;
}

.status-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Sound Toggle Button */
.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sound-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.1);
}

.sound-toggle-btn.active {
  color: var(--accent-blue);
  border-color: rgba(0, 223, 216, 0.4);
  box-shadow: 0 0 12px rgba(0, 223, 216, 0.2);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  height: calc(100dvh - var(--nav-height));
  background: rgba(7, 7, 11, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 2.5rem;
  z-index: calc(var(--z-header) - 1);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #00dfd8 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.55), 0 0 15px rgba(0, 223, 216, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-cyan {
  background: rgba(0, 223, 216, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 223, 216, 0.3);
}

.btn-cyan:hover {
  background: rgba(0, 223, 216, 0.18);
  box-shadow: 0 0 20px rgba(0, 223, 216, 0.3);
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.775rem;
  line-height: 1.2;
  height: 32px;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* Light sweep effect on button */
.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.btn-shine:hover::after {
  transform: rotate(25deg) translateY(100%);
}

/* ==========================================================================
   Glassmorphism Cards (with cursor-following spotlight)
   ========================================================================== */
.glass-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .glass-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }
}

/* Dynamic radial gradient following mouse inside card */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(139, 92, 246, 0.12),
    transparent 40%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

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

.glass-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(139, 92, 246, 0.15);
}

/* Card Tilt Wrapper */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ==========================================================================
   Telemetry / Corporate Tickers
   ========================================================================== */
.telemetry-ticker {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.65rem 1.25rem;
  background: rgba(12, 13, 22, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.telemetry-ticker::-webkit-scrollbar {
  display: none;
}

.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.telemetry-label {
  color: var(--text-dim);
}

.telemetry-val {
  color: var(--text-highlight);
  font-weight: 600;
}

.telemetry-val.highlight-purple {
  color: var(--accent-purple);
}

.telemetry-val.highlight-cyan {
  color: var(--accent-blue);
}

/* ==========================================================================
   Toast Notification System (Absurd Corporate Alerts)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 380px;
  pointer-events: none;
}

.toast {
  position: relative;
  background: rgba(14, 15, 26, 0.95);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-purple);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.4s;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.toast-warning {
  border-left-color: var(--accent-warning);
}

.toast.toast-cyan {
  border-left-color: var(--accent-blue);
}

.toast.toast-danger {
  border-left-color: var(--accent-danger);
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent-purple);
  margin-top: 2px;
}

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.toast-msg {
  font-size: 0.775rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.2rem;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Modals & Prospectus Dialogs
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 7, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(139, 92, 246, 0.25);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.35s var(--ease-out-expo);
  position: relative;
}

.modal-overlay.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: #fff;
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.2);
}

/* ==========================================================================
   Infinite 99% Corporate Progress Bar
   ========================================================================== */
.pointless-progress-widget {
  background: rgba(14, 15, 26, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.775rem;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  border-radius: 3px;
  position: relative;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(0, 223, 216, 0.5);
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: #ffffff;
  filter: blur(1px);
}

/* Header & Navigation Responsive Breakpoints */
@media (max-width: 1320px) {
  .corporate-status-pill {
    display: none;
  }
  .nav-links {
    gap: 1.25rem;
  }
}

@media (max-width: 1140px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  .nav-btn-boss,
  .nav-btn-sfx {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 64px;
  }
  .nav-container {
    padding: 0 1rem;
    gap: 0.5rem;
  }
  .brand-logo {
    font-size: 1.1rem;
    gap: 0.5rem;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .nav-actions {
    gap: 0.5rem;
  }
  .nav-actions .cta-initiate-nothing {
    display: none;
  }
  .sound-toggle-btn {
    width: 34px;
    height: 34px;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 640px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
  .modal-overlay {
    padding: 1rem;
  }
  .modal-dialog {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-lg);
    max-height: 90dvh;
  }
  .modal-close-btn {
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
  }
  .soundboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* ==========================================================================
   Boss Key / Fake Microsoft Excel Spreadsheet Interface Overlay
   ========================================================================== */
.boss-spreadsheet-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  color: #000000;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  user-select: none;
}

.excel-titlebar {
  background: #107c41;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

.excel-title-left {
  display: flex;
  align-items: center;
}

.excel-logo {
  background: #0d5f32;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  margin-right: 0.6rem;
}

.excel-close-boss-btn {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.7rem;
}

.excel-close-boss-btn:hover {
  background: #e81123;
  border-color: #e81123;
}

.excel-ribbon {
  background: #f3f2f1;
  border-bottom: 1px solid #d2d0ce;
}

.excel-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem 0;
  font-size: 0.75rem;
  color: #323130;
}

.excel-tabs span {
  padding: 0.3rem 0.75rem;
  cursor: pointer;
}

.excel-tabs span.active {
  background: #107c41;
  color: #fff;
  font-weight: 600;
  border-radius: 2px 2px 0 0;
}

.excel-tabs span.active-tab {
  background: #ffffff;
  border: 1px solid #d2d0ce;
  border-bottom: 1px solid #ffffff;
  font-weight: 600;
  border-radius: 2px 2px 0 0;
}

.excel-toolbar {
  background: #ffffff;
  padding: 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid #e1dfdd;
}

.excel-tool-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  border-radius: 2px;
  cursor: pointer;
}

.excel-tool-btn:hover {
  background: #f3f2f1;
  border-color: #d2d0ce;
}

.excel-tool-divider {
  width: 1px;
  height: 18px;
  background: #d2d0ce;
  margin: 0 0.2rem;
}

.excel-select {
  font-size: 0.75rem;
  padding: 0.15rem 0.3rem;
  border: 1px solid #d2d0ce;
}

.excel-formulabar {
  background: #ffffff;
  border-bottom: 1px solid #d2d0ce;
  display: flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
}

.excel-fx-cell {
  width: 50px;
  font-weight: 600;
  border-right: 1px solid #d2d0ce;
  padding-right: 0.4rem;
}

.excel-fx-label {
  font-style: italic;
  font-weight: 700;
  color: #605e5c;
  padding: 0 0.5rem;
}

.excel-fx-input {
  flex-grow: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.775rem;
  color: #201f1e;
}

.excel-grid-container {
  flex-grow: 1;
  overflow: auto;
  background: #ffffff;
}

.excel-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.75rem;
}

.excel-table th, .excel-table td {
  border: 1px solid #e1dfdd;
  padding: 0.25rem 0.5rem;
  min-width: 80px;
  height: 22px;
}

.excel-table th {
  background: #f3f2f1;
  font-weight: 500;
  color: #605e5c;
  text-align: center;
}

.excel-table th.row-num, .excel-table td.row-num {
  background: #f3f2f1;
  width: 35px;
  min-width: 35px;
  text-align: center;
  color: #605e5c;
  font-weight: 500;
}

.excel-cell {
  background: #ffffff;
  color: #201f1e;
  outline: none;
}

.excel-cell.excel-header-cell {
  font-weight: 700;
  background: #faf9f8;
}

.excel-cell.selected {
  outline: 2px solid #107c41 !important;
  background: rgba(16, 124, 65, 0.08);
}

.excel-bottom-bar {
  background: #f3f2f1;
  border-top: 1px solid #d2d0ce;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
}

.excel-sheet-tabs {
  display: flex;
  gap: 2px;
}

.excel-sheet-tab {
  padding: 0.25rem 0.75rem;
  background: #e1dfdd;
  border-radius: 2px 2px 0 0;
  cursor: pointer;
  color: #323130;
}

.excel-sheet-tab.active {
  background: #ffffff;
  font-weight: 600;
  color: #107c41;
  border-top: 2px solid #107c41;
}

/* ==========================================================================
   Holographic 3D Security Pass / Badge
   ========================================================================== */
.holo-badge-section {
  position: relative;
  margin: 6rem 0;
}

.holo-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .holo-badge-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.holo-badge-wrapper {
  perspective: 1200px;
  width: min(320px, 90vw);
  max-width: 100%;
  height: 480px;
  margin: 0 auto;
}

.holo-badge-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out-expo);
  border-radius: 20px;
  cursor: grab;
}

.holo-badge-card:active {
  cursor: grabbing;
}

.holo-badge-card.is-flipped {
  transform: perspective(1000px) rotateY(180deg);
}

.holo-card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, #121320, #090a12);
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(139, 92, 246, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.holo-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #090a12, #121320);
  border-color: rgba(0, 223, 216, 0.4);
}

/* Dynamic Specular Rainbow Holographic Sheen */
.holo-foil-sheen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--foil-x, 50%) var(--foil-y, 50%),
    rgba(255, 0, 128, 0.2) 0%,
    rgba(0, 223, 216, 0.25) 25%,
    rgba(139, 92, 246, 0.2) 50%,
    transparent 80%
  );
  mix-blend-mode: color-dodge;
  pointer-events: none;
  opacity: 0.85;
}

.badge-lanyard-hole {
  width: 48px;
  height: 10px;
  background: #040407;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  margin: 0 auto 1.25rem;
}

.badge-photo-frame {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(0, 223, 216, 0.2));
  border: 2px solid var(--accent-purple);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.badge-seal {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.5);
  background: rgba(12, 13, 22, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
  z-index: 3;
}

.badge-seal-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 223, 216, 0.6));
}

.badge-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 170px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
  filter: grayscale(0.5) brightness(1.6);
}

.badge-back-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.badge-back-crest img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}

.marquee-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  opacity: 0.75;
  filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.6));
}

/* ==========================================================================
   Soundboard Modal / Widget
   ========================================================================== */
.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .soundboard-grid {
    grid-template-columns: 1fr;
  }
}

.soundboard-btn {
  background: rgba(18, 19, 32, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: #fff;
  text-align: center;
}

.soundboard-btn:hover {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}

.soundboard-btn.playing {
  border-color: var(--accent-blue);
  box-shadow: 0 0 25px rgba(0, 223, 216, 0.5);
  transform: scale(0.97);
}

/* ==========================================================================
   Hero 3D Mode Selector
   ========================================================================== */
.hero-3d-controls-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-3d-mode-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-3d-mode-btn:hover {
  color: #fff;
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.12);
}

.hero-3d-mode-btn.active {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--accent-purple);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

/* Audio Visualizer Waves in Header */
.header-audio-viz {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  padding: 0 4px;
}

.viz-bar {
  width: 2px;
  height: 4px;
  background: var(--accent-blue);
  border-radius: 1px;
  transition: height 0.1s ease;
}

.sound-toggle-btn.active .viz-bar {
  animation: bounceBar 0.5s infinite alternate ease-in-out;
}
.sound-toggle-btn.active .viz-bar:nth-child(1) { animation-delay: 0.1s; }
.sound-toggle-btn.active .viz-bar:nth-child(2) { animation-delay: 0.25s; }

/* ==========================================================================
   ACHIEVEMENTS SYSTEM & TOASTS
   ========================================================================== */
.toast-achievement {
  border-left: 4px solid var(--accent-purple) !important;
  background: rgba(18, 19, 32, 0.95) !important;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.35) !important;
}

.toast-achievement-icon {
  font-size: 1.8rem;
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
}

.toast-achievement-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--accent-purple);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

/* Modal Backdrop Generic */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 7, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: #fff;
}

.modal-dialog {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-sizing: border-box;
}

.achievements-dialog {
  max-width: 680px;
  background: rgba(11, 12, 19, 0.96);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 45px rgba(139, 92, 246, 0.22), 0 20px 50px rgba(0, 0, 0, 0.85);
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .achievements-dialog {
  transform: scale(1);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }
}

.achievement-card {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.achievement-card.unlocked {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.achievement-card.locked {
  opacity: 0.5;
  filter: grayscale(0.8);
}

.ach-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.ach-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.ach-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.ach-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-blue);
}

/* ==========================================================================
   DISCREET INTRANET PORTAL KEYCARD ACCESS
   ========================================================================== */
.discreet-portal-keycard {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(12, 13, 24, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
  transition: all var(--transition-medium);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

.discreet-portal-keycard:hover {
  border-color: var(--accent-purple);
  color: #fff;
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.keycard-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.8s infinite;
}

/* ==========================================================================
   CAREERS, INVESTORS, COMPLAINTS, REPORTS & ACADEMY
   ========================================================================== */
.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.career-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.career-dept {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-purple);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.career-role {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.career-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.career-salary {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

/* Investor Relations Table */
.investor-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(12, 13, 22, 0.6);
}

.investor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.investor-table th {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.investor-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #fff;
}

/* The Forbidden Button */
.forbidden-section {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle, rgba(239, 68, 68, 0.04) 0%, transparent 80%);
}

.btn-forbidden {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.45);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-forbidden:hover {
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.75);
  transform: scale(1.04);
}

/* Live Employee Activity Ticker */
.activity-feed-card {
  padding: 1.5rem;
  background: rgba(12, 13, 22, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-purple);
  white-space: nowrap;
}
.sound-toggle-btn.active .viz-bar:nth-child(3) { animation-delay: 0.05s; }
.sound-toggle-btn.active .viz-bar:nth-child(4) { animation-delay: 0.3s; }

@keyframes bounceBar {
  0% { height: 3px; }
  100% { height: 14px; }
}
