/* === assets/style.css === */
:root {
  /* ===== SURFACES / BACKGROUNDS ===== */
  --bg-base: #0d1117;        /* fundal pagină */
  --bg-surface: #161b22;     /* carduri, nav, panouri */
  --bg-elevated: #1c2230;    /* elemente ridicate / hover surface */
  --bg-sidebar: #11161d;     /* sidebar filtre */
  --bg-input: #0f141b;       /* inputuri, search */
  --bg-overlay: rgba(1, 4, 9, 0.75); /* fundal modale */

  /* ===== TEXT ===== */
  --text-primary: #e6edf3;   /* text principal */
  --text-secondary: #aab4c0; /* text secundar */
  --text-muted: #7d8794;     /* meta, label-uri discrete */
  --text-on-accent: #ffffff; /* text peste accent */

  /* ===== BORDERS / DIVIDERS ===== */
  --border-subtle: #232a35;  /* borduri fine */
  --border-strong: #30363d;  /* borduri vizibile / hover */
  --divider: #1f262f;        /* separatoare secțiuni */

  /* ===== ACCENT / BRAND (portocaliu păstrat) ===== */
  --accent-color: #df8620;
  --accent-hover: #f0972f;
  --accent-active: #c5721a;
  --accent-soft: rgba(223, 134, 32, 0.14); /* fundal accent transparent */
  --accent-ring: rgba(223, 134, 32, 0.35);  /* focus glow */

  /* ===== ACCENT INDIGO (header / butoane premium) ===== */
  --accent-indigo: #6366f1;
  --accent-indigo-hover: #818cf8;
  --accent-indigo-active: #4f46e5;
  --accent-indigo-soft: rgba(99, 102, 241, 0.14);
  --accent-indigo-ring: rgba(99, 102, 241, 0.40);

  /* Albastru secundar (linkuri, info) – aliniat temei reci */
  --link-color: #58a6ff;
  --link-hover: #79c0ff;

  /* ===== SEMANTIC STATES ===== */
  --success: #3fb950;
  --success-soft: rgba(63, 185, 80, 0.15);
  --warning: #d29922;
  --warning-soft: rgba(210, 153, 34, 0.15);
  --danger: #f85149;
  --danger-soft: rgba(248, 81, 73, 0.15);
  --info: #58a6ff;
  --info-soft: rgba(88, 166, 255, 0.15);

  /* ===== SHADOWS (premium, soft) ===== */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 4px 18px rgba(223, 134, 32, 0.35);

  /* ===== RADIUS ===== */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* ===== TRANSITIONS ===== */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* ===== RETROCOMPAT (referite în zeci de locuri) ===== */
  --primary-color: var(--accent-color);
  --accent: var(--accent-soft);
}
body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  color-scheme: dark;
  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 — merged site header (Sprint 3.8). See assets/css/site-header.css */
header.site-header {
  /* legacy element reset; layout in site-header.css */
}

.nav-simple-link,
#reset-filters-link {
  font-size: .98em;
  color: var(--text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-simple-link:hover,
#reset-filters-link:hover {
  color: var(--accent-indigo-hover);
  background: var(--accent-indigo-soft);
  text-decoration: none;
}
.filter-btn {
  background: var(--accent-indigo);
  color: var(--text-on-accent);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 0.95em;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  background: var(--accent-indigo-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--accent-indigo-ring);
}

.filter-btn:active {
  transform: translateY(0);
}
/* --- SIDEBAR FILTER --- */
#filter-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-sidebar);
  box-shadow: 3px 0 20px rgba(0,0,0,0.45);
  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 var(--border-subtle);
  font-size: 13px;
  box-sizing: border-box;
}
#filter-sidebar.open {
  transform: translateX(0);
}

#filter-sidebar .close-btn {
  background: var(--bg-elevated);
  border: none;
  font-size: 1.1em;
  color: var(--text-secondary);
  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: var(--accent-indigo-soft);
  color: var(--text-primary);
}
/* Each filter block */
.filter-section {
  margin-bottom: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--divider);
}
.filter-section:last-child {
  margin-bottom: 4px;
  border-bottom: none;
}
.filter-label {
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--text-sm);
}
/* -- Chips (all filter areas) -- */
.filter-gender,
.filter-regions,
.filter-providers,
.filter-languages,
.filter-roomsize {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.filter-chip {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  font-size: 12.7px;
  user-select: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1.1;
}
.filter-chip.selected {
  background: var(--chip-active-bg, var(--accent-color));
  color: var(--chip-active-text, #fff);
  border-color: var(--chip-active-border, var(--accent-color));
}
a.filter-chip.filter-chip--nav {
  text-decoration: none;
  color: inherit;
}
/* Gender filter icon coloring (sidebar chips!) */
.filter-chip[data-gender="f"], .filter-chip[data-gender="f"] .gender-cb { color: #e879c9; }
.filter-chip[data-gender="m"], .filter-chip[data-gender="m"] .gender-cb { color: #6ea8ff; }
.filter-chip[data-gender="t"], .filter-chip[data-gender="t"] .gender-cb { color: #c4a2f0; }
.filter-chip[data-gender="c"], .filter-chip[data-gender="c"] .gender-cb { color: #d4a574; }
/* -- Tags section -- */
.filter-tags-group {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 6px 6px 3px 6px;
  margin-bottom: 0;
  margin-top: 2px;
}
#tag-search {
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  padding: 6px 10px;
  background: var(--bg-input);
  color: var(--text-primary);
  height: 30px;
  box-sizing: border-box;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
#tag-search::placeholder { color: var(--text-muted); }
#tag-search:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px var(--accent-indigo-ring);
}
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 1px;
  min-height: 28px;
  max-height: 94px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.filter-tags::-webkit-scrollbar { width: 8px; }
.filter-tags::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.filter-tags::-webkit-scrollbar-track { background: transparent; }
/* -- 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: 14px;
  margin: 10px 12px 0 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 100%;
  padding-bottom: 20px;
  justify-content: stretch;
}

.model-grid > .discovery-card.model-card-cb {
  width: 100%;
  min-width: 0;
}

/* Tablet */
@media (max-width: 1100px) {
  .model-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: 12px;
  }
}

@media (max-width: 800px) {
  .model-grid { 
    gap: 12px; 
    margin: 10px;
    grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); 
  }
}

/* Mobile Large */
@media (max-width: 600px) {
  .model-grid { 
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    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: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 8px;
  }
}

/* Mobile Tiny */
@media (max-width: 320px) {
  .model-grid { 
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 6px;
  }
}
/* MODEL CARD — legacy layout retired (Sprint 3.8). See assets/css/model-card.css */
.model-card-cb:not(.discovery-card) {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  background: var(--bg-surface);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

/* Shared utility classes still used by gender icons */
.model-info-cb {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  gap: 0;
}
.username-cb {
  flex: 1 1 0;
  min-width: 0;
  color: var(--text-primary);
  font-weight: 700;
  font-size: var(--text-md);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-meta-cb {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

/* ===== 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: #e879c9; }
.gender-cb.m { color: #6ea8ff; }
.gender-cb.t { color: #c4a2f0; }
.gender-cb.c { color: #d4a574; }
/* ===== END GENDER ICON ===== */

.age-cb {
  flex: 0 0 auto;
  min-width: 18px;
  text-align: center;
  margin: 0;
  padding: 0;
  color: var(--text-secondary);
}
.flag-cb, .country-cb img {
  width: 16px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
  margin-left: 4px;
  display: inline-block;
}
/* Subject and tags (now only tags in subject are shown) */
.subject-cb {
  font-size: 12px;
  color: var(--text-secondary);
  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: var(--text-muted);
  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: var(--text-muted);
  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: var(--bg-surface);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9em;
  margin-top: auto;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
}

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

footer:not(.site-footer) a {
  color: var(--footer-link, var(--brand-accent, var(--brand-primary, var(--accent-color)))) !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

footer:not(.site-footer) a:hover,
footer:not(.site-footer) a:focus {
  color: var(--footer-link-hover, var(--brand-accent-strong, var(--brand-accent, var(--brand-primary, var(--accent-hover))))) !important;
  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 — site header only (editorial <header> heroes must scroll) */
@media (max-width: 768px) {
  header.site-header {
    padding: 8px;
    min-height: 44px;
    position: sticky;
    top: 0;
    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(--accent-indigo);
  cursor: pointer;
  border: 3px solid var(--bg-base);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  -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(--accent-indigo);
  cursor: pointer;
  border: 3px solid var(--bg-base);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  -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;
}

/* 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(--accent-indigo);
  color: var(--text-on-accent);
  border: none;
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: .98em;
  margin: 7px 0;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}
.back-btn:hover {
  background: var(--accent-indigo-hover);
  color: var(--text-on-accent);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--accent-indigo-ring);
}
.pagination-bar {
  text-align: center;
  margin: 11px 0 7px 0;
}

/* Category breadcrumbs — global reset so ol/li never stack numbered without homepage.css */
.category-breadcrumbs {
  margin: 0 0 12px;
  padding: 0;
}
.category-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.category-breadcrumbs-list > li {
  display: inline-flex;
  align-items: center;
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.category-breadcrumbs-list > li + li::before {
  content: "\2192";
  display: inline-block;
  margin: 0 6px;
  color: var(--text-muted, #7d8794);
  user-select: none;
  pointer-events: none;
}
.category-breadcrumbs-item a {
  color: var(--text-secondary, #aab4c0);
  text-decoration: none;
}
.category-breadcrumbs-item a:hover,
.category-breadcrumbs-item a:focus {
  color: var(--accent-indigo, #808085);
  text-decoration: underline;
}

.pagination-bar b {
  display: inline-block;
  min-width: 21px;
  padding: 4px 9px;
  background: var(--accent-indigo);
  color: var(--text-on-accent);
  font-weight: bold;
  border-radius: var(--radius-sm);
  margin: 0 2px;
}
.pagination-bar button {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  padding: 5px 10px;
  margin: 0 1px;
  border-radius: var(--radius-sm);
  font-size: .98em;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  box-shadow: none;
}
.pagination-bar button[disabled], .pagination-bar button:disabled {
  color: var(--text-muted);
  background: var(--bg-surface);
  border-color: var(--divider);
  cursor: not-allowed;
}
.pagination-bar button:hover:not([disabled]) {
  background: var(--accent-indigo-soft);
  border-color: var(--accent-indigo);
  color: var(--text-primary);
}

/* 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,
.back-btn:focus {
  outline: 2px solid var(--accent-indigo);
  outline-offset: 2px;
}
.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;
  }
}


/* === assets/css/design-tokens.css === */
/* Sprint 8 — Premium dark design tokens */

:root {
  /* Surfaces */
  --bg-page: #0c0e12;
  --bg-panel: #141820;
  --bg-panel-soft: #181d26;
  --bg-base: var(--bg-page);
  --bg-surface: var(--bg-panel);
  --bg-elevated: #1e2430;
  --bg-sidebar: #10141c;
  --bg-input: #0f131a;

  /* Text */
  --text-main: #eef1f5;
  --text-muted: #8b95a5;
  --text-primary: var(--text-main);
  --text-secondary: #b4bcc8;

  /* Borders */
  --border-soft: #252c38;
  --border-subtle: var(--border-soft);
  --border-strong: #343d4d;
  --divider: #1c222c;

  /* Accent — yellow/orange highlights */
  --accent: #e8941a;
  --accent-strong: #f5a623;
  --accent-color: var(--accent);
  --accent-hover: #f5a623;
  --accent-active: #c97f15;
  --accent-soft: rgba(232, 148, 26, 0.12);
  --accent-ring: rgba(232, 148, 26, 0.32);

  /* Typography scale */
  --text-xs: 0.6875rem;
  --text-sm: 0.75rem;
  --text-base: 0.8125rem;
  --text-md: 0.875rem;
  --text-lg: 1rem;
  --text-xl: 1.25rem;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 24px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Layout */
  --header-height: 56px;
  --sidebar-width: 312px;

  /* Card system */
  --card-radius: var(--radius-md);
  --card-thumb-radius: var(--card-radius) var(--card-radius) 0 0;
  --card-border: 1px solid var(--border-soft);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  --card-shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.28);
  --card-hover-lift: -2px;
  --card-info-pad-x: var(--space-3);
  --card-info-pad-y: var(--space-3);

  /* Provider logo */
  --provider-logo-height: 14px;
  --provider-logo-max-width: 60px;

  /* Badges */
  --badge-live-bg: #e53935;
  --badge-live-size: var(--text-xs);
  --badge-live-pad: 2px 6px;
  --badge-live-radius: var(--radius-sm);

  /* Active chip */
  --chip-active-bg: var(--accent);
  --chip-active-border: var(--accent);
  --chip-active-text: #fff;

  /* Section header */
  --section-header-height: 36px;
  --section-accent-width: 3px;

  /* Surface depth (theme polish) */
  --surface-page: #0a0c10;
  --surface-shell: #0f1218;
  --surface-raised: #161b24;
  --surface-overlay: #1c222d;
  --surface-glow: rgba(var(--brand-primary-rgb, 232, 148, 26), 0.06);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.22);
  --shadow-panel: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}


/* === assets/css/model-card.css === */
/* Sprint 3.8 — Unified model card system (grid, strips, similar cams) */

.discovery-card.model-card-cb {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: none;
  padding: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: var(--card-radius);
  border: var(--card-border);
  background: var(--bg-panel);
  box-shadow: var(--card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-sizing: border-box;
  cursor: pointer;
  height: 100%;
}

.discovery-card.model-card-cb:hover {
  transform: translateY(var(--card-hover-lift));
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-strong, #30363d);
}

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

.discovery-card.model-card-cb.is-cam4-preview-unavailable .discovery-card-thumb,
.discovery-card.model-card-cb.is-cam4-preview-unavailable .model-img-wrap-cb {
  background: linear-gradient(145deg, #1a2332 0%, #0f1419 100%);
}

.cam4-live-preview-unavailable {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  color: #c9d1d9;
  background: linear-gradient(145deg, rgba(26, 35, 50, 0.96) 0%, rgba(15, 20, 25, 0.98) 100%);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.01em;
  z-index: 1;
}

.cam4-live-preview-unavailable span {
  max-width: 11rem;
}

.discovery-card-thumb,
.discovery-card .model-img-wrap-cb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: var(--card-thumb-radius);
  background: var(--bg-elevated, #1c2230);
}

.discovery-card-thumb::after,
.discovery-card .model-img-wrap-cb::after,
.similar-cams-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 4;
}

.discovery-card.model-card-cb:hover .discovery-card-thumb::after,
.discovery-card.model-card-cb:hover .model-img-wrap-cb::after,
.similar-cams-card:hover .similar-cams-thumb::after {
  opacity: 1;
}

.discovery-card .model-img-cb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
  transition: opacity 0.15s ease, transform 0.22s ease;
}

.discovery-card-live {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 11;
  background: var(--badge-live-bg);
  color: #fff;
  font-size: var(--badge-live-size);
  font-weight: 700;
  padding: var(--badge-live-pad);
  border-radius: var(--badge-live-radius);
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
}

.discovery-card.model-card-cb .current-show-chip {
  top: 30px;
  left: var(--space-3);
}

.provider-badge--card {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 12;
  padding: 3px 5px;
  border-radius: var(--radius-sm, 6px);
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: calc(100% - 16px);
}

.provider-badge--card .provider-badge__logo {
  height: var(--provider-logo-height);
  max-width: var(--provider-logo-max-width);
  filter: brightness(1.12) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.discovery-card-info,
.discovery-card .model-info-cb {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--card-info-pad-y) var(--card-info-pad-x) calc(var(--card-info-pad-y) + 1px);
  min-width: 0;
  flex: 0 0 auto;
}

.discovery-card-username,
.discovery-card .username-cb {
  display: block;
  flex: 0 0 auto;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.discovery-card.model-card-cb:hover .username-cb {
  color: var(--text-primary);
}

.discovery-card-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discovery-card-gender {
  flex-shrink: 0;
  font-size: 0.82rem;
  line-height: 1;
  opacity: 0.92;
}

.discovery-card-age {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-secondary);
}

.discovery-card-meta-sep {
  color: var(--text-muted);
  opacity: 0.55;
  flex-shrink: 0;
  user-select: none;
}

.discovery-card-viewers {
  flex-shrink: 0;
  color: var(--text-muted);
}

.discovery-card-viewers-icon {
  margin-right: 1px;
}

.discovery-card-flag-emoji {
  font-size: var(--text-md);
  line-height: 1;
  flex-shrink: 0;
}

.discovery-card-country {
  flex-shrink: 0;
  line-height: 0;
}

.discovery-card-flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.discovery-card-languages {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Sprint 8J — spotlight/promo card badges retired from public listings */
.discovery-card .spotlight-corner,
.discovery-card .spotlight-overlay,
.discovery-card .spotlight-tooltip,
.model-card-cb.spotlighted::before,
.model-card-cb.spotlighted .username-cb::after {
  display: none !important;
}

.model-card-cb.spotlighted {
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

.discovery-card:focus-visible {
  outline: 2px solid var(--accent-color, #df8620);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .model-img-wrap-cb.is-previewing .model-img-cb,
  .similar-cams-thumb.is-previewing img,
  .similar-cams-thumb.is-previewing .model-img-cb {
    opacity: 0;
    transform: none;
  }

  .model-preview-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
  }

  .model-preview-video.is-playing {
    opacity: 1;
  }
}

/* Strip variant — same tokens, tighter padding */
.discovery-strip--compact .discovery-card-info {
  padding: 5px 6px 7px;
}

.discovery-strip--compact .discovery-card-username {
  font-size: 0.84rem;
}

.discovery-strip--compact .discovery-card-meta-row {
  font-size: 0.74rem;
}

.discovery-strip--compact .discovery-card-live {
  font-size: 0.625rem;
  padding: 2px 5px;
  top: var(--space-2);
  left: var(--space-2);
}

.discovery-strip--compact .provider-badge--card {
  top: var(--space-2);
  right: var(--space-2);
}

.discovery-strip--compact .provider-badge--card .provider-badge__logo {
  height: 13px;
}

/* Similar cams alignment */
.similar-cams-card.discovery-card,
.similar-cams-card {
  border-radius: var(--card-radius);
}

.similar-cams-thumb .provider-badge--card {
  top: var(--space-2);
  right: var(--space-2);
}

.similar-cams-live {
  top: var(--space-2);
  left: var(--space-2);
}

@media (max-width: 480px) {
  .discovery-card-username {
    font-size: var(--text-base);
  }
}


/* === assets/css/global-search.css === */
/* Sprint 8 — Global search dropdown */

.global-search-wrap {
  position: relative;
  min-width: 0;
}

.global-search-form {
  display: block;
  position: relative;
  width: 100%;
}

.global-search-shell {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-pill, 999px);
  background: var(--bg-input, #15171d);
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.global-search-shell:focus-within {
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 3px var(--accent-soft);
}

.global-search {
  position: relative;
  width: 100%;
}

.global-search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 36px;
  padding: 0 16px 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-main);
  font-size: var(--text-sm);
  box-sizing: border-box;
  outline: none;
  box-shadow: none;
  transition: color 0.15s ease;
}

.global-search__input::placeholder {
  color: var(--text-muted);
}

.global-search__input:focus {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
  outline: none;
}

.global-search__submit {
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--brand-primary, var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.global-search__submit:hover,
.global-search__submit:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-strong, var(--accent));
  text-decoration: none;
  outline: none;
}

.global-search__submit:active {
  background: rgba(var(--brand-primary-rgb, 232, 148, 26), 0.22);
}

.global-search__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 1200;
  min-width: 0;
  max-height: min(58vh, 380px);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(0, 0, 0, 0.55));
  overscroll-behavior: contain;
}

.global-search__dropdown[hidden] {
  display: none !important;
}

.global-search__status {
  padding: 12px 14px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.global-search__section {
  padding: 6px 0;
  border-top: 1px solid var(--divider);
}

.global-search__section:first-child {
  border-top: none;
}

.global-search__section-title {
  padding: 8px 14px 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.global-search__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.12s ease;
}

.global-search__item:hover,
.global-search__item.is-active {
  background: var(--accent-soft);
}

.global-search__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.global-search__item--all {
  border-top: 1px solid var(--divider);
  font-weight: 600;
  color: var(--accent-strong);
}

.global-search__item--all:hover,
.global-search__item--all.is-active {
  background: rgba(232, 148, 26, 0.18);
}

.global-search__thumb {
  flex-shrink: 0;
  width: 44px;
  height: 31px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-panel-soft);
  border: 1px solid var(--border-soft);
}

.global-search__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.global-search__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.global-search__primary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.global-search__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-search__meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.global-search__provider {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  line-height: 0;
}

.global-search__provider img {
  height: 13px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
  display: block;
}

.global-search__provider-fallback {
  display: none;
  min-width: 18px;
  height: 14px;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
  color: #fff;
}

.global-search__provider-fallback.is-visible {
  display: inline-block;
}

.global-search__provider-fallback--chaturbate { background: #f47321; }
.global-search__provider-fallback--bongacams { background: #7b2cbf; }
.global-search__provider-fallback--stripchat { background: #d62828; }
.global-search__provider-fallback--unknown { background: #5f6368; }

.global-search__flag {
  flex-shrink: 0;
  width: 18px;
  height: 13px;
  border-radius: 2px;
  border: 1px solid var(--border-soft);
  object-fit: cover;
}

.global-search__count {
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.global-search__icon-tag,
.global-search__icon-country {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-panel-soft);
  border: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.global-search__item--disabled {
  opacity: 0.72;
  cursor: default;
}

.global-search__badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.3;
}

.global-search__badge--online {
  background: #1a4d2e;
  color: #8fdfaa;
}

.global-search__badge--offline,
.global-search__badge--archive {
  background: #4a3030;
  color: #e0a0a0;
}

.global-search__badge--country,
.global-search__badge--tag,
.global-search__badge--provider,
.global-search__badge--page,
.global-search__badge--blog {
  background: var(--bg-panel-soft);
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .global-search__dropdown {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .global-search__dropdown {
    max-height: 42vh;
  }
}


/* === assets/css/global-search-dropdown-width-guard.css === */
/* Phase 9A-l-b — Keep autocomplete dropdown aligned to search shell width */

.global-search-form {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.global-search-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.global-search__dropdown,
#global-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .global-search__dropdown,
  #global-search-dropdown {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}


/* === assets/css/site-header.css === */
/* Sprint 8 — Compact premium header (legacy layout; concept header uses public-header-remake.css) */

.site-header:not(.site-header--concept) {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: var(--space-4);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: var(--header-height);
  height: var(--header-height);
  padding: 0 var(--space-5);
  background: rgba(12, 14, 18, 0.96);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  flex-shrink: 0;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
  padding: 2px 0;
}

.site-header__brand:hover,
.site-header__brand:focus {
  text-decoration: none;
}

.site-header__brand:hover .site-header__title {
  color: var(--accent-strong);
}

.site-header__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 153, 0, 0.18), rgba(255, 153, 0, 0.06));
  border: 1px solid rgba(255, 153, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.site-header__logo-icon {
  display: block;
  font-size: 15px;
  line-height: 1;
  color: var(--accent-strong);
}

.site-header__brand--has-logo .site-header__logo-mark {
  display: none;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  min-width: 0;
  overflow: hidden;
}

.site-header__logo-img,
.site-header__logo:is(img) {
  display: block;
  max-height: 38px;
  max-width: min(180px, 42vw);
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.site-header__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-main);
  white-space: nowrap;
  line-height: 1.1;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.site-header__filter-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.site-header__filter-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background: var(--bg-panel-soft);
}

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 4px;
  min-width: 0;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 var(--space-1);
}

.site-header__nav::-webkit-scrollbar {
  display: none;
}

.header-directory-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.header-directory-nav__link:hover {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: var(--bg-panel-soft);
}

.header-directory-nav__link.is-active {
  color: var(--accent-strong);
  border-color: var(--accent-ring);
  background: var(--accent-soft);
}

.site-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  flex-shrink: 0;
  justify-self: end;
  min-width: 0;
}

.site-header__right--model {
  grid-column: 3;
}

.site-header__right-cluster {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.site-header__toolbar {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
}

.site-header__search-toggle[aria-expanded="true"] {
  color: var(--accent-strong);
  border-color: var(--accent-ring);
  background: var(--accent-soft);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}

.site-header__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.site-header__link:hover {
  color: var(--text-main);
  background: var(--bg-panel-soft);
  border-color: var(--border-soft);
  text-decoration: none;
}

.site-header .global-search-wrap {
  flex: 0 1 300px;
  width: min(300px, 28vw);
  max-width: 320px;
  min-width: 160px;
}

.site-header .global-search__input {
  height: 36px;
  font-size: var(--text-sm);
  background: var(--bg-panel-soft);
  border-color: var(--border-soft);
}

.site-header .global-search__input:focus {
  background: var(--bg-panel);
}

#auto-refresh-bar {
  display: none !important;
}

@media (min-width: 769px) {
  .site-header__toolbar {
    display: none;
  }
}

@media (max-width: 1100px) {
  .site-header:not(.site-header--concept) {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    gap: var(--space-2);
    padding: 0 var(--space-3);
  }

  .header-directory-nav__link {
    padding: 5px 8px;
    font-size: var(--text-xs);
  }

  .site-header .global-search-wrap {
    width: min(220px, 24vw);
    min-width: 140px;
  }
}

@media (max-width: 900px) {
  .site-header:not(.site-header--concept) {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "left right"
      "nav nav";
    height: auto;
    min-height: var(--header-height);
    padding: var(--space-2) var(--space-3);
    row-gap: var(--space-2);
  }

  .site-header__left {
    grid-area: left;
  }

  .site-header__nav {
    grid-area: nav;
    justify-self: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .site-header__right {
    grid-area: right;
  }

  .site-header__title {
    display: none;
  }

  .site-header .global-search-wrap {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header:not(.site-header--concept) {
    padding: var(--space-2);
  }

  .site-header__logo-mark {
    width: 30px;
    height: 30px;
  }

  .site-header__logo-icon {
    font-size: 13px;
  }

  .site-header__nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .header-directory-nav__link {
    min-width: 0;
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  .site-header__link--broadcast {
    font-size: 0;
    padding: 5px 7px;
  }

  .site-header__link--broadcast::before {
    content: '▶';
    font-size: 0.75rem;
  }
}

@media (min-width: 769px) {
  .site-header__toolbar {
    display: none;
  }
}

@media (min-width: 1024px) {
  .site-header:not(.site-header--concept) {
    padding: 0 var(--layout-gutter-x, var(--space-5));
    gap: var(--space-3);
    grid-template-columns: var(--sidebar-width, 312px) minmax(0, 1fr) minmax(0, auto);
  }

  .site-header__left {
    grid-column: 1;
    align-self: center;
    justify-self: stretch;
    max-width: var(--sidebar-width, 312px);
    padding-left: var(--layout-gutter-x, var(--space-5));
    box-sizing: border-box;
  }

  .site-header__nav {
    grid-column: 2;
    justify-self: center;
    margin-inline: auto;
    max-width: min(100%, 520px);
  }

  .site-header__right {
    grid-column: 3;
    align-self: center;
    justify-self: end;
  }

  .site-header__filter-btn {
    display: none;
  }

  .site-header .global-search-wrap {
    display: block;
    flex: 0 1 260px;
    width: min(260px, 24vw);
    max-width: 280px;
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .site-header__left {
    gap: var(--space-2);
  }
}


/* === assets/css/sidebar-filters.css === */
/* Sprint 8Q.4.1 — Premium sidebar panel (overrides legacy assets/style.css) */

#filter-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width, 312px);
  max-width: min(92vw, 360px);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-sidebar);
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.35);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  transform: translateX(-102%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  border-right: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  box-sizing: border-box;
}

#filter-sidebar .close-btn {
  flex-shrink: 0;
}

#filter-sidebar .sidebar-drawer-header {
  display: none;
}

.sidebar-scroll-inner {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-2) var(--space-3) var(--space-6);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-scroll-inner::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#filter-sidebar.open {
  transform: translateX(0);
}

#filter-sidebar .close-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  float: right;
  cursor: pointer;
  margin-top: -2px;
  margin-bottom: var(--space-2);
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: all 0.2s ease;
}

#filter-sidebar .close-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-ring);
  color: var(--text-primary);
}

.filter-section--primary {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--divider);
}

#filter-sidebar .filter-section--primary:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: var(--space-2);
}

.filter-section--collapsible {
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--divider);
}

.filter-section--collapsible > summary.filter-label {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  padding: 5px 0;
  margin-bottom: 0;
}

.filter-section--collapsible > summary.filter-label::-webkit-details-marker {
  display: none;
}

.filter-section--collapsible > summary.filter-label::after {
  content: '+';
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
}

.filter-section--collapsible[open] > summary.filter-label::after {
  content: '−';
}

.filter-section--collapsible .filter-section__body {
  padding: var(--space-1) 0 var(--space-2);
}

#filter-sidebar .filter-label {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.625rem;
  text-transform: uppercase;
  margin-bottom: 6px;
  margin-top: 0;
  letter-spacing: 0.08em;
}

#filter-sidebar .filter-label.section-heading-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-main);
  font-size: 0.625rem;
}

#filter-sidebar .filter-label.section-heading-bar::before {
  content: '';
  width: var(--section-accent-width, 3px);
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  flex-shrink: 0;
}

#filter-sidebar a {
  text-decoration: none;
  color: inherit;
}

#filter-sidebar a.sidebar-list-row,
#filter-sidebar a.filter-chip.filter-chip--nav {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

#filter-sidebar a.filter-chip.filter-chip--nav {
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

#filter-sidebar .filter-chip.selected,
#filter-sidebar .sidebar-list-row.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent-ring);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-accent-rgb, 67, 56, 202), 0.1);
}

#filter-sidebar .filter-chip:hover:not(.selected),
#filter-sidebar .sidebar-list-row:hover:not(.is-active) {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  text-decoration: none;
}

#filter-sidebar .filter-section {
  border-bottom: none;
  margin-bottom: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

#filter-sidebar .filter-section--primary {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--divider);
}

#filter-sidebar .filter-section--providers {
  margin-top: 0;
  padding-top: var(--space-1);
}

#filter-sidebar .filter-section--providers .section-heading-bar {
  margin-bottom: 6px;
}

.filter-gender--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.filter-gender--compact .filter-chip {
  padding: 2px 9px;
  font-size: 0.7rem;
  font-weight: 600;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.07);
}

.filter-gender--compact a.filter-chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.filter-regions--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.filter-regions--compact .filter-chip {
  padding: 3px 7px;
  font-size: 0.72rem;
}

.sidebar-provider-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-list-row--provider.is-disabled {
  opacity: 0.62;
  cursor: default;
  color: var(--text-muted);
}

.sidebar-list-row--provider.is-disabled .sidebar-list-row__label {
  color: var(--text-muted);
}

.sidebar-list-row__status {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.sidebar-list-row--provider {
  min-height: 26px;
  padding: 3px 7px;
  gap: 6px;
  font-size: 0.78rem;
}

.sidebar-list-row--provider .sidebar-list-row__count {
  min-width: 2.25rem;
  text-align: right;
  white-space: nowrap;
}

.sidebar-list-row--provider .sidebar-list-row__logo {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.sidebar-list-row--provider.is-active {
  box-shadow: inset 0 0 0 1px var(--accent-ring);
}

.sidebar-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}

.sidebar-list-row__logo,
.sidebar-list-row__fallback,
.sidebar-list-row__icon {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-muted);
}

.sidebar-list-row__logo {
  height: 18px;
  object-fit: contain;
}

.sidebar-list-row__icon--all {
  font-size: 0.625rem;
  color: var(--accent-hover);
}

.sidebar-list-row__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-list-row__flag-img {
  flex-shrink: 0;
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
  display: block;
}

.sidebar-list-row__count {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.sidebar-list-row.is-active .sidebar-list-row__count {
  color: var(--accent-strong);
}

.sidebar-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 4px;
}

.sidebar-list-row--lang {
  min-height: 28px;
  padding: 4px 6px;
  font-size: 0.75rem;
}

.sidebar-list-row__flag {
  flex-shrink: 0;
  width: 1.1rem;
  font-size: 0.875rem;
  line-height: 1;
}

@media (min-width: 1024px) {
  body:not(.model-page-body) #filter-sidebar,
  body:not(.model-page-body) #filter-sidebar:not(.open) {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: var(--sidebar-width, 312px);
    max-width: var(--sidebar-width, 312px);
    min-width: 0;
    height: auto;
    max-height: none;
    min-height: 0;
    transform: translateX(0);
    box-shadow: none;
    overflow: visible;
    overscroll-behavior: auto;
    z-index: 1;
    padding: 0;
  }

  body:not(.model-page-body) #filter-sidebar .close-btn {
    display: none;
    margin: 0;
  }

  body:not(.model-page-body) .sidebar-scroll-inner {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
    overscroll-behavior: auto;
    padding-top: var(--space-2);
    padding-bottom: max(var(--space-6), env(safe-area-inset-bottom, 0px));
  }

  body:not(.model-page-body) #filter-sidebar.open {
    transform: translateX(0);
  }
}

@media (max-width: 1023px) {
  #filter-sidebar {
    width: min(92vw, 360px);
    max-width: min(92vw, 360px);
    padding: 0;
  }

  #filter-sidebar .sidebar-drawer-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    padding-top: max(12px, calc(env(safe-area-inset-top, 0px) + 10px));
    padding-right: var(--space-3);
    padding-bottom: var(--space-3);
    padding-left: var(--space-3);
    min-height: calc(44px + max(12px, env(safe-area-inset-top, 0px)));
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-sidebar);
    box-sizing: border-box;
  }

  #filter-sidebar .sidebar-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    float: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  #filter-sidebar .sidebar-close-btn__icon {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
  }

  #filter-sidebar .sidebar-close-btn:hover,
  #filter-sidebar .sidebar-close-btn:focus-visible {
    background: var(--accent-soft);
    border-color: var(--accent-ring);
    color: var(--text-primary);
    outline: none;
  }

  #filter-sidebar .sidebar-close-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--accent-ring);
  }

  #filter-sidebar .close-btn {
    display: block;
    margin: 0;
  }

  #filter-sidebar .sidebar-scroll-inner {
    padding-top: var(--space-2);
    padding-inline: var(--space-3);
  }

  #filter-sidebar .filter-section,
  #filter-sidebar .filter-section--primary {
    margin-bottom: 6px;
    padding-bottom: 6px;
    overflow: visible;
  }

  #filter-sidebar .filter-label.section-heading-bar {
    margin-bottom: 5px;
    padding-bottom: 4px;
  }

  #filter-sidebar .sidebar-list-row {
    min-height: 28px;
    padding: 4px 7px;
    font-size: 0.78rem;
  }

  #filter-sidebar .filter-gender--compact .filter-chip {
    padding: 3px 8px;
    font-size: 0.72rem;
    min-height: 0;
    border-radius: 999px;
  }

  #filter-sidebar .sidebar-lang-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  #filter-sidebar .sidebar-list-row--lang {
    min-height: 26px;
    padding: 3px 5px;
    font-size: 0.72rem;
  }

  #filter-sidebar .sidebar-list-row--category,
  #filter-sidebar .sidebar-list-row--more,
  #filter-sidebar .sidebar-list-row--age,
  #filter-sidebar .sidebar-list-row--tag {
    min-height: 26px;
    padding: 3px 7px;
    font-size: 0.75rem;
  }

  .sidebar-age-list,
  .sidebar-tag-list,
  .sidebar-provider-list,
  .sidebar-popular-categories {
    overflow: visible;
    max-height: none;
  }
}

@media (max-width: 390px) {
  #filter-sidebar {
    width: min(92vw, 360px);
    max-width: min(92vw, 360px);
    padding: 0;
  }

  .sidebar-lang-grid {
    grid-template-columns: 1fr;
  }
}

.sidebar-popular-categories {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-list-row--category,
.sidebar-list-row--more {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.78rem;
}

.sidebar-list-row--more {
  color: var(--accent-strong);
  font-weight: 600;
}

/* Sprint 14S.16 — Sidebar Rebuild v2 (premium compact discovery rail) */
@media (min-width: 1024px) {
  body:not(.model-page-body) #filter-sidebar,
  body:not(.model-page-body) #filter-sidebar.sidebar-discovery-rail {
    border-right: 1px solid rgba(var(--brand-accent-rgb, 67, 56, 202), 0.1);
    background:
      linear-gradient(180deg, rgba(10, 15, 24, 0.96) 0%, rgba(5, 8, 14, 0.98) 100%);
    box-shadow: none;
  }

  body:not(.model-page-body) .sidebar-scroll-inner {
    padding: 14px 14px 22px;
    padding-bottom: max(22px, env(safe-area-inset-bottom, 0px));
  }

  body:not(.model-page-body) #filter-sidebar .filter-section--primary {
    margin: 0;
    padding: 16px 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    box-shadow: none;
  }

  body:not(.model-page-body) #filter-sidebar .filter-section--primary:first-child {
    border-top: none;
    padding-top: 6px;
  }

  body:not(.model-page-body) #filter-sidebar .filter-section--primary:last-child {
    padding-bottom: 18px;
    margin-bottom: 0;
  }

  body:not(.model-page-body) #filter-sidebar .filter-label.section-heading-bar,
  body:not(.model-page-body) #filter-sidebar .sidebar-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
    border-bottom: none;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.75);
  }

  body:not(.model-page-body) #filter-sidebar .filter-label.section-heading-bar::before,
  body:not(.model-page-body) #filter-sidebar .sidebar-section-title::before {
    width: 3px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      var(--brand-accent, var(--accent)),
      rgba(var(--brand-accent-rgb, 67, 56, 202), 0.35)
    );
    box-shadow: none;
  }

  body:not(.model-page-body) .sidebar-provider-list,
  body:not(.model-page-body) .sidebar-popular-categories,
  body:not(.model-page-body) .sidebar-age-list,
  body:not(.model-page-body) .sidebar-tag-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  body:not(.model-page-body) .sidebar-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 6px;
  }

  body:not(.model-page-body) .sidebar-list-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(203, 213, 225, 0.78);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  body:not(.model-page-body) .sidebar-list-row:hover:not(.is-active) {
    color: rgba(248, 250, 252, 0.96);
    background: rgba(var(--brand-accent-rgb, 67, 56, 202), 0.07);
    border-color: rgba(var(--brand-accent-rgb, 67, 56, 202), 0.12);
  }

  body:not(.model-page-body) .sidebar-list-row.is-active {
    color: var(--brand-accent-strong, var(--accent-strong));
    background: rgba(var(--brand-accent-rgb, 67, 56, 202), 0.1);
    border-color: rgba(var(--brand-accent-rgb, 67, 56, 202), 0.28);
    box-shadow: none;
  }

  body:not(.model-page-body) .sidebar-list-row__count {
    min-width: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 0;
    text-align: right;
    font-size: 0.6875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    background: transparent;
  }

  body:not(.model-page-body) .sidebar-list-row.is-active .sidebar-list-row__count {
    color: var(--brand-accent-strong, var(--accent-strong));
    background: transparent;
    border-color: transparent;
  }

  body:not(.model-page-body) .sidebar-list-row--provider {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    align-items: center;
    min-height: 38px;
    padding: 7px 10px;
    gap: 8px;
    border-radius: 10px;
  }

  body:not(.model-page-body) .sidebar-list-row--provider .sidebar-list-row__logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }

  body:not(.model-page-body) .sidebar-list-row--provider .sidebar-list-row__label {
    min-width: 0;
  }

  body:not(.model-page-body) .sidebar-list-row--provider .sidebar-list-row__count {
    min-width: 2.5rem;
    text-align: right;
  }

  body:not(.model-page-body) .sidebar-list-row--provider:hover:not(.is-active) {
    background: rgba(var(--brand-accent-rgb, 67, 56, 202), 0.07);
    border-color: rgba(var(--brand-accent-rgb, 67, 56, 202), 0.14);
  }

  body:not(.model-page-body) .sidebar-list-row--provider.is-active {
    background: rgba(var(--brand-accent-rgb, 67, 56, 202), 0.1);
    border-color: rgba(var(--brand-accent-rgb, 67, 56, 202), 0.28);
    box-shadow: none;
  }

  body:not(.model-page-body) .filter-gender--compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  body:not(.model-page-body) .filter-gender--compact .filter-chip {
    justify-content: center;
    min-height: 36px;
    max-height: 38px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    color: rgba(203, 213, 225, 0.78);
  }

  body:not(.model-page-body) .filter-gender--compact .filter-chip:hover:not(.selected) {
    color: rgba(248, 250, 252, 0.96);
    background: rgba(var(--brand-accent-rgb, 67, 56, 202), 0.07);
    border-color: rgba(var(--brand-accent-rgb, 67, 56, 202), 0.14);
  }

  body:not(.model-page-body) .filter-gender--compact .filter-chip.selected {
    color: var(--brand-accent-strong, var(--accent-strong));
    background: rgba(var(--brand-accent-rgb, 67, 56, 202), 0.1);
    border-color: rgba(var(--brand-accent-rgb, 67, 56, 202), 0.28);
    box-shadow: none;
  }

  body:not(.model-page-body) .sidebar-list-row--lang {
    min-height: 34px;
    padding: 6px 10px;
    gap: 8px;
    font-size: 0.78rem;
  }

  body:not(.model-page-body) .sidebar-list-row--lang .sidebar-list-row__flag-img {
    width: 16px;
    height: 12px;
    flex-shrink: 0;
    border-radius: 1px;
    box-shadow: none;
  }

  body:not(.model-page-body) .sidebar-list-row--lang .sidebar-list-row__flag {
    width: 1rem;
    flex-shrink: 0;
  }

  body:not(.model-page-body) .sidebar-list-row--category,
  body:not(.model-page-body) .sidebar-list-row--age,
  body:not(.model-page-body) .sidebar-list-row--tag,
  body:not(.model-page-body) .sidebar-list-row--more {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: rgba(203, 213, 225, 0.78);
  }

  body:not(.model-page-body) .sidebar-list-row--more {
    color: var(--brand-accent, var(--accent));
    font-weight: 700;
  }

  body:not(.model-page-body) .filter-section--collapsible {
    margin-bottom: 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: none;
  }

  body:not(.model-page-body) .filter-section--collapsible > summary.filter-label {
    padding: 0;
    margin-bottom: 10px;
    color: rgba(226, 232, 240, 0.75);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  body:not(.model-page-body) .filter-section--collapsible > summary.filter-label::after {
    color: var(--brand-accent, var(--accent));
    opacity: 0.75;
  }
}


/* === assets/css/visual-redesign.css === */
/* Sprint 8 — Premium visual redesign (portal sections, headers, polish) */

/* Portal section header */
.portal-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--section-header-height);
  margin: 0 0 var(--space-3);
  padding: 8px 14px;
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel-soft) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  box-shadow: var(--shadow-soft, 0 2px 8px rgba(0, 0, 0, 0.22)), var(--shadow-inset-highlight, inset 0 1px 0 rgba(255, 255, 255, 0.04));
}

.portal-section-header__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  min-width: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
}

.portal-section-header__accent {
  flex-shrink: 0;
  width: var(--section-accent-width);
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
}

.portal-section-header__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-section-header__count {
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

.portal-section-header__cta {
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
  white-space: nowrap;
}

.portal-section-header__cta:hover {
  text-decoration: underline;
}

/* Homepage portal */
.homepage-portal-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0 0 var(--space-4);
}

.discovery-strip--portal {
  margin-left: 0;
  margin-right: 0;
}

.discovery-strip--portal .portal-section-header {
  margin-bottom: var(--space-2);
}

/* Homepage grid section header */
.homepage-grid-section {
  margin: var(--space-3) 0 var(--space-2);
}

.homepage-grid-section .portal-section-header {
  margin: 0;
}

/* Compact authority intro */
.homepage-authority-compact {
  margin: 0 var(--space-4) var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-panel-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  border-left: var(--section-accent-width) solid var(--accent);
}

.homepage-authority-compact__text {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Category directory page header */
.tags-directory-page .category-page-title {
  margin: var(--space-4) var(--space-4) var(--space-3);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.tags-directory-page .category-breadcrumbs {
  margin-bottom: var(--space-2);
}

/* Geo grid title alignment */
.provider-geo-grid-section .portal-section-header,
.provider-geo-grid-section .provider-geo-grid-title {
  margin-left: var(--space-4);
  margin-right: var(--space-4);
}

@media (max-width: 640px) {
  .portal-section-header {
    margin-left: var(--space-3);
    margin-right: var(--space-3);
    padding: var(--space-2);
    flex-wrap: wrap;
    row-gap: var(--space-2);
  }

  .portal-section-header__cta {
    margin-left: calc(var(--section-accent-width) + var(--space-3));
  }

  .homepage-authority-compact,
  .homepage-grid-section {
    margin-left: var(--space-3);
    margin-right: var(--space-3);
  }
}


/* === assets/css/design-correction.css === */
/* Sprint 8B — Design correction: alignment, pagination, breadcrumbs, sidebar */

.listing-content {
  width: 100%;
  max-width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-2);
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .listing-content {
    padding: var(--space-3) var(--layout-gutter-x, var(--space-5)) var(--space-2);
  }

  .listing-content .category-breadcrumbs,
  .listing-content .category-page-title,
  .listing-content .listing-grid-header,
  .listing-content .tag-seo-intro {
    padding-left: 0;
    padding-right: 0;
  }
}

.listing-content .model-grid,
.listing-content .provider-geo-grid,
.listing-content .category-strip,
.listing-content .homepage-portal-sections,
.listing-content .listing-above-fold,
.listing-content .homepage-grid-section,
.listing-content .homepage-authority-compact,
.listing-content .category-directory,
.listing-content .portal-section-header,
.listing-content .discovery-strip {
  margin-left: 0;
  margin-right: 0;
}

.listing-content .model-grid {
  margin-top: var(--space-3);
  margin-bottom: 0;
  padding-bottom: var(--space-4);
}

.listing-content .provider-geo-grid {
  padding-left: 0;
  padding-right: 0;
}

.listing-content .category-page-title,
.listing-content .listing-grid-header,
.listing-content .tag-seo-intro {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Global premium breadcrumb — public-core source of truth (all public routes) */
.public-breadcrumb {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 var(--space-2, 8px);
  padding: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  box-sizing: border-box;
}

.public-breadcrumb ol,
.public-breadcrumb ul,
.public-breadcrumb__list {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  column-gap: 0;
  row-gap: 0.15rem;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none !important;
  list-style-type: none !important;
  counter-reset: none;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}

.public-breadcrumb li,
.public-breadcrumb__item {
  display: inline-flex;
  flex: 0 1 auto;
  flex-direction: row;
  align-items: center;
  min-width: 0;
  width: auto;
  max-width: none;
  white-space: nowrap;
  list-style: none !important;
  list-style-type: none !important;
  color: var(--text-muted, #94a3b8);
}

.public-breadcrumb li::marker,
.public-breadcrumb__item::marker {
  content: none;
}

.public-breadcrumb__link {
  display: inline;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  transition: color 0.12s ease;
}

.public-breadcrumb__link:hover,
.public-breadcrumb__link:focus-visible {
  color: var(--brand-accent, var(--brand-primary, var(--accent-color)));
  text-decoration: none;
}

.public-breadcrumb__current,
.public-breadcrumb__item--current .public-breadcrumb__current {
  color: var(--text-main, #f3f4f6);
  font-weight: 600;
  font-size: inherit;
  line-height: inherit;
}

.public-breadcrumb__sep {
  display: inline;
  margin: 0 0.45rem;
  color: rgba(148, 163, 184, 0.42);
  font-size: 0.72rem;
  line-height: 1;
  user-select: none;
}

.category-breadcrumbs.public-breadcrumb,
.blog-breadcrumb.public-breadcrumb,
.cms-public-breadcrumb.public-breadcrumb,
.static-page-breadcrumb.public-breadcrumb,
.public-static-breadcrumb.public-breadcrumb {
  margin: 0 0 var(--space-2, 8px);
  padding-inline: 0;
}

.listing-content .public-breadcrumb {
  padding-left: 0;
  padding-right: 0;
}

.listing-content .category-breadcrumbs.public-breadcrumb {
  margin: 0 0 clamp(6px, 0.85vw, 10px);
}

.listing-content .category-breadcrumbs.public-breadcrumb + .category-page-title,
.listing-content .category-breadcrumbs.public-breadcrumb + .listing-page-header,
.listing-content .category-breadcrumbs.public-breadcrumb + .category-strip {
  margin-top: 0;
}

.listing-content .public-breadcrumb__list {
  gap: 0;
}

.listing-content .public-breadcrumb__link {
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  font-weight: 500;
}

.listing-content .public-breadcrumb__link:hover,
.listing-content .public-breadcrumb__link:focus-visible {
  color: var(--brand-accent, var(--brand-primary, var(--accent-color, #e8941a)));
  text-decoration: none;
}

.listing-content .public-breadcrumb__current {
  color: var(--text-main, #f3f4f6);
  font-weight: 600;
}

.listing-content .public-breadcrumb__sep {
  margin-inline: 0.42rem 0.48rem;
  color: rgba(148, 163, 184, 0.45);
  font-size: 0.72rem;
}

.category-breadcrumbs {
  margin: 0 0 var(--space-2, 8px);
  padding: 0;
  max-width: 100%;
}

.category-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-xs);
  line-height: 1.5;
}

.category-breadcrumbs-list > li {
  display: inline-flex;
  align-items: center;
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.category-breadcrumbs-list > li + li::before {
  content: "→";
  display: inline-block;
  margin: 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.85em;
  user-select: none;
  pointer-events: none;
}

.category-breadcrumbs-item a {
  color: var(--text-muted);
  text-decoration: none;
}

.category-breadcrumbs-item a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

.category-breadcrumbs-item--current {
  color: var(--text-main);
  font-weight: 600;
}

.category-page-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Pagination — centered */
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: var(--space-3) 0 var(--space-4);
  padding: 0;
  text-align: center;
}

.pagination-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pagination-btn,
.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  box-sizing: border-box;
}

.pagination-btn {
  border: 1px solid var(--border-soft);
  background: var(--bg-panel-soft);
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.pagination-btn:hover:not(.is-disabled) {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-main);
}

.pagination-btn.is-disabled {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.pagination-page.is-active {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.pagination-ellipsis {
  min-width: 1.25rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  user-select: none;
}

/* Sidebar count contrast on active provider row */
.sidebar-list-row.is-active .sidebar-list-row__count {
  color: var(--accent-strong);
}

/* Header online status (Sprint 8G / 8Q.2) — legacy header only; concept uses public-header-remake.css */
.site-header:not(.site-header--concept) .site-header__online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  min-width: 0;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(16, 20, 28, 0.88);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  line-height: 1.2;
}

.site-header__online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
}

.site-header__online-text {
  line-height: 1;
}

#header-live-count {
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .site-header__online {
    padding: 3px 6px;
    gap: 5px;
  }

  .site-header__online-text {
    font-size: 0.68rem;
  }
}

.sidebar-list-row--age {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.sidebar-age-list,
.sidebar-tag-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Search provider badge — dark theme */
.global-search__provider {
  background: var(--bg-panel-soft);
  border: 1px solid var(--border-soft);
}

.global-search__provider img {
  filter: none;
}

@media (max-width: 640px) {
  .listing-content {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}

/* Countries header mega menu removed — Countries is a direct nav link only (Sprint layout hard fix). */

/* Country directory rows */
.country-directory__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.country-directory__flag {
  flex: 0 0 auto;
  line-height: 1;
}

.country-directory__flag-img {
  flex: 0 0 auto;
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
  display: block;
}

.country-directory__name {
  flex: 1 1 auto;
}

.listing-content .category-directory,
.listing-content .country-directory {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: var(--space-4);
}

/* Footer spacing — avoid large gap after short listings */
#main-flex-wrap + footer,
main + footer {
  margin-top: 0;
}

footer {
  margin-top: var(--space-3);
}

.sidebar-list-row--age {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-list-row--age.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent-ring);
}

/* Country directory rows — mobile stack rules continue below */
/* Sprint 8I — Mobile header, drawer, overflow */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body.sidebar-drawer-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 768px) {
  .site-header:not(.site-header--concept) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "left right"
      "nav nav"
      "search search";
    align-items: center;
    gap: 8px;
    height: auto;
    min-height: 0;
    padding: 8px 10px;
    overflow: visible;
  }

  .site-header__left {
    grid-area: left;
    min-width: 0;
    gap: 6px;
  }

  .site-header__right {
    grid-area: right;
    display: contents;
  }

  .site-header__right-cluster {
    grid-area: right;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-self: end;
    flex-shrink: 0;
  }

  .site-header__toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-self: end;
    flex-shrink: 0;
  }

  .site-header__nav {
    grid-area: nav;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
  }

  .site-header .global-search-wrap {
    grid-area: search;
    display: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: none;
  }

  .site-header.site-header--search-open .global-search-wrap {
    display: block;
  }

  .site-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  .site-header__search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
  }

  .site-header__search-toggle[aria-expanded="true"] {
    color: var(--accent-strong);
    border-color: var(--accent-ring);
    background: var(--accent-soft);
  }

  .site-header__title {
    display: none;
  }

  .site-header__logo-mark {
    width: 30px;
    height: 30px;
  }

  .site-header__logo-icon {
    font-size: 13px;
  }

  .site-header__online {
    padding: 3px 6px;
    gap: 4px;
    max-width: 42vw;
    overflow: hidden;
  }

  .site-header__online-text {
    font-size: 0.65rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header__filter-btn {
    padding: 5px 8px;
    min-width: 34px;
    min-height: 34px;
  }

  .site-header__filter-btn-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .site-header__filter-btn-icon {
    font-size: 1rem;
    line-height: 1;
  }

  .header-directory-nav__link {
    min-width: 0;
    padding: 6px 10px;
    font-size: var(--text-xs);
  }

  .site-header__link--broadcast {
    display: none;
  }

  .site-header__link--login {
    padding: 5px 7px;
    font-size: 0.68rem;
  }

  .site-header .global-search__input {
    width: 100%;
    max-width: 100%;
  }

  .listing-content {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
    overflow-x: clip;
  }

  .listing-content .model-grid,
  .listing-content .provider-geo-grid {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .listing-content .model-grid,
  .listing-content .provider-geo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: var(--space-2);
    padding-left: 0;
    padding-right: 0;
  }

  .portal-section-header {
    flex-wrap: wrap;
    row-gap: var(--space-2);
    align-items: flex-start;
  }

  .portal-section-header__cta {
    margin-left: calc(var(--section-accent-width) + var(--space-3));
    white-space: nowrap;
  }

  .provider-geo-grid-section .portal-section-header {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 380px) {
  .listing-content .model-grid,
  .listing-content .provider-geo-grid {
    grid-template-columns: 1fr;
  }

  .site-header__link--login {
    display: none;
  }
}

@media (min-width: 769px) {
  .site-header__search-toggle {
    display: none;
  }

  .site-header__right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
    justify-self: end;
  }

  .site-header__right-cluster {
    display: contents;
  }

  .site-header .global-search-wrap {
    display: block;
    flex: 0 1 300px;
    width: min(300px, 28vw);
    max-width: 320px;
    min-width: 160px;
  }
}

@media (min-width: 1024px) {
  .site-header__nav {
    margin-left: 0;
  }
}

/* Sprint 8Q.4.1 — Nav label visibility lives in site-header.css (.header-directory-nav__full / __short).
   Mobile search drawer uses .site-header--search-open below. */

/* Sprint 8Q.4.1 — GeoIP heading alignment */
.portal-section-header__flag {
  flex-shrink: 0;
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
  border: 1px solid var(--border-soft);
  display: block;
  align-self: center;
}

.portal-section-header__flag-fallback {
  flex-shrink: 0;
  display: none;
}

.provider-geo-grid-section__header,
.provider-geo-grid-section .portal-section-header {
  margin-left: 0;
  margin-right: 0;
}

.provider-geo-grid-section .portal-section-header__title {
  align-items: center;
  gap: var(--space-2);
}

.site-header__online {
  margin-left: 2px;
}


/* === assets/css/pagination-underline-guard.css === */
/* Phase 9A-k-b — Pagination underline guard (ships in public-core bundle) */

.pagination-bar a,
.pagination-bar a:visited,
.pagination-bar a:hover,
.pagination-bar a:focus,
.pagination-bar a:focus-visible,
.pagination-bar a:active,
.pagination-bar a.pagination-btn,
.pagination-bar a.pagination-btn--page,
.pagination-bar a.pagination-btn--nav,
.pagination-bar a.pagination-mobile__button,
.pagination-bar .pagination-btn,
.pagination-bar .pagination-btn:visited,
.pagination-bar .pagination-btn:hover,
.pagination-bar .pagination-btn:focus,
.pagination-bar .pagination-btn:focus-visible,
.pagination-bar .pagination-btn:active,
.pagination-nav a,
.pagination-nav a:visited,
.pagination-nav a:hover,
.pagination-nav a:focus,
.pagination-nav a:focus-visible,
.pagination-nav a:active,
.pagination-btn,
.pagination-btn:visited,
.pagination-btn:hover,
.pagination-btn:focus,
.pagination-btn:focus-visible,
.pagination-btn:active,
.pagination-mobile__button,
.pagination-mobile__button:visited,
.pagination-mobile__button:hover,
.pagination-mobile__button:focus,
.pagination-mobile__button:focus-visible,
.pagination-mobile__button:active,
.search-results__pagination a,
.search-results__pagination a:visited,
.search-results__pagination a:hover,
.search-results__pagination a:focus,
.search-results__pagination a:focus-visible,
.search-results__pagination a:active {
  text-decoration: none !important;
}

.pagination-bar a:focus-visible,
.pagination-bar .pagination-btn:focus-visible,
.pagination-nav a:focus-visible,
.pagination-btn:focus-visible,
.pagination-mobile__button:focus-visible,
.search-results__pagination a:focus-visible {
  outline: 2px solid var(--brand-primary, var(--accent));
  outline-offset: 2px;
  box-shadow: none;
}

