:root {
  --primary-color: #df8620;
  --accent: #f7fbff;
}
body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #fafafd;
  color: #1d2228;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main layout */
#main-flex-wrap {
  display: block;
  width: 100%;
  flex: 1;
}

.main-content {
  width: 100%;
  min-width: 0;
  padding: 0;
}

/* Desktop layout with sidebar */
@media (min-width: 769px) {
  #main-flex-wrap {
    display: flex;
    align-items: flex-start;
  }
  
  .main-content {
    flex: 1 1 0;
    min-width: 0;
  }
}
/* HEADER & NAV */
header {
  display: flex;
  align-items: center;
  background: var(--primary-color);
  color: #fff;
  padding: 8px 12px;
  min-height: 48px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  z-index: 100;
}
#logo {
  height: 32px;
  width: auto;
  margin-right: 12px;
  border-radius: 6px;
}
h1 {
  margin: 0;
  font-size: 1.22em;
  font-weight: 700;
  letter-spacing: 0.04em;
}
nav {
  background: #f7fbff;
  border-bottom: 1px solid #d1e2ef;
  padding: 4px 9px 4px 12px;
}
nav.main-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f7fbff;
  border-bottom: 1px solid #d1e2ef;
  min-height: 44px;
  position: relative;
  z-index: 99;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.main-navbar .nav-left,
.main-navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 11px;
}

.nav-simple-link,
#reset-filters-link {
  font-size: .98em;
  color: var(--primary-color);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 7px;
  transition: color .11s, background .13s;
}
.nav-simple-link:hover,
#reset-filters-link:hover {
  color: #fff;
  background: var(--primary-color);
  text-decoration: none;
}
.filter-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.95em;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-btn:hover {
  background: #c5721a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.filter-btn:active {
  transform: translateY(0);
}
/* --- SIDEBAR FILTER --- */
#filter-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: #fff;
  box-shadow: 3px 0 20px rgba(0,0,0,0.15);
  z-index: 200;
  overflow-y: auto;
  transform: translateX(-102%);
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px 12px;
  border-right: 1px solid #e7ecef;
  font-size: 13px;
  box-sizing: border-box;
}
#filter-sidebar.open {
  transform: translateX(0);
}

#filter-sidebar .close-btn {
  background: #f5f5f5;
  border: none;
  font-size: 1.1em;
  color: #666;
  float: right;
  cursor: pointer;
  margin-top: -4px;
  margin-right: -2px;
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.0;
  transition: all 0.2s ease;
}

#filter-sidebar .close-btn:hover {
  background: #e0e0e0;
  color: #333;
}
/* Each filter block */
.filter-section {
  margin-bottom: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.filter-section:last-child {
  margin-bottom: 4px;
  border-bottom: none;
}
.filter-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #1a2936;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 12px;
}
/* -- Chips (all filter areas) -- */
.filter-gender,
.filter-regions,
.filter-roomsize {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.filter-chip {
  background: var(--accent);
  color: #265690;
  border-radius: 11px;
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid #d3e4ef;
  font-size: 12.7px;
  user-select: none;
  transition: background .13s;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1.1;
}
.filter-chip.selected {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
/* Gender filter icon coloring (sidebar chips!) */
.filter-chip[data-gender="f"], .filter-chip[data-gender="f"] .gender-cb { color: #b95cb0; }
.filter-chip[data-gender="m"], .filter-chip[data-gender="m"] .gender-cb { color: #3673d9; }
.filter-chip[data-gender="t"], .filter-chip[data-gender="t"] .gender-cb { color: #b089e1; }
.filter-chip[data-gender="c"], .filter-chip[data-gender="c"] .gender-cb { color: #ad7c43; }
/* -- Tags section -- */
.filter-tags-group {
  border: 1px solid #e0e6ee;
  background: #f7f9fd;
  border-radius: 7px;
  padding: 6px 6px 3px 6px;
  margin-bottom: 0;
  margin-top: 2px;
}
#tag-search {
  width: 100%;
  margin-bottom: 6px;
  border: 1px solid #ccddee;
  border-radius: 6px;
  font-size: 12.2px;
  padding: 2px 6px;
  background: #f8fbff;
  height: 21px;
  box-sizing: border-box;
}
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 1px;
  min-height: 28px;
  max-height: 94px;
  overflow-y: auto;
}
/* -- Age filter (always in a single row) -- */
.filter-ages {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin-top: 3px;
  width: 100%;
  position: relative;
}
.filter-ages input[type="number"] {
  flex: 0 0 60px;
  width: 60px;
  min-width: 60px;
  max-width: 70px;
  border: 1px solid #ccddee;
  border-radius: 6px;
  font-size: 14px;
  padding: 6px 8px;
  background: #f8fbff;
  height: 32px;
  box-sizing: border-box;
  text-align: center;
  vertical-align: middle;
  margin: 0;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -moz-appearance: textfield; /* Hide arrows in Firefox */
}

/* Hide arrows in WebKit browsers (Chrome, Safari, Edge) */
.filter-ages input[type="number"]::-webkit-outer-spin-button,
.filter-ages input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Focus state for better UX */
.filter-ages input[type="number"]:focus {
  border-color: var(--primary-color, #df8620);
  box-shadow: 0 0 0 2px rgba(223, 134, 32, 0.2);
  outline: none;
}

/* Hover state */
.filter-ages input[type="number"]:hover {
  border-color: #aabbcc;
}
.filter-ages span {
  margin: 0 3px;
  line-height: 1.2;
}
/* ------ MODEL GRID & CARD ------ */
.model-grid {
  display: grid;
  gap: 16px;
  margin: 12px 12px 0 12px;
  grid-template-columns: repeat(auto-fill, 200px);
  max-width: 100%;
  padding-bottom: 20px;
  justify-content: start;
}

/* Tablet */
@media (max-width: 800px) {
  .model-grid { 
    gap: 14px; 
    margin: 10px;
    grid-template-columns: repeat(auto-fill, 180px); 
  }
}

/* Mobile Large */
@media (max-width: 600px) {
  .model-grid { 
    grid-template-columns: repeat(auto-fill, 160px);
    gap: 12px;
    margin: 8px;
  }
  
  #filter-sidebar {
    width: 90vw;
    max-width: 320px;
    font-size: 14px;
    padding: 16px;
  }
  
  .filter-chip { 
    font-size: 14px; 
    min-height: 32px;
    padding: 6px 12px;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .model-grid { 
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 6px;
  }
}

/* Mobile Tiny */
@media (max-width: 320px) {
  .model-grid { 
    grid-template-columns: 1fr; 
    gap: 12px;
  }
}
/* MODEL CARD STYLE */
.model-card-cb {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  max-height: 240px;
  width: 100%;
  min-width: 180px;
  max-width: 220px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 13px !important;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.model-card-cb:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  border-color: #ccc;
}

@media (max-width: 480px) {
  .model-card-cb {
    min-height: 180px;
    max-height: 220px;
    padding: 10px;
  }
}
/* Image container */
.model-img-wrap-cb {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  overflow: visible;
  background: #f5f5f5;
  position: relative;
  margin-bottom: 8px;
}

.model-img-cb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px !important;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.model-card-cb:hover .model-img-cb {
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .model-img-wrap-cb {
    height: 100px;
  }
}
/* Card info container now stretches all available height for correct sticky meta row! */
.model-info-cb {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  gap: 0px;
}
.row-top-cb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 17px;
  height: 17px;
  margin: 0;
  padding-bottom: 2px;
  box-sizing: border-box;
}
.username-cb {
  flex: 1 1 0;
  min-width: 0;
  color: #0066cc;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Right meta group for Age, Gender, Flag */
.row-meta-cb {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}
.row-meta-cb > *:first-child {
  margin-left: 0 !important;
}

/* ===== BOLD & COLORED GENDER ICON ===== */
.gender-cb {
  font-size: 1.23em;
  margin-right: 2px;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", "Arial", sans-serif;
  font-weight: normal;
  /* simulate bold with text-shadow */
  text-shadow:
    0 0 0.7px currentColor,
    0 0 0.7px currentColor;
  opacity: 0.98;
  /* color set below by .f, .m, .t, .c class */
}
.gender-cb.f { color: #b95cb0; }
.gender-cb.m { color: #3673d9; }
.gender-cb.t { color: #b089e1; }
.gender-cb.c { color: #ad7c43; }
/* ===== END GENDER ICON ===== */

.age-cb {
  flex: 0 0 auto;
  min-width: 18px;
  text-align: center;
  margin: 0;
  padding: 0;
}
.flag-cb, .country-cb img {
  width: 16px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid #ccc;
  margin-left: 4px;
  display: inline-block;
}
/* Subject and tags (now only tags in subject are shown) */
.subject-cb {
  font-size: 12px;
  color: #333;
  line-height: 1.4;
  margin: 2px 0 0 0;
  margin-bottom: 3px !important;
  padding: 0 !important;
  word-break: break-word;
  white-space: normal;
  height: 50px;
}
.tag-cb {
  color: #0066cc;
  font-size: 12px;
  font-weight: normal;
  margin-left: 3px;
  margin-right: 1px;
  margin-bottom: 0;
  display: inline-block;
  white-space: normal;
}
/* Bottom meta row (viewers, time) - STICKS to absolute card bottom, no gap above! */
.meta-row-cb {
  font-size: 11px;
  color: #666;
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 18px;
  margin-top: auto;
}
.meta-group-cb {
  display: flex;
  align-items: center;
  gap: 3px;
}
.icon-cb {
  font-size: 13px;
  opacity: 0.7;
  margin-right: 2px;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
}
footer {
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef4fb 100%);
  color: #4770ad;
  border-top: 1px solid #d1e2ef;
  font-size: 0.9em;
  margin-top: auto;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.03);
  position: relative;
  z-index: 10;
}

footer p {
  margin: 0;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

footer a {
  color: var(--primary-color, #df8620);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

footer a:hover,
footer a:focus {
  color: #c5721a;
  text-decoration: underline;
}

/* Better footer spacing */
@media (max-width: 768px) {
  footer {
    padding: 16px 12px;
    font-size: 0.85em;
  }
  
  footer p {
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 14px 8px;
  }
  
  footer p {
    font-size: 0.9em;
  }
}

main { 
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
  header {
    padding: 8px;
    min-height: 44px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
  }
  
  nav.main-navbar {
    padding: 6px 8px;
    min-height: 40px;
    position: relative;
    top: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  main {
    margin-top: 0;
  }
  
  .main-navbar .nav-left,
  .main-navbar .nav-right {
    gap: 8px;
  }
  
  .nav-simple-link {
    font-size: 0.9em;
    padding: 4px 8px;
  }
}

/* Enhanced Age Range Sliders */
.dual-range-slider {
  position: relative;
}

.dual-range-slider input[type="range"] {
  pointer-events: all;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  -webkit-appearance: none;
  transition: all 0.2s ease;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dual-range-slider input[type="range"]::-moz-range-thumb {
  pointer-events: all;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  -moz-appearance: none;
  transition: all 0.2s ease;
}

.dual-range-slider input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.dual-range-slider input[type="range"]::-webkit-slider-track {
  background: transparent;
  height: 20px;
}

.dual-range-slider input[type="range"]::-moz-range-track {
  background: transparent;
  height: 20px;
  border: none;
}

/* Discovery Cards Hover Effects */
.discovery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .discovery-controls {
    flex-direction: column;
    gap: 12px;
    align-items: stretch !important;
  }
  
  .sort-controls, .view-controls {
    width: 100%;
  }
  
  .sort-controls select {
    width: 100%;
  }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
  .filter-chip {
    min-height: 44px;
    padding: 8px 12px;
  }
  
  .filter-btn {
    min-height: 44px;
    padding: 12px 20px;
  }
  
  .model-card-cb {
    transition: none;
  }
  
  .model-card-cb:hover {
    transform: none;
  }
}
.back-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: .98em;
  margin: 7px 0;
  text-decoration: none;
  box-shadow: 0 2px 7px #0001;
  transition: background .11s;
}
.back-btn:hover {
  background: #205a94;
  color: #fff;
  text-decoration: none;
}
.pagination-bar {
  text-align: center;
  margin: 11px 0 7px 0;
}
.pagination-bar b {
  display: inline-block;
  min-width: 21px;
  padding: 2.5px 6px;
  background: #bae8f9;
  color: #2081b0;
  font-weight: bold;
  border-radius: 5px;
  margin: 0 2px;
}
.pagination-bar button {
  border: 1px solid #d1e8fa;
  background: #f5fcff;
  color: #368acb;
  padding: 2.5px 7px;
  margin: 0 1px;
  border-radius: 5px;
  font-size: .98em;
  cursor: pointer;
  transition: background .10s;
  box-shadow: 0 1px 2px #aad6fa09;
}
.pagination-bar button[disabled], .pagination-bar button:disabled {
  color: #aecadb;
  background: #e2effa;
  cursor: not-allowed;
}
.pagination-bar button:hover:not([disabled]) {
  background: #ace1ff;
  color: #1b5a89;
}

/* Loading states and improvements */
.loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.loading:after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Improved pagination for mobile */
@media (max-width: 600px) {
  .pagination-bar {
    margin: 16px 8px;
    font-size: 14px;
  }
  
  .pagination-bar button,
  .pagination-bar b {
    padding: 8px 12px;
    min-height: 44px;
    margin: 0 2px;
  }
}

/* Better focus states for accessibility */
.filter-btn:focus,
.nav-simple-link:focus,
#reset-filters-link:focus,
.filter-chip:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Peak Hours Chart Styling */
.peak-hours-chart {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
}

.chart-explanation {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
  font-style: italic;
}

.hours-grid {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  justify-content: space-around;
  height: 120px;
  padding: 0 8px;
}

.hour-block {
  text-align: center;
  flex: 1;
  min-width: 60px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hour-time {
  font-size: 11px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.hour-bar {
  width: 20px;
  margin: 0 auto;
  border-radius: 4px 4px 0 0;
  min-height: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.3);
}

.hour-viewers {
  font-size: 10px;
  color: #666;
  margin-top: 4px;
  white-space: nowrap;
}

.hour-block:hover .hour-bar {
  transform: scaleX(1.5);
  box-shadow: 0 2px 8px rgba(255, 169, 39, 0.4);
}

/* Mobile responsive for charts */
@media (max-width: 768px) {
  .hours-grid {
    gap: 4px;
    height: 100px;
  }
  
  .hour-time {
    font-size: 9px;
  }
  
  .hour-viewers {
    font-size: 8px;
  }
  
  .hour-bar {
    width: 16px;
  }
}

/* Enhanced Room Topics Timeline */
.topics-timeline {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
}

.timeline-explanation {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
  font-style: italic;
}

.topic-timeline-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  border-left: 3px solid #e0e6ee;
  background: white;
  transition: all 0.3s ease;
}

.topic-timeline-item.completed {
  border-left-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.topic-timeline-item.has-goal {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fefbf0, #ffffff);
}

.topic-timeline-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
}

.timeline-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-status {
  font-size: 14px;
}

.timeline-content {
  flex: 1;
}

.topic-text {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 6px;
  color: #333;
}

.topic-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
}

.topic-length {
  color: #666;
  background: #f1f3f4;
  padding: 2px 6px;
  border-radius: 12px;
}

.topic-type {
  padding: 2px 6px;
  border-radius: 12px;
  font-weight: 500;
}

.topic-type.goal {
  background: #fef3c7;
  color: #92400e;
}

.topic-type.completed {
  background: #d1fae5;
  color: #065f46;
}

/* Language Analysis */
.language-analysis {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
}

.language-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.language-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.language-item.primary {
  border-left: 3px solid var(--primary-color);
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.language-name {
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.language-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.language-badge.primary {
  background: var(--primary-color);
  color: white;
}

.language-badge.secondary {
  background: #e5e7eb;
  color: #6b7280;
}

.language-summary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.multilingual-badge {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
}

.monolingual-badge {
  background: #f3f4f6;
  color: #6b7280;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

.language-count {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

/* Favorites System */
.favorite-btn {
  background: linear-gradient(135deg, #f3f4f6, #ffffff);
  color: #6b7280;
  border: 1px solid #d1d5db;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 4px 0;
  display: inline-block;
}

.favorite-btn:hover {
  background: linear-gradient(135deg, #fee2e2, #ffffff);
  color: #dc2626;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

.favorite-btn.active {
  background: linear-gradient(135deg, #fef2f2, #ffffff);
  color: #dc2626;
  border-color: #fca5a5;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

/* Comparison Tool */
.compare-btn {
  background: linear-gradient(135deg, #f0f9ff, #ffffff);
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 4px 0;
  display: inline-block;
}

.compare-btn:hover {
  background: linear-gradient(135deg, #dbeafe, #ffffff);
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.compare-btn.active {
  background: linear-gradient(135deg, #dbeafe, #ffffff);
  color: #1d4ed8;
  border-color: #60a5fa;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.2);
}

.comparison-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary-color), #f59e0b);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 169, 39, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 169, 39, 0.5);
}

.compare-count {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Comparison Modal */
.comparison-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.comparison-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-color), #f59e0b);
  color: white;
}

.comparison-header h2 {
  margin: 0;
  font-size: 24px;
}

.close-comparison {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.close-comparison:hover {
  background: rgba(255, 255, 255, 0.2);
}

.comparison-table {
  padding: 20px;
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  background: #f9fafb;
}

.comparison-actions {
  padding: 20px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.comparison-actions button {
  background: #6b7280;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.comparison-actions button:hover {
  background: #4b5563;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .comparison-floating-btn {
    bottom: 10px;
    right: 10px;
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .comparison-modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .comparison-table {
    padding: 10px;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 8px 4px;
    font-size: 12px;
  }
  
  .favorite-btn,
  .compare-btn {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* Better contrast for accessibility */
@media (prefers-contrast: high) {
  .model-card-cb {
    border: 2px solid #333;
  }
  
  .filter-chip {
    border: 2px solid #333;
  }
}

/* ONLINE TIME TRACKER HEAT MAP */
.online-time-tracker {
  margin: 20px 0;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  width: 100%;
  box-sizing: border-box;
}

/* Beautiful Full-Width Heat Map */
.online-time-tracker {
  background: linear-gradient(135deg, #f8fbff 0%, #f0f8ff 100%);
  border: 1px solid #e1ecf7;
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.08);
}

.heatmap-header {
  margin-bottom: 24px;
  text-align: center;
}

.heatmap-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.heatmap-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.heatmap-title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1a2332;
  background: linear-gradient(135deg, #2d4a6b, #1a2332);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.heatmap-subtitle {
  margin: 0;
  font-size: 13px;
  color: #6b7688;
  font-weight: 400;
}

.heatmap-container {
  width: 100%;
  overflow: hidden;
}

.heatmap-chart {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.heatmap-hours-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.heatmap-weekday-spacer {
  width: 60px;
  flex-shrink: 0;
}

.heatmap-hour-cell {
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heatmap-hour-label {
  font-size: 11px;
  font-weight: 500;
  color: #7b8794;
  text-align: center;
}

.heatmap-day-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.heatmap-weekday-label {
  width: 56px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 8px;
}

.heatmap-weekday-label span {
  font-size: 12px;
  font-weight: 500;
  color: #5a6270;
}

.heatmap-cell {
  flex: 1;
  height: 16px;
  min-height: 16px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.heatmap-cell:hover {
  transform: scale(1.15);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid #4a90e2;
}

/* Current time highlighting */
.heatmap-cell.current-time {
  border: 2px solid #fd8c73 !important;
  box-shadow: 0 0 12px rgba(253, 140, 115, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
  z-index: 5;
}

@keyframes cell-pulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(253, 140, 115, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(253, 140, 115, 0.6), 0 4px 16px rgba(253, 140, 115, 0.2);
  }
}

.heatmap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10px;
  color: #656d76;
  overflow-x: auto;
  padding: 10px 0;
}

.heatmap-months {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.heatmap-month {
  font-size: 9px;
  color: #656d76;
  width: 15px;
  text-align: right;
  line-height: 11px;
}

.heatmap-weekdays {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 11px;
}

.heatmap-weekday {
  font-size: 9px;
  color: #656d76;
  text-align: center;
  height: 11px;
  line-height: 11px;
}

.heatmap-grid {
  display: flex;
  flex-direction: row;
  gap: 2px;
}

.heatmap-week {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.heatmap-day {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  cursor: pointer;
  outline: 1px solid rgba(27, 31, 35, 0.06);
  outline-offset: -1px;
}

.heatmap-day:hover {
  outline: 1px solid rgba(27, 31, 35, 0.15);
  outline-offset: -1px;
}

/* Current time highlighting */
.heatmap-day.current-time {
  outline: 2px solid #fd8c73;
  outline-offset: -1px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { outline-color: #fd8c73; }
  50% { outline-color: #ff6b35; }
  100% { outline-color: #fd8c73; }
}

@keyframes svg-pulse {
  0% { stroke: #fd8c73; }
  50% { stroke: #ff6b35; }
  100% { stroke: #fd8c73; }
}

/* Beautiful Tooltip with reliable positioning */
.heatmap-tooltip {
  position: fixed;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(45, 74, 107, 0.95) 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 1001;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  transition: opacity 0.15s ease;
  opacity: 0;
  max-width: 250px;
}

/* Modern Legend */
.heatmap-legend {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(225, 236, 247, 0.8);
}

.legend-title {
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 12px;
  text-align: center;
}

.legend-items {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.time-tracker-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #666;
  flex-wrap: wrap;
}

.legend-label {
  font-weight: 600;
  margin-right: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border: 1px solid #ccc;
  border-radius: 2px;
}

/* Mobile responsiveness for new Heat Map */
@media (max-width: 768px) {
  .online-time-tracker {
    padding: 20px;
    margin: 16px 0;
  }
  
  .heatmap-icon {
    font-size: 24px;
  }
  
  .heatmap-title h3 {
    font-size: 18px;
  }
  
  .heatmap-subtitle {
    font-size: 12px;
  }
  
  .heatmap-cell {
    height: 14px;
    min-height: 14px;
  }
  
  .heatmap-weekday-label span {
    font-size: 11px;
  }
  
  .heatmap-hour-label {
    font-size: 10px;
  }
  
  .legend-items {
    gap: 16px;
  }
  
  .legend-item {
    font-size: 10px;
  }
  
  .legend-color {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .online-time-tracker {
    padding: 16px;
    margin: 12px 0;
  }
  
  .heatmap-header {
    margin-bottom: 20px;
  }
  
  .heatmap-icon {
    font-size: 20px;
  }
  
  .heatmap-title h3 {
    font-size: 16px;
  }
  
  .heatmap-subtitle {
    font-size: 11px;
  }
  
  .heatmap-cell {
    height: 12px;
    min-height: 12px;
  }
  
  .heatmap-weekday-spacer {
    width: 50px;
  }
  
  .heatmap-weekday-label {
    width: 46px;
  }
  
  .heatmap-weekday-label span {
    font-size: 10px;
  }
  
  .heatmap-hour-label {
    font-size: 9px;
  }
  
  .legend-items {
    gap: 12px;
  }
  
  .legend-item {
    font-size: 9px;
  }
  
  .legend-color {
    width: 10px;
    height: 10px;
  }
  
  .heatmap-legend {
    margin-top: 20px;
    padding: 12px;
  }
}

/* Enhanced Model Features CSS */

/* Enhanced Badges - Aligned with model panel */
.model-badges-section {
  margin: 16px 0 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* Dashboard-Style Analytics Layout */
.model-dashboard {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.metric-card {
  background: #fff;
  border: 1px solid #e1ecf7;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
}

.metric-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  border-radius: 10px;
  flex-shrink: 0;
}

.metric-content {
  flex: 1;
}

.metric-value {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 2px;
}

.metric-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 500;
}

.dashboard-content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dashboard-left,
.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Full-width section for heat map and similar models */
.model-full-width-section {
  width: 100%;
  margin: 24px 0;
}

.model-badge-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 16px;
  color: white;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  white-space: nowrap;
}


/* Performance Insights Panel - Matches model panel styling */
.model-insights-panel {
  background: #fff;
  border: 1px solid #e1ecf7;
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.model-insights-panel h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.insight-card {
  background: #f8fbff;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #f0f0f0;
}

.insight-value {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 2px;
}

.insight-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 500;
}

.last-seen-info {
  background: #f0f8ff;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e1ecf7;
}

.last-seen-label {
  font-weight: 600;
  color: #4a5568;
  font-size: 13px;
}

.last-seen-time {
  color: #2563eb;
  font-weight: 500;
  font-size: 13px;
}

/* Session Analytics - Consistent styling */
.session-analytics-panel {
  background: #fff;
  border: 1px solid #e1ecf7;
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.session-analytics-panel h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.session-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.session-stat {
  background: #fef3e2;
  padding: 10px 12px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #fed7aa;
}

.session-label {
  font-weight: 600;
  color: #7c2d12;
  font-size: 12px;
}

.session-value {
  color: #ea580c;
  font-weight: 700;
  font-size: 13px;
}

/* Tags Cloud - Consistent styling */
.tags-cloud-panel {
  background: #fff;
  border: 1px solid #e1ecf7;
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tags-cloud-panel h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag-cloud-item {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  padding: 4px 10px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid #bbf7d0;
}

.tag-cloud-item:hover {
  background: #dcfce7;
}

.tag-cloud-item small {
  opacity: 0.7;
  margin-left: 4px;
}

/* Recent Room Subjects - Consistent styling */
.room-subjects-panel {
  background: #fff;
  border: 1px solid #e1ecf7;
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.room-subjects-panel h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.recent-subjects {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subject-item {
  background: #fdf2f8;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #fbcfe8;
}

.subject-number {
  background: #ec4899;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.subject-text {
  flex: 1;
  color: #831843;
  font-size: 13px;
  line-height: 1.3;
}

/* Similar Models Section - Integrated with heat map */
.similar-models-section {
  margin: 24px 0 0 0;
  padding: 20px 0 0 0;
  background: transparent;
  border-top: 1px solid #e1ecf7;
}

.similar-models-section h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.similar-models-subtitle {
  color: #64748b;
  font-size: 13px;
  margin: 0 0 16px 0;
}

.similar-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.similar-model-card {
  background: #f8fbff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e1ecf7;
  transition: all 0.2s ease;
}

.similar-model-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.similar-model-image {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.similar-model-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.similarity-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(59, 130, 246, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.similar-model-info {
  padding: 12px;
}

.similar-model-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  margin-bottom: 6px;
}

.similar-model-name:hover {
  color: #3b82f6;
}

.similar-model-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.similar-age, .similar-viewers, .similar-hd {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.similar-hd {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
}

.similar-model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.similar-tag {
  font-size: 9px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 500;
}

/* Mobile Responsiveness for New Features */
@media (max-width: 968px) {
  .dashboard-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-content-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .dashboard-metrics-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .metric-card {
    padding: 12px;
  }
  
  .metric-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  
  .metric-value {
    font-size: 18px;
  }
  
  .session-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .similar-models-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .model-insights-panel,
  .session-analytics-panel,
  .tags-cloud-panel,
  .room-subjects-panel,
  .similar-models-section {
    padding: 16px;
    margin: 8px 0;
  }
  
  .tags-cloud {
    justify-content: center;
  }
  
  .similar-model-image {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .metric-card {
    padding: 10px;
    gap: 8px;
  }
  
  .metric-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  
  .metric-value {
    font-size: 16px;
  }
  
  .metric-label {
    font-size: 9px;
  }
  
  .model-badges-section {
    justify-content: center;
  }
  
  .model-insights-panel,
  .session-analytics-panel,
  .tags-cloud-panel,
  .room-subjects-panel,
  .similar-models-section {
    padding: 12px;
    margin: 8px 0;
  }
  
  .similar-model-image {
    height: 80px;
  }
}

/* Analytics Dashboard - Clean and Beautiful */
.analytics-dashboard {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  margin: 24px 0;
  overflow: hidden;
}

.dashboard-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.dashboard-title {
  margin: 0 0 8px 0;
  font-size: 1.8em;
  font-weight: 700;
  color: #1a202c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.dashboard-icon {
  font-size: 1.2em;
}

.dashboard-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 1.1em;
  font-weight: 400;
}

/* Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 32px 24px;
  background: #fff;
}

.metric-card {
  background: #fff;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #f59e0b);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  border-color: var(--primary-color);
}

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

.metric-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #f59e0b);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(223, 134, 32, 0.3);
}

.metric-icon {
  font-size: 1.5em;
  color: white;
}

.metric-content {
  flex: 1;
  min-width: 0;
}

.metric-number {
  font-size: 2.2em;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 1em;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Analytics Content */
.analytics-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 0 24px 32px 24px;
  background: #fafbfc;
}

.analytics-left,
.analytics-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Analytics Panels */
.analytics-panel {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.analytics-panel:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.panel-title {
  background: #f8fafc;
  padding: 20px 24px;
  margin: 0;
  font-size: 1.2em;
  font-weight: 700;
  color: #1a202c;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.panel-icon {
  font-size: 1.1em;
}

/* Session Stats */
.session-stats {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.session-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.stat-label {
  font-weight: 600;
  color: #374151;
  font-size: 1em;
}

.stat-value {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1em;
}

/* Tags Cloud */
.tags-cloud {
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  background: var(--accent);
  color: #265690;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid #d3e4ef;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tag-item:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(223, 134, 32, 0.3);
}

.tag-count {
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #265690;
}

.tag-item:hover .tag-count {
  background: rgba(255,255,255,0.9);
  color: var(--primary-color);
}

/* Topics List */
.topics-list {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topic-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.topic-item:hover {
  background: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.topic-number {
  background: linear-gradient(135deg, var(--primary-color), #f59e0b);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(223, 134, 32, 0.3);
}

.topic-text {
  flex: 1;
  color: #374151;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 500;
}

/* Similar Models */
.similar-models {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.similar-model {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.similar-model:hover {
  background: #fff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.similar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
  transition: border-color 0.2s ease;
}

.similar-model:hover .similar-avatar {
  border-color: var(--primary-color);
}

.similar-details {
  flex: 1;
  min-width: 0;
}

.similar-name {
  font-weight: 700;
  color: #1a202c;
  font-size: 14px;
  margin-bottom: 4px;
}

.similar-info {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .analytics-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .similar-models {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px 16px;
  }
  
  .dashboard-header {
    padding: 24px 16px;
  }
  
  .dashboard-title {
    font-size: 1.5em;
    flex-direction: column;
    gap: 8px;
  }
  
  .analytics-content {
    padding: 0 16px 24px 16px;
    gap: 16px;
  }
  
  .metric-card {
    padding: 20px 16px;
    gap: 16px;
  }
  
  .metric-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .metric-number {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .metrics-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 12px;
  }
  
  .dashboard-header {
    padding: 20px 12px;
  }
  
  .analytics-content {
    padding: 0 12px 20px 12px;
  }
}

/* =============================================
   SOPHISTICATED SPOTLIGHT SYSTEM CSS
   ============================================= */

/* Subtle corner accent for spotlighted models */
.model-card-cb.spotlighted {
  position: relative;
  overflow: visible;
}

/* Base spotlight gradient (fallback) */
.model-card-cb.spotlighted::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #ffd700, #ff9ff3);
  background-size: 200% 200%;
  border-radius: 12px;
  z-index: -1;
  animation: gradient-shift 3s ease-in-out infinite;
  opacity: 0.3;
}

.model-card-cb.spotlighted:hover::before {
  opacity: 0.6;
  animation-duration: 1.5s;
}

/* Unique gradients for each spotlight type */
.model-card-cb.spotlight-super-star::before {
  background: linear-gradient(45deg, #ffd700, #ffed4e, #fff9a6, #fffa8c);
  animation: super-star-glow 2s ease-in-out infinite;
}

.model-card-cb.spotlight-trending::before {
  background: linear-gradient(45deg, #ff4757, #ff6b8a, #ff8fab, #ffabcc);
  animation: trending-pulse 2.5s ease-in-out infinite;
}

.model-card-cb.spotlight-top-performer::before {
  background: linear-gradient(45deg, #5f27cd, #8854d0, #a77bd4, #c5a2d8);
  animation: performer-shine 3s ease-in-out infinite;
}

.model-card-cb.spotlight-just-live::before {
  background: linear-gradient(45deg, #00d4ff, #4de3ff, #80ecff, #b3f5ff);
  animation: just-live-flash 1.8s ease-in-out infinite;
}

.model-card-cb.spotlight-marathon::before {
  background: linear-gradient(45deg, #ff7675, #fd79a8, #fdcb6e, #e17055);
  animation: marathon-endurance 4s ease-in-out infinite;
}

.model-card-cb.spotlight-rising-star::before {
  background: linear-gradient(45deg, #00b894, #00cec9, #55efc4, #81ecec);
  animation: rising-star-ascend 2.2s ease-in-out infinite;
}

.model-card-cb.spotlight-hd-quality::before {
  background: linear-gradient(45deg, #0984e3, #74b9ff, #a29bfe, #6c5ce7);
  animation: hd-quality-crystal 3.5s ease-in-out infinite;
}

.model-card-cb.spotlight-interactive::before {
  background: linear-gradient(45deg, #e84393, #fd79a8, #fdcb6e, #f39c12);
  animation: interactive-fun 2.8s ease-in-out infinite;
}

.model-card-cb.spotlight-multilingual::before {
  background: linear-gradient(45deg, #2d3436, #636e72, #b2bec3, #ddd);
  animation: multilingual-spectrum 3.2s ease-in-out infinite;
}

/* Elegant bottom overlay for spotlight info */
.spotlight-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 20px 8px 8px 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.model-img-wrap-cb:hover .spotlight-overlay {
  opacity: 1;
}

.spotlight-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 
    0 0 8px rgba(0,0,0,1),
    0 0 4px rgba(0,0,0,1),
    0 2px 4px rgba(0,0,0,0.8),
    1px 1px 2px rgba(0,0,0,1),
    -1px -1px 2px rgba(0,0,0,1),
    1px -1px 2px rgba(0,0,0,1),
    -1px 1px 2px rgba(0,0,0,1);
}

.spotlight-icon-small {
  font-size: 14px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.spotlight-text-small {
  font-size: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  letter-spacing: 0.3px;
}

/* Subtle corner indicator - minimal and classy */
.spotlight-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 5;
  transition: all 0.3s ease;
}

.spotlight-corner:hover {
  transform: scale(1.2);
}

/* Different colors for priority levels - fallback */
.spotlight-corner.priority-high {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
}

.spotlight-corner.priority-medium {
  background: linear-gradient(45deg, #4ecdc4, #6bcf7f);
}

.spotlight-corner.priority-low {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
}

/* Unique corner colors matching each spotlight type */
.spotlight-corner.corner-super-star {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  color: #1a1a1a;
  text-shadow: 0px 0px 3px rgba(255, 255, 255, 0.8);
  font-weight: bold;
}

.spotlight-corner.corner-trending {
  background: linear-gradient(45deg, #ff4757, #ff6b8a);
  box-shadow: 0 0 8px rgba(255, 71, 87, 0.5);
}

.spotlight-corner.corner-top-performer {
  background: linear-gradient(45deg, #5f27cd, #8854d0);
  box-shadow: 0 0 8px rgba(95, 39, 205, 0.5);
}

.spotlight-corner.corner-just-live {
  background: linear-gradient(45deg, #00d4ff, #4de3ff);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.spotlight-corner.corner-marathon {
  background: linear-gradient(45deg, #ff7675, #fd79a8);
  box-shadow: 0 0 8px rgba(255, 118, 117, 0.5);
}

.spotlight-corner.corner-rising-star {
  background: linear-gradient(45deg, #00b894, #00cec9);
  box-shadow: 0 0 8px rgba(0, 184, 148, 0.5);
}

.spotlight-corner.corner-hd-quality {
  background: linear-gradient(45deg, #0984e3, #74b9ff);
  box-shadow: 0 0 8px rgba(9, 132, 227, 0.5);
}

.spotlight-corner.corner-interactive {
  background: linear-gradient(45deg, #e84393, #fd79a8);
  box-shadow: 0 0 8px rgba(232, 67, 147, 0.5);
}

.spotlight-corner.corner-multilingual {
  background: linear-gradient(45deg, #636e72, #b2bec3);
  box-shadow: 0 0 8px rgba(99, 110, 114, 0.5);
}

/* Enhanced model card with subtle effects */
.model-card-cb.spotlighted .model-img-cb {
  transition: filter 0.3s ease;
}

.model-card-cb.spotlighted:hover .model-img-cb {
  filter: brightness(1.1) contrast(1.05);
}

/* Refined username styling for spotlighted models */
.model-card-cb.spotlighted .username-cb {
  position: relative;
  font-weight: 600;
}

.model-card-cb.spotlighted .username-cb::after {
  content: '✨';
  margin-left: 4px;
  font-size: 12px;
  opacity: 0.7;
}

/* Tooltip for spotlight details - appears on hover */
.spotlight-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  margin-top: 4px;
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  max-width: 120px;
  text-align: center;
}

.model-card-cb:has(.spotlight-corner:hover) {
  z-index: 10000;
  position: relative;
}

.spotlight-corner:hover {
  z-index: 10001;
}

.spotlight-corner:hover .spotlight-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

/* Animation for the gradient border */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Unique animations for each spotlight type */
@keyframes super-star-glow {
  0%, 100% { 
    background-position: 0% 50%; 
    opacity: 0.4;
    filter: brightness(1);
  }
  50% { 
    background-position: 100% 50%; 
    opacity: 0.7;
    filter: brightness(1.2);
  }
}

@keyframes trending-pulse {
  0%, 100% { 
    background-position: 0% 50%; 
    transform: scale(1);
  }
  30% { 
    background-position: 60% 50%; 
    transform: scale(1.01);
  }
  70% { 
    background-position: 100% 50%; 
    transform: scale(0.99);
  }
}

@keyframes performer-shine {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 25%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 75%; }
  100% { background-position: 0% 50%; }
}

@keyframes just-live-flash {
  0%, 100% { 
    background-position: 0% 50%; 
    opacity: 0.3;
  }
  20%, 80% { 
    background-position: 40% 30%; 
    opacity: 0.8;
  }
  50% { 
    background-position: 100% 50%; 
    opacity: 0.5;
  }
}

@keyframes marathon-endurance {
  0% { background-position: 0% 50%; }
  33% { background-position: 33% 33%; }
  66% { background-position: 66% 66%; }
  100% { background-position: 100% 50%; }
}

@keyframes rising-star-ascend {
  0% { 
    background-position: 0% 80%; 
    transform: translateY(0px);
  }
  50% { 
    background-position: 50% 20%; 
    transform: translateY(-1px);
  }
  100% { 
    background-position: 100% 80%; 
    transform: translateY(0px);
  }
}

@keyframes hd-quality-crystal {
  0%, 100% { 
    background-position: 0% 50%; 
    filter: brightness(1) contrast(1);
  }
  50% { 
    background-position: 100% 50%; 
    filter: brightness(1.1) contrast(1.05);
  }
}

@keyframes interactive-fun {
  0% { background-position: 0% 25%; }
  25% { background-position: 25% 75%; }
  50% { background-position: 75% 25%; }
  75% { background-position: 100% 75%; }
  100% { background-position: 0% 25%; }
}

@keyframes multilingual-spectrum {
  0% { background-position: 0% 50%; }
  20% { background-position: 20% 40%; }
  40% { background-position: 40% 60%; }
  60% { background-position: 60% 40%; }
  80% { background-position: 80% 60%; }
  100% { background-position: 100% 50%; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .spotlight-corner {
    width: 14px;
    height: 14px;
    font-size: 8px;
    top: 6px;
    right: 6px;
  }
  
  .spotlight-info {
    font-size: 10px;
  }
  
  .spotlight-text-small {
    font-size: 9px;
  }
  
  .spotlight-tooltip {
    font-size: 10px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .spotlight-corner {
    width: 12px;
    height: 12px;
    font-size: 7px;
  }
  
  .model-card-cb.spotlighted .username-cb::after {
    font-size: 10px;
  }
}

/* =============================================
   SPOTLIGHT FILTER CHIPS STYLING
   ============================================= */

.filter-spotlights .filter-chip {
  position: relative;
  transition: all 0.2s ease;
}

.filter-spotlights .filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.filter-spotlights .filter-chip.selected {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 12px rgba(255, 169, 39, 0.4);
}

/* Individual spotlight filter colors when selected */
.filter-spotlights .filter-chip[data-spotlight="super-star"].selected {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #b8860b;
}

.filter-spotlights .filter-chip[data-spotlight="trending"].selected {
  background: linear-gradient(135deg, #ff4757, #ff6b8a);
  color: white;
}

.filter-spotlights .filter-chip[data-spotlight="top-performer"].selected {
  background: linear-gradient(135deg, #5f27cd, #8854d0);
  color: white;
}

.filter-spotlights .filter-chip[data-spotlight="just-live"].selected {
  background: linear-gradient(135deg, #00d4ff, #4de3ff);
  color: #005a6b;
}

.filter-spotlights .filter-chip[data-spotlight="marathon"].selected {
  background: linear-gradient(135deg, #ff7675, #fd79a8);
  color: white;
}

.filter-spotlights .filter-chip[data-spotlight="rising-star"].selected {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: white;
}

.filter-spotlights .filter-chip[data-spotlight="hd-quality"].selected {
  background: linear-gradient(135deg, #0984e3, #74b9ff);
  color: white;
}

.filter-spotlights .filter-chip[data-spotlight="interactive"].selected {
  background: linear-gradient(135deg, #e84393, #fd79a8);
  color: white;
}

.filter-spotlights .filter-chip[data-spotlight="multilingual"].selected {
  background: linear-gradient(135deg, #636e72, #b2bec3);
  color: white;
}

/* =============================================
   SPOTLIGHT HEADER GUIDE SYSTEM
   ============================================= */

.spotlight-guide-header-btn {
  background: linear-gradient(135deg, var(--primary-color), #f59e0b);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(223, 134, 32, 0.3);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.spotlight-guide-header-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.spotlight-guide-header-btn:hover::before {
  left: 100%;
}

.spotlight-guide-header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(223, 134, 32, 0.4);
  background: linear-gradient(135deg, #c5721a, #d97706);
}

.spotlight-guide-icon {
  font-size: 14px;
  animation: sparkle 2s infinite;
}

.spotlight-guide-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.spotlight-guide-badge {
  background: rgba(255,255,255,0.9);
  color: var(--primary-color);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-left: 2px;
}

@keyframes sparkle {
  0%, 100% { 
    transform: scale(1) rotate(0deg); 
    opacity: 1;
  }
  50% { 
    transform: scale(1.1) rotate(10deg); 
    opacity: 0.8;
  }
}

/* Responsive header button */
@media (max-width: 768px) {
  .spotlight-guide-header-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .spotlight-guide-text {
    display: none;
  }
  
  .spotlight-guide-icon {
    font-size: 16px;
  }
  
  .spotlight-guide-badge {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .spotlight-guide-header-btn {
    padding: 4px 8px;
    border-radius: 16px;
  }
  
  .spotlight-guide-icon {
    font-size: 14px;
  }
  
  .spotlight-guide-badge {
    width: 14px;
    height: 14px;
    font-size: 9px;
  }
}

/* Modal Styles */
.spotlight-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.spotlight-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  margin: 20px;
}

.spotlight-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px 16px 0 0;
}

.spotlight-modal-header h2 {
  margin: 0;
  font-size: 1.5em;
  font-weight: 700;
  color: #1a202c;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #f1f5f9;
  color: #1a202c;
}

.spotlight-modal-body {
  padding: 32px;
}

.modal-intro {
  font-size: 1.1em;
  color: #4a5568;
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.6;
}

.spotlight-categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.spotlight-category {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.category-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-header.priority-high {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.category-header.priority-medium {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.category-header.priority-low {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.category-header h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: 700;
  color: #1a202c;
}

.priority-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.priority-badge.high {
  background: #dc2626;
  color: white;
}

.priority-badge.medium {
  background: #16a34a;
  color: white;
}

.priority-badge.low {
  background: #d97706;
  color: white;
}

.spotlight-items {
  padding: 20px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spotlight-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.spotlight-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.spotlight-icon-large {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 50%;
  flex-shrink: 0;
}

.spotlight-details {
  flex: 1;
}

.spotlight-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.spotlight-description {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.5;
}

.modal-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.modal-footer p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .spotlight-modal-content {
    margin: 10px;
    max-height: 95vh;
  }
  
  .spotlight-modal-header {
    padding: 16px 20px;
  }
  
  .spotlight-modal-header h2 {
    font-size: 1.3em;
  }
  
  .spotlight-modal-body {
    padding: 20px;
  }
  
  .modal-intro {
    font-size: 1em;
  }
  
  .spotlight-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  
  .category-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}


