:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: rgba(249, 115, 22, 0.14);
  --primary-glow: rgba(249, 115, 22, 0.3);
  --vip-gold: #f59e0b;
  --vip-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  --admin-blue: #3b82f6;
  --admin-gradient: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  /* OLED DARK THEME SYSTEM PALETTE */
  --bg-main: #080b12;
  --bg-card: #0f1626;
  --bg-card-hover: #141e33;
  --bg-subtle: #182338;
  --bg-sidebar: #090e18;
  --bg-input: #0b1220;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-focus: #f97316;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 24px rgba(249, 115, 22, 0.2);
  
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  
  --bottom-nav-height: 64px;
  --header-height: 64px;
  --sidebar-width: 270px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 24px;
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
}


/* ==================== HEADER (DARK THEME) ==================== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 14, 23, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1100;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}

.btn-sidebar-toggle:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 12px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.brand-logo:hover {
  transform: translateY(-1px) scale(1.03);
}

.brand-logo:active {
  transform: scale(0.97);
}

.brand-emblem {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

body.theme-light .brand-emblem {
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.18), inset 0 1px 1px #ffffff;
}

.brand-logo:hover .brand-emblem {
  border-color: #f97316;
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  transform: rotate(-4deg) scale(1.08);
}

.brand-emblem-svg {
  width: 15px;
  height: 15px;
  filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.7));
  margin-left: 2px;
  transition: transform 0.25s ease;
}

.brand-logo:hover .brand-emblem-svg {
  transform: scale(1.12);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.4px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text-main);
  position: relative;
}

/* Effet reflet métallique sur « Rêve de » */
.brand-text-prefix {
  background: linear-gradient(120deg, var(--text-main) 0%, var(--text-main) 40%, #fef08a 52%, var(--text-main) 64%, var(--text-main) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandShimmer 6.5s infinite ease-in-out;
  display: inline-block;
}

/* Effet Signature Néon Doré sur le « Q » */
.brand-q-glow,
.brand-text .text-orange {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.32em;
  line-height: 0.9;
  display: inline-block;
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 30%, #f97316 70%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.65)) drop-shadow(0 0 2px rgba(254, 240, 138, 0.9));
  animation: brandQPulse 3.5s infinite ease-in-out alternate;
  position: relative;
  margin-left: 1px;
  transform-origin: center;
  transition: all 0.25s ease;
}

.brand-logo:hover .brand-q-glow,
.brand-logo:hover .brand-text .text-orange {
  filter: drop-shadow(0 0 16px rgba(249, 115, 22, 0.95)) drop-shadow(0 0 4px #fbbf24);
  transform: scale(1.1) rotate(2deg);
}

@keyframes brandShimmer {
  0% {
    background-position: 100% 0;
  }
  22%, 100% {
    background-position: -100% 0;
  }
}

@keyframes brandQPulse {
  0% {
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.5)) drop-shadow(0 0 1px rgba(254, 240, 138, 0.6));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 13px rgba(249, 115, 22, 0.85)) drop-shadow(0 0 3px rgba(254, 240, 138, 0.95));
    transform: scale(1.02);
  }
  100% {
    filter: drop-shadow(0 0 7px rgba(249, 115, 22, 0.55)) drop-shadow(0 0 1px rgba(254, 240, 138, 0.7));
    transform: scale(1);
  }
}

.brand-icon {
  font-size: 1.4rem;
}

.text-orange {
  color: var(--primary);
}

.search-box {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: none;
}

@media (min-width: 640px) {
  .search-box {
    display: flex;
    align-items: center;
  }
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: var(--primary);
  background: var(--bg-input);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  font-size: 0.9rem;
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-header-explore {
  display: none;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .btn-header-explore {
    display: inline-flex;
  }
}

.btn-header-explore:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-header-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-header-contact:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .btn-header-contact {
    display: none;
  }
}

.btn-header-upload-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-header-upload-top:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-header-camera-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
  flex-shrink: 0;
}

.btn-header-camera-upload:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.6);
}

.btn-add-cat-top {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--primary);
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (min-width: 992px) {
  .btn-add-cat-top {
    display: inline-flex;
  }
}

.btn-add-cat-top:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Smart Category & Video Suggestions Dropdown */
.cat-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 340px;
  overflow-y: auto;
  z-index: 1300;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
}

.cat-suggestion-header {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 12px 4px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.cat-suggestion-item {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.15s ease;
}

.cat-suggestion-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.cat-suggestion-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.full-width-main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
}

.standalone-admin-portal {
  background: var(--bg-main);
  padding: 20px;
  border-radius: var(--radius-lg);
}

.admin-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

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

.header-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.header-auth:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
}

.header-avatar-placeholder {
  font-size: 1rem;
}

/* ==================== LAYOUT & SIDEBAR (DARK THEME) ==================== */
.app-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  min-height: calc(100vh - var(--header-height));
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: none;
}

.sidebar-backdrop.active {
  display: block;
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  z-index: 1200;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-sidebar.open {
  transform: translateX(0);
  box-shadow: var(--shadow-lg);
}

.sidebar-inner {
  padding: 16px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-light);
  padding: 4px 8px 2px;
}

.sidebar-section-title.main-title {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--text-main);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-close-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.sidebar-close-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

@media (min-width: 992px) {
  .sidebar-close-btn {
    display: none;
  }
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.sidebar-nav-item:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.sidebar-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.sidebar-item-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.sidebar-nav-item:hover .sidebar-item-icon,
.sidebar-nav-item.active .sidebar-item-icon {
  color: var(--primary);
}


.sidebar-item-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vip-sidebar-link {
  color: #fb923c;
  font-weight: 700;
}

.vip-sidebar-link:hover {
  background: rgba(245, 158, 11, 0.12);
}

.admin-sidebar-link {
  color: #60a5fa;
  font-weight: 700;
}

.admin-sidebar-link:hover {
  background: rgba(37, 99, 235, 0.15);
}

.badge-vip-mini {
  background: var(--vip-gradient);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
}

.badge-pending-count {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.sidebar-divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
}

.sidebar-vip-card {
  background: linear-gradient(135deg, #182234 0%, #0d1527 100%);
  color: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 10px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.sidebar-vip-icon {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.sidebar-vip-title {
  font-size: 0.9rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.sidebar-vip-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f59e0b;
  margin: 2px 0 4px;
}

.sidebar-vip-price small {
  font-size: 0.75rem;
  color: #94a3b8;
}

.sidebar-vip-desc {
  font-size: 0.72rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.w-100 {
  width: 100%;
}

/* ==================== MAIN VIEWPORT ==================== */
.app-main {
  flex: 1;
  min-width: 0;
  padding: 16px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== CATEGORIES PILLS ==================== */
.categories-wrapper {
  margin-bottom: 18px;
  margin-left: -16px;
  margin-right: -16px;
  padding: 0 16px;
  overflow: hidden;
}

.categories-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ====================  SPOTLIGHT DU JOUR (ADMIN SELECTION) ==================== */
.daily-spotlight-box {
  background: linear-gradient(135deg, #182234 0%, #111827 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.daily-spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.spotlight-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spotlight-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  width: fit-content;
}

.daily-spotlight-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.spotlight-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

.spotlight-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.spotlight-card {
  border-color: rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15) !important;
}

/* ====================  DAILY TIMELINE FEED (JOUR PAR JOUR) ==================== */
.daily-feed-timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 14px;
}

.daily-group-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.daily-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
}

.daily-date-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #ffffff;
}

.daily-calendar-icon {
  font-size: 1.1rem;
}

.daily-group-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ==================== VIDEO CARDS (DARK THEME) ==================== */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
}

.video-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 991px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .video-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}


.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(249, 115, 22, 0.08);
  border-color: var(--border-subtle);
  background: var(--bg-card-hover);
}

.video-thumbnail-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #04060c;
  overflow: hidden;
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card:hover .video-thumbnail {
  transform: scale(1.05);
}

.play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 48px;
  height: 48px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.video-card:hover .play-overlay-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: var(--primary);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.video-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.3px;
}

.video-rating-pill-card {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.video-rating-pill-card svg {
  color: #f59e0b;
}

.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(8, 11, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, color 0.2s;
}

.card-fav-btn:hover {
  transform: scale(1.12);
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
}

.card-fav-btn.active {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.card-fav-btn:active {
  transform: scale(0.9);
}

.video-daily-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f59e0b;
  color: #000000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.3px;
  z-index: 2;
}

.vip-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--vip-gradient);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.3px;
  z-index: 2;
}

.vip-exclusive-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
  z-index: 2;
}

.video-pending-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
}

.video-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.video-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.creator-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.creator-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-color);
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}

.creator-avatar:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}

.creator-avatar-wrap.vip-creator .creator-avatar {
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.video-card-meta {
  flex: 1;
  min-width: 0;
}

.video-card-title {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-main);
  transition: color 0.15s ease;
}

.video-card:hover .video-card-title {
  color: #fb923c;
}

.video-card-creator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.video-creator-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}

.video-creator-name:hover {
  color: var(--text-main);
}

.badge-region-pill {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.video-card-pub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-light);
  gap: 8px;
}

.video-stats-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-light);
}

.video-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 100%;
}

.video-tag-pill {
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: all 0.15s ease;
  cursor: pointer;
}

.video-tag-pill:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #334155;
  border-color: #475569;
}

.btn-success {
  background: var(--success);
  color: #ffffff;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-warning {
  background: #f59e0b;
  color: #000000;
}

.btn-vip-pill {
  background: var(--vip-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-vip-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}

.btn-link:hover {
  text-decoration: underline;
}

/* ==================== FORMS & INPUTS (DARK THEME) ==================== */
.form-container {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

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

.form-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.custom-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input-sm {
  padding: 6px 10px;
  font-size: 0.82rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  outline: none;
}

.form-input-sm:focus {
  border-color: var(--primary);
}

.drop-zone {
  border: 2px dashed var(--border-subtle);
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drop-zone:hover {
  border-color: var(--primary);
  background: rgba(249, 115, 22, 0.05);
}

.drop-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 6px;
}

.drop-zone-prompt strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.drop-zone-prompt span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.file-input {
  display: none;
}

.file-preview video {
  width: 100%;
  max-height: 220px;
  border-radius: var(--radius-md);
  background: #000000;
  margin-bottom: 8px;
}

.btn-remove {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
}

/* Multi-category tags checkboxes */
.multi-cat-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  max-height: 160px;
  overflow-y: auto;
}

.multi-cat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
}

.multi-cat-item input[type="checkbox"] {
  accent-color: var(--primary);
}

.multi-cat-item.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* ==================== EXPLORATEUR MULTI-TAGS ==================== */
.explorer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.explorer-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 24px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.explorer-badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.15);
  color: var(--primary);
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.explorer-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.explorer-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto;
}

.explorer-tags-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 24px;
}

.explorer-tags-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2e8f0;
  flex-wrap: wrap;
  gap: 12px;
}

.explorer-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.explorer-sort-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-sort-cat {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sort-cat:hover {
  color: var(--text-main);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-sort-cat.active {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-clear-tags {
  background: none;
  border: none;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}

/* Category Photo Cards Grid (XNXX / Tube Style) */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.category-photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--border-color);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: block;
  text-decoration: none;
}

.category-photo-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: var(--primary);
}

.cat-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.category-photo-card:hover .cat-photo-img {
  transform: scale(1.05);
}

.cat-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.85) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 12px;
  pointer-events: none;
}

.cat-photo-title-badge {
  background: #000000;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-photo-count-badge {
  background: #0044cc;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  white-space: nowrap;
}

.cat-photo-fallback-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #94a3b8;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.theme-light .btn-sort-cat {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

body.theme-light .btn-sort-cat.active {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
}

.explorer-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-chip:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: var(--primary);
}

.tag-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.tag-count {
  font-size: 0.75rem;
  opacity: 0.75;
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 6px;
  border-radius: 999px;
}

.category-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.category-showcase-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.category-showcase-block:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.showcase-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.showcase-icon {
  font-size: 1.8rem;
}

.showcase-badge-count {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

/* ==================== PREMIUM VIP SUBSCRIPTION VIEW ==================== */
.vip-showcase-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.vip-premium-hero {
  background: linear-gradient(145deg, #181512 0%, #0f172a 50%, #201308 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(245, 158, 11, 0.15);
}

.vip-hero-top-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.vip-hero-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.vip-hero-desc {
  font-size: 1.02rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.vip-pricing-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 440px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
}

.vip-price-tag-big {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.vip-price-tag-big .currency {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fbbf24;
}

.vip-price-tag-big .amount {
  font-size: 3.4rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  font-family: var(--font-heading);
}

.vip-price-tag-big .period {
  font-size: 1rem;
  color: #94a3b8;
  font-weight: 600;
}

.vip-no-commitment {
  font-size: 0.82rem;
  color: #fbbf24;
  font-weight: 600;
}

.btn-vip-cta-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-vip-cta-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.vip-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}

/* VIP Perks Grid */
.vip-perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.vip-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.vip-feature-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.vip-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vip-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
}

.vip-feature-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Comparison Table */
.vip-comparison-wrapper {
  margin-top: 10px;
}

.comparison-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  text-align: center;
}

.comparison-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.comparison-table th, .comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table th.col-vip {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}

.comparison-table td.col-vip {
  font-weight: 700;
  background: rgba(245, 158, 11, 0.03);
}

.check-green {
  color: #10b981;
  font-weight: 700;
}

.cross-red {
  color: #94a3b8;
}

.check-gold {
  color: #fbbf24;
  font-weight: 800;
}

.vip-bottom-cta-box {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.vip-bottom-cta-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.vip-bottom-cta-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 500px;
}

.vip-bottom-cta-box .btn-vip-cta-gold {
  max-width: 320px;
}

/* Enhanced Checkout Modal */
.vip-checkout-header-new {
  text-align: center;
  margin-bottom: 20px;
}

.vip-modal-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.vip-checkout-header-new h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.vip-checkout-price-pill {
  margin-top: 8px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 14px;
  border-radius: 999px;
}

.vip-checkout-price-pill .price {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fbbf24;
}

.vip-checkout-price-pill .cycle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.simulated-card-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  padding: 18px 20px;
  color: #ffffff;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card-chip {
  width: 32px;
  height: 24px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-radius: 4px;
  margin-bottom: 14px;
}

.card-brand {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fbbf24;
  margin-bottom: 8px;
}

.card-number {
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.card-holder-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #cbd5e1;
  text-transform: uppercase;
}

.payment-methods-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.pay-method-chip {
  flex: 1;
  padding: 10px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pay-method-chip.active {
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

.order-summary-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.summary-line.total {
  font-weight: 800;
  color: var(--text-main);
  font-size: 0.95rem;
}

.summary-line .total-amount {
  color: #fbbf24;
}

.summary-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

.checkout-guarantee-row {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ==================== FAQ ACCORDION ==================== */
.faq-container {
  max-width: 680px;
  margin: 0 auto;
}

.faq-hero {
  text-align: center;
  margin-bottom: 24px;
}

.faq-hero h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.faq-hero p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  color: #ffffff;
}

.faq-arrow {
  transition: transform 0.2s ease;
  color: var(--text-light);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  background: var(--bg-subtle);
}

.faq-answer-inner {
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==================== AUTH & PROFILE (DARK THEME) ==================== */
.auth-box {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.auth-tabs {
  display: flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.auth-header {
  margin-bottom: 18px;
}

.auth-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.demo-credentials {
  margin-top: 16px;
  padding: 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border-color);
}

.demo-credentials code {
  color: #fb923c;
}

.mt-2 {
  margin-top: 8px;
}

.profile-box {
  max-width: 860px;
  margin: 0 auto;
}

.profile-card-premium {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  position: relative;
}

.profile-banner-cover {
  height: 120px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #1e1b18 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.profile-avatar-row {
  display: flex;
  justify-content: center;
  margin-top: -50px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.profile-avatar-wrap-lg {
  position: relative;
  width: 100px;
  height: 100px;
}

.profile-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-card);
  box-shadow: var(--shadow-md);
  background: var(--bg-main);
}

.profile-info-center {
  text-align: center;
  padding: 0 24px 20px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.profile-name-row h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.profile-email {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.profile-bio {
  font-size: 0.92rem;
  color: var(--text-main);
  max-width: 540px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 18px 24px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.profile-stat-card {
  text-align: center;
  padding: 8px;
}

.profile-stat-card .stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.profile-stat-card .stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.profile-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 24px;
  flex-wrap: wrap;
}

.empty-my-videos-card {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-my-videos-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.empty-my-videos-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 440px;
}

.profile-vip-crown {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #f59e0b;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  border: 2px solid #111827;
}

.avatar-edit-container {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 8px auto 14px;
}

.avatar-preview-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-avatar-upload {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--primary);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 2px solid #111827;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: transform 0.15s;
}

.btn-avatar-upload:hover {
  transform: scale(1.05);
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-name-row h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.vip-status-badge {
  background: var(--vip-gradient);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.admin-badge {
  background: var(--admin-gradient);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.profile-email {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.profile-bio {
  font-size: 0.90rem;
  color: var(--text-main);
  max-width: 520px;
  margin: 6px auto 18px;
  line-height: 1.5;
  white-space: pre-line;
  word-break: break-word;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* ==================== ADMIN PANEL (SHOP TON PARTIEL STYLE) ==================== */
.admin-container {
  max-width: 1100px;
  margin: 0 auto;
}

.admin-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-pill {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.admin-header h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.admin-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.dot-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.admin-stat-card:active {
  transform: translateY(0);
}

.stat-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
}

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

.admin-tabs,
.admin-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  margin-bottom: 20px;
  gap: 8px;
  width: 100%;
}

.admin-tab-btn,
.admin-nav-tab {
  flex: 1 1 auto;
  min-width: 130px;
  white-space: nowrap;
  text-align: center;
  padding: 10px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab-btn:hover,
.admin-nav-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--primary);
}

.admin-tab-btn.active,
.admin-nav-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.admin-filter-bar,
.admin-filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pending-videos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pending-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .pending-card {
    flex-wrap: nowrap;
  }
}

.pending-thumb-wrap {
  width: 120px;
  height: 68px;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.pending-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-play-mini {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.9rem;
}

.pending-info {
  flex: 1;
  min-width: 0;
}

.pending-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.pending-title-row h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.badge-status-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.badge-status-pill.approved {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.badge-status-pill.pending {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.pending-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pending-desc {
  font-size: 0.82rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pending-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.categories-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.category-manager-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cat-thumb-mini {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cat-thumb-mini:hover {
  transform: scale(1.08);
}

.category-thumb-edit-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.category-thumb-preview-img {
  width: 100%;
  max-width: 320px;
  height: 160px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--border-color);
  background: #000;
}

.badge-views-pill {
  background: rgba(249, 115, 22, 0.15);
  color: var(--primary);
  border: 1px solid rgba(249, 115, 22, 0.35);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cat-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.cat-item-left strong {
  color: var(--text-main);
  font-size: 0.95rem;
}

.btn-filter-pill {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filter-pill:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.btn-filter-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

.admin-users-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==================== ADMIN USER CARDS ==================== */
.admin-user-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.admin-user-card.is-vip-user {
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

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

.user-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.admin-user-card.is-vip-user .user-card-avatar {
  border-color: #f59e0b;
}

.user-card-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-card-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-card-username {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.admin-badge-pill {
  background: #dc2626;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-vip-pill {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.badge-free-pill {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.user-card-email {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.user-card-bio {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-main);
  margin: 0;
  opacity: 0.85;
}

.user-card-status-info {
  font-size: 0.76rem;
  font-weight: 600;
  margin: 0;
}

.user-card-status-info.text-vip-active {
  color: #f59e0b;
  font-weight: 700;
}

.user-card-status-info.text-free-active {
  color: var(--text-light);
}

/* Light Theme Enhancements for User Cards */
body.theme-light .admin-user-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-light .user-card-username {
  color: #0f172a;
}

body.theme-light .user-card-email {
  color: #334155;
}

body.theme-light .user-card-bio {
  color: #1e293b;
}

body.theme-light .badge-free-pill {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

body.theme-light .user-card-status-info.text-free-active {
  color: #64748b;
}

.admin-logs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-log-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-main);
  transition: border-color 0.2s;
}

.admin-log-item:hover {
  border-color: rgba(249, 115, 22, 0.4);
}

.log-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.log-action-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.log-badge-register {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.log-badge-delete {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.log-badge-report {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.log-badge-video {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.log-badge-message {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.log-badge-vip {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.log-badge-default {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.log-item-details {
  color: var(--text-main);
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.log-date {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.log-filter-pill {
  background: var(--bg-subtle, #1e293b);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.log-filter-pill:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

.log-filter-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==================== MODALS (DARK THEME) ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: 100%;
  padding: 24px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  color: #ffffff;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  line-height: 1;
  padding: 0;
}

.modal-close-btn:empty::before {
  content: '✕';
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.modal-close-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.modal-close-btn:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
}

.modal-close-btn:hover svg {
  transform: rotate(90deg);
  stroke: #ffffff;
}

.modal-close-btn:active {
  transform: scale(0.94);
}

.modal-header-box {
  margin-bottom: 20px;
}

.modal-header-box h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.modal-header-box p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.modal-video,
#videoModal .modal-video,
body.theme-light #videoModal .modal-video {
  max-width: 1040px;
  width: 94%;
  max-height: 94vh;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #080c14 !important;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  position: relative;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85);
  color: #f8fafc !important;
}

/* Top Bar inside Video Modal */
.modal-video-topbar,
#videoModal .modal-video-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(11, 16, 28, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
}

.modal-back-btn,
#videoModal .modal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 38px;
}

.modal-back-btn:hover,
#videoModal .modal-back-btn:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.modal-close-btn-simple,
#videoModal .modal-close-btn-simple {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close-btn-simple:hover,
#videoModal .modal-close-btn-simple:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #ef4444 !important;
  transform: rotate(90deg);
}

/* Video Header: Title & Creator above video player */
.video-modal-header,
#videoModal .video-modal-header {
  padding: 18px 24px 14px;
  background: #090e1a !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-video-title,
#videoModal .modal-video-title,
body.theme-light #videoModal .modal-video-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff !important;
  word-break: break-word;
}

.modal-video-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

.avatar-author-thumb {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid var(--primary) !important;
  display: block;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.25);
}

.author-details-column {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

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

.meta-author-prefix {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.author-name-link,
#videoModal .author-name-link,
body.theme-light #videoModal .author-name-link {
  color: #ffffff !important;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 0.15s;
}

.author-name-link:hover,
#videoModal .author-name-link:hover {
  color: var(--primary) !important;
  text-decoration: underline;
}

.meta-time-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 0.8rem;
}

.btn-author-direct-msg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.14) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  color: #93c5fd !important;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-author-direct-msg:hover {
  background: #3b82f6 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

/* Player Container */
.player-container {
  position: relative;
  width: 100%;
  min-height: 480px;
  height: 520px;
  max-height: 72vh;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.player-container.portrait-mode {
  min-height: 520px;
  height: 620px;
  max-height: 78vh;
  background: #050505;
}

.player-container video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 72vh;
  background: #000000;
  display: block;
  object-fit: cover;
  margin: 0 auto;
  transition: object-fit 0.2s ease;
}

.player-container.portrait-mode video {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.player-container.fit-contain video {
  object-fit: contain !important;
}

.player-container.fit-cover video {
  object-fit: cover !important;
}

/* Action Bar immediately below video */
.modal-video-action-bar,
#videoModal .modal-video-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  min-height: 62px;
  background: #0b111e !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.modal-video-action-bar::-webkit-scrollbar {
  display: none;
}

.video-action-pill,
#videoModal .video-action-pill,
.watch-action-bar .video-action-pill,
#tab-watch .video-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  min-height: 42px;
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px;
  color: #f8fafc !important;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.video-action-pill svg,
.watch-action-bar .video-action-pill svg {
  stroke: #cbd5e1;
  transition: transform 0.2s;
}

.video-action-pill:hover,
#videoModal .video-action-pill:hover,
.watch-action-bar .video-action-pill:hover,
#tab-watch .video-action-pill:hover {
  background: #334155 !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.video-action-pill:active,
#videoModal .video-action-pill:active,
.watch-action-bar .video-action-pill:active {
  transform: scale(0.96);
}

.video-action-pill.btn-action-fav:hover,
.video-action-pill.btn-action-fav.active,
#videoModal .video-action-pill.btn-action-fav.active,
.watch-action-bar .video-action-pill.btn-action-fav.active {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.video-action-pill.btn-action-fav.active svg,
.video-action-pill.btn-action-fav:hover svg {
  stroke: #ef4444 !important;
  fill: #ef4444 !important;
}

.video-action-pill.btn-action-share:hover,
#videoModal .video-action-pill.btn-action-share:hover,
.watch-action-bar .video-action-pill.btn-action-share:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: #3b82f6 !important;
  color: #60a5fa !important;
}

.video-action-pill.btn-action-share:hover svg,
.watch-action-bar .video-action-pill.btn-action-share:hover svg {
  stroke: #60a5fa !important;
}

.video-action-pill.report-pill:hover,
#videoModal .video-action-pill.report-pill:hover,
.watch-action-bar .video-action-pill.report-pill:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.video-action-pill.admin-pill,
#videoModal .video-action-pill.admin-pill,
.watch-action-bar .video-action-pill.admin-pill {
  background: rgba(168, 85, 247, 0.2) !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
  color: #c084fc !important;
}

/* Light Mode Overrides for Action Pills */
body.theme-light .video-action-pill,
body.theme-light #videoModal .video-action-pill,
body.theme-light .watch-action-bar .video-action-pill,
body.theme-light #tab-watch .video-action-pill {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .video-action-pill svg,
body.theme-light .watch-action-bar .video-action-pill svg {
  stroke: #334155 !important;
}

body.theme-light .video-action-pill .action-text,
body.theme-light .watch-action-bar .video-action-pill .action-text {
  color: #0f172a !important;
}

body.theme-light .video-action-pill:hover,
body.theme-light #videoModal .video-action-pill:hover,
body.theme-light .watch-action-bar .video-action-pill:hover,
body.theme-light #tab-watch .video-action-pill:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #020617 !important;
  transform: translateY(-1px);
}

body.theme-light .video-action-pill.btn-action-fav.active,
body.theme-light .video-action-pill.btn-action-fav:hover,
body.theme-light .watch-action-bar .video-action-pill.btn-action-fav.active {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #dc2626 !important;
}

body.theme-light .video-action-pill.btn-action-fav.active svg,
body.theme-light .video-action-pill.btn-action-fav:hover svg,
body.theme-light .watch-action-bar .video-action-pill.btn-action-fav.active svg {
  stroke: #ef4444 !important;
  fill: #ef4444 !important;
}

body.theme-light .video-action-pill.btn-action-share:hover,
body.theme-light .watch-action-bar .video-action-pill.btn-action-share:hover {
  background: #e0f2fe !important;
  border-color: #3b82f6 !important;
  color: #0284c7 !important;
}

body.theme-light .video-action-pill.btn-action-share:hover svg,
body.theme-light .watch-action-bar .video-action-pill.btn-action-share:hover svg {
  stroke: #0284c7 !important;
}

body.theme-light .video-action-pill.report-pill:hover,
body.theme-light .watch-action-bar .video-action-pill.report-pill:hover {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

body.theme-light .video-action-pill.report-pill:hover svg,
body.theme-light .watch-action-bar .video-action-pill.report-pill:hover svg {
  stroke: #ef4444 !important;
}

/* Modal Video Details Body */
.modal-video-details,
#videoModal .modal-video-details {
  padding: 22px 24px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #080c14 !important;
}

.modal-desc-box {
  width: 100%;
}

.modal-description,
#videoModal .modal-description,
body.theme-light #videoModal .modal-description {
  font-size: 0.94rem;
  color: #cbd5e1 !important;
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.03) !important;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin: 0;
}

/* ==================== 5-STAR RATING SYSTEM (MODERN GLASS & SVG) ==================== */
.modal-rating-container,
#videoModal .modal-rating-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 4px;
}

body.theme-light .modal-rating-container,
body.theme-light #videoModal .modal-rating-container {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.modal-rating-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-rating-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-label-text,
#videoModal .rating-label-text {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main) !important;
  letter-spacing: -0.01em;
}

body.theme-light .rating-label-text,
body.theme-light #videoModal .rating-label-text {
  color: #0f172a !important;
}

.modal-rating-score-badge,
#videoModal .modal-rating-score-badge,
body.theme-light #videoModal .modal-rating-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: #f8fafc !important;
}

.modal-rating-score-badge strong {
  color: #fbbf24 !important;
  font-size: 1.05rem;
  font-weight: 800;
}

.modal-rating-score-badge .score-max {
  color: #94a3b8;
  font-size: 0.8rem;
}

.rating-count-text,
#videoModal .rating-count-text {
  color: #94a3b8 !important;
  font-size: 0.8rem;
  margin-left: 2px;
}

.rating-stars-interactive {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.star-btn,
#videoModal .star-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.star-btn svg {
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  fill: #334155;
  stroke: #475569;
  transform-origin: center;
}

body.theme-light .star-btn svg {
  fill: #cbd5e1;
  stroke: #94a3b8;
}

.star-btn:hover,
.star-btn.hovered {
  transform: scale(1.22);
}

.star-btn:hover svg,
.star-btn.hovered svg {
  fill: #fbbf24 !important;
  stroke: #fbbf24 !important;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.65));
}

.star-btn.active-star svg {
  fill: #f59e0b !important;
  stroke: #f59e0b !important;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.45));
}

.star-btn:active {
  transform: scale(1.35);
}

.rating-feedback-note {
  font-size: 0.82rem;
  font-weight: 600;
  color: #10b981;
  min-height: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rating-feedback-note.visible {
  opacity: 1;
}

/* ==================== TAGS & METADATA SECTION ==================== */
.modal-tags-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-tags-label,
#videoModal .modal-tags-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tag-pill,
#videoModal .modal-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(249, 115, 22, 0.1) !important;
  border: 1px solid rgba(249, 115, 22, 0.3) !important;
  color: #fb923c !important;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-tag-pill:hover,
#videoModal .modal-tag-pill:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

/* Meta info strip (Vues, Région, Note, HD) */
.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.modal-meta-pill,
#videoModal .modal-meta-pill,
#tab-watch .modal-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.theme-light .modal-meta-pill,
body.theme-light #videoModal .modal-meta-pill,
body.theme-light #tab-watch .modal-meta-pill {
  color: #334155 !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
}

/* Mobile Video Modal Experience (Apple HIG & Android Touch Friendly) */
@media (max-width: 768px) {
  #videoModal.modal-overlay {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    background: #080c14 !important;
  }

  .modal-card.modal-video,
  #videoModal .modal-card.modal-video {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    background: #080c14 !important;
  }

  .modal-video-topbar,
  #videoModal .modal-video-topbar {
    padding: max(10px, env(safe-area-inset-top)) 16px 10px;
    background: #0b111e !important;
  }

  .video-modal-header,
  #videoModal .video-modal-header {
    padding: 14px 16px 12px;
    background: #090e1a !important;
  }

  .modal-video-title,
  #videoModal .modal-video-title {
    font-size: 1.18rem;
    line-height: 1.32;
  }

  .modal-video-meta-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .meta-author-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .player-container {
    width: 100%;
    min-height: 230px;
    height: 56.25vw;
    max-height: 48vh;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
  }

  .player-container.portrait-mode {
    min-height: 380px;
    height: 65vh;
    max-height: 70vh;
  }

  .player-container video {
    width: 100%;
    height: 100%;
    min-height: 230px;
    max-height: 48vh;
    object-fit: cover;
    background: #000000;
    display: block;
  }

  .player-container.portrait-mode video {
    width: auto;
    max-width: 100%;
    height: 100%;
    min-height: 380px;
    max-height: 70vh;
    object-fit: contain;
  }

  .modal-video-action-bar,
  #videoModal .modal-video-action-bar {
    padding: 12px 16px;
    min-height: 58px;
    gap: 10px;
    background: #0b111e !important;
  }

  .video-action-pill,
  #videoModal .video-action-pill {
    padding: 10px 16px;
    min-height: 40px;
    font-size: 0.84rem;
  }

  .modal-video-details,
  #videoModal .modal-video-details {
    padding: 16px 16px max(40px, env(safe-area-inset-bottom));
    gap: 16px;
    background: #080c14 !important;
  }

  .modal-description,
  #videoModal .modal-description {
    font-size: 0.88rem;
    padding: 12px 14px;
  }

  .modal-rating-container,
  #videoModal .modal-rating-container {
    padding: 14px 16px;
  }

  .star-btn svg {
    width: 32px;
    height: 32px;
  }

  .similar-videos-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==================== DESKTOP PC VIDEO PLAYER ADAPTATION ==================== */
@media (min-width: 1024px) {
  .modal-card.modal-video {
    max-width: 1080px;
    width: 90%;
    max-height: 94vh;
  }

  .player-container {
    min-height: 520px;
    height: 560px;
    max-height: 72vh;
  }

  .player-container video {
    min-height: 520px;
    max-height: 72vh;
  }

  .modal-video-title {
    font-size: 1.55rem;
    font-weight: 800;
  }

  .modal-video-topbar {
    padding: 12px 24px;
  }

  .video-modal-header {
    padding: 18px 24px 14px;
  }

  .modal-video-action-bar {
    padding: 14px 24px;
  }

  .modal-video-details {
    padding: 22px 24px 44px;
  }
}

/* ==================== SIMILAR VIDEOS IN MODAL ==================== */
.modal-similar-box {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-section-title,
#videoModal .modal-section-title,
body.theme-light #videoModal .modal-section-title,
#videoModal .modal-section-title span,
body.theme-light #videoModal .modal-section-title span {
  font-size: 1.08rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #ffffff !important;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.similar-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 767px) {
  .similar-videos-grid {
    grid-template-columns: 1fr;
  }
}

.similar-video-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.similar-video-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.similar-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.similar-info-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.similar-title,
#videoModal .similar-title,
body.theme-light #videoModal .similar-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.similar-author,
#videoModal .similar-author,
body.theme-light #videoModal .similar-author {
  font-size: 0.76rem;
  color: #94a3b8 !important;
}

/* ==================== COMMENTS SECTION IN MODAL ==================== */
.modal-comments-box {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.modal-comment-form {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.comment-input:focus {
  border-color: var(--primary);
}

.comment-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-auth-required-box {
  background: rgba(30, 41, 59, 0.7);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.comment-auth-required-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 500;
}

.comment-auth-required-text svg {
  color: var(--primary);
  flex-shrink: 0;
}

.comment-user-badge-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #94a3b8;
  padding: 2px 4px;
}

.comment-user-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.comment-user-username {
  color: #ffffff;
  font-weight: 700;
}

.modal-comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
}

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

.comment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comment-author-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.comment-date {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.comment-text-body {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.45;
  white-space: pre-wrap;
  font-weight: 500;
}

#videoModal .comment-item {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}

#videoModal .comment-text-body {
  color: #f1f5f9;
}

#videoModal .comment-author-name {
  color: #ffffff;
}

.btn-delete-comment {
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.btn-delete-comment:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

/* ==================== MOBILE BOTTOM NAV (DEPRECATED - REPLACED BY CLEAN SIDEBAR) ==================== */
.mobile-nav-bar {
  display: none !important;
}


.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 600;
  transition: all 0.15s ease;
  flex: 1;
}

.nav-item:hover {
  color: var(--text-main);
}

.nav-item.active {
  color: var(--primary);
  font-weight: 800;
}

.nav-icon {
  width: 22px;
  height: 22px;
}

.nav-item-vip {
  color: #f59e0b;
}

.nav-vip-badge {
  background: var(--vip-gradient);
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

/* ==================== CGU & CERTIFICATION STYLES ==================== */
.cgu-agreement-group {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-top: 4px;
}

.cgu-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-main);
}

.cgu-checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.cgu-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 700;
}

.modal-cgu {
  max-width: 640px;
}

.cgu-content-box {
  max-height: 55vh;
  overflow-y: auto;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cgu-alert-box {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-main);
}

.cgu-content-box h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fb923c;
  margin-top: 6px;
}

.cgu-content-box p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cgu-content-box ul {
  padding-left: 20px;
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-table {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.legal-table th {
  background: rgba(249, 115, 22, 0.08);
  font-weight: 700;
}

.legal-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-legal-links {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.sidebar-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sidebar-legal-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ==================== DESKTOP PC VS PHONE OPTIMIZATIONS ==================== */
@media (min-width: 992px) {
  body {
    padding-bottom: 24px;
  }
  
  .app-main {
    padding: 24px 32px;
  }

  .video-grid,
  .spotlight-video-grid,
  .my-videos-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px;
  }

  .form-container {
    padding: 32px;
  }

  .toast-box {
    bottom: 24px;
    right: 24px;
  }
}

/* ==================== MOBILE PHONE 1-COLUMN FEED PRESENTATION ==================== */
@media (max-width: 767px) {
  .video-grid,
  .spotlight-video-grid,
  .my-videos-grid,
  #videoGrid,
  #explorerMatchedGrid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .video-card {
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
  }

  .video-thumbnail-wrap {
    padding-top: 56.25% !important; /* 16:9 ratio */
    border-radius: 12px 12px 0 0 !important;
  }

  .video-card-body {
    padding: 12px 14px !important;
  }

  .video-card-header {
    gap: 10px !important;
    margin-bottom: 6px !important;
    align-items: center !important;
  }

  .creator-avatar {
    width: 34px !important;
    height: 34px !important;
  }

  .video-card-title {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
    -webkit-line-clamp: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .video-creator-name {
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 140px !important;
    font-weight: 600 !important;
  }

  .badge-region-pill {
    font-size: 0.7rem !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
  }

  .video-card-pub-row {
    font-size: 0.76rem !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 6px !important;
  }

  .video-duration-badge {
    font-size: 0.72rem !important;
    padding: 2px 7px !important;
    bottom: 8px !important;
    right: 8px !important;
  }

  .video-rating-pill-card {
    font-size: 0.72rem !important;
    padding: 2px 7px !important;
    top: 8px !important;
    left: 8px !important;
  }

  .vip-card-badge,
  .vip-exclusive-badge,
  .video-pending-badge {
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
    top: 8px !important;
    right: 8px !important;
  }

  .play-overlay-btn {
    width: 44px !important;
    height: 44px !important;
  }

  .play-overlay-btn svg {
    width: 20px !important;
    height: 20px !important;
  }

  .video-stats-footer {
    display: none !important;
  }

  .section-heading h3 {
    font-size: 1.05rem;
  }

  /* ==================== ADMIN PORTAL MOBILE OPTIMIZATION ==================== */
  .standalone-admin-portal {
    padding: 0 !important;
  }

  .admin-top-bar {
    padding: 14px !important;
    border-radius: 12px !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .admin-title-wrap {
    width: 100% !important;
  }

  .admin-title-wrap h2 {
    font-size: 1.1rem !important;
  }

  .admin-header-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .btn-admin-action-refresh {
    grid-column: 1 !important;
    font-size: 0.78rem !important;
    padding: 8px 10px !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .btn-admin-action-return {
    grid-column: 2 !important;
    font-size: 0.78rem !important;
    padding: 8px 10px !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .btn-admin-action-logout {
    grid-column: span 2 !important;
    font-size: 0.78rem !important;
    padding: 8px 10px !important;
    justify-content: center !important;
    width: 100% !important;
  }

  /* Compact 2-column KPI stats grid on mobile */
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }

  .admin-stat-card {
    padding: 12px 10px !important;
    border-radius: 10px !important;
    min-height: auto !important;
  }

  .admin-stat-card .stat-number {
    font-size: 1.4rem !important;
    line-height: 1.1 !important;
  }

  .admin-stat-card .stat-label {
    font-size: 0.64rem !important;
    line-height: 1.25 !important;
    margin-top: 4px !important;
    letter-spacing: 0.2px !important;
  }

  /* Horizontal swipeable chip bar for admin tabs on mobile */
  .admin-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding: 8px 8px !important;
    margin-bottom: 16px !important;
    border-radius: 10px !important;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .admin-tab-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 0.8rem !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    min-width: auto !important;
  }

  /* Admin Section tools & subheadings */
  .section-subheading {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .section-subheading h3 {
    font-size: 1.05rem !important;
  }

  .section-subheading .btn {
    align-self: flex-start !important;
  }

  .admin-filter-bar,
  .admin-users-toolbar,
  .admin-logs-filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 10px !important;
    border-radius: 10px !important;
  }

  .admin-users-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
  }

  .admin-users-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .search-filter,
  .search-filter input {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Video moderation cards on mobile */
  .pending-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px !important;
    gap: 10px !important;
  }

  .pending-thumb-wrap {
    width: 100% !important;
    height: 160px !important;
    border-radius: 8px !important;
  }

  .pending-info {
    width: 100% !important;
  }

  .pending-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  .pending-actions .btn {
    width: 100% !important;
    padding: 8px 6px !important;
    font-size: 0.76rem !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Admin Users grid & cards on mobile */
  .admin-users-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .admin-user-card {
    padding: 12px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .user-card-actions {
    width: 100% !important;
    justify-content: flex-end !important;
  }
}

/* ==================== MOBILE PHONE TOP HEADER & FILTER BAR ==================== */
@media (max-width: 640px) {
  .header-container {
    padding: 0 10px !important;
    gap: 6px !important;
  }

  .search-box-wrap {
    display: none !important;
  }

  .btn-header-upload-top,
  .btn-header-contact,
  .btn-header-explore,
  .btn-header-messages,
  .btn-add-cat-top {
    display: none !important;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }

  .btn-theme-toggle {
    display: inline-flex !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
  }

  #headerAuthBtn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 13px !important;
    border-radius: 999px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px var(--primary-glow) !important;
    cursor: pointer !important;
  }

  #headerAuthBtn .header-auth-label {
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
  }

  body.theme-light #headerAuthBtn {
    background: var(--primary) !important;
    color: #ffffff !important;
  }

  #notifBellWrapper {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  /* Mobile 2-column filters bar */
  #advancedFiltersBar {
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  #advancedFiltersBar input#searchInput {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    font-size: 0.84rem !important;
  }

  #advancedFiltersBar select#filterRegion {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    max-width: calc(50% - 4px) !important;
    font-size: 0.76rem !important;
    padding: 8px 6px !important;
  }

  #advancedFiltersBar select#filterSort {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    max-width: calc(50% - 4px) !important;
    font-size: 0.76rem !important;
    padding: 8px 6px !important;
  }

  #advancedFiltersBar button {
    width: 100% !important;
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
  }
}


/* ==================== PAGINATION (10 VIDÉOS PAR BLOC) ==================== */
.pagination-wrapper {
  margin-top: 28px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.pagination-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-page-nav {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-page-nav:hover:not(:disabled) {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-page-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-page-number {
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-page-number:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.btn-page-number.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* ==================== THEME SWITCHER BUTTON ==================== */
.btn-theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.1rem;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-theme-toggle:hover {
  background: var(--bg-subtle);
  transform: scale(1.08);
}

/* ==================== LIGHT THEME OVERRIDES (MODE CLAIR) ==================== */
body.theme-light {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-sidebar: #ffffff;
  --bg-input: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  
  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);

  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
}

body.theme-light .app-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .mobile-nav-bar {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e2e8f0;
}

body.theme-light .video-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

body.theme-light .video-card-title {
  color: #0f172a;
}

body.theme-light .video-tag-pill {
  background: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
}

body.theme-light .form-container,
body.theme-light .auth-box,
body.theme-light .profile-card,
body.theme-light .admin-header,
body.theme-light .admin-stat-card,
body.theme-light .admin-nav-tabs,
body.theme-light .admin-tabs,
body.theme-light .pending-card,
body.theme-light .category-manager-item,
body.theme-light .admin-user-card,
body.theme-light .admin-log-item,
body.theme-light .faq-item,
body.theme-light .modal-card:not(.modal-video),
body.theme-light .explorer-tags-wrapper,
body.theme-light .vip-accordion-header,
body.theme-light .vip-accordion-body,
body.theme-light .perk-card {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

body.theme-light .admin-header {
  background: #f8fafc;
}

body.theme-light .admin-pill {
  background: #e0e7ff;
  color: #3730a3;
}

body.theme-light .admin-header-badge {
  background: #ffffff;
  color: #0f172a;
  border-color: #e2e8f0;
}

body.theme-light .admin-tab-btn {
  color: #64748b;
}

body.theme-light .admin-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
}

body.theme-light .admin-filter-bar {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.theme-light .filter-label {
  color: #475569;
}

body.theme-light .modal-overlay {
  background: rgba(0, 0, 0, 0.45);
}

body.theme-light .form-label {
  color: #1e293b;
}

body.theme-light .form-input,
body.theme-light .form-textarea,
body.theme-light .form-select,
body.theme-light .form-input-sm,
body.theme-light .form-select-sm,
body.theme-light .cgu-content-box,
body.theme-light .cgu-agreement-group,
body.theme-light .search-box input {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

body.theme-light .drop-zone {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body.theme-light .drop-zone-prompt strong {
  color: #0f172a;
}

body.theme-light .form-header h2,
body.theme-light .admin-header h2,
body.theme-light .stat-number,
body.theme-light .stat-num,
body.theme-light .pending-title-row h4,
body.theme-light .profile-name-row h3,
body.theme-light .faq-question,
body.theme-light .faq-hero h2,
body.theme-light .auth-header h3,
body.theme-light .section-heading h3,
body.theme-light .modal-card:not(.modal-video) .modal-title,
body.theme-light .modal-header-box h3 {
  color: #0f172a;
}

body.theme-light .faq-answer {
  background: #f8fafc;
}

body.theme-light .faq-answer-inner {
  color: #334155;
}

body.theme-light .category-pill {
  background: #ffffff;
  color: #334155;
  border-color: #cbd5e1;
}

body.theme-light .category-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

body.theme-light .tag-chip {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

body.theme-light .tag-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

body.theme-light .multi-cat-item {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

body.theme-light .multi-cat-item.selected {
  background: rgba(249, 115, 22, 0.12);
  border-color: var(--primary);
  color: var(--primary-dark);
}

body.theme-light .pagination-box {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.theme-light .btn-page-nav {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}

body.theme-light .btn-page-number {
  color: #64748b;
}

body.theme-light .btn-page-number:hover {
  background: #f1f5f9;
  color: #0f172a;
}

body.theme-light .btn-page-number.active {
  background: var(--primary);
  color: #ffffff;
}

/* VIP Exclusive Badge on Thumbnail */
.vip-exclusive-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
}

/* VIP Paywall Overlay inside Player Box */
.vip-paywall-box {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  z-index: 20;
  border-radius: var(--radius-md);
}

.vip-lock-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.vip-paywall-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 8px;
}

.vip-paywall-box p {
  font-size: 0.9rem;
  color: #cbd5e1;
  max-width: 440px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.paywall-sub {
  margin-top: 12px;
  font-size: 0.78rem;
  color: #94a3b8;
}

body.theme-light .cat-item-left,
body.theme-light .cat-item-left strong {
  color: #0f172a !important;
}

body.theme-light .sidebar-section-title,
body.theme-light .sidebar-nav-item {
  color: #1e293b;
}

body.theme-light .sidebar-nav-item:hover {
  background: #f1f5f9;
  color: var(--primary);
}

body.theme-light .sidebar-nav-item.active {
  background: rgba(249, 115, 22, 0.12);
  color: var(--primary-dark);
}

body.theme-light .user-card-details h4 {
  color: #0f172a !important;
}

body.theme-light .admin-log-item {
  color: #0f172a !important;
}

body.theme-light .pending-desc {
  color: #334155 !important;
}

body.theme-light .payment-simulation-box {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body.theme-light .payment-radio {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.theme-light .payment-radio.selected {
  border-color: var(--primary);
  background: rgba(249, 115, 22, 0.08);
}

/* ==================== TOAST & UTILITIES ==================== */
.toast-box, .toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 20px);
  right: 20px;
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #334155;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 9999;
  animation: slideToast 0.25s ease-out;
}

@keyframes slideToast {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden {
  display: none !important;
}

.empty-feed-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px dashed var(--border-subtle);
}

/* Single Prime High-Visibility Ad Banner Slot */
.ad-banner-prime-slot {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 0 0 24px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.ad-box-content {
  background: var(--bg-subtle);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-box-content .ad-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.ad-box-content .ad-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────
   MODAL AVERTISSEMENT CONTENU ADULTE (AGE GATE / DISCLAIMER)
   ───────────────────────────────────────────────────────────── */
.adult-warning-backdrop {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.adult-warning-backdrop.dismissed,
html.age-verified #adultWarningOverlay {
  opacity: 0;
  visibility: hidden;
  display: none !important;
  pointer-events: none;
}

.adult-warning-card {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 44px 34px;
  max-width: 490px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  animation: adultModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes adultModalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.adult-warning-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.adult-flame-icon {
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.4));
}

.adult-brand-name {
  font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.adult-warning-title {
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
}

.adult-warning-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 28px 0;
}

.btn-adult-enter {
  display: inline-block;
  background: transparent;
  color: #22c55e;
  border: 1.5px solid #22c55e;
  border-radius: 9999px;
  padding: 10px 44px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition: all 0.22s ease;
  font-family: inherit;
}

.btn-adult-enter:hover {
  background: #22c55e;
  color: #052e16;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.45);
  transform: translateY(-1px);
}

.btn-adult-enter:active {
  transform: translateY(1px);
}

.adult-warning-footer {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.5;
  margin: 24px 0 0 0;
}

@media (max-width: 480px) {
  .adult-warning-card {
    padding: 32px 20px;
    border-radius: 16px;
  }
  .adult-brand-name {
    font-size: 1.35rem;
  }
  .adult-warning-title {
    font-size: 1rem;
  }
  .adult-warning-text {
    font-size: 0.82rem;
  }
}

/* ==================== AUTH SWITCH CALL-TO-ACTION ==================== */
.auth-switch-box {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.auth-switch-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
}

.auth-switch-link {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-family: inherit;
}

.auth-switch-link:hover {
  color: #fb923c;
  transform: translateY(-1px);
}

.btn-forgot-password {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  font-family: inherit;
}

.btn-forgot-password:hover {
  color: #fb923c;
}

/* ==================== THUMBNAIL SNAPSHOTS SELECTOR ==================== */
.thumbnail-snapshots-wrap {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.thumbnail-hint {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.thumbnail-snapshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .thumbnail-snapshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.thumb-snap-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2.5px solid transparent;
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  transition: all 0.2s ease;
}

.thumb-snap-item:hover {
  border-color: rgba(249, 115, 22, 0.6);
  transform: scale(1.02);
}

.thumb-snap-item.active {
  border-color: var(--primary) !important;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}

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

.thumb-snap-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.thumb-snap-item.active .thumb-snap-badge {
  background: var(--primary);
  color: #fff;
}

.custom-thumb-upload-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.file-input-hidden {
  display: none !important;
}

.btn-custom-thumb-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-custom-thumb-upload:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(249, 115, 22, 0.05);
}

.custom-thumb-name {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==================== MESSAGING & CHAT SYSTEM ==================== */
.btn-header-messages {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.btn-header-messages:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.header-unread-badge {
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}

.btn-message-author {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-message-author:hover {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.btn-report-video {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-report-video:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: translateY(-1px);
}

/* Chat Modal */
.modal-chat {
  max-width: 500px;
  width: 95%;
  height: 600px;
  max-height: 85vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chat-header {
  padding: 14px 18px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
}

.chat-header-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 2px 0;
}

.chat-status-online {
  font-size: 0.72rem;
  color: #22c55e;
  font-weight: 600;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-chat-conversations {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.btn-chat-conversations:hover {
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
}

.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-bubble.outgoing {
  align-self: flex-end;
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.incoming {
  align-self: flex-start;
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
}

.chat-time {
  font-size: 0.68rem;
  opacity: 0.75;
  align-self: flex-end;
}

.chat-input-bar {
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
}

.chat-input:focus {
  border-color: var(--primary);
}

.btn-send-chat {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.btn-send-chat:hover {
  transform: scale(1.05);
  background: #ea580c;
}

/* Chat Quota Bar & VIP Status */
.chat-quota-bar {
  padding: 6px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  min-height: 32px;
  position: relative;
  z-index: 50;
}

.chat-quota-bar.quota-warning {
  background: rgba(249, 115, 22, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.chat-quota-bar.quota-vip {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  font-weight: 700;
}

.chat-vip-upgrade-pill {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.chat-vip-upgrade-pill:hover {
  transform: scale(1.04);
  opacity: 0.95;
}

/* Chat VIP Paywall Box - Centered Overlay in Messenger */
.chat-vip-paywall {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 29, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 40;
  padding: 20px 16px;
  animation: fadeIn 0.25s ease;
}

.chat-vip-paywall.hidden {
  display: none !important;
}

body.theme-light .chat-vip-paywall {
  background: rgba(248, 250, 252, 0.8);
}

.chat-vip-paywall-inner {
  background: var(--bg-card);
  border: 2px solid rgba(245, 158, 11, 0.55);
  border-radius: var(--radius-lg, 16px);
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(245, 158, 11, 0.2);
  max-width: 380px;
  width: 100%;
  animation: vipPaywallPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 45;
}

@keyframes vipPaywallPop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.chat-vip-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chat-vip-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 4px 0 6px 0;
}

.chat-vip-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.chat-vip-subdesc {
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 0 0 14px 0;
  line-height: 1.35;
}

.chat-vip-action-btn {
  background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
  color: #fff !important;
  font-weight: 800 !important;
  border: none !important;
  padding: 11px 16px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.chat-vip-action-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5) !important;
}

/* Blurred incoming messages when non-VIP reaches 2-message quota */
.chat-bubble.incoming.chat-bubble-blurred {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-subtle) !important;
  border: 1px dashed rgba(245, 158, 11, 0.5) !important;
  padding: 10px 14px !important;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.chat-bubble.incoming.chat-bubble-blurred:hover {
  transform: scale(1.02);
  border-color: #f59e0b !important;
}

.chat-bubble.incoming.chat-bubble-blurred .chat-msg-text {
  filter: blur(7px) !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  pointer-events: none !important;
  opacity: 0.6 !important;
  display: inline-block;
  line-height: 1.4;
  letter-spacing: 2px;
}

.blurred-msg-lock-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #f59e0b;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.blurred-msg-lock-banner svg {
  flex-shrink: 0;
}

/* Inbox Modal */
.modal-inbox {
  max-width: 540px;
  width: 95%;
  max-height: 80vh;
}

.conversations-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 450px;
  overflow-y: auto;
}

.conversation-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.conversation-item:hover {
  border-color: var(--primary);
  background: rgba(249, 115, 22, 0.05);
  transform: translateX(3px);
}

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

.conv-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.conv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.conv-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.conv-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.conv-last-msg {
  font-size: 0.82rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conv-unread-pill {
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  align-self: center;
}

/* ==================== ADMIN VIDEO THUMBNAIL STUDIO ==================== */
.admin-edit-modal-card {
  max-width: 620px;
  width: 95%;
  max-height: 88vh;
  overflow-y: auto;
}

.admin-scrubber-container {
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.admin-scrubber-container video {
  width: 100%;
  max-height: 240px;
  display: block;
  background: #000;
}

.admin-capture-actions {
  padding: 10px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
}

.admin-thumb-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 500px) {
  .admin-thumb-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-thumb-item {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2.5px solid transparent;
  background: #000;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-thumb-item:hover {
  border-color: rgba(249, 115, 22, 0.6);
  transform: scale(1.03);
}

.admin-thumb-item.active {
  border-color: var(--primary) !important;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

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

.admin-thumb-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

.admin-thumb-item.active .admin-thumb-badge {
  background: var(--primary);
}

.admin-selected-thumb-wrap {
  position: relative;
  max-width: 280px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--primary);
  background: #000;
}

.admin-selected-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-selected-thumb-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

/* Système d'évaluation consolidé et isolé dans le module Cinema Video Modal */

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

.video-rating-pill-card {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

/* ==================== SITE MEGA FOOTER ==================== */
.site-mega-footer {
  background: #080b11 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-top: 48px;
  padding: 44px 24px 30px 24px;
  color: #94a3b8 !important;
  width: 100%;
}

.footer-top-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.1fr 1.3fr;
  gap: 32px;
}

.footer-col-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff !important;
  margin-bottom: 12px;
}

.footer-col-brand .logo-accent {
  color: #f97316 !important;
}

.footer-col-brand .logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f97316;
  display: inline-block;
  margin-left: 2px;
}

.footer-brand-desc {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #94a3b8 !important;
  margin-bottom: 16px;
  max-width: 320px;
}

.footer-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-safe-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #e2e8f0 !important;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff !important;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 6px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: #f97316;
  border-radius: 2px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links-list li a {
  color: #cbd5e1 !important;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.15s ease;
  display: inline-block;
}

.footer-links-list li a:hover {
  color: #f97316 !important;
  transform: translateX(3px);
}

.footer-sub-strip {
  max-width: 1280px;
  margin: 32px auto 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

.footer-sub-strip .strip-label {
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: 0.5px;
}

.footer-sub-strip .strip-tags {
  color: #94a3b8 !important;
}

.footer-sub-strip .strip-tags a {
  color: #cbd5e1 !important;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-sub-strip .strip-tags a:hover {
  color: #f97316 !important;
  text-decoration: underline;
}

.footer-bottom-bar {
  max-width: 1280px;
  margin: 20px auto 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.76rem;
  color: #94a3b8 !important;
}

.footer-copy-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
  color: #94a3b8 !important;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.2) !important;
}

.footer-lcen-note {
  font-size: 0.74rem;
  color: #94a3b8 !important;
  opacity: 0.9;
}

.btn-scroll-top {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-scroll-top:hover {
  background: #f97316 !important;
  color: #ffffff !important;
  border-color: #f97316 !important;
  transform: translateY(-2px);
}

/* Responsive Footer */
@media (max-width: 991px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-mega-footer {
    padding: 24px 14px 90px 14px; /* space for mobile bottom nav */
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 12px !important;
  }
  .footer-col-brand {
    grid-column: 1 / -1 !important;
  }
  .footer-col-title {
    font-size: 0.88rem !important;
    margin-bottom: 8px !important;
  }
  .footer-links-list li {
    margin-bottom: 6px !important;
  }
  .footer-links-list a {
    font-size: 0.8rem !important;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}


/* ==================== ADMIN EMAIL TEST & PREVIEW SUITE ==================== */
.admin-email-tester-card {
  background: var(--bg-card);
  border: 1.5px solid #3b82f6;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
  margin-top: 10px;
}

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

.email-tester-toggle-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.email-tester-toggle-btns .btn {
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
}

.email-templates-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.email-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.email-check-item:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.06);
}

.email-check-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.email-check-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.email-tester-action-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 8px;
}

.email-tester-action-bar .email-input-wrap {
  flex: 1;
}

.email-tester-action-bar .form-input {
  margin-bottom: 0;
  background: var(--bg-card);
  height: 42px;
}

.email-tester-action-bar .btn {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .email-tester-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .email-tester-action-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==================== PASSWORD TOGGLE EYE ==================== */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper .form-input {
  padding-right: 44px;
  width: 100%;
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.btn-toggle-password:hover {
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

/* ==================== AD BANNER EMPTY FIX ==================== */
.ad-banner-prime-slot:empty,
.ad-banner-prime-slot:has(.ad-box-content:empty),
.ad-box-content:empty {
  display: none !important;
}

/* ==================== DEDICATED MESSAGING PAGE ==================== */
.btn-header-messages-mobile {
  display: none;
}

.header-mobile-unread-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-card);
}

#tab-messages.active {
  display: flex !important;
  flex-direction: column;
}

.dedicated-messages-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: calc(100vh - 120px);
  min-height: 560px;
  max-height: 860px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Logged out prompt */
.messages-logged-out-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 30px 20px;
}

.messages-prompt-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
}

.messages-prompt-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.messages-prompt-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 8px;
}

.messages-prompt-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

.messages-prompt-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-main);
  background: var(--bg-card);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.perk-badge {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.perk-badge.perk-vip {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
}

.messages-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Two-pane split view */
.messages-split-view {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
}

/* Left Pane */
.messages-pane-sidebar {
  width: 360px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  flex-shrink: 0;
  min-height: 0;
}

.messages-sidebar-top {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.messages-sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.messages-heading-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.05rem;
}

.btn-refresh-messages {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.btn-refresh-messages:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.messages-vip-status-banner {
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.messages-vip-status-banner.banner-vip {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  font-weight: 700;
}

.messages-vip-status-banner.banner-free {
  background: rgba(249, 115, 22, 0.07);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--text-muted);
}

.messages-vip-status-banner.banner-free strong {
  color: var(--primary);
}

.messages-search-box {
  position: relative;
}

.messages-filter-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.messages-filter-input:focus {
  border-color: var(--primary);
}

.dedicated-conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

.dedicated-conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--bg-subtle);
  position: relative;
}

.dedicated-conv-item:hover {
  background: rgba(249, 115, 22, 0.06);
  border-color: rgba(249, 115, 22, 0.25);
}

.dedicated-conv-item.active {
  background: rgba(249, 115, 22, 0.12);
  border-color: var(--primary);
}

.dedicated-conv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
}

.dedicated-conv-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dedicated-conv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dedicated-conv-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dedicated-conv-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

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

.dedicated-conv-unread {
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Right Pane */
.messages-pane-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg-card);
  position: relative;
}

.messages-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 24px;
  text-align: center;
}

.messages-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.messages-empty-state h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px;
}

.messages-empty-state p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 380px;
  line-height: 1.45;
  margin: 0 0 16px;
}

.messages-empty-vip-tip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: #f59e0b;
  font-weight: 600;
}

.messages-active-conversation {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.dedicated-chat-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 50;
}

.dedicated-chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.btn-messages-back-mobile {
  display: none;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

.dedicated-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
}

.dedicated-chat-partner-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dedicated-chat-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dedicated-chat-name-row h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-view-partner-profile {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-view-partner-profile:hover {
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.dedicated-chat-body {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  min-height: 0;
}

/* ==================== MOBILE OPTIMIZATIONS ==================== */
@media (max-width: 768px) {
  .btn-header-messages-mobile {
    display: inline-flex !important;
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
  }

  #headerAuthBtn {
    max-width: 120px !important;
    padding: 6px 10px !important;
  }

  #headerAuthBtn .header-auth-label {
    max-width: 75px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #tab-messages {
    margin: -16px -16px 0 -16px !important;
    padding: 0 !important;
  }

  .dedicated-messages-container {
    height: calc(100dvh - 65px) !important;
    max-height: none !important;
    min-height: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  /* Default on mobile: show conversations list, hide chat */
  .dedicated-messages-container:not(.mobile-chat-open) .messages-pane-sidebar {
    display: flex !important;
    width: 100% !important;
    border-right: none !important;
  }

  .dedicated-messages-container:not(.mobile-chat-open) .messages-pane-chat {
    display: none !important;
  }

  /* When chat is open on mobile: hide sidebar, show chat 100% */
  .dedicated-messages-container.mobile-chat-open .messages-pane-sidebar {
    display: none !important;
  }

  .dedicated-messages-container.mobile-chat-open .messages-pane-chat {
    display: flex !important;
    width: 100% !important;
  }

  .dedicated-messages-container.mobile-chat-open .btn-messages-back-mobile {
    display: inline-flex !important;
  }

  .dedicated-chat-body {
    padding: 12px !important;
  }

  .chat-bubble {
    max-width: 86% !important;
  }
}

/* ==================== EXPLORER ACTIVE SELECTION BAR ==================== */
.explorer-active-selection-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.explorer-selection-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.explorer-selection-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.explorer-selection-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.explorer-active-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff !important;
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.explorer-active-tag-pill:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.active-tag-remove {
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.85;
  margin-left: 2px;
}

.explorer-selection-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.btn-secondary-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary-danger:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Light mode for explorer selection */
body.theme-light .explorer-active-selection-bar {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.theme-light .btn-secondary-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* ==================== MOBILE POLISH & PROFILE VIEW ==================== */
@media (max-width: 768px) {
  /* Profile action buttons: clean vertical stack, no collision or cut-off */
  .profile-actions-bar {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 16px 12px !important;
    gap: 10px !important;
    box-sizing: border-box !important;
  }

  .profile-actions-bar .btn,
  .profile-actions-bar button {
    width: 100% !important;
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
  }

  /* Profile stats grid on small screens */
  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Explorer active selection responsive */
  .explorer-active-selection-bar {
    padding: 12px !important;
  }

  .explorer-selection-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .explorer-selection-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
  }

  .explorer-selection-actions button {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Prevent iOS zoom on input and select elements */
  input.form-input,
  select.form-input,
  textarea.form-input {
    font-size: 16px !important;
  }

  /* Improve text rendering & contrast */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  /* Centered VIP paywall on mobile */
  .chat-vip-paywall {
    padding: 12px !important;
  }

  .chat-vip-paywall-inner {
    padding: 18px 14px !important;
    max-width: 340px !important;
  }
}

/* ==================== SKELETON SHIMMER LOADERS ==================== */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.skeleton-thumbnail {
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-card-hover) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-body {
  padding: 14px;
  display: flex;
  gap: 12px;
}

.skeleton-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-card-hover) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  flex-shrink: 0;
}

.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-card-hover) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-90 { width: 90%; }

/* ==================== MODERN FACETED FILTERS TOOLBAR ==================== */
.advanced-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.advanced-filters-bar:focus-within {
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.filter-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 360px;
  display: flex;
  align-items: center;
}

.filter-search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.filter-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px !important;
  border-radius: 999px !important;
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-color) !important;
  font-size: 0.88rem !important;
  color: var(--text-main) !important;
  transition: all 0.2s ease !important;
}

.filter-search-input:focus {
  border-color: var(--primary) !important;
  background: var(--bg-input) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15) !important;
}

.filter-select {
  min-width: 150px;
  padding: 10px 34px 10px 14px !important;
  border-radius: 999px !important;
  background: var(--bg-subtle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  font-size: 0.86rem !important;
  appearance: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.filter-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15) !important;
}

.btn-reset-filters {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-reset-filters:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

/* ==================== ERGONOMIC MOBILE BOTTOM NAVIGATION ==================== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 16px) + 16px) !important;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(8, 11, 18, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 1050;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
  }

  body.theme-light .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.94);
    border-top-color: #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: color 0.2s ease, transform 0.15s ease;
    flex: 1;
    max-width: 68px;
  }

  .bottom-nav-item:active {
    transform: scale(0.92);
  }

  .bottom-nav-item.active {
    color: var(--primary);
  }

  .bottom-nav-item.active svg {
    color: var(--primary);
    transform: scale(1.1);
  }

  .bottom-nav-item svg {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
  }

  .bottom-nav-badge {
    position: absolute;
    top: 2px;
    right: 12px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 999px;
    min-width: 16px;
    text-align: center;
  }

  /* Center Upload Button on Mobile Bottom Nav */
  .bottom-nav-upload-pill {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--primary-glow);
    margin-top: -12px;
    border: 3px solid var(--bg-main);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  }

  body.theme-light .bottom-nav-upload-pill {
    border-color: #ffffff;
  }

  .bottom-nav-upload-pill:active {
    transform: scale(0.9) !important;
  }
}

/* ==================== ACCESSIBILITY & MICRO-INTERACTIONS ==================== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:active,
.btn:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ====================================================
   SIDEBAR MOBILE : 50vw au lieu de 270px
   ==================================================== */
@media (max-width: 767px) {
  .app-sidebar {
    width: 50vw;
    max-width: 50vw;
    min-width: 0;
  }

  .sidebar-inner {
    padding: 12px 8px 20px;
    gap: 8px;
  }

  .sidebar-section-title.main-title {
    font-size: 0.68rem;
    letter-spacing: 0.5px;
  }

  .sidebar-nav-item {
    padding: 8px 8px;
    font-size: 0.78rem;
    gap: 8px;
  }

  .sidebar-item-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .sidebar-vip-card {
    padding: 10px 10px;
  }

  .sidebar-vip-title {
    font-size: 0.78rem;
  }

  .sidebar-vip-price {
    font-size: 1rem;
  }

  .sidebar-vip-desc {
    font-size: 0.7rem;
  }
}

/* ====================================================
   SIDEBAR BOUTONS LOGOUT / LOGIN
   ==================================================== */
.sidebar-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  color: #ef4444;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.sidebar-logout-btn .sidebar-item-icon {
  color: #ef4444;
}

.sidebar-login-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.sidebar-login-btn:hover {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.5);
}

.sidebar-login-btn .sidebar-item-icon {
  color: var(--primary);
}

@media (max-width: 767px) {
  .sidebar-logout-btn,
  .sidebar-login-btn {
    padding: 8px 8px;
    font-size: 0.78rem;
    gap: 8px;
  }
}

/* ====================================================
   BANDEAU DE CONSENTEMENT DES COOKIES
   ==================================================== */
#cookieConsentBanner {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 8900;
  animation: cookieBannerIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cookieBannerIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

#cookieConsentBanner.hidden {
  display: none;
}

.cookie-banner-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.cookie-banner-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-cookie-accept:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-cookie-refuse {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-cookie-refuse:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
}

@media (max-width: 480px) {
  #cookieConsentBanner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .btn-cookie-accept,
  .btn-cookie-refuse {
    flex: 1;
    text-align: center;
  }
}

/* ====================================================
   APERCU MASQUE DANS LA LISTE DES CONVERSATIONS
   ==================================================== */
.dedicated-conv-preview-locked {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f59e0b;
  font-size: 0.78rem;
  font-weight: 600;
  font-style: normal;
}

.dedicated-conv-preview-locked svg {
  flex-shrink: 0;
}

/* ====================================================
   DEDICATED FULL-PAGE VIDEO WATCH EXPERIENCE
   ==================================================== */
.watch-tab-content {
  padding: 0;
  width: 100%;
}

.watch-page-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 16px 60px;
  width: 100%;
}

.watch-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.watch-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.watch-back-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateX(-3px);
}

.watch-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-breadcrumb-link {
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.15s;
}

.watch-breadcrumb-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.watch-breadcrumb-sep {
  color: var(--border-color);
}

.watch-breadcrumb-curr {
  color: var(--text-main);
  font-weight: 600;
}

.watch-player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 75vh;
  min-height: 260px;
  background: #000000;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-player-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
  display: block;
  transition: object-fit 0.2s ease;
}

.watch-player-container.portrait-mode video {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.watch-player-container.fit-contain video {
  object-fit: contain !important;
}

body.theme-light .watch-player-container {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.watch-header-block {
  margin-top: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.watch-video-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin: 0 0 14px 0;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

body.theme-light .watch-video-title {
  color: #0f172a !important;
}

.watch-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.watch-action-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 640px) {
  .watch-action-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
    width: 100%;
  }
  .watch-action-bar::-webkit-scrollbar {
    display: none;
  }
}

.watch-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .watch-main-grid {
    grid-template-columns: 1fr 380px;
  }
}

.watch-main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.watch-sidebar-column {
  min-width: 0;
}

.watch-desc-box {
  width: 100%;
}

.watch-desc-box .modal-description {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.94rem;
  line-height: 1.65;
}

.watch-comments-box {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.watch-similar-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
}

.watch-similar-box .modal-section-title {
  color: var(--text-main) !important;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.watch-similar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.watch-similar-list .similar-video-card {
  display: flex;
  flex-direction: row;
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  padding: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.watch-similar-list .similar-video-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.watch-similar-list .similar-thumb-wrap {
  width: 124px;
  min-width: 124px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.watch-similar-list .similar-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watch-similar-list .similar-info-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 2px 4px;
}

.watch-similar-list .similar-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.watch-similar-list .similar-author {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ====================================================
   DEDICATED CONTENT PAGES (CONTACT, CGU, RGPD, ETC.)
   ==================================================== */
.doc-page-content {
  padding: 0;
  width: 100%;
}

.doc-page-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 16px 60px;
  width: 100%;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 32px 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .doc-card {
    padding: 20px 16px;
  }
}

.doc-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.doc-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.doc-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

