/* TABS SYSTEM IN MODAL */
.modal-tabs {
  display: flex; gap: 10px; margin-bottom: 2rem; border-bottom: 4px solid #000; padding-bottom: 10px;
  overflow-x: auto; scrollbar-width: none;
}
.modal-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  background: #fff; border: 3px solid #000; padding: 10px 18px; font-weight: 900; cursor: pointer;
  text-transform: uppercase; font-size: 0.8rem; transition: 0.1s; display: flex; align-items: center; gap: 8px;
}
.tab-btn.active { background: #e63946; color: white; transform: translateY(-4px); box-shadow: 4px 4px 0 #000; }
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* FLOATING QUICK NAV */
.quick-nav {
  position: fixed; bottom: 30px; right: 30px; z-index: 500; display: flex; flex-direction: column; gap: 10px;
}
.hub-card {
  min-height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  background: #ffffff;
  cursor: pointer;
  border: 4px solid #000;
  box-shadow: 8px 8px 0px #000;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 2rem 1.5rem;
}
.hub-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px #000;
  border-color: #000;
}
.nav-fab {
  width: 56px; height: 56px; background: #e63946; color: white; border: 4px solid #000;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 6px 6px 0 #000; cursor: pointer; transition: 0.2s;
}
.nav-fab:hover { transform: scale(1.1); background: #d90429; }
.nav-menu {
  display: none; flex-direction: column; gap: 8px; background: #fff; border: 4px solid #000;
  padding: 15px; box-shadow: 8px 8px 0 #000; position: absolute; bottom: 70px; right: 0; width: 220px;
}
.nav-menu.show { display: flex; }
.nav-menu a {
  text-decoration: none; color: #000; font-weight: 800; font-size: 0.85rem; padding: 8px;
  border-bottom: 1px dashed #eeddcc; transition: 0.2s; display: flex; align-items: center; gap: 8px;
}
.nav-menu a:hover { background: #fef7e8; padding-left: 12px; }

/* COMPACT CARD ADJUSTMENTS */
.roadmap-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.topic-card {
  display: flex; flex-direction: column; height: 100%; position: relative;
}
.topic-card-body { flex: 1; }
.topic-read { border-color: #4caf50 !important; background: #f1f8e9 !important; }
.topic-read .sticker { background: #4caf50 !important; color: #fff !important; }

/* SEARCH RESULTS TRAY */
.search-results-tray {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 4px solid #000; border-top: none;
  max-height: 400px; overflow-y: auto; z-index: 1000;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.1);
}
.search-results-tray.show { display: block; }
.search-result-item {
  padding: 15px; border-bottom: 1px dashed #000; cursor: pointer; transition: 0.2s;
}
.search-result-item:hover { background: #fef7e8; padding-left: 20px; }
.search-result-item:last-child { border-bottom: none; }

/* ICONS STATES */
.favorite-icon:hover { transform: scale(1.2); }
.read-icon:hover { transform: scale(1.2); }

@media (max-width: 850px) {
  .timeline-container::before { left: 20px; }
  .timeline-item-inner { width: 100%; padding-left: 50px; padding-right: 0; justify-content: flex-start; }
  .timeline-item-inner:nth-child(even) { padding-left: 50px; margin-left: 0; }
  .timeline-dot { left: 8px !important; right: auto !important; }
}

@media (max-width: 900px) {
  .welcome-kit-grid { grid-template-columns: 1fr; }
}

/* GENDERBREAD WIDGET STYLES */
.gb-outer { display: grid; grid-template-columns: 1fr 280px; gap: 0; align-items: start; border: 4px solid #000; background: #fff; }
@media(max-width:650px){ .gb-outer { grid-template-columns: 1fr; } }
.gb-img-side { position: relative; background: #fdfdfd; display: flex; align-items: center; justify-content: center; padding: 20px; border-right: 4px solid #000; }
@media(max-width:650px){ .gb-img-side { border-right: none; border-bottom: 4px solid #000; } }
.gb-img-side img { width: 100%; max-width: 400px; display: block; filter: drop-shadow(5px 5px 0 rgba(0,0,0,0.1)); }
.gb-panel { padding: 20px; display: flex; flex-direction: column; gap: 15px; background: #fef7e8; }
.gb-section { display: flex; flex-direction: column; gap: 6px; }
.gb-sec-title { font-size: 13px; font-weight: 800; color: #000; display: flex; align-items: center; gap: 8px; padding-bottom: 5px; border-bottom: 2px solid #000; text-transform: uppercase; }
.gb-pip { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #000; flex-shrink: 0; }
.gb-row { display: flex; align-items: center; gap: 8px; }
.gb-row span.lbl { font-size: 11px; color: #444; width: 100px; flex-shrink: 0; font-weight: 600; }
.gb-row input[type=range] { flex: 1; accent-color: #e63946; cursor: pointer; }
.gb-row .val { font-size: 11px; font-weight: 800; color: #000; width: 30px; text-align: right; }
.gb-sab-row { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 5px; }
.gb-sab-row label { font-size: 11px; color: #000; display: flex; align-items: center; gap: 5px; cursor: pointer; font-weight: 600; }
.gb-eq { font-size: 11px; color: #000; line-height: 1.5; padding: 10px; background: #fff; border: 2px solid #000; font-weight: 700; }
.gb-nota { font-size: 9px; color: #888; margin-top: 10px; }

/* HITOP TAXONOMY TOOL */
.hitop-container { padding: 1rem 0; font-family: 'Inter', sans-serif; }
.superspectra-bar {
  background: linear-gradient(90deg, #8B5CF6, #3B82F6, #10B981, #F59E0B, #EF4444, #6B7280);
  border: 4px solid #000; padding: 12px; text-align: center; margin-bottom: 15px; cursor: pointer;
  transition: 0.1s; box-shadow: 6px 6px 0 #000;
}
.superspectra-bar:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; }
.superspectra-bar span { color: #fff; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }

.hierarchy-label { font-size: 10px; color: #666; font-weight: 800; margin: 15px 0 8px; text-transform: uppercase; letter-spacing: 0.1em; display: flex; align-items: center; gap: 10px; }
.hierarchy-label::after { content: ''; flex: 1; height: 2px; background: #eee; }

.spectra-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 4px; }
.spectrum-btn {
  border: 3px solid #000; padding: 10px 4px; font-size: 11px; font-weight: 900; cursor: pointer;
  transition: 0.1s; text-align: center; line-height: 1.2; text-transform: uppercase;
}
.spectrum-btn:hover { transform: translateY(-2px); }
.spectrum-btn.active { box-shadow: 4px 4px 0 #000; filter: brightness(1.1); }

.arrows-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.arrow-col { display: flex; justify-content: center; align-items: center; font-size: 18px; color: #000; height: 20px; font-weight: 900; }

.subfactor-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 20px; }
.subfactor-card {
  border: 2px solid #000; padding: 8px; font-size: 10px; cursor: pointer; transition: 0.1s;
  min-height: 60px; display: flex; flex-direction: column; gap: 4px; background: #fff;
}
.subfactor-card:hover { transform: scale(1.05); z-index: 10; box-shadow: 4px 4px 0 rgba(0,0,0,0.1); }
.subfactor-card .sf-name { font-weight: 800; font-size: 10px; line-height: 1.1; }
.subfactor-card .sf-desc { font-size: 9px; opacity: 0.7; line-height: 1.2; }

.hitop-detail-panel {
  border: 4px solid #000; padding: 1.5rem; background: #fff; min-height: 200px;
  box-shadow: 8px 8px 0 #f0f0f0; margin-top: 20px;
}
.p-label { font-size: 11px; font-weight: 900; color: #999; margin: 15px 0 8px; text-transform: uppercase; }
.clinical-note {
  margin-top: 15px; padding: 12px; background: #fdfdfd; font-size: 12px; color: #333;
  border-left: 6px solid #000; line-height: 1.5; border-right: 1px solid #eee; border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}

/* PREMIUM RANGE SLIDERS */
input[type="range"] {
  -webkit-appearance: none;
  background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  background: #eee;
  border: 2px solid #000;
  border-radius: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 12px;
  background: #fcbf49;
  border: 2px solid #000;
  margin-top: -10px;
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
}
input[type="range"]:active::-webkit-slider-thumb {
  background: #e63946;
  transform: scale(1.1);
}

.p-factor-display {
  text-align: center;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.2);
}
