/* ===========================================
   STARLIO - Theme CSS
   =========================================== */

:root {
  --font-main: system-ui, sans-serif;
  --max-width: 730px;

  /* Colors */
  --bg: oklch(18.22% 0 89.88);
  --surface: oklch(28% 0 255);
  --text: oklch(97.91% 0 89.88);
  --text-muted: rgba(255, 255, 255, 0.7);
  --border: oklch(27% 0.041 260.031);
  --purple: oklch(71% 0.203 305.504);
  --raspberry: oklch(0.5927 0.1981 15.68);
  --accent: oklch(0.9249 0 0);
  --error: oklch(57.889% 0.23756 29.223);
  --success: oklch(0.6999 0.23816 142.4953);
}

/* ===========================================
   BASE & RESET
   =========================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); }
a:hover { color: var(--text); }

/* ===========================================
   LAYOUT
   =========================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

.content-wrapper {
  padding: 0.5rem;
}

.hidden { display: none !important; }

/* Loading Splash */
#loadingSplash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
#loadingSplash.visible { display: flex; }
#loadingSplash img { width: 200px; height: auto; margin-bottom: 0.5rem; }
#loadingSplash .splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 280px;
}
#loadingSplash .splash-text {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}
#loadingSplash .splash-progress {
  width: 100%;
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
}
#loadingSplash .splash-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease-out;
  animation: splashProgress 3s ease-out forwards;
}
@keyframes splashProgress {
  0% { width: 0%; }
  20% { width: 30%; }
  50% { width: 60%; }
  80% { width: 85%; }
  100% { width: 95%; }
}
#loadingSplash .splash-spinner {
  width: 32px;
  height: 32px;
  filter: invert(1);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Search Widget (profile page) */
.search-widget { margin-bottom: 1.5rem; }
.search-widget .search-form { max-width: 400px; margin: 0 auto; }
.search-widget .search-error { text-align: center; }

/* ===========================================
   TYPOGRAPHY
   =========================================== */
.section-title {
  color: var(--text);
margin: 1rem 0;
}

.title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
/*  color: var(--raspberry);*/
  margin: 0;
}

.small-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.text-center { text-align: center; }
.text-error { color: var(--error); font-size: 0.875rem; }
.text-success { color: var(--success); font-size: 0.875rem; }

/* ===========================================
   FORMS
   =========================================== */

.input, .select {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.input:focus, .select:focus {
  outline: none;
  border-color: var(--raspberry);
}

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

.form-group { margin-bottom: 1rem; color: var(--text); }

.form-label {
  display: block;
  font-size: 0.975rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ===========================================
   BUTTONS
   =========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 1rem;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-accent {
  background: var(--raspberry);
  color: var(--text);
  font-weight: bold;
}
.btn-accent:hover { filter: brightness(1.1); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-error {
  background: var(--error);
  color: white;
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem;
  text-decoration: none;
}
.btn-link:hover { color: var(--text); }
.btn-link-purple { color: var(--purple); }
.btn-link-purple:hover { color: var(--purple); filter: brightness(1.2); }

.btn-neutral {
  background: var(--border);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-neutral:hover { background: oklch(35% 0.04 260); }

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
}

/* ===========================================
   COMPONENTS - Cards & Boxes
   =========================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(168,85,247,0.05));
  border: 1px solid var(--accent);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

/* Badge */
.badge {
  background: var(--accent);
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  text-transform: uppercase;
}

/* ===========================================
   COMPONENTS - Modal
   =========================================== */

dialog.modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

dialog.modal[open] { opacity: 1; visibility: visible; }

.modal-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 520px;
  width: calc(100vw - 1rem);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-text {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.modal-backdrop button {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ===========================================
   PRICING - Subscription Cards
   =========================================== */

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.pricing-featured {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  text-transform: uppercase;
}

.pricing-name {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.5rem;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--success);
  mask: url('/img/check.svg') no-repeat center / contain;
  -webkit-mask: url('/img/check.svg') no-repeat center / contain;
}

/* ===========================================
   NAVBAR
   =========================================== */

.app-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.3rem;
  /*background-color: #000;*/
}

.nav-logo img { height: 1.5rem; width: auto; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.app-navbar svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--text);
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-icon-btn:hover svg { stroke: var(--raspberry); }

.nav-account {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.5rem;
}
.nav-account:hover { color: var(--text); }
.nav-account:hover svg { stroke: var(--text); }

.nav-account-icon {
  width: 1.25rem;
  height: 1.25rem;
  filter: invert(1);
  opacity: 0.8;
}
.nav-account:hover .nav-account-icon { opacity: 1; }

/* Language Switcher */
.nav-lang-wrapper {
  position: relative;
}

.nav-lang-icon {
  width: 1.25rem;
  height: 1.25rem;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav-icon-btn:hover .nav-lang-icon { opacity: 1; }

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 120px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.lang-option:hover {
  background: var(--border);
}

.lang-option.active {
  color: var(--purple);
  font-weight: 600;
}

/* ===========================================
   DRAWER
   =========================================== */

.app-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}
.app-drawer.open { visibility: visible; pointer-events: auto; }

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.app-drawer.open .drawer-overlay { opacity: 1; }

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--surface);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.app-drawer.open .drawer-panel { transform: translateX(0); }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.drawer-logo { height: 40px; width: auto; }

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
.drawer-close svg { width: 1.5rem; height: 1.5rem; stroke: var(--text); }
.drawer-close:hover svg { stroke: var(--raspberry); }

/* Menu */
.menu-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--raspberry);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list a {
  display: block;
  padding: 0.35rem 0;
  color: var(--text);
  text-decoration: none;
}
.menu-list a:hover { color: var(--raspberry); }

.logout-link {
  text-decoration: underline !important;
  color: var(--text-muted) !important;
}
.logout-link:hover { color: var(--error) !important; }

/* Auth-required links when not logged in */
.auth-required-link {
  color: var(--text-muted) !important;
  opacity: 0.5;
  cursor: pointer;
}

/* ===========================================
   FOOTER
   =========================================== */

.site-footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: normal;
}
.site-footer a:hover { color: var(--text); }

.footer-separator {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.footer-disclaimer {
  font-style: italic;
  font-weight: normal;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

/* ===========================================
   LEGAL PAGES
   =========================================== */

.content-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0.5rem;
}

.legal-text p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.legal-text ul {
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.last-update {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ===========================================
   STARLIO - Search Page
   =========================================== */

/* Hero */
.hero {
  text-align: center;
  padding: 1rem 0.5rem;
}
.hero h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.hero p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Search Form */
.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
}
.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 1rem;
  width: 100%;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
}
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  min-width: 50px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}
.search-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.search-icon {
  width: 1.25rem;
  height: 1.25rem;
}
.search-btn:disabled .search-icon {
  animation: spin 1s linear infinite;
}
.search-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

/* Autocomplete */
.search-input-wrapper {
  position: relative;
  flex: 1;
}
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-top: 0.25rem;
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}
.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.1s;
}
.autocomplete-item:hover,
.autocomplete-item.selected {
  background: rgba(255, 255, 255, 0.1);
}
.autocomplete-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.autocomplete-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.autocomplete-nickname {
  color: var(--text);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.autocomplete-username {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.autocomplete-name {
  color: var(--text);
  font-size: 0.95rem;
}
.search-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 0.5rem;
  text-align: center;
}

/* Queue Status */
.queue-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.queue-text {
  font-size: 0.95rem;
  color:var(--raspberry);
}
.queue-countdown {
  color: var(--accent);
  font-weight: 700;
}
.queue-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.queue-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s;
}

/* Trending Section */
.trending-section {
  margin-top: 0rem;
}

.trending-grid {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.trending-grid::-webkit-scrollbar {
  display: none;
}
.trending-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  min-width: 110px;
  max-width: 110px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.trending-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.trending-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}
.trending-info {
  width: 100%;
  min-width: 0;
}
.trending-name {
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.trending-username {
  color: var(--text-muted);
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trending-stats {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.top-gains-amount {
  color: var(--success);
  font-weight: 700;
  font-size: 0.95rem;
}
.top-gains-period {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: 0.25rem;
}
.top-perf-amount {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Desktop: 2 rows for trending grids */
@media (min-width: 768px) {
  .trending-grid {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
  }
  .trending-card {
    min-width: calc((100% - 5 * 0.75rem) / 6);
    max-width: calc((100% - 5 * 0.75rem) / 6);
  }
}

/* Country Tops Section */
.country-tops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .country-tops {
    grid-template-columns: 1fr;
  }
}
.country-top {
  width: 100%;
  overflow: hidden;
}
.country-top h3.subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.country-top h3.subtitle img {
  width: 18px;
  height: 12px;
  border-radius: 2px;
}
.country-card {
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 10px;
}
.country-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: country-rank;
}
.country-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.country-list li:last-child {
  border-bottom: none;
}
.country-list li::before {
  counter-increment: country-rank;
  content: counter(country-rank);
  color: var(--text-muted);
  font-size: 0.7rem;
  min-width: 12px;
}
.country-list li img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.country-list .info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.country-list .name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  max-width: 100%;
}
.country-list .gains {
  display: block;
  color: var(--success);
  font-weight: 600;
  font-size: 0.75rem;
}

/* Results */
.results {
  display: none;
  margin-top: 1.5rem;
}
.results.visible {
  display: block;
}

/* Profile Header (centered) */
.profile-header {
  text-align: center;
  margin-bottom: 1rem;
}
.profile-header .profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
  margin-bottom: 0.75rem;
}
.profile-header a:hover .profile-avatar {
  border-color: var(--accent);
  transform: scale(1.05);
}
.profile-header .title {
  margin-bottom: 0.25rem;
}
.profile-header .profile-username {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Profile Stats (columned) */
.profile-stats {
  display: flex;
  justify-content: space-around;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
}
.stat-item {
  text-align: center;
}
.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Profile Card */
.profile-card {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}
.profile-created {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.profile-timezone {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Info Card */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.info-row img.language-flag {
  width: 18px;
  height: auto;
}

.local-clock {
  color: var(--accent);
  letter-spacing: 0.5px;
}

.private-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.language-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 6px;
}

/* Section Header (subtitle outside cards) */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.section-header-stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.profile-stats-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.profile-stats-row span strong {
  color: var(--text);
}
.profile-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.profile-badges .badge {
  position: static;
  transform: none;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-live {
  background: var(--error);
  color: white;
}
.badge-offline {
  background: var(--border);
  color: var(--text-muted);
}
.profile-tiktok-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}
.profile-tiktok-link:hover {
  text-decoration: underline;
}

/* Link Icon */
.link-icon {
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
  margin-right: 0.25rem;
  filter: invert(1);
}

/* Live Stats */
.live-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.live-stats-grid.live-stats-2col {
  grid-template-columns: repeat(2, 1fr);
}
.live-stat {
  text-align: center;
  padding: 0.5rem;
  background: rgba(0,0,0,0.2);
  border-radius: 0.5rem;
}
.live-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
}
.live-stat-value.money {
  color: var(--success);
}
.live-stat-value.diamonds {
  color: var(--accent);
}
.live-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.live-info-row {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.live-title-text {
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.live-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
}
.live-link:hover {
  text-decoration: underline;
}

/* History Section */
.section-header .small-text strong {
  color: var(--text);
}

/* Chart */
.chart-container {
  height: 180px;
  margin-bottom: 1rem;
  background: rgba(0,0,0,0.2);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

/* History Table */
.history-table-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0.25rem;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.history-table-header span:nth-child(3),
.history-table-header span:nth-child(4) {
  text-align: right;
}
.history-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0.25rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.history-row:last-child {
  border-bottom: none;
}
.history-row.offline {
  opacity: 0.5;
}
.history-row.blurred {
  filter: blur(5px);
  user-select: none;
}
.history-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.history-live-dot {
  width: 6px;
  height: 6px;
  background: var(--error);
  border-radius: 50%;
}
.history-earnings {
  color: var(--success);
  font-weight: 500;
  text-align: right;
}
.history-diamonds {
  color: var(--accent);
  text-align: right;
}
.perf-up {
  color: #22c55e;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}
.perf-down {
  color: #ef4444;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}
.history-4col {
  grid-template-columns: 0.7fr 1.5fr 1fr 0.8fr;
}
.history-title {
  color: var(--text-muted);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Session blocks (new format) */
.session-block {
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}
.session-block:last-child {
  border-bottom: none;
}
.session-block.blurred {
  filter: blur(5px);
  user-select: none;
}
.session-header {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.session-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.6fr;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
}
.session-content.offline {
  opacity: 0.5;
}
.session-title {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-diamonds {
  color: var(--accent);
  text-align: right;
}
.session-diamonds .per-min {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.session-viewers {
  color: var(--text-muted);
  text-align: right;
}
.session-earnings {
  color: var(--success);
  font-weight: 500;
  text-align: right;
}
.live-indicator {
  color: #ef4444;
  animation: pulse-live 1.5s infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Day blocks (days/lives format) */
.day-block {
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}
.day-block:last-child {
  border-bottom: none;
}
.day-block.blurred {
  filter: blur(5px);
  user-select: none;
}

/* Accordion collapsed state */
.day-block.collapsed .day-lives {
  display: none;
}
.day-block.collapsed .day-header {
  margin-bottom: 0;
}

/* Toggle icon */
.day-toggle {
  font-size: 0.7rem;
  color: var(--text-muted);
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}

.day-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.day-block:not(.blurred) .day-header:has(.day-toggle) {
  cursor: pointer;
}
.day-block:not(.blurred) .day-header:has(.day-toggle):hover .day-toggle {
  color: var(--text);
}
.day-variation {
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.4rem;
  white-space: nowrap;
}
.day-variation.up {
  color: #22c55e;
}
.day-variation.down {
  color: #ef4444;
}
.day-date {
  color: var(--text);
}
.day-duration {
  color: var(--text-muted);
}
.day-total {
  margin-left: auto;
  color: var(--accent);
}

.no-history-msg {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 1rem 0;
}

.day-lives {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 0.3rem;
}
@media (min-width: 601px) {
  .day-lives {
    overflow: hidden;
  }
}

.live-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  padding: 0.25rem 0;
}
@media (min-width: 601px) {
  .live-row {
    overflow: hidden;
  }
}
.live-row.live-active {
  background: rgba(0, 212, 255, 0.1);
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  margin: 0 -0.5rem;
}

/* Desktop: hide info button, show title */
.live-info-btn {
  display: none;
}
.live-title {
  flex: 1;
  min-width: 0;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-prefix {
  min-width: 115px;
  flex-shrink: 0;
  color: var(--text-muted);
}
.cross-midnight {
  color: var(--purple);
}
.live-diamonds {
  min-width: 65px;
  flex-shrink: 0;
  text-align: right;
  color: var(--accent);
}
.live-duration {
  min-width: 45px;
  flex-shrink: 0;
  text-align: right;
  color: var(--text-muted);
}

/* Mobile: hide title, show info button with tooltip */
@media (max-width: 600px) {
  .live-info-btn {
    display: block;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    order: -1; /* Move info button to first position on mobile */
  }
  .live-info-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    filter: invert(1);
    transition: opacity 0.2s;
  }
  .live-info-btn:active .live-info-icon {
    opacity: 1;
  }
  .live-info-btn::after {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: normal;
    min-width: 200px;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    z-index: 100;
    pointer-events: none;
  }
  .live-info-btn.show-tooltip::after {
    opacity: 1;
    visibility: visible;
  }
  .live-title {
    display: none;
  }
  .live-prefix {
    min-width: 90px;
    flex: 1;
  }
  .live-diamonds {
    min-width: 55px;
  }
  .live-duration {
    min-width: 40px;
  }
}
.live-earnings {
  min-width: 50px;
  flex-shrink: 0;
  text-align: right;
  color: var(--success);
  font-weight: 500;
}

.history-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.1);
  margin: 0.75rem -1rem -1rem;
  padding: 0.75rem 1rem;
  border-radius: 0 0 0.75rem 0.75rem;
}
.history-total .total-amount {
  color: var(--success);
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat-item {
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Premium Unlock */
.premium-unlock {
  text-align: center;
  padding: 0.75rem;
  background: rgba(0,212,255,0.1);
  border: 1px dashed var(--accent);
  border-radius: 0.5rem;
  margin-top: 0.75rem;
}
.premium-unlock a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.premium-unlock .btn {
  display: inline-flex;
  align-items: center;
}

/* Banned Banner */
.banned-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #ef4444;
  font-size: 0.9rem;
}

/* Error Box */
.error-box {
  display: none;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
}
.error-box.visible {
  display: block;
}
.error-box h3 {
  color: var(--error);
  margin-bottom: 0.5rem;
}

/* ===========================================
   TOAST NOTIFICATION
   =========================================== */

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 2rem);
  max-width: 400px;
  background: var(--bg);
  border: 1px solid var(--success);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 999999;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  animation: toastFadeIn 0.3s ease-out;
}

.toast.hidden {
  display: none;
}

.toast-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Green filter only for success toasts */
.toast:not(.toast-error) .toast-icon {
  filter: brightness(0) saturate(100%) invert(60%) sepia(50%) saturate(500%) hue-rotate(100deg);
}

.toast-title {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
}

.toast-message {
  color: var(--text-muted);
  font-size: 1rem;
  text-align: center;
}

.toast-error {
  border-color: var(--error);
}

.toast-error .toast-icon {
  filter: none;
}

.toast-error .toast-title {
  color: var(--error);
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ===========================================
   UTILITIES
   =========================================== */

.w-full { width: 100%; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mt-3 { margin-top: 0.75rem; }

/* Loading spinner */
.loading {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================================
   GAINS OVERLAY (login prompt for non-logged users)
   =========================================== */

.gains-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border-radius: 0.75rem;
  z-index: 10;
  align-items: center;
  justify-content: center;
}

.gains-overlay.visible {
  display: flex;
}

.overlay-content {
  text-align: center;
  padding: 1.5rem;
}

.overlay-content p {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 0.95rem;
}

/* Live section needs position relative for overlay */
#liveSection {
  position: relative;
}

/* CTA placeholder text */
.login-cta {
  color: var(--text-muted);
  font-style: italic;
}

/* ===========================================
   PROTECTED CONTENT (non-logged users)
   =========================================== */

.blurred {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
}

/* Protected content wrapper */
#protectedContent {
  position: relative;
  padding-bottom: 4rem;
}

/* Protected card container */
.protected-card {
  position: relative;
}

/* Fake chart for protected view */
.fake-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 150px;
  padding: 1rem;
  gap: 1rem;
}

.fake-bar {
  flex: 1;
  max-width: 60px;
  background: rgba(0, 212, 255, 0.6);
  border: 1px solid rgba(0, 212, 255, 1);
  border-radius: 4px 4px 0 0;
  min-height: 20px;
}

/* Fake history rows */
.fake-history {
  padding: 0.5rem 0;
}

.fake-row {
  display: grid;
  grid-template-columns: 50px 1fr 80px 60px;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.fake-row:last-child {
  border-bottom: none;
}

.fake-row .money {
  color: var(--success);
  font-weight: 600;
}

/* Fake total */
.fake-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 0 0 0.75rem 0.75rem;
  font-weight: 600;
}

.fake-total .money {
  color: var(--success);
}

/* Big connect button - positioned over the blurred content */
.btn-connect-big {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: calc(100% - 2rem);
  max-width: 320px;
  padding: 1rem 2rem;
  background: var(--raspberry);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-connect-big:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 4px 25px rgba(231, 76, 101, 0.5);
}

.btn-connect-big .lock-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* Error retry link */
.error-retry-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--raspberry);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.error-retry-link:hover {
  text-decoration: underline;
}

/* ===========================================
   UPDATE STATUS
   =========================================== */

.update-status {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  margin: 1rem 0;
}

.update-status.active {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.update-status.dormant {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.update-status.inactive {
  background: rgba(158, 158, 158, 0.1);
  color: #9e9e9e;
}

.update-status .next-update {
  opacity: 0.7;
  font-size: 0.8rem;
}

.update-status .update-hint {
  opacity: 0.6;
  font-size: 0.8rem;
}

.update-status .update-warning {
  color: #ff9800;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

/* Icon filter for accent buttons */
.btn-icon-white {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* Modal button row */
.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--surface);
}

.btn-danger {
  background: var(--error);
  color: white;
}
.btn-danger:hover {
  opacity: 0.9;
}

/* ===========================================
   MES SUIVIS - Lists Feature
   =========================================== */

/* List filter chips */
.list-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.list-chip {
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.list-chip:hover {
  border-color: var(--raspberry);
  color: var(--text);
}

.list-chip.active {
  background: var(--raspberry);
  border-color: var(--raspberry);
  color: white;
}

/* Creators list */
.creators-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.creator-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
}

.creator-row:hover {
  border-color: var(--raspberry);
}

.creator-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  position: relative;
}

.creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.creator-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.creator-nickname {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-username {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.creator-earnings {
  font-weight: 600;
  color: var(--success);
  font-size: 0.9rem;
}

.creator-lastlive {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.creator-lists-tags {
  display: none;
}

/* Live badge */
.creator-info .live-badge {
  position: absolute;
  top: -4px;
  left: 28px;
  background: #f00;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Lists grid */
.lists-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.list-name {
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-name.clickable {
  cursor: pointer;
  color: var(--accent);
}

.list-name.clickable:hover {
  text-decoration: underline;
}

.list-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.list-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon-sm {
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.btn-icon-sm:hover {
  color: var(--text);
}

.btn-icon-sm.text-error:hover {
  color: var(--error);
}

/* List tags on creator row (mobile hidden) */
.list-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

/* Small button variant */
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

/* Follow button on profile */
.follow-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.follow-btn:hover {
  border-color: var(--raspberry);
}

.follow-btn.following {
  background: var(--raspberry);
  border-color: var(--raspberry);
  color: white;
}

.follow-btn .btn-icon {
  width: 16px;
  height: 16px;
}

/* List selection modal checkboxes */
.list-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  margin: 1rem 0;
}

.list-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text);
}

.list-checkbox-item:hover {
  background: var(--surface);
}

.list-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--raspberry);
}

.list-checkbox-item label {
  flex: 1;
  cursor: pointer;
}

/* ========================================
   MES SUIVIS - Filters & Table
   ======================================== */

.filters-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.filters-row .select {
  flex: 1;
  min-width: 0;
}

/* Creators Table */
.creators-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.creator-table-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.creator-table-row:hover {
  background: var(--surface);
}

.creator-table-row:last-child {
  border-bottom: none;
}

.creator-cell-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.creator-avatar-sm {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.creator-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.creator-names .creator-nickname {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-names .creator-username {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-lastlive-mobile {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.icon-live-activity {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.icon-action {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.creator-cell-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
}

.stat-diamonds {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.icon-diamond {
  width: 14px;
  height: 14px;
}

.stat-earnings {
  font-weight: 600;
  color: var(--success);
}

.creator-cell-time {
  min-width: 50px;
  text-align: right;
}

.last-live-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .creator-table-row {
    grid-template-columns: 1fr auto;
  }

  .creator-cell-time {
    display: none;
  }

  .creator-lastlive-mobile {
    display: flex;
  }

  .creator-avatar-sm {
    width: 40px;
    height: 40px;
  }
}
