@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');
@import url('/vendor/simplebar/simplebar.min.css');

:root {
  --onparty-bg-dark: radial-gradient(circle at 50% -25%, rgba(99, 102, 241, 0.9) 0%, rgba(99, 102, 241, 0.7) 18%, rgba(33, 41, 73, 0.1) 32%, transparent 42%),
    radial-gradient(circle at 20% 5%, rgba(16, 185, 129, 0.45) 0%, rgba(16, 185, 129, 0.2) 22%, transparent 38%),
    linear-gradient(135deg, #111b31 0%, #1c2944 50%, #2b3a58 100%);
  --onparty-bg-light: linear-gradient(135deg, #f8fafc 0%, #eef2ff 55%, #e0f2fe 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #e2e8f0;
  background: var(--onparty-bg-dark);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.app-scroll {
  height: 100vh;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

@media (max-width: 991.98px) {
  body,
  .app-scroll,
  .simplebar-content-wrapper {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body::-webkit-scrollbar,
  .app-scroll::-webkit-scrollbar,
  .simplebar-content-wrapper::-webkit-scrollbar {
    display: none;
  }

  .simplebar-track {
    display: none !important;
  }
}

.app-scroll > main {
  flex: 1 0 auto;
  width: 100%;
}

.app-scroll .footer {
  margin-top: auto;
}

/* Scrollbar élégant */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.8) rgba(15, 23, 42, 0.35);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.35);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.85), rgba(236, 72, 153, 0.85));
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.5);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.45);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(248, 113, 113, 0.95));
}

/* SimpleBar global styling */
[data-simplebar] .simplebar-track {
  width: 12px;
  background: transparent;
}

[data-simplebar] .simplebar-scrollbar:before {
  background: rgba(56, 189, 248, 0.7);
  opacity: 0.75;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.6);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.4);
}

[data-simplebar] .simplebar-scrollbar.simplebar-visible:before {
  opacity: 1;
  background: rgba(99, 102, 241, 0.85);
}

body.theme-light {
  scrollbar-color: rgba(99, 102, 241, 0.8) rgba(226, 232, 240, 0.5);
}

body.theme-light::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.25);
}

body.theme-light::-webkit-scrollbar-thumb {
  border: 2px solid rgba(226, 232, 240, 0.6);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(236, 72, 153, 0.85));
}

body.theme-light {
  color: #0f172a;
  background: var(--onparty-bg-light);
}

.auth-page,
.session-page,
.tv-body,
.waiting-page,
.settings-page,
.admin-page {
  background: var(--onparty-bg-dark);
}

.auth-page.theme-light,
.session-page.theme-light,
.tv-body.theme-light,
.waiting-page.theme-light,
.settings-page.theme-light,
.admin-page.theme-light {
  background: var(--onparty-bg-light);
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(circle at 12% 20%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 78% 15%, rgba(192, 132, 252, 0.15), transparent 50%),
    radial-gradient(circle at 30% 85%, rgba(16, 185, 129, 0.18), transparent 45%),
    radial-gradient(circle at 88% 70%, rgba(236, 72, 153, 0.12), transparent 40%);
  opacity: 0.9;
}

body::after {
  background-image:
    radial-gradient(circle, rgba(56, 189, 248, 0.22) 2px, transparent 2px),
    radial-gradient(circle, rgba(236, 72, 153, 0.18) 2.4px, transparent 2.4px),
    radial-gradient(circle, rgba(16, 185, 129, 0.18) 2px, transparent 2px);
  background-size: 160px 160px, 220px 220px, 260px 260px;
  background-position: 0 0, 40px 60px, 80px 100px;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   NAVIGATION
   ======================================== */

.onparty-navbar {
  background: rgba(7, 12, 26, 0.32);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  color: white;
  padding: 0.5rem 0;
  box-shadow: 0 45px 75px rgba(3, 7, 18, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 10030;
}

/* Navbar fixed en mobile */
@media (max-width: 991.98px) {
  .onparty-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0;
  }

  .onparty-navbar-container {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  /* Réduire la hauteur du contenu de la navbar */
  .onparty-navbar-container > div {
    min-height: 36px !important;
  }

  /* Réduire la taille de l'avatar et du bouton user en mobile */
  .onparty-user-icon .vinyl-avatar-wrapper {
    width: 24px;
    height: 24px;
  }

  .onparty-user-icon .user-avatar-img {
    width: 24px;
    height: 24px;
  }

  .onparty-user-icon .vinyl-emoji {
    font-size: 11px;
  }

  /* Réduire le padding du bouton report bug */
  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }

  /* Réduire la taille du hamburger menu */
  .hamburger-menu-btn {
    width: 28px;
    height: 24px;
  }

  .hamburger-menu-btn span {
    height: 2.5px;
  }

  /* Padding spécifique pour Capacitor (WebView native Android/iOS) */
  html.is-capacitor .onparty-navbar-container {
    padding-top: 32px !important;
    padding-bottom: 0.25rem !important;
  }

  /* Appliquer le même padding au menu hamburger */
  html.is-capacitor .hamburger-menu-header {
    padding-top: calc(32px + 1rem) !important;
  }

  .onparty-navbar::before {
    display: none;
  }

  .onparty-navbar::after {
    top: 0;
    height: 100%;
    bottom: 0;
  }

  body {
    padding-top: 55px;
  }

  /* Ajustement du body uniquement pour Capacitor */
  html.is-capacitor body {
    padding-top: 80px;
  }

  /* Padding par défaut pour navigateur web classique */
  html:not(.is-capacitor) body {
    padding-top: 50px;
  }

  /* Masquer le footer sur mobile */
  .footer {
    display: none;
  }
}
.onparty-navbar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.15), transparent 55%);
  pointer-events: none;
}

.onparty-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.onparty-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(56, 189, 248, 0.35);
}

.onparty-navbar .navbar-collapse {
  align-items: center;
}

@media (max-width: 991.98px) {
  .onparty-navbar .navbar-collapse {
    padding-top: 1rem;
  }
}

.onparty-navbar-container {
  width: 100%;
}

.onparty-navbar-left .onparty-nav-menu,
.onparty-navbar-right .onparty-nav-menu {
  margin: 0;
}

.onparty-navbar-left .onparty-nav-menu,
.onparty-navbar-right .onparty-nav-menu {
  list-style: none;
}

/* Brand / Logo */
.onparty-navbar-brand {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.onparty-navbar-brand:hover {
  transform: translateY(-1px);
}

.onparty-navbar-brand h1 {
  font-size: clamp(1rem, 4vw, 1.2rem);
  margin: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #f8fafc;
}

.onparty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fe3d3d 0%, #d14276 50%, #fe3d3d 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.8), 0 0 40px rgba(147, 51, 234, 0.6);
  text-transform: uppercase;
  border: 1px solid rgba(236, 72, 153, 0.8);
  position: relative;
}

.onparty-badge-logo {
  gap: 0.15rem;
  padding: 0.25rem 0.8rem;
}

.onparty-letter {
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  mix-blend-mode: screen;
}

.onparty-letter-pair {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.onparty-letter svg {
  width: 1em;
  height: 1em;
  display: block;
}

.onparty-letter-n {
  font-size: 1.70em;
  line-height: 1;
}

.onparty-letter + .onparty-letter {
  margin-left: 0.05rem;
}

@keyframes neonFlicker {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 14px rgba(248, 113, 113, 0.9)); }
  25% { opacity: 0.8; filter: drop-shadow(0 0 6px rgba(248, 113, 113, 0.4)); }
  45% { opacity: 0.2; filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.4)); }
  65% { opacity: 0.7; filter: drop-shadow(0 0 5px rgba(248, 113, 113, 0.3)); }
  85% { opacity: 0.3; filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6)); }
}

.onparty-badge-flicker {
  animation: neonFlicker 0.4s linear;
}

.onparty-brand-text {
  font-family: 'Righteous', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.95);
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.5);
  transform: translateX(-0.15rem);
}

/* Menu principal */
.onparty-nav-menu {
  display: flex;
  list-style: none;
  gap: 0.3rem;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.onparty-nav-menu a {
  color: rgba(226, 232, 240, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  display: block;
  line-height: 1.1;
}

.onparty-nav-menu a:hover {
  background: rgba(56, 189, 248, 0.12);
  color: white;
  transform: translateY(-1px);
}

.onparty-nav-menu a.active {
  background: rgba(56, 189, 248, 0.25);
  color: white;
  font-weight: 600;
}

/* Language Switcher */
.onparty-language-switcher {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

[data-theme="dark"] .onparty-language-switcher a {
  background: rgba(15, 118, 110, 0.15);
}

.onparty-language-switcher a {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.15);
  border: 1px solid rgba(94, 234, 212, 0.15);
  color: rgba(226, 232, 240, 0.75);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: block;
  line-height: 1.1;
}

.onparty-language-switcher a:hover {
  background: rgba(45, 212, 191, 0.2);
  border-color: rgba(94, 234, 212, 0.5);
  color: white;
  transform: translateY(-1px);
}

.onparty-language-switcher a.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.55);
  color: white;
}

/* User Menu */
.onparty-user-menu {
  position: relative;
}

.onparty-user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  background: rgba(15, 118, 110, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: white;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(7, 89, 133, 0.35);
  line-height: 1.1;
}

.onparty-user-menu-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(148, 163, 184, 0.45);
  transform: translateY(-1px);
}

.onparty-user-icon {
  font-size: 0.95rem;
}

.onparty-user-icon .vinyl-avatar-wrapper {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
}

.onparty-user-icon .user-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.onparty-user-icon .vinyl-emoji {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

.onparty-user-name {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guest-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  background: linear-gradient(120deg, #ff7eb3 0%, #ff758c 100%);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.messages-notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f97316;
  border: 2px solid rgba(15, 23, 42, 0.9);
  display: none;
}

.messages-notification-badge.show {
  display: inline-block;
}

.messages-menu-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  background: #f97316;
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0 0.45rem;
  font-weight: 600;
}

.messages-menu-counter.d-none {
  display: none !important;
}

.guest-badge-icon {
  position: absolute;
  top: -2px;
  right: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  cursor: help;
  border: 2px solid #1a1d29;
  z-index: 1;
}

.onparty-dropdown-arrow {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.onparty-user-menu.active .onparty-dropdown-arrow {
  transform: rotate(180deg);
}

/* User Dropdown */
.onparty-user-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 0.75rem;
  transform: translate(-50%, -10px);
  background: rgba(6, 11, 25, 0.92);
  backdrop-filter: blur(22px);
  border-radius: 16px;
  box-shadow: 0 35px 55px rgba(3, 7, 18, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.25);
  list-style: none;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  overflow: hidden;
  padding: 0;
  margin-left: 0;
}



.onparty-user-menu.active .onparty-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.onparty-user-dropdown li {
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  list-style: none;
}

.onparty-user-dropdown li:last-child {
  border-bottom: none;
}

.onparty-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.25rem;
  color: rgba(226, 232, 240, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease, padding-left 0.25s ease;
  position: relative;
}

.onparty-user-dropdown a:hover {
  color: #ffffff;
  padding-left: 1.55rem;
}





.onparty-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.25rem;
  cursor: pointer;
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.onparty-theme-toggle:hover {
  background: rgba(15, 23, 42, 0.45);
  padding-left: 1.55rem;
}

.theme-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.9);
  font-weight: 500;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: all 0.3s ease;
}

.theme-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(120deg, #38bdf8, #c084fc);
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(3, 7, 18, 0.45);
  transition: all 0.3s ease;
}

.theme-switch input:checked + .theme-slider {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 113, 133, 0.5);
}

.theme-switch input:checked + .theme-slider::before {
  transform: translate(22px, -50%);
  background: linear-gradient(120deg, #fb7185, #f97316);
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

main {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

/* Hamburger Menu Button */
.hamburger-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10060;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger-menu-btn span {
  width: 100%;
  height: 3px;
  background: rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hamburger-menu-btn:hover span {
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.hamburger-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Hamburger Menu Dropdown */
.hamburger-menu-dropdown {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  padding-top: 0;
  background: rgba(6, 11, 25, 0.98);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  z-index: 10050;
  transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow-y: auto;
  overflow-x: hidden;
}

.hamburger-menu-dropdown.active {
  left: 0;
}

/* Header du menu hamburger avec avatar utilisateur et bouton fermer */
.hamburger-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid rgba(56, 189, 248, 0.2);
  min-height: 80px;
  background: rgba(15, 23, 42, 0.5);
}

.hamburger-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger-user-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-user-avatar .vinyl-avatar-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-block;
}

.hamburger-user-avatar .user-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hamburger-user-avatar .vinyl-emoji {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  line-height: 1;
  pointer-events: none;
}

.hamburger-user-name {
  color: rgba(226, 232, 240, 0.95);
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hamburger-user-name .guest-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.9);
}

.hamburger-close-btn {
  background: transparent;
  border: none;
  color: rgba(226, 232, 240, 0.9);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hamburger-close-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  transform: rotate(90deg);
}

.hamburger-close-btn i {
  font-size: 1.3rem;
}

.hamburger-menu-list {
  padding: 1rem 0;
}

.hamburger-menu-list li {
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.hamburger-menu-list li:last-child {
  border-bottom: none;
}

.hamburger-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: rgba(226, 232, 240, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.25s ease;
  position: relative;
}

.hamburger-menu-list a i {
  font-size: 1.2rem;
  color: rgba(56, 189, 248, 0.8);
  transition: all 0.25s ease;
}

.hamburger-menu-list a:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #ffffff;
  padding-left: 2rem;
}

.hamburger-menu-list a:hover i {
  color: #38bdf8;
  transform: scale(1.1);
}

/* Séparateur dans le menu hamburger */
.hamburger-menu-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.3) 20%,
    rgba(56, 189, 248, 0.5) 50%,
    rgba(56, 189, 248, 0.3) 80%,
    transparent 100%
  );
  margin: 0.5rem 0;
  border: none;
}

/* Language switcher dans le menu hamburger */
.hamburger-language-switcher {
  padding: 1rem 1.5rem;
}

.hamburger-language-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(226, 232, 240, 0.9);
  font-weight: 500;
}

.hamburger-language-links span {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.hamburger-language-links a {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.15);
  border: 1px solid rgba(94, 234, 212, 0.15);
  color: rgba(226, 232, 240, 0.75);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-block;
}

.hamburger-language-links a:hover {
  background: rgba(45, 212, 191, 0.2);
  border-color: rgba(94, 234, 212, 0.5);
  color: white;
  transform: translateY(-1px);
  padding-left: 0.65rem;
}

.hamburger-language-links .hamburger-cgu-link {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.8rem;
  text-transform: none;
  padding: 0.35rem 0.5rem;
  text-decoration: underline;
}

.hamburger-language-links .hamburger-cgu-link:hover {
  color: #fff;
  text-decoration: none;
}

.hamburger-language-links a.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.55);
  color: white;
}


/* Masquer sur desktop et afficher le sélecteur de langue de la navbar */
@media (min-width: 992px) {
  .hamburger-menu-btn,
  .hamburger-menu-dropdown {
    display: none !important;
  }
}

/* Masquer le sélecteur de langue de la navbar en mobile */
@media (max-width: 991.98px) {
  .onparty-nav-menu .onparty-language-switcher {
    display: none !important;
  }
}

.hero {
  text-align: center;
  padding: 3rem 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(18px);
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 25px 45px rgba(5, 8, 23, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero h2 {
  color: #f8fafc;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.hero p {
  color: rgba(226, 232, 240, 0.85);
  font-size: 1.2rem;
  text-shadow: 0 8px 24px rgba(5, 8, 23, 0.85);
}

/* Content section */
.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(18px);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 25px 45px rgba(5, 8, 23, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.18);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 55px rgba(3, 7, 18, 0.95);
  background: rgba(15, 23, 42, 0.7);
}

.card h3 {
  color: #f8fafc;
  margin-bottom: 1rem;
  text-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.card p {
  color: rgba(226, 232, 240, 0.85);
  text-shadow: 0 10px 30px rgba(5, 8, 23, 0.85);
}

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

.footer {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  color: rgba(226, 232, 240, 0.9);
  text-align: center;
  padding: 0.4rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -45px 75px rgba(3, 7, 18, 0.35);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.25), transparent 45%);
  pointer-events: none;
}

.footer p {
  margin: 0;
}

/* ========================================
   LIGHT THEME GLOBAL OVERRIDES
   ======================================== */
body.theme-light .onparty-navbar {
  background: rgba(255, 255, 255, 0.58);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 35px 65px rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.theme-light .onparty-navbar .navbar-toggler {
  border-color: rgba(15, 23, 42, 0.4);
}

body.theme-light .onparty-navbar-brand h1 {
  color: #0f172a;
}

body.theme-light .onparty-brand-text {
  color: #0f172a;
  text-shadow: none;
}

body.theme-light .onparty-letter {
  color: #0f172a;
}

body.theme-light .onparty-nav-menu a {
  color: #1f2937;
}

body.theme-light .onparty-nav-menu a:hover,
body.theme-light .onparty-nav-menu a.active {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.1);
}

body.theme-light .onparty-language-switcher a {
  background: rgba(226, 232, 240, 0.7);
  border-color: rgba(203, 213, 225, 0.9);
  color: #0f172a;
}

body.theme-light .onparty-language-switcher a.active {
  background: rgba(15, 23, 42, 0.15);
  border-color: rgba(15, 23, 42, 0.25);
  color: #0f172a;
}

body.theme-light .onparty-user-menu-btn {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(203, 213, 225, 0.9);
  color: #0f172a;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

body.theme-light .onparty-user-dropdown {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 30px 50px rgba(15, 23, 42, 0.12);
}



body.theme-light .onparty-user-dropdown li {
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

body.theme-light .onparty-user-dropdown a {
  color: #0f172a;
}



body.theme-light .onparty-user-dropdown a:hover {
  background: rgba(15, 23, 42, 0.05);
}

body.theme-light .theme-toggle-label {
  color: #0f172a;
}

body.theme-light .theme-switch input:checked + .theme-slider {
  background: rgba(251, 191, 36, 0.35);
  border-color: rgba(249, 115, 22, 0.45);
}

body.theme-light .theme-switch input + .theme-slider {
  background: rgba(226, 232, 240, 0.9);
  border-color: rgba(203, 213, 225, 0.9);
}

body.theme-light .onparty-theme-toggle {
  background: rgba(248, 250, 252, 0.7);
}

body.theme-light .onparty-theme-toggle:hover {
  background: rgba(226, 232, 240, 0.8);
}

body.theme-light .footer {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 -30px 55px rgba(15, 23, 42, 0.09);
  color: #0f172a;
}

/* Helper overrides pour les classes Bootstrap qui restent statiques */
body.theme-dark .text-dark {
  color: rgba(226, 232, 240, 0.95) !important;
}

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

body.theme-light .text-white-50 {
  color: rgba(15, 23, 42, 0.65) !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .onparty-navbar {
    padding: 0.75rem 0;
  }

  .onparty-navbar-container {
    flex-direction: column;
    gap: 1rem;
  }

  .onparty-navbar-left {
    margin-left: 0;
    justify-content: center;
  }

  .onparty-navbar-right {
    margin-right: 0;
    justify-content: center;
  }

  .onparty-navbar-brand h1 {
    font-size: 1.3rem;
  }

  .onparty-navbar-brand i {
    font-size: 1.5rem;
  }

  .onparty-nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .onparty-nav-menu a {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .onparty-user-menu-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }

  .onparty-user-dropdown {
    min-width: unset;
    width: min(320px, calc(100vw - 1.5rem));
    left: 50%;
    right: auto;
    transform: translate(-50%, -10px);
  }

  .onparty-language-switcher a {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .content {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   MOBILE SCROLLBAR HIDING
   ======================================== */
@media (max-width: 768px) {
  .onparty-navbar {
    padding: 0.75rem 0;
  }

  .onparty-navbar-container {
    flex-direction: column;
    gap: 1rem;
  }

  .onparty-navbar-brand h1 {
    font-size: 1.3rem;
  }

  .onparty-navbar-brand i {
    font-size: 1.5rem;
  }

  .onparty-nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .onparty-nav-menu a {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .onparty-user-menu-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }

  .onparty-language-switcher a {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .content {
    grid-template-columns: 1fr;
  }

  body,
  .session-page,
  .tv-body,
  .auth-page,
  .settings-dashboard,
  .session-container,
  .home-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  body::-webkit-scrollbar,
  .session-page::-webkit-scrollbar,
  .tv-body::-webkit-scrollbar,
  .auth-page::-webkit-scrollbar,
  .settings-dashboard::-webkit-scrollbar,
  .session-container::-webkit-scrollbar,
  .home-container::-webkit-scrollbar {
    display: none;
  }
}
/* ========================================
   CUSTOM SCROLLBARS (DESKTOP)
   ======================================== */
body,
.session-page,
.tv-body,
.auth-page,
.settings-dashboard,
.session-container,
.home-container,
.tv-playlist-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.6) rgba(15, 23, 42, 0.6);
}

body::-webkit-scrollbar,
.session-page::-webkit-scrollbar,
.tv-body::-webkit-scrollbar,
.auth-page::-webkit-scrollbar,
.settings-dashboard::-webkit-scrollbar,
.session-container::-webkit-scrollbar,
.home-container::-webkit-scrollbar,
.tv-playlist-content::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track,
.session-page::-webkit-scrollbar-track,
.tv-body::-webkit-scrollbar-track,
.auth-page::-webkit-scrollbar-track,
.settings-dashboard::-webkit-scrollbar-track,
.session-container::-webkit-scrollbar-track,
.home-container::-webkit-scrollbar-track,
.tv-playlist-content::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.45);
  border-radius: 8px;
}

body::-webkit-scrollbar-thumb,
.session-page::-webkit-scrollbar-thumb,
.tv-body::-webkit-scrollbar-thumb,
.auth-page::-webkit-scrollbar-thumb,
.settings-dashboard::-webkit-scrollbar-thumb,
.session-container::-webkit-scrollbar-thumb,
.home-container::-webkit-scrollbar-thumb,
.tv-playlist-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00d2ff, #3a7bd5);
  border-radius: 8px;
  border: 2px solid rgba(15, 23, 42, 0.65);
  box-shadow: inset 0 0 6px rgba(3, 7, 18, 0.75);
}

body::-webkit-scrollbar-thumb:hover,
.session-page::-webkit-scrollbar-thumb:hover,
.tv-body::-webkit-scrollbar-thumb:hover,
.auth-page::-webkit-scrollbar-thumb:hover,
.settings-dashboard::-webkit-scrollbar-thumb:hover,
.session-container::-webkit-scrollbar-thumb:hover,
.home-container::-webkit-scrollbar-thumb:hover,
.tv-playlist-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3a7bd5, #00d2ff);
}
:root {
  --glass-bg-dark: rgba(15, 23, 42, 0.5);
  --glass-border-dark: rgba(255, 255, 255, 0.12);
  --glass-shadow-dark: 0 35px 60px rgba(3, 7, 18, 0.7);
  --glass-bg-light: rgba(255, 255, 255, 0.45);
  --glass-border-light: rgba(255, 255, 255, 0.75);
  --glass-shadow-light: 0 30px 50px rgba(15, 23, 42, 0.15);
}

:where(
  .card,
  .auth-card,
  .auth-card-guest,
  .settings-card,
  .panel-card,
  .info-card,
  .action-card,
  .session-card,
  .pending-message,
  .menu-card,
  .orders-card,
  .playlist-card,
  .propositions-card,
  .note-card,
  .hero-left,
  .login-card,
  .waiting-card,
  .tv-sidebar,
  .tv-qr-section,
  .tv-stats .tv-stat,
  .tv-playlist-section,
  .glass-surface
) {
  position: relative;
  background: var(--glass-bg-dark) !important;
  border-radius: 18px;
  border: 1px solid var(--glass-border-dark) !important;
  box-shadow: var(--glass-shadow-dark) !important;
  backdrop-filter: blur(28px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(150%) !important;
  overflow: hidden;
  z-index: 0;
}

:where(
  .card,
  .auth-card,
  .auth-card-guest,
  .settings-card,
  .panel-card,
  .info-card,
  .action-card,
  .session-card,
  .pending-message,
  .menu-card,
  .orders-card,
  .playlist-card,
  .propositions-card,
  .note-card,
  .hero-left,
  .login-card,
  .waiting-card,
  .tv-sidebar,
  .tv-qr-section,
  .tv-stats .tv-stat,
  .tv-playlist-section,
  .glass-surface
)::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(56, 189, 248, 0.5), rgba(236, 72, 153, 0.45), rgba(34, 197, 94, 0.35));
  opacity: 0.3;
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

body.theme-light :where(
  .card,
  .auth-card,
  .auth-card-guest,
  .settings-card,
  .panel-card,
  .info-card,
  .action-card,
  .session-card,
  .pending-message,
  .menu-card,
  .orders-card,
  .playlist-card,
  .propositions-card,
  .note-card,
  .hero-left,
  .login-card,
  .waiting-card,
  .tv-sidebar,
  .tv-qr-section,
  .tv-stats .tv-stat,
  .tv-playlist-section,
  .glass-surface
) {
  background: var(--glass-bg-light) !important;
  border: 1px solid var(--glass-border-light) !important;
  box-shadow: var(--glass-shadow-light) !important;
}
@media (max-width: 576px) {
  .onparty-language-switcher {
    gap: 0.15rem;
  }

  .onparty-language-switcher a {
    padding: 0.2rem 0.35rem;
    font-size: 0.68rem;
    border-radius: 4px;
  }
}
