/* ==========================================================================
   MEDIAPERO BRUSSELS - LIGHT GLASSMORPHIC TICKET EXPERIENCE
   Enhanced Stub Spacing, Clean RSVP Layout (No Digital Pass, No Watermark)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Light Glass & Color Palette */
  --bg-gradient: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 40%, #fae8ff 70%, #f0fdf4 100%);

  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-bg-hover: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-subtle: rgba(226, 232, 240, 0.8);
  --glass-shadow: 0 20px 50px rgba(99, 102, 241, 0.08), 0 10px 25px rgba(0, 0, 0, 0.04);

  /* Brand Colors */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: rgba(79, 70, 229, 0.1);

  --accent-orange: #f97316;
  --accent-rose: #f43f5e;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --accent-blue: #06b6d4;

  /* Typography Colors */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;

  --ticket-radius: 24px;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  padding-bottom: 4rem;
  overflow-x: hidden;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: rgba(168, 85, 247, 0.25);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(249, 115, 22, 0.2);
  bottom: -50px;
  right: -50px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

/* TOP HEADER */
.top-header {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  margin: 0 auto 2.25rem auto;
  width: 100%;
  max-width: var(--header-max-width, 100%);
  padding: 0.75rem 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.06);
  position: relative;
  z-index: 500;
  transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    margin 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: max-width, width;
}

.top-header.header-width-profil {
  --header-max-width: 540px;
  max-width: 540px;
}

.top-header.header-width-create-event {
  --header-max-width: 680px;
  max-width: 680px;
}

.top-header.header-width-full {
  --header-max-width: 100%;
  max-width: 100%;
}


.menu-trigger {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.25rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.menu-trigger:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.05);
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 55px;
  max-height: 55px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-rose));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--text-main);
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  margin-top: 2px;
}

.header-user-zone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 501;
}

.btn-login-header {
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.25);
  color: var(--primary);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.btn-login-header:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.user-avatar-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(79, 70, 229, 0.3);
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.user-avatar-badge:hover {
  border-color: var(--primary);
}

.avatar-circle-sm {
  width: 32px;
  height: 32px;
  background: rgba(79, 70, 229, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  overflow: hidden;
  flex-shrink: 0;
  pointer-events: none;
}

.user-nav-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  pointer-events: none;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(79, 70, 229, 0.25);
  border-radius: 16px;
  padding: 0.6rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 99999;
}

.user-dropdown-menu.active {
  display: flex !important;
}

.dropdown-item {
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
}

.dropdown-item.logout {
  color: var(--accent-rose);
}

/* SIDEBAR DRAWER */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 200;
}

.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  border-right: 1px solid var(--glass-border);
  z-index: 201;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.1);
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding-bottom: 1rem;
}

.sidebar .brand-logo-img {
  height: 45px;
  max-height: 45px;
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.sidebar-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
}

.sidebar-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-weight: 700;
}

.sidebar-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-align: center;
}

/* Language Switcher */
.lang-switcher-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.8);
}

.lang-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-decoration: none;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.12);
}

.lang-dropdown-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* SPA VIEWS */
.app-view {
  display: none;
  animation: fadeIn 0.35s ease forwards;
}

.app-view.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* VIEW 1: DASHBOARD */
.dash-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dash-title-group h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.dash-title-group p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-create-event {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
  transition: all 0.25s ease;
}

.btn-create-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.event-card-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-card-item:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.12);
}

.event-card-item.is-private {
  border: 2px dashed rgba(220, 38, 38, 0.6);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.55) 0%, rgba(255, 255, 255, 0.85) 100%);
}

.event-card-item.is-private:hover {
  border-color: rgba(220, 38, 38, 0.9);
  box-shadow: 0 20px 45px rgba(220, 38, 38, 0.16);
}

.event-private-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(220, 38, 38, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border-radius: 50px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.event-card-cover {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.event-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card-item:hover .event-card-cover img {
  transform: scale(1.05);
}

.event-date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0.4rem 0.75rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.event-date-badge .day {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  line-height: 1;
}

.event-date-badge .month {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.event-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.event-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.event-card-location {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.event-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-weight: 600;
}

/* VIEW 2: EVENT DETAIL TICKET */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.back-link:hover {
  transform: translateX(-4px);
}

.ticket-wrapper {
  margin-bottom: 3rem;
  filter: drop-shadow(0 20px 30px rgba(79, 70, 229, 0.08));
}

.ticket-card {
  display: grid;
  grid-template-columns: 1fr 380px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-radius: var(--ticket-radius);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  margin-bottom: 2.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 993px) {
  .ticket-card {
    -webkit-mask-image: radial-gradient(circle 14px at calc(100% - 380px) 0, transparent 14px, #000 14.5px),
      radial-gradient(circle 14px at calc(100% - 380px) 100%, transparent 14px, <br/>#000 14.5px);
    -webkit-mask-composite: destination-in;
    mask-image: radial-gradient(circle 14px at calc(100% - 380px) 0, transparent 14px, #000 14.5px),
      radial-gradient(circle 14px at calc(100% - 380px) 100%, transparent 14px, #000 14.5px);
    mask-composite: intersect;
  }
}

.ticket-card::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 380px;
  border-right: 2.5px dashed rgba(148, 163, 184, 0.4);
  pointer-events: none;
  z-index: 5;
}

.notch {
  display: none;
}

.ticket-main {
  display: flex;
  flex-direction: column;
}

.banner-container {
  position: relative;
  height: 400px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .banner-container {
    height: 250px;
  }
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.banner-tags {
  display: flex;
  gap: 0.6rem;
}

.tag {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tag-apero {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.event-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
  line-height: 1.15;
}

.ticket-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.info-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .info-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.info-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(238, 242, 246, 0.9);
  padding: 0.85rem 1.15rem;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.info-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #4f46e5);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
}

.info-details h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-subtle);
  margin-bottom: 0.15rem;
}

.info-details p,
.info-title {
  font-size: 0.825rem;
  font-weight: 600;
  color: #000;
  margin: 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-title .info-title-dot {
  color: var(--primary, #4f46e5);
  font-weight: 800;
}

.info-subtext {
  font-size: 0.825rem;
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.btn-add-calendar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary, #4f46e5);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(79, 70, 229, 0.2);
  transition: all 0.2s ease;
}

.btn-add-calendar:hover {
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary, #4f46e5);
}

.btn-add-google {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(245, 158, 11, 0.25);
  transition: all 0.2s ease;
}

.btn-add-google:hover {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}

.organizer-avatar-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 70, 229, 0.1);
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.countdown-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(243, 232, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.06);
}

.countdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.timer-units {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  text-align: center;
}

.timer-unit {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 14px;
  padding: 0.75rem 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.timer-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.timer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-subtle);
  margin-top: 0.35rem;
  font-weight: 600;
}

.description-text {
  color: var(--text-muted);
  font-size: 0.91rem;
  line-height: 1.75;
}

/* ==========================================================================
   CAGNOTTE FEEDS (CONTRIBUTEURS & SORTIES D'ARGENT) - EVENT DETAIL STYLE REFINEMENT
   ========================================================================== */
.cagnotte-feed-section {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(238, 242, 246, 0.9);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.cagnotte-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(241, 245, 249, 0.9);
}

.cagnotte-feed-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cagnotte-donation-card,
.cagnotte-expense-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.2s ease;
  gap: 0.75rem;
}

.cagnotte-donation-card:hover,
.cagnotte-expense-card:hover {
  background: #ffffff;
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.cagnotte-card-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.cagnotte-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cagnotte-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cagnotte-card-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
}

.cagnotte-card-title {
  font-size: 0.91rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cagnotte-card-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.cagnotte-card-amount {
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* ==========================================================================
/* ==========================================================================
   TICKET STUB RIGHT PANEL - REFINED & ELEGANT LAYOUT
   ========================================================================== */

.ticket-stub {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
  border-left: 1px solid rgba(226, 232, 240, 0.8);
  padding: 2.25rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.75rem;
  position: relative;
}

.stub-header {
  text-align: center;
  border-bottom: 2px dashed rgba(203, 213, 225, 0.7);
  padding-bottom: 1.35rem;
}

.stub-serial {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #d97706;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.stub-type {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--text-main);
  /*margin-top: 0.6rem;*/
  letter-spacing: -0.3px;
}

.stub-visibility {
  margin-top: 0.55rem;
  display: flex;
  justify-content: center;
}

.badge-visibility {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-public {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.badge-private {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.tag-private {
  background: rgba(220, 38, 38, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25);
}

.ticket-card.is-private .stub-serial {
  color: #dc2626;
  font-weight: 800;
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
}

/* RSVP Actions Section */
.rsvp-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 0.25rem;
}

.rsvp-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-subtle);
  text-align: left;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-group-rsvp {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-attend {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.28);
}

.btn-attend:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.38);
  filter: brightness(1.04);
}

.btn-edit-event {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.825rem;
  font-weight: 700;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
  margin-left: auto;
  transition: all 0.25s ease;
  border: none;
}

.btn-edit-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.35);
  color: #ffffff;
}

.btn-decline {
  background: rgba(244, 63, 94, 0.07);
  border-color: rgba(244, 63, 94, 0.2);
  color: #e11d48;
}

.btn-decline:hover {
  background: rgba(244, 63, 94, 0.14);
  color: #be123c;
  transform: translateY(-1px);
}

.btn-maybe {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(203, 213, 225, 0.9);
  color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-maybe:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}

.user-status-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  display: none;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
  animation: fadeIn 0.3s ease;
}

.user-status-card.active {
  display: block;
}

.status-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 0.6rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.status-card-name {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-main);
}

.status-card-pass {
  font-size: 0.85rem;
  color: #047857;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-top: 0.3rem;
}

.btn-change-rsvp {
  margin-top: 0.85rem;
  background: transparent;
  border: none;
  color: var(--text-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-change-rsvp:hover {
  color: var(--primary);
}

/* PAYMENT BOX & QR CODE STYLES */
.payment-info-box {
  margin-top: 0.5rem;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.payment-title {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.payment-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: 12px;
}

.payment-merged-box {
  margin-top: 0.5rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-radius: 16px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.payment-merged-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.payment-merged-amount {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.payment-qr-box {
  margin-top: 0.85rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px dashed rgba(79, 70, 229, 0.35);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.payment-qr-header {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.payment-qr-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0.5rem auto;
}

.payment-qr-img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 6px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  display: block;
}

.payment-qr-center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 0 0 3px #ffffff, 0 2px 8px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.payment-qr-center-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-iban-details {
  font-size: 0.85rem;
  color: var(--text-main);
  background: rgba(241, 245, 249, 0.85);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  display: block;
  text-align: center;
  margin: 0.75rem auto 0;
  max-width: 100%;
  box-sizing: border-box;
}

.iban-label {
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.iban-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.2px;
  white-space: nowrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.btn-toggle-beneficiary {
  background: transparent;
  border: none;
  color: var(--primary);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  margin: 0.4rem auto 0;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-toggle-beneficiary:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
}

.btn-toggle-beneficiary.active {
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary);
}

.btn-toggle-beneficiary .toggle-icon {
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}

/* Tooltip info banques */
.bank-info-tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-left: 3px;
  vertical-align: middle;
}

.bank-info-icon {
  font-size: 0.85rem;
  color: #0f172a;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.bank-info-tooltip-wrapper:hover .bank-info-icon {
  opacity: 1;
  color: #000000;
  transform: scale(1.18);
}

.bank-info-tooltip {
  visibility: hidden;
  opacity: 0;
  width: 210px;
  background-color: #0f172a;
  color: #ffffff;
  text-align: center;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  position: absolute;
  z-index: 50;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  line-height: 1.35;
}

.bank-info-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

.bank-info-tooltip-wrapper:hover .bank-info-tooltip,
.bank-info-tooltip-wrapper:focus .bank-info-tooltip {
  visibility: visible;
  opacity: 1;
}

/* LOWER SECTION: PARTICIPANTS & COMMENTS WITH COMPACT GLASS PANEL STYLES */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (max-width: 900px) {
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 1.25rem 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel.comments-section,
.comments-section {
  overflow: visible !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.glass-panel::before,
.glass-panel::after {
  display: none;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px dashed rgba(203, 213, 225, 0.5);
}

.section-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.category-block {
  margin-bottom: 0.75rem;
}

.category-title {
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  margin-bottom: 0.45rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.cat-attend {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.cat-maybe {
  background: rgba(245, 158, 11, 0.08);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.cat-decline {
  background: rgba(244, 63, 94, 0.08);
  color: #be123c;
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.cat-unanswered {
  background: rgba(100, 116, 139, 0.08);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.participants-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.participant-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.85);
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.015);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}


.part-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.part-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.08);
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.part-name {
  font-weight: 700;
  font-size: 0.835rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.part-role {
  font-size: 0.725rem;
  color: var(--text-subtle);
}

.part-badge-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.admin-badge-pill {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  padding: 1px 5px !important;
  border-radius: 5px !important;
  letter-spacing: 0.4px !important;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.2) !important;
}

.empty-participants-notice {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-style: italic;
  padding: 0.4rem 0.7rem;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 8px;
  border: 1px dashed rgba(203, 213, 225, 0.6);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* COMMENTS SECTION REFINEMENTS (COMPACT) */
.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.55rem;
  margin-bottom: 0.85rem;
  border-bottom: 2px dashed rgba(203, 213, 225, 0.5);
}

.comments-header .section-label {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.comments-count-badge {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  padding: 0.2rem 0.7rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.05);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  padding: 0.75rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  overflow: visible !important;
}

.comment-form-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.comment-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.08);
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

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

.avatar-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.avatar-label {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.avatar-options {
  display: flex;
  gap: 0.35rem;
}

.avatar-opt {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(241, 245, 249, 0.9);
  transition: all 0.2s ease;
}

.avatar-opt.selected {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.15);
  transform: scale(1.08);
}

.input-field,
.textarea-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(203, 213, 225, 0.8);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.input-field:focus,
.textarea-field:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: #ffffff;
}

.textarea-field {
  resize: vertical;
  min-height: 60px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.comments-list::-webkit-scrollbar {
  width: 4px;
}

.comments-list::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, 0.8);
  border-radius: 10px;
}

.comment-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  display: flex;
  gap: 0.65rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.015);
  transition: all 0.2s ease;
}


.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(243, 232, 255, 0.9);
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.comment-body {
  flex-grow: 1;
}

.comment-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
}

.comment-author {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-delete-comment {
  background: transparent;
  border: none;
  color: var(--accent-rose, #f43f5e);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 2px 5px;
  border-radius: 5px;
  opacity: 0.65;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
}

.btn-delete-comment:hover {
  opacity: 1;
  background: rgba(244, 63, 94, 0.12);
  transform: scale(1.1);
}

.empty-comments-notice {
  text-align: center;
  padding: 1.35rem 1rem;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 12px;
  border: 1px dashed rgba(203, 213, 225, 0.8);
  color: var(--text-subtle);
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-attendee {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  font-size: 0.65rem;
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.comment-text {
  font-size: 0.835rem;
  color: var(--text-main);
  line-height: 1.45;
  margin-top: 0.1rem;
}

.comment-actions {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.like-btn {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  font-size: 0.825rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.like-btn:hover,
.like-btn.liked {
  color: var(--accent-rose);
}

/* VIEW 3: CREATE EVENT FORM */
.form-panel {
  max-width: 680px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* VIEW 4: PROFILE CARD VIEW */
.profile-panel {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.profile-avatar-large {
  width: 90px;
  height: 90px;
  background: rgba(79, 70, 229, 0.15);
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1rem;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.2);
}

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(14px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  width: 100%;
  max-width: 520px;
  padding: 2.25rem;
  box-shadow: 0 25px 70px rgba(79, 70, 229, 0.15);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 50%;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

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

/* Responsive */
@media (max-width: 992px) {
  .ticket-card {
    display: flex;
    flex-direction: column;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ticket-card::after,
  .notch {
    display: none;
  }

  .ticket-main {
    display: contents;
  }

  .ticket-stub {
    display: contents;
  }

  .banner-container {
    order: 1;
  }

  .stub-header {
    order: 2;
    background: rgba(248, 250, 252, 0.95);
    padding: 1.25rem 1.5rem;
    border-bottom: 2px dashed rgba(203, 213, 225, 0.8);
  }

  .ticket-content {
    order: 3;
  }

  .stub-body {
    order: 4;
    background: rgba(248, 250, 252, 0.95);
    padding: 2rem 1.5rem;
    border-top: 2px dashed rgba(203, 213, 225, 0.8);
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 1rem 1rem 3rem;
  }

  .event-title {
    font-size: 1.65rem;
  }

  .top-header {
    grid-template-columns: 40px 1fr auto;
    padding: 0.6rem 0.85rem;
  }

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

/* Zone Drag & Drop Image */
.dropzone-box {
  border: 2px dashed rgba(79, 70, 229, 0.4);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dropzone-box:hover,
.dropzone-box.dragover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.06);
  transform: translateY(-2px);
}

/* Bloc d'affichage Paiement dans le Ticket */
.payment-info-box {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 2px dashed rgba(203, 213, 225, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.payment-badge {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.payment-badge i {
  font-size: 1.1rem;
  color: var(--primary);
}

/* WhatsApp-style Emoji Picker */
.comment-input-wrapper {
  position: relative;
  overflow: visible !important;
}

.btn-emoji-trigger {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.8);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.btn-emoji-trigger:hover,
.btn-emoji-trigger.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(1.1);
}

.emoji-picker-popover {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  width: 100%;
  max-width: 330px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1.5px solid rgba(203, 213, 225, 0.9);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
  padding: 0.75rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  overflow-x: hidden !important;
  z-index: 99999 !important;
  animation: popoverFadeInUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.emoji-picker-popover.active {
  display: flex;
}

@keyframes popoverFadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.emoji-picker-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.emoji-picker-header::-webkit-scrollbar {
  display: none;
}

.emoji-cat-btn {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  background: rgba(241, 245, 249, 0.9);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
  border: 1px solid rgba(203, 213, 225, 0.6);
  user-select: none;
}

.emoji-cat-btn:hover {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.emoji-cat-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.emoji-picker-search {
  width: 100%;
}

.emoji-picker-search input {
  width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  background: rgba(248, 250, 252, 0.9);
  font-size: 0.82rem;
  outline: none;
  color: var(--text-main);
}

.emoji-picker-search input:focus {
  border-color: var(--primary);
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  max-height: 140px;
  overflow-y: auto;
  overflow-x: hidden !important;
  padding-right: 0.2rem;
}

.emoji-picker-grid::-webkit-scrollbar {
  width: 4px;
}

.emoji-picker-grid::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, 0.8);
  border-radius: 4px;
}

.emoji-item {
  font-size: 1.35rem;
  text-align: center;
  padding: 0.25rem 0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-item:hover {
  background: rgba(79, 70, 229, 0.12);
  transform: scale(1.25);
}

/* Bouton Flottant (FAB) Créer Événement */
.fab-create-event {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #ffffff;
  padding: 0.65rem 1.15rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
  text-decoration: none;
  z-index: 99;
  transition: all 0.25s ease;
}

.fab-create-event:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.45);
  color: #ffffff;
}

.fab-create-event i {
  font-size: 1rem;
}

/* Bouton Flottant (FAB) Cagnotte Mediapero */
.fab-cagnotte {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 0.65rem 1.15rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
  text-decoration: none;
  z-index: 99;
  transition: all 0.25s ease;
}

.fab-cagnotte:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.45);
  color: #ffffff;
}

.fab-cagnotte i {
  font-size: 1.1rem;
}

/* Container de la page Cagnotte unifiée avec le menu */
.cagnotte-container {
  width: 100%;
  max-width: 100%;
  padding: 0 0 3.5rem 0;
  margin: 0 auto;
}

/* Zone Partage de lien de l'événement */
.share-info-box {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px dashed rgba(203, 213, 225, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.share-link-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.share-link-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-main);
  outline: none;
  font-family: var(--font-mono);
}

.btn-copy-link {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-copy-link:hover {
  background: var(--accent-purple);
  transform: translateY(-1px);
}

.btn-copy-link.copied {
  background: var(--accent-green) !important;
}

@media (max-width: 640px) {
  .fab-create-event {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.85rem;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    justify-content: center;
  }

  .fab-create-event .fab-text {
    display: none;
  }

  .fab-cagnotte {
    bottom: 1.5rem;
    left: 1.5rem;
    padding: 0.85rem;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    justify-content: center;
  }

  .fab-cagnotte .fab-text {
    display: none;
  }
}

/* Modale Galerie d'Avatars Prédéfinis */
#avatar-gallery-modal,
.modal-overlay#avatar-gallery-modal {
  z-index: 999999 !important;
}

#avatar-gallery-modal .modal-box {
  z-index: 1000000 !important;
  position: relative;
}

.avatar-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.85rem;
  max-height: 380px;
  overflow-y: auto;
  padding: 0.75rem 0.5rem;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.9);
  justify-items: center;
  align-items: start;
}

.avatar-gallery-grid::-webkit-scrollbar {
  width: 6px;
}

.avatar-gallery-grid::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, 0.8);
  border-radius: 10px;
}

.avatar-gallery-item {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2.5px solid rgba(226, 232, 240, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.avatar-gallery-item:hover {
  border-color: var(--primary);
  transform: scale(1.18);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
  background: #ffffff;
  z-index: 5;
}

.avatar-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 640px) {
  .avatar-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 0.6rem;
    max-height: 300px;
  }

  .avatar-gallery-item {
    width: 56px;
    height: 56px;
  }
}

/* ==========================================================================
   LOADERS & ANTI DOUBLE-CLIC UX (REFACTOR MEDIAPERO)
   ========================================================================== */

@keyframes mpSpin {
  0% {
    transform: rotate(0deg);
    stroke-dashoffset: 42;
  }

  50% {
    stroke-dashoffset: 8;
  }

  100% {
    transform: rotate(360deg);
    stroke-dashoffset: 42;
  }
}

.mp-btn-spinner {
  display: inline-block;
  vertical-align: middle;
  animation: mpSpin 0.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: center;
}

button:disabled,
.btn:disabled,
.btn-disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.btn-loading {
  position: relative;
  pointer-events: none !important;
  opacity: 0.8;
}