/* ==========================================================================
   AI ATLAS — UI Components & Interactive Modules
   ========================================================================== */

/* 1. Live AI News Ticker Banner */
.news-ticker-bar {
  background: linear-gradient(90deg, rgba(8, 12, 20, 0.95), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: 0.85rem;
  position: relative;
  z-index: 40;
}

[data-theme="light"] .news-ticker-bar {
  background: linear-gradient(90deg, #eef7f5, #f8fbfb);
}

.news-ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 242, 213, 0.15);
  color: var(--accent-cyan);
  border: 1px solid var(--border-accent);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse-glow 1.8s infinite;
}

.news-ticker-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.news-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.news-item:hover {
  color: var(--accent-cyan);
}

.news-category-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

/* 2. Glassmorphic Navigation Bar */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo .brand-highlight {
  color: var(--accent-cyan);
  background: linear-gradient(135deg, var(--accent-cyan), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.60rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.80rem;
  font-weight: 600;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

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

.nav-link.nav-breach-link {
  color: var(--accent-rose) !important;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.lang-switch-group {
  display: inline-flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 0.70rem;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-mono);
}

.lang-btn.active {
  background: var(--accent-cyan);
  color: #080c14;
  box-shadow: 0 2px 8px var(--accent-teal-glow);
}

.theme-toggle-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.theme-toggle-btn:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
  color: var(--text-primary);
}

.mobile-menu-btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-surface);
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Slide-Out Navigation Drawer */
.mobile-nav-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(4, 8, 16, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: min(320px, 85vw) !important;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-subtle);
  z-index: 999;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  padding: 24px 20px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  padding-top: max(24px, env(safe-area-inset-top));
}

[data-theme="light"] .mobile-nav-drawer {
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-close-drawer {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.btn-close-drawer:hover {
  background: var(--accent-rose);
  color: #fff;
  border-color: var(--accent-rose);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: transparent;
  transition: var(--transition);
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  background: var(--bg-surface);
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.mobile-drawer-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

/* 3. Realtime Visitor Analytics Bar */
.visitor-stats-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  margin-top: 16px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  width: 100%;
}

.visitor-stats-bar::-webkit-scrollbar {
  display: none;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.stat-item-clickable {
  cursor: pointer;
}

.stat-item-clickable:hover {
  background: rgba(99, 102, 241, 0.08);
}

.stat-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
}

.stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-flag {
  font-size: 1.2rem;
}

/* 4. Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 36px;
  align-items: center;
  padding: 10px 0 36px;
}

.hero-content h1 {
  margin: 16px 0 20px;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--accent-cyan);
  background: linear-gradient(135deg, var(--accent-cyan), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  padding: 13px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
}

.hero-actions .btn {
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #059683);
  color: #041014;
  box-shadow: 0 4px 20px var(--accent-teal-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 213, 0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

/* Neural Canvas Visualizer Orb */
.neural-orb-container {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at center, rgba(14, 28, 48, 0.9), rgba(6, 10, 18, 0.98));
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: grid;
  place-items: center;
  transition: var(--transition);
}

[data-theme="light"] .neural-orb-container {
  background: radial-gradient(circle at center, #ffffff, #e6f4f2 85%);
  border: 1px solid rgba(15, 70, 67, 0.18);
  box-shadow: 0 16px 45px rgba(15, 70, 67, 0.1), 0 0 35px rgba(8, 125, 117, 0.08);
}

#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orb-chip {
  position: absolute;
  background: rgba(16, 24, 40, 0.88);
  border: 1px solid rgba(0, 242, 213, 0.35);
  color: #f0f6fc;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  z-index: 5;
  transition: var(--transition);
  font-family: var(--font-mono);
  user-select: none;
}

[data-theme="light"] .orb-chip {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(8, 125, 117, 0.3);
  color: #0c1e24;
  box-shadow: 0 6px 20px rgba(15, 70, 67, 0.12);
}

.orb-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(0, 242, 213, 0.3);
}

[data-theme="light"] .orb-chip:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  box-shadow: 0 8px 24px rgba(8, 125, 117, 0.25);
}

.orb-chip.c1 { top: 28px; right: 28px; }
.orb-chip.c2 { bottom: 32px; left: 28px; }
.orb-chip.c3 { bottom: 64px; right: 36px; }
.orb-chip.c4 { top: 40px; left: 32px; }

/* 5. Core Concept Cards */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: var(--transition);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 213, 0.1);
  border: 1px solid rgba(0, 242, 213, 0.2);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}

/* 6. Model Explorer & Intelligence Matrix */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.explorer-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.search-input-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 42px;
  color: var(--text-primary);
  transition: var(--transition);
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-teal-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.view-toggle {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
}

.view-btn {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.view-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Model Grid View Cards */
.models-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.model-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.model-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.model-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.model-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.model-provider {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 700;
  font-family: var(--font-mono);
}

.model-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.model-card-body {
  margin: 12px 0;
  font-size: 0.9rem;
}

.model-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: var(--bg-input);
  padding: 12px;
  border-radius: var(--radius-md);
  margin: 14px 0;
  border: 1px solid var(--border-subtle);
}

.metric-box {
  display: flex;
  flex-direction: column;
}

.metric-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.metric-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.model-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* Model Table View */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table.models-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.models-table th {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

table.models-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

table.models-table tr:hover td {
  background: var(--bg-surface);
}

.pill-tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.pill-cyan { background: rgba(0, 242, 213, 0.12); color: var(--accent-cyan); border: 1px solid var(--border-accent); }
.pill-purple { background: rgba(168, 85, 247, 0.12); color: var(--accent-purple); border: 1px solid rgba(168, 85, 247, 0.3); }
.pill-amber { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.pill-emerald { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }

/* 7. Draggable & Interactive Timeline (Horizontal Axis Ribbon & Board View) */
.timeline-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.timeline-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.timeline-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.timeline-tab-btn.active, .timeline-tab-btn:hover {
  background: var(--accent-cyan);
  color: #080c14;
  border-color: var(--accent-cyan);
  box-shadow: 0 2px 10px var(--accent-teal-glow);
}

/* Decade Scrubber Bar */
.decade-scrubber-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.decade-btn {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-family: var(--font-mono);
}

.decade-btn:hover, .decade-btn.active {
  background: var(--bg-card);
  color: var(--accent-cyan);
  box-shadow: var(--shadow-sm);
}

/* Timeline Viewport Wrapper */
.timeline-viewport-wrapper {
  position: relative;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 16px;
  overflow: hidden;
}

.pan-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 25;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.pan-nav-btn:hover {
  background: var(--accent-cyan);
  color: #080c14;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px var(--accent-teal-glow);
}

.pan-nav-btn.prev { left: 16px; }
.pan-nav-btn.next { right: 16px; }

/* Horizontal Ribbon Scroll Container */
.timeline-ribbon-viewport {
  overflow-x: auto;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
  padding: 20px 40px;
  -webkit-overflow-scrolling: touch;
}

.timeline-ribbon-viewport:active {
  cursor: grabbing;
}

.timeline-ribbon-track {
  display: flex;
  position: relative;
  min-width: max-content;
  padding: 10px 20px;
}

/* Alternating Ribbon Column */
.ribbon-column {
  width: 330px;
  min-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 14px;
}

/* Card placed on top */
.ribbon-slot-top {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

/* Card placed on bottom */
.ribbon-slot-bottom {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

/* Ribbon Card */
.ribbon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  width: 100%;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.ribbon-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 25px var(--accent-teal-glow);
}

.ribbon-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ribbon-year {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ribbon-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.ribbon-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ribbon-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

/* Connector Stems & Directional Arrows (Like Image 2) */
.stem-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 4px;
}

.stem-line {
  width: 2px;
  height: 32px;
  background: linear-gradient(180deg, var(--border-accent), var(--accent-cyan));
}

.stem-arrow-down {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--accent-cyan);
}

.stem-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 4px;
}

.stem-arrow-up {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid var(--accent-cyan);
}

/* Central Continuous Axis Ribbon Bar */
.ribbon-axis-bar {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  position: relative;
  margin: 10px 0;
}

.axis-spine-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  background: linear-gradient(90deg, #059683, #00f2d5, #6366f1, #a855f7, #38bdf8);
  border-radius: var(--radius-full);
  box-shadow: 0 0 16px rgba(0, 242, 213, 0.4);
  z-index: 1;
}

.axis-node {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  cursor: pointer;
  transition: var(--transition);
  display: grid;
  place-items: center;
}

.axis-node:hover {
  transform: scale(1.4);
  border-color: #ffffff;
  background: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan);
}

.axis-node-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

/* List / Board Alternative View */
.timeline-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 10px 0;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  user-select: none;
}

.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.timeline-year-badge {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  min-width: 90px;
  text-align: right;
  padding-right: 18px;
  border-right: 2px solid var(--border-subtle);
}

.timeline-main-info h3 {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

.timeline-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
  color: var(--accent-teal);
  font-size: 0.9rem;
}

/* 8. Comparison Floating Bottom Drawer */
.compare-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-top: 2px solid var(--accent-cyan);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 80vh;
  overflow-y: auto;
}

.compare-drawer.open {
  transform: translateY(0);
}

.compare-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-drawer-body {
  padding: 24px;
}

.compare-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.compare-column {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* 9. AI Tech Stack Layers */
.stack-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack-layer {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
  transition: var(--transition);
}

.stack-layer:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(6px);
}

.layer-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.layer-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

/* 10. Prompt Engineering Hub & Behavior Sandbox */
.prompt-hub-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}

.prompt-hub-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.prompt-hub-tab.active, .prompt-hub-tab:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-accent);
  border-bottom-color: var(--accent-cyan);
}

/* 5-Pillar Anatomy Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: var(--transition);
}

.pillar-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.pillar-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.pillar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pillar-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Interactive Prompt Builder */
.builder-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-top: 16px;
}

.builder-inputs-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.builder-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.builder-field input, .builder-field textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: var(--transition);
}

.builder-field input:focus, .builder-field textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-teal-glow);
}

.builder-preview-box {
  background: #05080e;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8);
}

.builder-output-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  color: #00f2d5;
  white-space: pre-wrap;
  flex: 1;
  overflow-y: auto;
  max-height: 380px;
  padding-right: 8px;
}

.prompt-score-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Before vs After Comparison Grid */
.scenario-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 20px;
}

.scenario-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.scenario-pill-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
  background: var(--bg-card);
}

.scenario-pill-btn.active {
  background: var(--accent-cyan);
  color: #080c14;
  border-color: var(--accent-cyan);
  box-shadow: 0 2px 10px var(--accent-teal-glow);
  font-weight: 700;
}

.comparison-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.compare-case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
}

.compare-case-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.bad-prompt-box {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.85rem;
}

.good-prompt-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.85rem;
}

/* Methodology Steps List */
.methodology-step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 14px;
  transition: var(--transition);
}

.methodology-step:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.step-badge {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  display: grid;
  place-items: center;
  background: rgba(0, 242, 213, 0.1);
  border-radius: var(--radius-md);
  height: 54px;
}

.prompt-lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.lab-terminal {
  background: #05080e;
  border: 1px solid rgba(0, 242, 213, 0.25);
  border-radius: var(--radius-lg);
  padding: 22px;
  font-family: var(--font-mono);
  color: #00f2d5;
  font-size: 0.88rem;
  line-height: 1.6;
  min-height: 320px;
  overflow-y: auto;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.slider-group {
  margin-bottom: 20px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-cyan);
}

/* 11. Accessible Modal Dialogs */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 15, 0.75);
  backdrop-filter: blur(12px);
  display: none;
  place-items: center;
  z-index: 60;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  display: grid;
  opacity: 1;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  animation: modal-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--accent-rose);
  color: #fff;
  border-color: var(--accent-rose);
}

/* 12. Footer */
footer.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.security-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

/* 13. AI Robot Welcome Greeting HUD */
.ai-welcome-hud {
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.85), rgba(15, 30, 50, 0.7));
  border: 1px solid rgba(0, 242, 213, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0, 242, 213, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .ai-welcome-hud {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.9));
  border: 1px solid rgba(13, 148, 136, 0.35);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ai-welcome-hud::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-cyan), #6366f1);
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.robot-avatar-box {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 242, 213, 0.18), rgba(99, 102, 241, 0.22));
  border: 2px solid var(--accent-cyan);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  position: relative;
  box-shadow: 0 0 16px var(--accent-teal-glow);
}

.status-pulse-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-cyan);
  animation: pulse-ring 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  opacity: 0.8;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.9; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.hud-text-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hud-top-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-badge {
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  background: rgba(0, 242, 213, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 242, 213, 0.3);
}

[data-theme="light"] .hud-badge {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.3);
}

.hud-live-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.hud-greeting-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hud-greeting-sub {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.voice-synth-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-full);
}

.btn-robot-voice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-cyan), #00b4d8);
  color: #061118;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 0;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--accent-teal-glow);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-robot-voice:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 16px var(--accent-teal-glow);
}

.btn-robot-voice.playing {
  background: linear-gradient(135deg, var(--accent-rose), #e11d48);
  color: #fff;
  box-shadow: 0 2px 12px rgba(244, 63, 94, 0.4);
}

.soundwave-visualizer {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 4px;
}

.soundwave-visualizer .bar {
  width: 3px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.soundwave-visualizer.active .bar {
  background: var(--accent-cyan);
  animation: soundwave-bounce 0.8s ease-in-out infinite alternate;
}

.soundwave-visualizer.active .bar.b1 { animation-delay: 0.1s; }
.soundwave-visualizer.active .bar.b2 { animation-delay: 0.3s; }
.soundwave-visualizer.active .bar.b3 { animation-delay: 0.15s; }
.soundwave-visualizer.active .bar.b4 { animation-delay: 0.4s; }
.soundwave-visualizer.active .bar.b5 { animation-delay: 0.2s; }

@keyframes soundwave-bounce {
  0% { height: 4px; }
  100% { height: 20px; }
}

.voice-status-tag {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.voice-status-tag.speaking {
  color: var(--accent-cyan);
  background: rgba(0, 242, 213, 0.15);
}

/* 14. AI Live News Slideshow Section */
.news-slideshow-section {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border-subtle);
}

.news-cat-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-family: var(--font-mono);
}

.news-cat-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.news-cat-pill.active {
  background: var(--accent-cyan);
  color: #061118;
  border-color: var(--accent-cyan);
  font-weight: 800;
  box-shadow: 0 2px 10px var(--accent-teal-glow);
}

[data-theme="light"] .news-cat-pill.active {
  background: #0d9488;
  color: #ffffff;
  border-color: #0d9488;
}

.slideshow-stage-container {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 8px;
  height: 380px;
}

.slide-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.slide-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), #6366f1);
}

.slideshow-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slideshow-track {
  width: 100%;
  height: 100%;
}

.news-slide-card {
  display: none;
  grid-template-columns: 1fr 1.15fr;
  height: 380px;
  width: 100%;
  overflow: hidden;
}

.news-slide-card.active {
  display: grid;
}

.news-slide-image-box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-secondary);
}

.news-slide-image-box img.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-slide-card:hover .news-slide-image-box img.slide-img {
  transform: scale(1.05);
}

.slide-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.1) 0%, rgba(8, 12, 20, 0.8) 100%);
}

.slide-floating-meta {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}

.slide-badge-pill {
  background: rgba(0, 242, 213, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
}

.slide-time-pill {
  background: rgba(16, 24, 40, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
}

.news-slide-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-surface);
}

.slide-top-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.slide-source-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

[data-theme="light"] .slide-source-tag {
  color: #0d9488;
}

.slide-cat-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.slide-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 14px;
}

.slide-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.slide-title a:hover {
  color: var(--accent-cyan);
}

.slide-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 24px;
}

.slide-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slide-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 24, 40, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 5;
}

[data-theme="light"] .slide-arrow-btn {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.15);
}

.slide-arrow-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  transform: translateY(-50%) scale(1.1);
}

.slide-arrow-btn.prev-btn { left: 16px; }
.slide-arrow-btn.next-btn { right: 16px; }

.slideshow-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 6px;
}

.slideshow-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-subtle);
  border: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slide-dot.active {
  width: 28px;
  border-radius: var(--radius-full);
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-teal-glow);
}

[data-theme="light"] .slide-dot.active {
  background: #0d9488;
}

.btn-icon-control {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}

.btn-icon-control:hover {
  border-color: var(--border-accent);
}

.slide-counter-text {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Media Queries (Smartphone, iPad, Android, Windows, Mac)
   ========================================================================== */

/* 1. Large Tablets & Small Laptops (769px – 1120px) */
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .visitor-stats-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* 2. Tablets & iPads (769px – 992px) */
@media (max-width: 992px) {
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 12px 0 20px;
  }
  
  .neural-orb-container {
    height: 340px;
  }

  .ai-welcome-hud {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
  }
  
  .hud-right {
    width: 100%;
    justify-content: flex-start;
  }

  .slideshow-stage-container {
    height: auto;
  }
  
  .news-slide-card {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .news-slide-image-box {
    height: 240px;
    min-height: 240px;
    width: 100%;
  }
  
  .news-slide-body {
    padding: 26px;
    height: auto;
  }

  .models-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .comparison-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .prompt-lab-grid {
    grid-template-columns: 1fr;
  }

  .stack-layer {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* 3. Smartphones & Phablets (481px – 768px) */
@media (max-width: 768px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .visitor-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .stat-item {
    padding: 8px 10px;
  }

  .models-grid {
    grid-template-columns: 1fr;
  }

  .comparison-cards-grid {
    grid-template-columns: 1fr;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-year-badge {
    border-right: 0;
    text-align: left;
    padding-right: 0;
  }

  .explorer-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .explorer-filter-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .explorer-filter-group select {
    width: 100%;
  }

  .compare-drawer {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-inner > div:last-child {
    text-align: left;
  }
}

/* 4. Small Smartphones & Narrow Displays (320px – 480px) */
@media (max-width: 480px) {
  .wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-logo {
    font-size: 1.15rem;
  }

  .brand-badge {
    display: none;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.3rem);
    margin: 12px 0 16px;
  }

  .hero-lead {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .neural-orb-container {
    height: 260px;
  }

  .orb-chip {
    font-size: 0.68rem;
    padding: 4px 8px;
  }

  .orb-chip.c1 { top: 6%; right: 4%; }
  .orb-chip.c2 { bottom: 6%; left: 4%; }
  .orb-chip.c3 { bottom: 6%; right: 4%; }
  .orb-chip.c4 { top: 6%; left: 4%; }

  .visitor-stats-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .voice-synth-widget {
    width: 100%;
    justify-content: space-between;
    padding: 8px 12px;
  }

  .btn-robot-voice {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .news-slide-image-box {
    height: 190px;
    min-height: 190px;
  }

  .news-slide-body {
    padding: 18px 14px;
  }

  .slide-title {
    font-size: 1.2rem;
  }

  .slide-actions-row {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .slide-actions-row .btn {
    width: 100%;
    text-align: center;
  }

  .prompt-hub-tabs-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .prompt-hub-tab-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .modal-box {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 90vh !important;
    position: fixed;
    bottom: 0;
  }

  .chatbot-floating-btn {
    bottom: 16px;
    right: 16px;
    padding: 8px 14px 8px 10px;
  }

  .chatbot-window {
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 88vh !important;
    border-radius: 24px 24px 0 0 !important;
  }
}

/* ==========================================================================
   15. Tambak7 AI Interactive Chatbot Widget
   ========================================================================== */
.chatbot-floating-btn {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 9990 !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.94), rgba(15, 23, 42, 0.96));
  border: 1.5px solid var(--accent-cyan);
  border-radius: var(--radius-full);
  padding: 10px 18px 10px 12px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 242, 213, 0.25), 0 4px 12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .chatbot-floating-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.95));
  border-color: #0d9488;
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.chatbot-floating-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(0, 242, 213, 0.35);
}

.chatbot-btn-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 242, 213, 0.2), rgba(99, 102, 241, 0.25));
  border: 1.5px solid var(--accent-cyan);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  position: relative;
}

.bot-live-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.chatbot-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.bot-label-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.bot-label-sub {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 600;
}

[data-theme="light"] .bot-label-sub {
  color: #0d9488;
}

.chatbot-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--accent-cyan);
  animation: pulse-ring 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  opacity: 0.75;
  pointer-events: none;
}

/* Chatbot Floating Window (Normal Studio Window Mode) */
.chatbot-window {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(1060px, 94vw);
  height: min(740px, 86vh);
  max-width: 1100px;
  max-height: 850px;
  z-index: 9991 !important;
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.96) 0%, rgba(8, 12, 20, 0.98) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 242, 213, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

[data-theme="light"] .chatbot-window {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 249, 0.98) 100%);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 30px rgba(13, 148, 136, 0.15);
}

.chatbot-window.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, -50%) scale(1) !important;
  pointer-events: auto !important;
}

.chatbot-window.minimized {
  height: 64px !important;
  width: min(440px, 94vw) !important;
  top: auto !important;
  bottom: 24px !important;
  left: auto !important;
  right: 24px !important;
  transform: none !important;
}

.chatbot-window.minimized .chatbot-body,
.chatbot-window.minimized .chatbot-footer,
.chatbot-window.minimized .chatbot-typing-indicator,
.chatbot-window.minimized .chatbot-main-layout {
  display: none !important;
}

/* Chatbot Header */
.chatbot-header {
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  min-height: 56px;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.chatbot-header-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.chatbot-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.chatbot-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatbot-status-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.70rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-dot-mini {
  width: 6px;
  height: 6px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chatbot-icon-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.88rem;
  padding: 0;
  flex-shrink: 0;
}

.chatbot-icon-btn:hover {
  color: var(--accent-cyan);
  background: var(--border-subtle);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.chatbot-icon-btn.active {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 213, 0.12);
}

.btn-maximize-window:hover {
  color: var(--accent-cyan) !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35) !important;
}

.btn-maximize-window.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25) 0%, rgba(99, 102, 241, 0.35) 100%) !important;
  border-color: #00f2fe !important;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.45) !important;
}

.btn-close-window:hover {
  color: #ffffff !important;
  background: rgba(244, 63, 94, 0.25) !important;
  border-color: #f43f5e !important;
}

/* Chatbot Main Layout & Conversation Panel */
.chatbot-main-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  height: calc(100% - 62px);
  position: relative;
}

.chatbot-conversation-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* 3D Neural Stage (Hidden in floating mode, full active in Fullscreen) */
.chatbot-neural-stage {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(14, 28, 54, 0.92) 0%, rgba(4, 8, 16, 0.99) 100%);
  overflow: hidden;
  user-select: none;
}

[data-theme="light"] .chatbot-neural-stage {
  background: radial-gradient(circle at center, rgba(235, 245, 255, 0.96) 0%, rgba(243, 248, 255, 0.99) 100%);
}

.chatbot-neural-canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
  cursor: grab;
}

.chatbot-neural-canvas:active {
  cursor: grabbing;
}

/* Header Maximize / Fullscreen Icon Button */
.btn-maximize-window {
  font-size: 0.95rem !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-maximize-window:hover {
  background: rgba(0, 242, 254, 0.15) !important;
  border-color: #00f2fe !important;
  color: #00f2fe !important;
  transform: translateY(-1px) scale(1.08) !important;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35) !important;
}

/* Floating Exit Fullscreen Button (Pure Neural Mode Only) */
.btn-exit-pure-fullscreen {
  display: none !important;
  position: absolute !important;
  top: 24px !important;
  right: 28px !important;
  z-index: 999999 !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  background: rgba(10, 16, 30, 0.7) !important;
  border: 1.5px solid rgba(0, 242, 254, 0.45) !important;
  border-radius: var(--radius-full) !important;
  color: #00f2fe !important;
  font-family: var(--font-sans, inherit) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 242, 254, 0.2) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  opacity: 0.85;
}

.btn-exit-pure-fullscreen:hover {
  opacity: 1 !important;
  transform: scale(1.05) !important;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25) 0%, rgba(99, 102, 241, 0.35) 100%) !important;
  border-color: #00f2fe !important;
  color: #ffffff !important;
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.45) !important;
}

/* ==========================================================================
   PURE NEURAL FULLSCREEN MODE (Bola Neural 3D + Tombol Bicara & Exit)
   ========================================================================== */
.chatbot-window.pure-neural-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #020612 !important;
  z-index: 999999 !important;
  transform: none !important;
  overflow: hidden !important;
}

/* Sembunyikan Header & Top HUD Badge saat Fullscreen */
.chatbot-window.pure-neural-fullscreen .chatbot-header {
  display: none !important;
}

.chatbot-window.pure-neural-fullscreen .neural-stage-top-hud {
  display: none !important;
}

/* Sembunyikan Form Ketik Teks & Meta Label saat Fullscreen */
.chatbot-window.pure-neural-fullscreen .neural-quick-input-form {
  display: none !important;
}

.chatbot-window.pure-neural-fullscreen .neural-dock-meta {
  display: none !important;
}

.chatbot-window.pure-neural-fullscreen .chatbot-main-layout {
  height: 100vh !important;
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
}

.chatbot-window.pure-neural-fullscreen .chatbot-neural-stage {
  height: 100vh !important;
  width: 100vw !important;
  background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.08) 0%, rgba(2, 6, 18, 1) 85%) !important;
}

/* Tampilkan Tombol Floating Keluar Fullscreen */
.chatbot-window.pure-neural-fullscreen .btn-exit-pure-fullscreen {
  display: inline-flex !important;
  position: absolute !important;
  top: 24px !important;
  right: 28px !important;
  z-index: 1000000 !important;
  pointer-events: auto !important;
}

/* Tampilkan Bottom HUD (Tombol Bicara & Subtitle Respons AI) */
.chatbot-window.pure-neural-fullscreen .neural-stage-bottom-hud {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  position: absolute !important;
  bottom: 35px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: min(800px, 94vw) !important;
  z-index: 1000000 !important;
  pointer-events: none !important;
  gap: 12px !important;
}

.chatbot-window.pure-neural-fullscreen .neural-soundwave-box {
  display: flex !important;
  pointer-events: auto !important;
}

.chatbot-window.pure-neural-fullscreen .neural-transcript-banner {
  display: inline-flex !important;
  pointer-events: auto !important;
  max-width: 90% !important;
}

.chatbot-window.pure-neural-fullscreen .neural-interactive-dock {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  pointer-events: auto !important;
}

.chatbot-window.pure-neural-fullscreen .btn-neural-mic-main {
  display: inline-flex !important;
  pointer-events: auto !important;
  transform: scale(1.12) !important;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.55), 0 10px 30px rgba(0, 0, 0, 0.8) !important;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.28) 0%, rgba(99, 102, 241, 0.4) 100%) !important;
  border: 2px solid #00f2fe !important;
  font-size: 0.96rem !important;
  padding: 12px 28px !important;
}

.chatbot-window.pure-neural-fullscreen .btn-neural-mic-main:hover {
  transform: scale(1.18) !important;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.42) 0%, rgba(99, 102, 241, 0.55) 100%) !important;
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.8), 0 15px 40px rgba(0, 0, 0, 0.9) !important;
}

.chatbot-window.pure-neural-fullscreen .btn-neural-mic-main.recording {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.35), rgba(225, 29, 72, 0.45)) !important;
  border-color: #f43f5e !important;
  box-shadow: 0 0 45px rgba(244, 63, 94, 0.75) !important;
}

/* Normal Fullscreen Window Mode (Fallback) */
.chatbot-window.fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: 0 !important;
  z-index: 99999 !important;
  transform: none !important;
}

.chatbot-window .chatbot-main-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100% - 62px);
  position: relative;
  overflow: hidden;
}

.chatbot-window.fullscreen .chatbot-main-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 62px);
  overflow: hidden;
}

.chatbot-pure-neural-layout .chatbot-neural-stage {
  display: flex !important;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.05) 0%, rgba(8, 14, 26, 0.98) 75%);
}

[data-theme="light"] .chatbot-pure-neural-layout .chatbot-neural-stage {
  background: radial-gradient(circle at 50% 50%, rgba(13, 148, 136, 0.06) 0%, rgba(245, 250, 255, 0.98) 75%);
}

/* 3D Neural HUD Overlays */
.neural-stage-top-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  gap: 8px;
}

.neural-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(10, 16, 30, 0.78);
  border: 1px solid rgba(0, 242, 213, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-cyan);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 242, 213, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .neural-hud-badge {
  background: rgba(255, 255, 255, 0.85);
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hud-pulse-core {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse-ring 1.8s infinite ease-out;
}

.neural-hud-meta {
  display: none; /* Hidden to keep normal studio clean and uncluttered */
}

/* Bottom Floating Voice HUD */
.neural-stage-bottom-hud {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}

.neural-soundwave-box,
.neural-transcript-banner,
.neural-interactive-dock {
  pointer-events: auto;
}

/* Live Equalizer Soundwave */
.neural-soundwave-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  padding: 0 14px;
  background: rgba(10, 16, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .neural-soundwave-box {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.08);
}

.wave-bar {
  width: 3.5px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, #6366f1 100%);
  transition: height 0.15s ease;
}

.neural-soundwave-box.active .wave-bar {
  animation: soundwave-bounce 0.8s ease-in-out infinite alternate;
}

.neural-soundwave-box.active .wave-bar.w1 { animation-delay: 0.1s; height: 16px; }
.neural-soundwave-box.active .wave-bar.w2 { animation-delay: 0.3s; height: 22px; }
.neural-soundwave-box.active .wave-bar.w3 { animation-delay: 0.15s; height: 12px; }
.neural-soundwave-box.active .wave-bar.w4 { animation-delay: 0.4s; height: 24px; }
.neural-soundwave-box.active .wave-bar.w5 { animation-delay: 0.25s; height: 18px; }
.neural-soundwave-box.active .wave-bar.w6 { animation-delay: 0.35s; height: 14px; }
.neural-soundwave-box.active .wave-bar.w7 { animation-delay: 0.05s; height: 20px; }

@keyframes soundwave-bounce {
  0% { height: 6px; }
  50% { height: 24px; filter: brightness(1.3); }
  100% { height: 8px; }
}

/* Transcript Banner */
.neural-transcript-banner {
  width: min(580px, 94%);
  max-width: 100%;
  padding: 7px 16px;
  background: rgba(14, 22, 40, 0.88);
  border: 1.5px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 242, 254, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
}

[data-theme="light"] .neural-transcript-banner {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.transcript-lead {
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  white-space: nowrap;
}

[data-theme="light"] .transcript-lead {
  color: #0d9488;
}

.transcript-content {
  color: var(--text-primary);
  white-space: normal;
  line-height: 1.35;
  font-weight: 500;
  flex: 1;
}

/* Interactive Dock: Mic + Quick Input Bar */
.neural-interactive-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: min(480px, 94%);
  max-width: 100%;
}

@media (min-width: 768px) {
  .chatbot-window:not(.pure-neural-fullscreen) .neural-interactive-dock {
    flex-direction: row;
    width: min(640px, 94%);
  }
}

/* Main Voice Activation Button in 3D Stage */
.btn-neural-mic-main {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 22px;
  background: linear-gradient(135deg, rgba(0, 242, 213, 0.22), rgba(99, 102, 241, 0.28));
  border: 1.5px solid var(--accent-cyan);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 213, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.btn-neural-mic-main:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 242, 213, 0.4);
  background: linear-gradient(135deg, rgba(0, 242, 213, 0.32), rgba(99, 102, 241, 0.38));
}

.btn-neural-mic-main.recording {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(244, 63, 94, 0.4));
  border-color: var(--accent-rose);
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.5);
  animation: mic-recording-pulse 1.4s infinite;
}

.btn-neural-mic-main .mic-glow-ring {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1.5px solid var(--accent-cyan);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-neural-mic-main.recording .mic-glow-ring {
  border-color: var(--accent-rose);
  opacity: 1;
  animation: pulse-ring 1.6s infinite;
}

.btn-neural-mic-main .mic-icon-large {
  font-size: 1.15rem;
}

/* Quick Input Form */
.neural-quick-input-form {
  display: flex;
  align-items: center;
  width: 100%;
  flex: 1;
  background: rgba(14, 22, 40, 0.85);
  border: 1.5px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-full);
  padding: 3px 5px 3px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 242, 254, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s ease;
}

[data-theme="light"] .neural-quick-input-form {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.neural-quick-input-form:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.28);
}

.neural-quick-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 6px 4px;
  min-width: 0;
}

.neural-quick-input::placeholder {
  color: var(--text-muted);
  font-size: 0.80rem;
}

.btn-neural-send {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), #2563eb);
  border: 0;
  color: #020617;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.btn-neural-send:hover {
  transform: scale(1.08);
  box-shadow: 0 0 14px var(--accent-cyan);
}

.neural-dock-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
  opacity: 0.70;
  margin-top: 1px;
}

/* Chatbot Input Mic Button */
.btn-chatbot-mic {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  position: relative;
  transition: var(--transition);
}

.btn-chatbot-mic:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: var(--bg-surface);
}

.btn-chatbot-mic.recording {
  background: rgba(244, 63, 94, 0.18);
  border-color: var(--accent-rose);
  color: var(--accent-rose);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
  animation: mic-pulse 1.4s infinite;
}

.mic-active-beacon {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-rose);
  opacity: 0;
}

.btn-chatbot-mic.recording .mic-active-beacon {
  opacity: 1;
  box-shadow: 0 0 6px var(--accent-rose);
}

@keyframes mic-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Chatbot Body & Messages */
.chatbot-body {
  flex: 1;
  padding: 18px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
}

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-msg-user {
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.chat-msg-content {
  max-width: 82%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-msg-user .chat-msg-content {
  align-items: flex-end;
}

.chat-bubble-text {
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  font-size: 0.88rem;
  line-height: 1.55;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.chat-msg-user .chat-bubble-text {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  border: 0;
  border-radius: 16px 16px 4px 16px;
}

.chat-msg-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.btn-copy-msg, .btn-read-msg {
  background: transparent;
  border: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-copy-msg:hover, .btn-read-msg:hover {
  color: var(--accent-cyan);
  background: var(--bg-surface);
}

/* Quick Suggestions */
.chat-quick-suggestions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-suggestion-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.chat-suggestion-chip:hover {
  background: rgba(0, 242, 213, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateX(3px);
}

/* Markdown formatting inside chat */
.chat-code-block {
  background: #040810;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin: 6px 0;
  color: var(--accent-cyan);
}

.chat-inline-code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--accent-cyan);
}

.chat-h3, .chat-h4 {
  margin: 8px 0 4px;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.chat-li {
  margin-left: 16px;
  list-style-type: disc;
}

.chat-hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 8px 0;
}

/* Typing Indicator */
.chatbot-typing-indicator {
  padding: 0 16px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  border-radius: var(--radius-full);
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Chatbot Input Footer */
.chatbot-footer {
  padding: 12px 16px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chatbot-input-container {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 6px 8px 6px 12px;
  transition: var(--transition);
}

.chatbot-input-container:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-teal-glow);
}

.chatbot-textarea {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-size: 0.88rem;
  resize: none;
  max-height: 120px;
  outline: none;
  line-height: 1.4;
  padding: 4px 0;
}

.btn-chatbot-send {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), #00b4d8);
  color: #061118;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-chatbot-send:hover {
  transform: scale(1.08);
  box-shadow: 0 0 10px var(--accent-teal-glow);
}

.chatbot-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0 4px;
}

/* ==========================================================================
   16. Modern Glassmorphic Delete Confirmation Modal
   ========================================================================== */
.chatbot-confirm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: var(--radius-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.chatbot-confirm-overlay.open {
  opacity: 1;
  visibility: visible;
}

.chatbot-confirm-card {
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.96) 0%, rgba(12, 16, 26, 0.98) 100%);
  border: 1px solid rgba(244, 63, 94, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(244, 63, 94, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  width: 100%;
  max-width: 340px;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .chatbot-confirm-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
  border-color: rgba(225, 29, 72, 0.25);
  box-shadow: 0 16px 40px rgba(225, 29, 72, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.chatbot-confirm-overlay.open .chatbot-confirm-card {
  transform: scale(1) translateY(0);
}

.confirm-icon-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.15);
  border: 1.5px solid var(--accent-rose);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  position: relative;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
}

.confirm-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 63, 94, 0.5);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

.confirm-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.confirm-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.confirm-actions-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-confirm-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-confirm-cancel {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-confirm-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

.btn-confirm-delete {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
}

.btn-confirm-delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(244, 63, 94, 0.6);
  filter: brightness(1.1);
}

/* ==========================================================================
   17. Live AI Applications & Use Cases Showcase
   ========================================================================== */
.usecase-showcase-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 20px;
}

@media (max-width: 992px) {
  .usecase-showcase-container {
    grid-template-columns: 1fr;
  }
}

.showcase-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
}

.showcase-card-cti {
  background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.08), transparent 70%), var(--bg-card);
  border-color: rgba(244, 63, 94, 0.22);
}

.showcase-card-cti:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.5);
}

.showcase-card-awareness {
  background: radial-gradient(circle at top right, rgba(0, 242, 213, 0.08), transparent 70%), var(--bg-card);
  border-color: rgba(0, 242, 213, 0.22);
}

.showcase-card-awareness:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 242, 213, 0.2);
  border-color: rgba(0, 242, 213, 0.5);
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.badge-cyber {
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.badge-edu {
  background: rgba(0, 242, 213, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 213, 0.35);
}

.showcase-status-tag {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.showcase-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.showcase-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
}

.showcase-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

@media (max-width: 540px) {
  .showcase-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.showcase-metric-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.showcase-metric-box:hover {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.05);
}

.showcase-metric-box .metric-icon {
  font-size: 1.3rem;
}

.showcase-metric-box .metric-data {
  display: flex;
  flex-direction: column;
}

.showcase-metric-box .metric-val {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1.1;
}

.showcase-metric-box .metric-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.showcase-curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

@media (max-width: 540px) {
  .showcase-curriculum-grid {
    grid-template-columns: 1fr;
  }
}

.curriculum-item {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.curriculum-item:hover {
  color: var(--accent-cyan);
  border-color: rgba(0, 242, 213, 0.35);
  background: rgba(0, 242, 213, 0.06);
}

.curriculum-item .cur-icon {
  font-size: 0.9rem;
}

.showcase-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
  padding-left: 2px;
}

.showcase-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.showcase-feat-item strong {
  color: var(--text-primary);
  font-weight: 700;
  margin-right: 4px;
}

.showcase-feat-item .feat-bullet {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.showcase-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.btn-showcase-live {
  flex: 1.2;
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.btn-showcase-modal {
  flex: 1;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.modal-card-lg {
  max-width: 680px !important;
  width: min(680px, 94vw) !important;
}

/* ==========================================================================
   16. Data Breach Word Cloud & Threat Intelligence Dashboard
   ========================================================================== */
.breach-wordcloud-section {
  padding: 40px 0 60px;
  position: relative;
  border-top: 1px solid var(--border-subtle);
}

.breach-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-scrape-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  color: var(--accent-cyan);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 242, 213, 0.08);
}

.btn-scrape-refresh:hover {
  background: rgba(0, 242, 213, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 18px var(--accent-teal-glow);
  transform: translateY(-2px);
}

.btn-scrape-refresh.loading .refresh-spinner-icon {
  animation: spin-refresh 1s linear infinite;
}

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

.scrape-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.pulse-dot-mini {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Toolbar & Filter Chips */
.wordcloud-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 14px 20px;
  margin-top: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.wordcloud-search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  flex: 1;
  max-width: 360px;
  min-width: 240px;
  transition: var(--transition);
}

.wordcloud-search-container:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px var(--accent-teal-glow);
}

.search-icon {
  font-size: 0.9rem;
  opacity: 0.7;
}

.wordcloud-search-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.84rem;
  outline: none;
  width: 100%;
}

.wordcloud-search-input::placeholder {
  color: var(--text-muted);
}

.btn-clear-search {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 4px;
}

.btn-clear-search:hover {
  color: var(--text-primary);
}

.wordcloud-filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.filter-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: rgba(0, 242, 213, 0.16);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-teal-glow);
}

.filter-chip.chip-entity.active {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
  border-color: #f43f5e;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.35);
}

.filter-chip.chip-actor.active {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border-color: #a855f7;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

.filter-chip.chip-datatype.active {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border-color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.filter-chip.chip-vector.active {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border-color: #0284c7;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

/* Dashboard 2-Column Balanced Grid */
.breach-dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .breach-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Left Column: Interactive Word Cloud Stage */
.wordcloud-stage-wrapper {
  background: radial-gradient(circle at 50% 20%, rgba(16, 26, 46, 0.95), rgba(6, 11, 20, 0.98));
  border: 1px solid rgba(0, 242, 213, 0.22);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 242, 213, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-height: 540px;
}

[data-theme="light"] .wordcloud-stage-wrapper {
  background: radial-gradient(circle at 50% 20%, #ffffff, #f1f5f9);
  border: 1px solid rgba(13, 148, 136, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06), inset 0 0 20px rgba(13, 148, 136, 0.03);
}

.wordcloud-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.stage-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-weight: 600;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.dot-entity { background: #f43f5e; box-shadow: 0 0 8px #f43f5e; }
.legend-dot.dot-actor { background: #a855f7; box-shadow: 0 0 8px #a855f7; }
.legend-dot.dot-datatype { background: #10b981; box-shadow: 0 0 8px #10b981; }
.legend-dot.dot-vector { background: #0284c7; box-shadow: 0 0 8px #0284c7; }

.stage-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.wordcloud-canvas-stage {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* REAL Dynamic Tag Cloud Cluster (Flex Wrapping Organic Layout) */
.wordcloud-tags-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 10px 12px;
  padding: 12px 6px;
  width: 100%;
}

.wordcloud-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  line-height: 1.25;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  max-width: 100%;
}

.wordcloud-tag .tag-text {
  white-space: nowrap;
}

.wordcloud-tag .tag-count {
  font-size: 0.66em;
  font-family: var(--font-mono);
  font-weight: 800;
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  opacity: 0.85;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Category Aesthetic Variations */
.wordcloud-tag.tag-entity {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.14), rgba(225, 29, 72, 0.05));
  border-color: rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.wordcloud-tag.tag-entity:hover,
.wordcloud-tag.tag-entity.selected {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.35), rgba(225, 29, 72, 0.22));
  border-color: #f43f5e;
  color: #ffffff;
  box-shadow: 0 0 22px rgba(244, 63, 94, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: scale(1.08) translateY(-2px);
  z-index: 5;
}

.wordcloud-tag.tag-actor {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.14), rgba(147, 51, 234, 0.05));
  border-color: rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
}

.wordcloud-tag.tag-actor:hover,
.wordcloud-tag.tag-actor.selected {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(147, 51, 234, 0.22));
  border-color: #a855f7;
  color: #ffffff;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: scale(1.08) translateY(-2px);
  z-index: 5;
}

.wordcloud-tag.tag-datatype {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(5, 150, 105, 0.05));
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.wordcloud-tag.tag-datatype:hover,
.wordcloud-tag.tag-datatype.selected {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.22));
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: scale(1.08) translateY(-2px);
  z-index: 5;
}

.wordcloud-tag.tag-vector {
  background: linear-gradient(135deg, rgba(0, 242, 213, 0.14), rgba(2, 132, 199, 0.05));
  border-color: rgba(0, 242, 213, 0.35);
  color: #67e8f9;
}

.wordcloud-tag.tag-vector:hover,
.wordcloud-tag.tag-vector.selected {
  background: linear-gradient(135deg, rgba(0, 242, 213, 0.35), rgba(2, 132, 199, 0.22));
  border-color: #00f2d5;
  color: #ffffff;
  box-shadow: 0 0 22px rgba(0, 242, 213, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: scale(1.08) translateY(-2px);
  z-index: 5;
}

.wordcloud-tag.dimmed {
  opacity: 0.2;
  filter: grayscale(80%);
  transform: scale(0.92);
}

.wordcloud-loading-placeholder,
.wordcloud-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

/* Right Column: Cyber Threat Intelligence Sidebar */
.wordcloud-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wordcloud-inspector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  transition: var(--transition);
}

.wordcloud-inspector-card:hover {
  border-color: var(--border-accent);
}

.inspector-card-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.inspector-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill-rose {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.pill-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.pill-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.pill-cyan {
  background: rgba(0, 242, 213, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 213, 0.35);
}

.pill-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.inspect-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.3;
}

.inspector-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inspect-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inspect-stat-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inspect-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inspect-stat-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.inspect-stat-val.text-cyan {
  color: var(--accent-cyan);
}

.inspect-desc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.inspect-desc-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 6px;
  display: block;
}

.inspect-desc-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.inspector-card-footer {
  margin-top: 16px;
}

.btn-inspect-search {
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  border-color: rgba(0, 242, 213, 0.35);
  color: var(--accent-cyan);
}

.btn-inspect-search:hover {
  background: rgba(0, 242, 213, 0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-teal-glow);
}

/* Sector Impact Card */
.sector-impact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sector-card-title {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sector-bars-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sector-bar-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sector-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.sector-name {
  font-weight: 700;
  color: var(--text-primary);
}

.sector-percentage {
  font-size: 0.76rem;
  font-family: var(--font-mono);
}

.sector-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.sector-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   18. Dashboard Direct Voice AI Shortcut Buttons (Tambak7 AI)
   ========================================================================== */
.btn-talk-ai-hero {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 18px !important;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(37, 99, 235, 0.22) 100%) !important;
  border: 1.5px solid var(--accent-cyan) !important;
  border-radius: var(--radius-full) !important;
  color: var(--text-primary) !important;
  cursor: pointer !important;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.25), 0 0 12px rgba(0, 242, 254, 0.1) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
}

[data-theme="light"] .btn-talk-ai-hero {
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.95) 0%, rgba(224, 242, 254, 0.95) 100%) !important;
  border-color: #0d9488 !important;
  color: #0f766e !important;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.18) !important;
}

.btn-talk-ai-hero:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.45) !important;
  border-color: #ffffff !important;
}

.talk-mic-beacon {
  font-size: 1.2rem;
  display: inline-block;
  animation: pulse-ring 2s infinite;
}

.talk-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.talk-btn-text strong {
  font-size: 0.84rem;
  color: var(--text-primary);
  font-weight: 800;
}

.talk-btn-text small {
  font-size: 0.68rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
}

[data-theme="light"] .talk-btn-text small {
  color: #0d9488;
}

/* Nav Talk AI Button (Aesthetic Cyberpunk Pill) */
.nav-talk-ai-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 14px !important;
  height: 38px !important;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.14) 0%, rgba(99, 102, 241, 0.20) 100%) !important;
  border: 1.5px solid rgba(0, 242, 254, 0.45) !important;
  border-radius: var(--radius-full) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-sans, inherit) !important;
  cursor: pointer !important;
  box-shadow: 0 2px 14px rgba(0, 242, 254, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

[data-theme="light"] .nav-talk-ai-btn {
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.96) 0%, rgba(224, 242, 254, 0.96) 100%) !important;
  border-color: rgba(13, 148, 136, 0.5) !important;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.18) !important;
}

.nav-talk-ai-btn:hover {
  transform: translateY(-2px) scale(1.03) !important;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.26) 0%, rgba(99, 102, 241, 0.32) 100%) !important;
  border-color: var(--accent-cyan, #00f2fe) !important;
  box-shadow: 0 4px 22px rgba(0, 242, 254, 0.45) !important;
}

.nav-talk-radar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.nav-mic-dot {
  position: absolute;
  top: -1px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald, #10b981);
  box-shadow: 0 0 8px var(--accent-emerald, #10b981);
  animation: pulse-ring 1.8s infinite;
}

.nav-mic-icon {
  font-size: 1rem;
  line-height: 1;
}

.nav-talk-label {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-talk-badge {
  font-size: 0.60rem !important;
  font-family: var(--font-mono, monospace) !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #00f2fe, #2563eb) !important;
  color: #020617 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  letter-spacing: 0.06em !important;
}

.btn-talk-direct {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-talk-direct:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.55) !important;
}



