
/* ============== PRELOADER STYLES ============== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.1);
    max-width: 400px;
    width: 90%;
    animation: preloaderFloat 3s ease-in-out infinite;
}

.preloader-logo {
    margin-bottom: 2rem;
    animation: logoFloat 2s ease-in-out infinite;
}

.preloader-img {
    width: 100px;
    height: auto;
    animation: logoPulse 1.5s ease-in-out infinite;
}

.preloader-spinner {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.spinner-ring {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(138, 43, 226, 0.2);
    border-top: 3px solid var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    opacity: 0.8;
    animation: textFade 2s ease-in-out infinite;
}

@keyframes preloaderFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.6;
    }
}

/* Hide preloader when page is loaded */
body.loaded .preloader {
    opacity: 0;
    visibility: hidden;
}

/* ============== STYLES GÉNÉRAUX & VARIABLES ============== */

:root {
    --primary-gradient: linear-gradient(135deg, #8A2BE2 0%, #FF00FF 100%);
    --primary-purple: #8A2BE2;
    --primary-magenta: #FF00FF;
    --accent-yellow: #FFD700;
    --bg-light: #F5F5F5;
    --bg-dark: #121212;
    --text-dark: #121212;
    --text-light: #F5F5F5;
    --text-gray: #666666;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 15px 40px rgba(138, 43, 226, 0.3);
    --transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============== UTILITY CLASSES ============== */
.hidden { display: none !important; }

/* ============== PAGE MES BILLETS (MY TICKETS) ============== */

/* Lien actif dans la navbar */
.navbar-menu .nav-link.active {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-menu .nav-link.active::after { width: 100%; }

/* En-tête de page */
.tickets-page { 
  padding-top: 100px; 
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.tickets-hero { 
  padding: 3rem 0 2rem; 
  text-align: center;
  background: var(--white);
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.tickets-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.2;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.tickets-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  font-weight: 500;
  margin: 0;
}

/* Tabs Section */
.tickets-tabs-section {
  padding: 1rem 0;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

/* Tabs navigation */
.tickets-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(138,43,226,0.08);
  border-radius: 16px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(138,43,226,0.1);
}
.tickets-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.tickets-tab:hover { 
  background: rgba(255,255,255,0.8); 
  transform: translateY(-1px);
}
.tickets-tab.active {
  background: var(--white);
  box-shadow: 0 8px 20px rgba(138,43,226,0.15);
  color: var(--primary-purple);
  font-weight: 700;
}
.tickets-tab i {
  font-size: 1rem;
}

/* Panels */
.tickets-panel { display: block; }
.tickets-panel.hidden { display: none; }

/* Section liste */
.tickets-section { 
  padding: 2rem 0 4rem; 
}
.tickets-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Carte de billet */
.ticket-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(138,43,226,0.1);
}
.ticket-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 40px rgba(138,43,226,0.15);
  border-color: rgba(138,43,226,0.2);
}

.ticket-media { 
  position: relative; 
  width: 100%;
  height: 200px; 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ticket-media img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block;
  transition: var(--transition);
}
.ticket-card:hover .ticket-media img {
  transform: scale(1.05);
}

.ticket-content { 
  padding: 1.5rem; 
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
  justify-content: space-between;
}
.ticket-title { 
  font-size: 1.4rem; 
  font-weight: 800; 
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0;
}
.ticket-meta { 
  display: flex; 
  flex-direction: column; 
  gap: 0.6rem; 
}
.ticket-meta p { 
  display: flex; 
  align-items: center; 
  gap: 0.6rem; 
  color: var(--text-gray); 
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
}
.ticket-meta i { 
  color: var(--primary-purple); 
  width: 16px;
  text-align: center;
}

.ticket-actions { 
  margin-top: auto; 
  display: flex; 
  gap: 0.75rem; 
}
.btn-ticket {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 12px;
  background: var(--accent-yellow);
  color: var(--text-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 700; 
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
  transition: var(--transition);
  cursor: pointer;
}
.btn-ticket:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
  background: #ffed4e;
}
.btn-ticket.disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-ticket.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Status badge */
.ticket-badge {
  position: absolute;
  top: 1rem; 
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
}
.ticket-badge.status-valid { 
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--white); 
}
.ticket-badge.status-expired { 
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: var(--white); 
}
.ticket-badge.status-used { 
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: var(--white); 
}

/* État vide */
.tickets-empty { 
  padding: 4rem 0; 
  display: none; 
}
.empty-card {
  max-width: 500px; 
  margin: 0 auto; 
  text-align: center;
  background: var(--white);
  border-radius: 24px; 
  padding: 3rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border: 1px solid rgba(138,43,226,0.1);
}
.empty-icon {
  font-size: 3rem;
  color: var(--primary-purple);
  margin-bottom: 1rem;
  opacity: 0.7;
}
.empty-card h2 { 
  font-size: 1.5rem; 
  font-weight: 800; 
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}
.empty-card p { 
  color: var(--text-gray); 
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}
.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem; 
  border-radius: 50px;
  background: var(--primary-gradient); 
  color: var(--white);
  text-decoration: none; 
  font-weight: 700; 
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(138,43,226,0.3);
}
.btn-explore:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 10px 30px rgba(138,43,226,0.4);
}

/* Ticket modal */
.ticket-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}
.ticket-modal.hidden { display: none; }

.ticket-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(3px);
}

.ticket-modal-dialog {
  position: relative;
  max-width: 520px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: ticketModalFade 0.28s ease-out;
  z-index: 1;
}

.ticket-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-gray);
  cursor: pointer;
  transition: var(--transition);
}
.ticket-modal-close:hover { color: var(--primary-purple); transform: scale(1.05); }

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

.ticket-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: .25rem;
}
.ticket-modal-header p { color: var(--text-gray); margin: 0; }

.ticket-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1.25rem;
}

.ticket-modal-body canvas {
  width: 240px;
  height: 240px;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(138, 43, 226, 0.18);
  background: var(--bg-light);
  padding: 1.2rem;
}

.ticket-modal-fallback {
  text-align: center;
  color: var(--text-gray);
  font-size: .95rem;
}

.ticket-modal-details {
  width: 100%;
  display: grid;
  gap: .6rem;
  justify-items: center;
  text-align: center;
}
.ticket-modal-details p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-dark);
  font-weight: 600;
}
.ticket-modal-details i { color: var(--primary-purple); }

.ticket-modal-footer {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  text-align: center;
}
.ticket-modal-footer small { color: var(--text-gray); }

.ticket-modal-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ticket-modal-action {
  appearance: none;
  border: none;
  padding: .8rem 1.4rem;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: var(--white);
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}
.ticket-modal-action:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

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

@media (max-width: 576px) {
  .ticket-modal-content { padding: 1.6rem 1.35rem 1.5rem; }
  .ticket-modal-body canvas { width: 200px; height: 200px; }
}

/* Responsive tickets */
@media (max-width: 992px) {
  .ticket-card { 
    grid-template-columns: 240px 1fr; 
  }
  .tickets-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .tickets-page {
    padding-top: 80px;
  }
  
  .tickets-hero {
    padding: 2rem 0 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .tickets-title {
    font-size: 2.2rem;
  }
  
  .tickets-subtitle {
    font-size: 1rem;
  }
  
  .tickets-tabs-section {
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
  }
  
  .tickets-tabs {
    width: 100%;
    justify-content: center;
  }
  
  .tickets-tab {
    flex: 1;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
  
  .tickets-section {
    padding: 1.5rem 0 3rem;
  }
  
  .tickets-list {
    gap: 1.25rem;
  }
  
  .ticket-card { 
    grid-template-columns: 1fr; 
    border-radius: 16px;
  }
  
  .ticket-media { 
    height: 180px; 
  }
  
  .ticket-content {
    padding: 1.25rem;
    gap: 0.875rem;
  }
  
  .ticket-title {
    font-size: 1.25rem;
  }
  
  .ticket-meta {
    gap: 0.5rem;
  }
  
  .ticket-meta p {
    font-size: 0.9rem;
  }
  
  .btn-ticket {
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .ticket-badge {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }
  
  .empty-card {
    padding: 2.5rem 1.5rem;
    margin: 0 1rem;
  }
  
  .empty-icon {
    font-size: 2.5rem;
  }
  
  .empty-card h2 {
    font-size: 1.3rem;
  }
  
  .empty-card p {
    font-size: 0.95rem;
  }
  
  .btn-explore {
    padding: 0.9rem 1.75rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .tickets-hero {
    padding: 1.5rem 0 1rem;
  }
  
  .tickets-title {
    font-size: 1.9rem;
  }
  
  .tickets-subtitle {
    font-size: 0.95rem;
  }
  
  .tickets-tab {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .tickets-tab i {
    font-size: 0.9rem;
  }
  
  .ticket-card {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }
  
  .ticket-media {
    height: 160px;
  }
  
  .ticket-content {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .ticket-title {
    font-size: 1.1rem;
  }
  
  .ticket-meta p {
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  
  .ticket-meta i {
    width: 14px;
    font-size: 0.9rem;
  }
  
  .btn-ticket {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    gap: 0.4rem;
  }
  
  .btn-ticket i {
    font-size: 0.9rem;
  }
  
  .ticket-badge {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }
  
  .empty-card {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }
  
  .empty-icon {
    font-size: 2rem;
  }
  
  .empty-card h2 {
    font-size: 1.2rem;
  }
  
  .empty-card p {
    font-size: 0.9rem;
  }
  
  .btn-explore {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ============== PAGE PAIEMENT ============== */

.payment-page { padding-top: 100px; }
.payment-hero { padding: 2rem 0 1rem; }

.payment-section { padding: 2rem 0 4rem; }
.payment-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
}

.payment-summary {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.payment-summary .summary-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.payment-summary .summary-content { padding: 1rem 1rem 1.25rem; }
.payment-summary .summary-content h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .5rem; }
.payment-summary .summary-content p { color: var(--text-gray); display: flex; align-items: center; gap: .5rem; }
.payment-summary i { color: var(--primary-purple); }

.payment-box {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.payment-tabs { display: inline-flex; gap: .5rem; background: rgba(138,43,226,0.08); border-radius: 12px; padding: .25rem; margin-bottom: 1rem; }
.pay-tab { border: 0; background: transparent; padding: .6rem 1rem; border-radius: 10px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.pay-tab.active { background: var(--white); color: var(--primary-purple); box-shadow: 0 8px 20px rgba(138,43,226,0.12); }

.payment-panel { margin-top: .25rem; }

.pay-form { display: flex; flex-direction: column; gap: .9rem; }
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-row label { font-size: .9rem; font-weight: 600; color: var(--text-gray); }
.form-row input { height: 46px; border: 2px solid #eee; border-radius: 12px; padding: 0 .9rem; font-family: 'Poppins', sans-serif; outline: none; transition: var(--transition); }
.form-row input:focus { border-color: #c4b5fd; box-shadow: 0 0 0 4px rgba(138,43,226,.12); }

.btn-primary { display: inline-block; padding: .9rem 1.4rem; border: none; border-radius: 12px; background: var(--primary-gradient); color: #fff; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); transition: var(--transition); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

@media (max-width: 992px) {
  .payment-container { grid-template-columns: 1fr; }
}

/* ============== PAGE PARAMETRES (SETTINGS) ============== */
.settings-page { padding-top: 100px; }
.settings-hero { padding: 2rem 0 1rem; }
.settings-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .25rem;
}
.settings-subtitle { color: var(--text-gray); }

.settings-section { padding: 1rem 0 3rem; }
.settings-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.settings-left { display: flex; justify-content: center; }
.avatar-uploader { text-align: center; }
.avatar-preview-wrap {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  position: relative;
  background: #f3f4f6;
  display: grid; place-items: center;
  margin: 0 auto 12px;
}
.avatar-preview { width: 100%; height: 100%; object-fit: cover; display: none; }
.avatar-fallback { color: #c4b5fd; font-size: 3rem; }
.avatar-preview[src] { display: block; }
.btn-upload {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: 999px;
  background: rgba(138,43,226,0.1); color: var(--primary-purple);
  text-decoration: none; cursor: pointer; transition: var(--transition);
  font-weight: 700; box-shadow: 0 6px 16px rgba(138,43,226,.15);
}
.btn-upload:hover { background: var(--primary-gradient); color: #fff; transform: translateY(-2px); }
.upload-hint { color: var(--text-gray); font-size: .9rem; margin-top: 8px; }

.settings-right { display: flex; flex-direction: column; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-weight: 600; color: var(--text-dark); }
.form-group input {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 2px solid #eee;
  background: #fff;
  outline: none; transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}
.form-group input:focus { border-color: #c4b5fd; box-shadow: 0 0 0 4px rgba(138,43,226,.12); }
.settings-actions { margin-top: .25rem; }

/* Avatar image inside header profile button */
.btn-profile .avatar-img {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid rgba(138,43,226,.25);
}

@media (max-width: 992px) {
  .settings-card { grid-template-columns: 240px 1fr; }
}
@media (max-width: 768px) {
  .settings-card { grid-template-columns: 1fr; }
  .avatar-preview-wrap { width: 120px; height: 120px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* --- PAGE AUTHENTIFICATION --- */
.auth-sliding {
  min-height: 100svh;
  height: 100svh; /* éviter tout défilement */
  display: grid;
  place-items: center;
  background: #f3f4f6;
  padding: 0 16px; /* aucun padding vertical pour ne pas dépasser */
  overflow: hidden; /* pas de dépassement */
}

.auth-container {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 980px;
  height: calc(100svh - 60px); /* Reduced height for better fit */
  margin-top: 60px; /* Reduced margin */
}

/* Panneaux de formulaires */
.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.panel-form {
  width: 100%;
  max-width: 360px;
  padding: 24px 20px; /* Reduced padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* Reduced gap */
  overflow-y: auto; /* Allow scrolling if needed */
  max-height: 100%; /* Ensure it fits within container */
}

/* Form within panel-form */
.panel-form form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* Reduced gap */
}

.panel-title {
  font-size: 24px; /* Reduced font size */
  font-weight: 800;
  color: #111827;
  margin-bottom: 2px; /* Reduced margin */
}

.panel-subtext {
  font-size: 13px; /* Reduced font size */
  color: #6b7280;
  margin-bottom: 4px; /* Reduced margin */
}

.social-container {
  display: flex;
  gap: 8px; /* Reduced gap */
  margin-bottom: 4px; /* Reduced margin */
}

.social {
  height: 36px; /* Reduced size */
  width: 36px; /* Reduced size */
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #374151;
  background: #fff;
  transition: all .2s ease;
}

.social:hover { 
  border-color: var(--primary-purple); 
  color: var(--primary-purple); 
  transform: translateY(-2px);
}

.input-field {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px; /* Reduced gap */
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px; /* Reduced border radius */
  padding: 0 12px; /* Reduced padding */
  height: 46px; /* Reduced height */
}

.input-field i { color: var(--primary-purple); }
.input-field input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 15px;
  color: #111827;
}

.panel-link {
  font-size: 14px;
  color: var(--primary-purple);
  text-decoration: none;
  align-self: flex-end;
}
.panel-link:hover { text-decoration: underline; }

/* Lien mobile pour basculer les formulaires */
.mobile-switch { display: none; font-size: 14px; color: #6b7280; margin-top: 6px; }
.mobile-switch a { color: var(--primary-purple); text-decoration: none; font-weight: 600; }
.mobile-switch a:hover { text-decoration: underline; }

.btn-primary-blue {
  width: 100%;
  height: 46px; /* Reduced height */
  border-radius: 10px; /* Reduced border radius */
  border: none;
  background: var(--primary-gradient); /* dégradé violet → magenta */
  color: #fff;
  font-weight: 700;
  font-size: 15px; /* Reduced font size */
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px rgba(138,43,226,.28); /* Reduced shadow */
}
.btn-primary-blue:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(138,43,226,.36);} 
.btn-primary-blue:disabled { opacity: .7; cursor: not-allowed; }

/* ============================================
   GOOGLE LOGIN SECTION
   ============================================ */

.google-login-section {
    width: 100%;
    max-width: 360px;
    margin-top: 16px; /* Reduced margin */
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduced gap */
    align-items: center;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced gap */
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.divider-text {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
    padding: 0 8px;
    background: #ffffff;
}

/* Google Button */
.btn-google {
    width: 100%;
    height: 46px; /* Reduced height */
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px; /* Reduced border radius */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Reduced gap */
    font-size: 14px; /* Reduced font size */
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* Reduced shadow */
    position: relative;
    overflow: hidden;
    text-decoration: none; /* Remove underline */
}

.btn-google:hover {
    border-color: #4285f4;
    background: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.15);
    text-decoration: none; /* Remove underline on hover */
}

.btn-google:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.1);
    text-decoration: none; /* Remove underline on active */
}

/* Google Icon */
.google-icon {
    width: 18px; /* Reduced size */
    height: 18px; /* Reduced size */
    flex-shrink: 0;
}

/* Loading state */
.btn-google.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-google.loading span {
    opacity: 0;
}

.btn-google.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #4285f4;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Terms */
.google-terms {
    text-align: center;
    margin-top: 4px; /* Reduced margin */
}

.google-terms small {
    font-size: 11px; /* Reduced font size */
    color: #6b7280;
    line-height: 1.3; /* Reduced line height */
}

.terms-link {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #3367d6;
    text-decoration: underline;
}

/* Position initiale */
.sign-in-container { left: 0; z-index: 2; }
.sign-up-container { left: 0; opacity: 0; transform: translateX(100%); z-index: 1; }

/* Overlay */
.overlay-container {
  position: absolute;
  top: 0; left: 50%;
  width: 50%; height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 5;
}

.overlay {
  /* Laisse les panels gérer leurs propres backgrounds images + dégradé */
  background: transparent;
  color: #fff;
  position: relative;
  left: -100%;
  height: 100%; width: 200%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
  border-top-right-radius: 120px;
  border-bottom-right-radius: 120px;
}

.overlay-panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  top: 0; height: 100%; width: 50%;
  padding: 0 48px;
  /* Images de fond avec dégradé violet-magenta semi-transparent pour garder l'identité visuelle */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.overlay-panel h2 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.overlay-panel p { font-size: 15px; opacity: .95; margin-bottom: 18px; }

.overlay-left {
  transform: translateX(0);
  left: 0;
  background-image: linear-gradient(135deg, rgba(137, 43, 226, 0.247) 0%, rgba(255, 0, 255,0.247) 100%), url("../assets/image/tess1.36d235526e35.png");
}
.overlay-right {
  right: 0;
  transform: translateX(0);
  background-image: linear-gradient(135deg, rgba(138, 43, 226, 0.247) 0%, rgba(255, 0, 255,0.247) 100%), url("../assets/image/Ticket.cac2d68e3bcf.png");
}

.overlay-right2 {
    right: 0;
    transform: translateX(0);
    background-image: linear-gradient(135deg, rgba(138, 43, 226,  0.425) 0%, rgba(255, 0, 255, 0.404) 100%), url("../assets/image/tess1.36d235526e35.png");
  }
  

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn-ghost:hover { background: #fff; color: var(--primary-purple); }

/* États activés */
.auth-container.right-panel-active .sign-in-container { transform: translateX(100%); }
.auth-container.right-panel-active .sign-up-container { transform: translateX(100%); opacity: 1; z-index: 6; }
.auth-container.right-panel-active .overlay-container { transform: translateX(-100%); }
.auth-container.right-panel-active .overlay { transform: translateX(50%); }

/* Responsive */
@media (max-width: 960px) {
  .auth-container { max-width: 720px; height: calc(100svh - 60px); margin-top: 60px; }
  .overlay { border-top-right-radius: 80px; border-bottom-right-radius: 80px; }
  .panel-form { max-width: 320px; padding: 20px 16px; } /* Reduced padding */
}

@media (max-width: 640px) {
  .auth-container { max-width: 100%; height: calc(100svh - 60px); margin-top: 60px; }
  .form-container { width: 100%; position: static; transform: none !important; }
  .overlay-container { display: none; }
  /* Afficher uniquement le formulaire actif */
  .sign-in-container, .sign-up-container { display: none; }
  .sign-in-container { display: flex; }
  .auth-container.right-panel-active .sign-in-container { display: none; }
  .auth-container.right-panel-active .sign-up-container { display: flex; }
  /* Réduction des espacements pour s'assurer que tout rentre à l'écran */
  .panel-form { max-width: 420px; padding: 16px 12px; gap: 8px; } /* Further reduced padding and gap */
  .panel-title { font-size: 22px; } /* Reduced title size */
  .mobile-switch { display: block; }
  
  /* Google login mobile adjustments */
  .google-login-section {
    margin-top: 5px; /* Further reduced margin */
    gap: 10px; /* Further reduced gap */
    max-width: 100%;
  }
  
  .btn-google {
    height: 42px; /* Further reduced height */
    font-size: 13px; /* Further reduced font size */
    width: 100%;
  }
  
  .google-icon {
    width: 16px; /* Further reduced size */
    height: 16px; /* Further reduced size */
  }
  
  .divider {
    width: 100%;
    margin: 6px 0; /* Further reduced margin */
  }
  
  .divider-text {
    font-size: 12px; /* Reduced font size */
  }
  
  .google-terms {
    width: 100%;
    text-align: center;
  }
  
  .google-terms small {
    font-size: 10px; /* Further reduced font size */
    line-height: 1.2; /* Further reduced line height */
  }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Remove underline from all links globally */
a { text-decoration: none; }
a:hover, a:focus { text-decoration: none; }

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0.7rem 0;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: var(--transition);
}

.navbar-logo .logo-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.navbar-logo i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    justify-self: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

/* Support icon + label layout */
.navbar-menu .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-menu .nav-link i {
    font-size: 1rem;
    color: var(--primary-purple);
    transition: var(--transition);
}

.navbar-menu .nav-link span {
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Gradient on hover for both icon and text */
.nav-link:hover,
.nav-link:hover span,
.nav-link:hover i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    justify-self: end;
}

/* ============== LANGUAGE SELECTOR - PROFESSIONAL DESIGN ============== */
.language-selector {
    position: relative;
    z-index: 1200;
}

.language-form {
    margin: 0;
}

.language-form + .language-form {
    margin-top: 2px;
}

.language-form .lang-option {
    width: 100%;
}

.btn-language {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-purple);
    border: 2px solid rgba(138, 43, 226, 0.15);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.12);
    position: relative;
    overflow: hidden;
}

.btn-language::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-language:hover {
    border-color: var(--primary-purple);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.25);
}

.btn-language:hover::before {
    left: 0;
}

.btn-language.active {
    border-color: var(--primary-purple);
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.3);
}

.btn-language i.fa-globe {
    font-size: 1.05rem;
    transition: transform 0.3s ease;
}

.btn-language:hover i.fa-globe,
.btn-language.active i.fa-globe {
    transform: rotate(15deg);
}

.btn-language #currentLang {
    font-weight: 700;
    letter-spacing: 0.5px;
    min-width: 28px;
    text-align: center;
}

.btn-language i.fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.btn-language.active i.fa-chevron-down {
    transform: rotate(180deg);
    opacity: 1;
}

/* Backdrop overlay */
.language-dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1200;
}

.language-dropdown-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Professional Dropdown */
.language-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
                0 4px 12px rgba(138, 43, 226, 0.1);
    padding: 8px;
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1201;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.1);
}

.language-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(138, 43, 226, 0.1);
    border-top: 1px solid rgba(138, 43, 226, 0.1);
    transform: rotate(45deg);
    z-index: -1;
}

.language-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Language Options */
.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    margin-bottom: 2px;
}

.lang-option:last-child {
    margin-bottom: 0;
}

.lang-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-gradient);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s ease;
}

.lang-option:hover {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.08) 0%, rgba(138, 43, 226, 0.04) 100%);
    color: var(--primary-purple);
    transform: translateX(4px);
    padding-left: 16px;
}

.lang-option:hover::before {
    height: 60%;
}

.lang-option.active {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.15) 0%, rgba(138, 43, 226, 0.08) 100%);
    color: var(--primary-purple);
    font-weight: 700;
    padding-left: 16px;
    box-shadow: inset 0 0 0 1px rgba(138, 43, 226, 0.1);
}

.lang-option.active::before {
    height: 70%;
    background: var(--primary-gradient);
}

.lang-flag {
    font-size: 1.4rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(138, 43, 226, 0.05);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.lang-option:hover .lang-flag {
    transform: scale(1.1);
}

.lang-option.active .lang-flag {
    background: rgba(138, 43, 226, 0.1);
    transform: scale(1.15);
}

.lang-name {
    flex: 1;
    font-weight: inherit;
    letter-spacing: 0.2px;
}

.lang-option.active .lang-name {
    font-weight: 700;
}

/* Separator between options */
.lang-option:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 14px;
    right: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
}

/* Icône profil quand connecté */
.btn-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary-purple);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.15);
}

.btn-profile i {
    font-size: 1.4rem;
}

.btn-profile:hover {
    background: var(--primary-gradient);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.35);
}

/* Profile dropdown */
.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 8px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: var(--transition);
    z-index: 1200;
}
.profile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}
.profile-menu-item i { color: var(--primary-purple); }
.profile-menu-item:hover {
    background: rgba(138, 43, 226, 0.08);
}

/* Active nav also gradients the icon */
.navbar-menu .nav-link.active,
.navbar-menu .nav-link.active span,
.navbar-menu .nav-link.active i {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.search-box-nav {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box-nav input {
    padding: 0.7rem 1rem;
    padding-right: 2.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    background: rgba(138, 43, 226, 0.1);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    width: 200px;
}

.search-box-nav input:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: var(--white);
    width: 250px;
}

.search-box-nav i {
    position: absolute;
    right: 1rem;
    color: var(--primary-purple);
}

.btn-login {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary-purple);
}

/* ============== HERO SECTION ============== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.7) 0%, rgba(255, 0, 255, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-search {
    display: flex;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 60px;
    padding: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
}

.search-input-wrapper i {
    color: var(--primary-purple);
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
}

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

.btn-search {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    background: var(--accent-yellow);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-search:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    color: var(--white);
    font-size: 2rem;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============== FADE-IN ANIMATIONS ============== */

.fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.8s;
}

.fade-in:nth-child(5) {
    animation-delay: 1s;
}

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

/* ============== FEATURED EVENTS SECTION ============== */

.featured-events {
    padding: 6rem 0;
    background: var(--bg-light);
}

/* Events filter toolbar */
.events-filter {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.filter-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(140px, 1fr)) auto;
  gap: .75rem;
  align-items: end;
}
.filter-group { display: flex; flex-direction: column; gap: .35rem; }
.filter-group label { font-size: .85rem; font-weight: 600; color: var(--text-gray); }
.filter-group select,
.filter-group input {
  height: 44px;
  border-radius: 12px;
  border: 2px solid #eee;
  padding: 0 .9rem;
  font-family: 'Poppins', sans-serif;
  outline: none; transition: var(--transition);
}
.filter-group select:focus,
.filter-group input:focus { border-color: #c4b5fd; box-shadow: 0 0 0 4px rgba(138,43,226,.12); }

.filter-group.search { position: relative; }
.filter-group.search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--primary-purple); }
.filter-group.search input { padding-left: 36px; }

.btn-reset {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 2px solid rgba(138,43,226,.25);
  background: rgba(138,43,226,.06);
  color: var(--primary-purple);
  font-weight: 700; font-family: 'Poppins', sans-serif; cursor: pointer;
  transition: var(--transition);
}
.btn-reset:hover { background: var(--primary-gradient); color: #fff; border-color: transparent; transform: translateY(-1px); }

.filter-meta { margin-top: .5rem; color: var(--text-gray); font-size: .9rem; }
.filter-meta #ev-count { font-weight: 700; color: var(--text-dark); }

@media (max-width: 992px) {
  .filter-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .filter-row { grid-template-columns: 1fr; }
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.event-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    width: 100%;
    max-width: 400px;
}

.event-card:hover {
    transform: translateY(-10px) rotate(1deg) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.event-card.revealed:hover {
    transform: translateY(-10px) rotate(1deg) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.event-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.event-category.music {
    background: rgba(138, 43, 226, 0.9);
    color: var(--white);
}

.event-category.smallT {
    background: rgba(255, 215, 0, 0.9);
    color: var(--text-dark);
}

.event-price {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(138, 43, 226, 0.9);
    color: var(--white);
    border: 2px solid var(--accent-yellow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-info {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.event-details {
    margin-bottom: 1.5rem;
}

.event-date,
.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.event-date i,
.event-location i {
    color: var(--primary-purple);
}

.btn-event {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

/* ============== CATEGORIES SECTION ============== */

.categories {
    padding: 6rem 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.category-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    background: var(--text-gray);
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-card:hover h3,
.category-card:hover p {
    color: var(--white);
}

.category-card:hover .category-icon {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: var(--white);
    color: var(--white);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.category-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-logo .logo-img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: invert(1) brightness(1.2);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ============== SCROLL REVEAL ANIMATION ============== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced scroll reveal for event cards */
.event-card {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity; /* Performance optimization */
}

.event-card.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    will-change: auto; /* Reset will-change after animation */
}

/* Staggered animation delays for event cards */
.event-card:nth-child(1) { transition-delay: 0.1s; }
.event-card:nth-child(2) { transition-delay: 0.2s; }
.event-card:nth-child(3) { transition-delay: 0.3s; }
.event-card:nth-child(4) { transition-delay: 0.4s; }
.event-card:nth-child(5) { transition-delay: 0.5s; }
.event-card:nth-child(6) { transition-delay: 0.6s; }

/* Category cards scroll reveal */
.category-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity; /* Performance optimization */
}

.category-card.revealed {
    opacity: 1;
    transform: translateY(0);
    will-change: auto; /* Reset will-change after animation */
}

/* Staggered delays for category cards */
.category-card:nth-child(1) { transition-delay: 0.1s; }
.category-card:nth-child(2) { transition-delay: 0.2s; }
.category-card:nth-child(3) { transition-delay: 0.3s; }
.category-card:nth-child(4) { transition-delay: 0.4s; }
.category-card:nth-child(5) { transition-delay: 0.5s; }

/* Section titles reveal */
.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity; /* Performance optimization */
}

.section-title.revealed {
    opacity: 1;
    transform: translateY(0);
    will-change: auto; /* Reset will-change after animation */
}

/* Loading state for elements before animation */
.event-card:not(.revealed),
.category-card:not(.revealed),
.section-title:not(.revealed) {
    pointer-events: none; /* Prevent interaction during animation */
}

/* Parallax effect for hero background */
.hero-bg-image {
    will-change: transform; /* Optimize for parallax */
    transform: translateZ(0); /* Force hardware acceleration */
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    .event-card,
    .category-card,
    .section-title {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .event-card.revealed,
    .category-card.revealed,
    .section-title.revealed {
        opacity: 1;
        transform: none;
    }
    
    .hero-bg-image {
        transform: none !important;
    }
}


@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    /* Show dropdown menu when active */
    .navbar-menu.active {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
        padding: 16px 20px;
        z-index: 1100;
        margin-top: 8px;
        animation: slideDown 0.3s ease-out;
        min-width: 200px;
    }

    /* Language selector mobile adjustments */
    .btn-language {
        padding: 0.65rem 1.1rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .btn-language #currentLang {
        font-size: 0.8rem;
        min-width: 24px;
    }

    .btn-language i.fa-globe {
        font-size: 0.95rem;
    }

    .language-dropdown {
        width: 200px;
        right: 0;
        padding: 6px;
    }

    .language-dropdown::before {
        right: 16px;
        width: 14px;
        height: 14px;
    }

    .lang-option {
        padding: 10px 12px;
        font-size: 0.9rem;
        gap: 10px;
    }

    .lang-flag {
        font-size: 1.3rem;
        width: 26px;
        height: 26px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-menu.active .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        justify-content: flex-start;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-dark);
        text-decoration: none;
    }

    .navbar-menu.active .nav-link:hover {
        background: rgba(138, 43, 226, 0.1);
        color: var(--primary-purple);
    }

    .navbar-menu.active .nav-link i {
        font-size: 1.1rem;
        color: var(--primary-purple);
        width: 20px;
        text-align: center;
    }

    .navbar-menu.active .nav-link span {
        font-weight: 500;
    }

    /* Mobile login button styling */
    .mobile-login-btn {
        display: none;
    }

    .navbar-menu.active .mobile-login-btn {
        display: flex;
        background: var(--primary-gradient);
        color: var(--white) !important;
        margin-top: 0.5rem;
        border-radius: 12px;
        font-weight: 600;
    }

    .navbar-menu.active .mobile-login-btn:hover {
        background: var(--primary-gradient);
        color: var(--white) !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
    }

    .navbar-menu.active .mobile-login-btn i {
        color: var(--white) !important;
    }
    
    .search-box-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        z-index: 1200;
        position: relative;
    }

    .mobile-menu-toggle i {
        transition: var(--transition);
    }
    
    .hero {
        height: 100dvh;
        min-height: 560px;
        padding: 0 1.25rem;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        padding: 0;
        width: 100%;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        margin-bottom: 1.25rem;
        opacity: 0.9;
    }

    .btn-back {
        padding: 0.5rem 1rem;
        font-size: 0.82rem;
        gap: 0.3rem;
        border-radius: 50px;
    }

    /* Search: stay horizontal on mobile */
    .hero-search {
        flex-direction: row;
        border-radius: 50px;
        padding: 0.3rem;
        gap: 0;
        max-width: 100%;
    }

    .search-input-wrapper {
        background: transparent;
        border-radius: 0;
        padding: 0.6rem 0.85rem;
        gap: 0.55rem;
    }

    .search-input-wrapper i {
        font-size: 1rem;
    }

    .search-input {
        font-size: 0.88rem;
        min-width: 0;
    }

    .btn-search {
        width: auto;
        flex-shrink: 0;
        padding: 0.72rem 1.15rem;
        border-radius: 40px;
        font-size: 0.83rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 100dvh;
        min-height: 500px;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-search {
        padding: 0.28rem;
    }

    .search-input-wrapper {
        padding: 0.55rem 0.7rem;
        gap: 0.45rem;
    }

    .search-input-wrapper i {
        font-size: 0.9rem;
    }

    .search-input {
        font-size: 0.82rem;
    }

    .btn-search {
        padding: 0.65rem 0.95rem;
        font-size: 0.78rem;
    }
    
    .navbar-logo {
        font-size: 1.5rem;
    }
    
    .navbar-logo .logo-img {
        height: 32px;
    }
    
    .btn-login {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-back {
        padding: 0.55rem 0.7rem;
        border-radius: 50%;
        background: var(--primary-gradient);
        color: var(--white);
        box-shadow: 0 3px 10px rgba(138, 43, 226, 0.35);
    }

    .btn-back-text {
        display: none;
    }

    .btn-back i {
        font-size: 1rem;
        margin: 0;
    }
    
    .btn-profile {
        width: 36px;
        height: 36px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }

    /* Language selector small screen adjustments */
    .btn-language {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        gap: 0.45rem;
    }

    .btn-language #currentLang {
        font-size: 0.75rem;
        min-width: 22px;
    }

    .btn-language i.fa-globe {
        font-size: 0.9rem;
    }

    .btn-language i.fa-chevron-down {
        font-size: 0.65rem;
    }

    .language-dropdown {
        width: 180px;
        padding: 5px;
    }

    .language-dropdown::before {
        right: 14px;
        width: 12px;
        height: 12px;
    }

    .lang-option {
        padding: 9px 11px;
        font-size: 0.85rem;
        gap: 9px;
    }

    .lang-flag {
        font-size: 1.2rem;
        width: 24px;
        height: 24px;
    }
}

/* ============== MOBILE BOTTOM NAV ============== */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none; /* hidden by default, shown on small screens */
    z-index: 1200;
    border-top: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.06);
}

.mobile-bottom-nav .mb-nav-link {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 11px;
    font-weight: 600;
}

.mobile-bottom-nav .mb-nav-link i {
    font-size: 18px;
    color: var(--primary-purple);
}

.mobile-bottom-nav .mb-nav-link.active,
.mobile-bottom-nav .mb-nav-link.active span,
.mobile-bottom-nav .mb-nav-link.active i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

@media (max-width: 768px) {
    /* Show bottom nav */
    .mobile-bottom-nav { display: flex; }

    /* Avoid overlap with footer sticky bar */
    body { padding-bottom: 72px; }

    /* Keep top dropdown behavior */
    .navbar-menu.active {
        top: auto;
        bottom: 64px; /* drop above bottom bar if opened */
    }
}

/* ============================================
   PAGE CONNEXION - LAYOUT PRINCIPAL
   ============================================ */

.auth-page {
    display: flex;
    min-height: 100vh;
    background: #f9fafb;
    padding-top: 80px; /* Espace pour la navbar */
}

/* ============================================
   PARTIE GAUCHE - IMAGE PLEINE HAUTEUR
   ============================================ */

.auth-image-section {
    flex: 0 0 50%; /* Exactement 50% de largeur */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

.auth-image-section img {
    width: 100%;
    height: 100%; /* CRUCIAL : Remplit toute la hauteur */
    object-fit: cover; /* Couvre sans déformer */
    object-position: center; /* Centre l'image */
}

/* Overlay optionnel pour améliorer le design */
.auth-image-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(139, 92, 246, 0.3) 0%, 
        rgba(168, 85, 247, 0.5) 100%
    );
    pointer-events: none;
}

/* ============================================
   PARTIE DROITE - FORMULAIRE CENTRÉ
   ============================================ */

.auth-form-section {
    flex: 0 0 50%; /* Exactement 50% de largeur */
    display: flex;
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    padding: 60px 40px; /* Espace de respiration */
    background: white;
}

/* Conteneur du formulaire - LARGEUR LIMITÉE */
.auth-form-wrapper {
    width: 100%;
    max-width: 420px; /* LARGEUR MAXIMALE STRICTE */
}

/* ============================================
   EN-TÊTE DU FORMULAIRE
   ============================================ */

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

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 8px;
    line-height: 1.2;
}

.form-subtitle {
    font-size: 15px;
    color: #6b7280;
    font-weight: 400;
}

/* Onglets Connexion/Inscription */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 2px solid #e5e7eb;
}

.auth-tab {
    flex: 1;
    padding: 14px 0;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: 'Poppins', sans-serif;
}

.auth-tab.active {
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
}

.auth-tab:hover {
    color: #8b5cf6;
}

/* ============================================
   FORMULAIRES
   ============================================ */

.auth-form {
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.auth-form.hidden {
    display: none;
}

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

/* ============================================
   CHAMPS DE FORMULAIRE
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b5cf6;
    font-size: 20px;
    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 54px;
    padding: 0 18px 0 52px; /* Espace pour l'icône */
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    color: #1f2937;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    border-color: #8b5cf6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

/* Bouton toggle visibilité mot de passe */
.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8b5cf6;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    color: #7c3aed;
    transform: translateY(-50%) scale(1.1);
}

.password-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* ============================================
   OPTIONS DE FORMULAIRE
   ============================================ */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #8b5cf6;
}

.checkbox-label {
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
}

.checkbox-label a {
    color: #8b5cf6;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-password {
    font-size: 14px;
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #7c3aed;
    text-decoration: underline;
}

/* ============================================
   BOUTONS
   ============================================ */

/* Bouton principal de connexion */
.btn-primary {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.3);
    font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Séparateur */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider-text {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}

/* Bouton Google */
.btn-google {
    width: 100%;
    height: 54px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-decoration: none; /* Remove underline */
}

.btn-google:hover {
    border-color: #8b5cf6;
    background: #faf5ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
    text-decoration: none; /* Remove underline on hover */
}

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

/* ============================================
   FOOTER DU FORMULAIRE
   ============================================ */

.form-footer {
    text-align: center;
    margin-top: 24px;
}

.signup-prompt {
    font-size: 14px;
    color: #6b7280;
}

.signup-link {
    color: #8b5cf6;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.signup-link:hover {
    color: #7c3aed;
    text-decoration: underline;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary-purple);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--primary-gradient);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 968px) {
    .auth-page {
        flex-direction: column;
        padding-top: 80px;
    }
    
    .auth-image-section {
        flex: 0 0 auto;
        height: 240px; /* Hauteur fixe sur mobile */
    }
    
    .auth-form-section {
        flex: 1;
        padding: 40px 24px;
    }
    
    .auth-form-wrapper {
        max-width: 100%;
    }
    
    .form-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .auth-image-section {
        height: 180px;
    }
    
    .form-header {
        margin-bottom: 32px;
    }
    
    .form-input,
    .btn-primary,
    .btn-google {
        height: 50px;
    }
}

/* ============== PAGE DÉTAILS ÉVÉNEMENT ============== */

.event-details-page { padding-top: 100px; }

/* Payment Buttons Styling */
.payment-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-payment {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.2rem 1.5rem;
  border: none;
  border-radius: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  min-height: 60px;
}

.btn-payment::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-payment:hover::before {
  left: 100%;
}

.btn-payment i {
  font-size: 1.4rem;
  transition: var(--transition);
}

.btn-payment span {
  font-weight: 800;
  letter-spacing: 0.8px;
  font-size: 1.1rem;
}

/* Moncash Button */
.btn-moncash {
  background: linear-gradient(135deg, #b63202 0%, #f10101 100%);
  color: #FFFFFF;
  border: 2px solid transparent;
}

.btn-moncash:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.5);
  background: linear-gradient(135deg, #b63202 0%, #f10101 100%);
}

.btn-moncash:active {
  transform: translateY(0) scale(0.98);
}

/* Natcash Button */
.btn-natcash {
    background: linear-gradient(135deg, #ff9900 0%, #ff9100 100%);
    color: #FFFFFF;
    border: 2px solid transparent;
  }
  
  .btn-natcash:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255, 68, 0, 0.555);
    background: linear-gradient(135deg, #ff9900 0%, #ff9100 100%);
  }
  
  .btn-natcash:active {
    transform: translateY(0) scale(0.98);
  }

/* PayPal Button */
.btn-paypal {
  background: linear-gradient(135deg, #0070BA 0%, #003087 100%);
  color: #FFFFFF;
  border: 2px solid transparent;
}

.btn-paypal:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 112, 186, 0.5);
  background: linear-gradient(135deg, #005EA6 0%, #002A5C 100%);
}

.btn-paypal:active {
  transform: translateY(0) scale(0.98);
}

/* Payment button icons */
.btn-moncash i {
  color: #FFFFFF;
}

.btn-paypal i {
  color: #FFFFFF;
}

/* Responsive adjustments for payment buttons */
@media (max-width: 480px) {
  .payment-buttons {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }
  
  .btn-payment {
    width: 100%;
    min-width: auto;
    padding: 1rem 1.25rem;
    min-height: 55px;
    font-size: 1rem;
  }
  
  .btn-payment i {
    font-size: 1.2rem;
  }
  
  .btn-payment span {
    font-size: 1rem;
  }
}

/* Event flyer image styling - Vertical and Professional */
.flyer-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem;
}

.flyer-wrap {
  position: relative;
  width: 400px;
  height: 520px;
  max-width: 90vw;
  max-height: 70vh;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: #fff;
  border: 1px solid rgba(138, 43, 226, 0.1);
  transition: var(--transition);
}

.flyer-wrap:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(138, 43, 226, 0.2);
}

.flyer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.event-top-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

/* Hero */
.event-hero { position: relative; min-height: 360px; display: grid; }
.event-hero-image { width: 100%; height: 420px; object-fit: cover; display: block; }
.event-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(138, 43, 226, 0.55) 0%, rgba(255, 0, 255, 0.55) 100%); }
.event-hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .75rem; padding-bottom: 2rem; }
.event-hero .event-title { color: var(--white); font-size: 2.8rem; font-weight: 900; text-shadow: 0 8px 24px rgba(0,0,0,.35); }
.event-meta { display: flex; flex-wrap: wrap; gap: .6rem; }
.event-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--text-dark); font-weight: 700; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.event-chip i { color: var(--primary-purple); }

/* Body */
.event-details-section { padding: 2rem 0 3rem; }
.event-details-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; align-items: start; }
.event-info-section { background: var(--white); border-radius: 20px; box-shadow: var(--shadow); padding: 1.4rem 1.35rem; }
.event-info-section h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: .75rem; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.event-info-section p { color: var(--text-dark); margin: .6rem 0; }
.event-bullets { margin: .6rem 0 0 1.1rem; color: var(--text-gray); }
.event-bullets li { margin: .25rem 0; }

/* Ticket widget */
.ticket-widget { position: sticky; top: 100px; background: rgba(255,255,255,0.92); backdrop-filter: blur(6px); border-radius: 20px; box-shadow: var(--shadow); padding: 1.2rem; }
.ticket-widget h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: .6rem; color: var(--text-dark); }
.price-box { display: flex; align-items: baseline; gap: .5rem; margin: .25rem 0 1rem; }
.price-label { color: var(--text-gray); font-weight: 600; }
.price-value { font-size: 1.8rem; font-weight: 900; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ticket-form { display: flex; flex-direction: column; gap: .9rem; }
.select-input { width: 100%; height: 46px; border: 2px solid #eee; border-radius: 12px; padding: 0 .9rem; font-family: 'Poppins', sans-serif; outline: none; transition: var(--transition); }
.select-input:focus { border-color: #c4b5fd; box-shadow: 0 0 0 4px rgba(138,43,226,.12); }
.qty-wrap { display: inline-flex; align-items: center; gap: .4rem; }
.qty-input { width: 68px; height: 46px; text-align: center; border: 2px solid #eee; border-radius: 12px; outline: none; font-family: 'Poppins', sans-serif; font-weight: 700; }
.qty-btn { width: 42px; height: 42px; border-radius: 12px; border: none; cursor: pointer; font-weight: 900; font-size: 1.1rem; background: rgba(138,43,226,.12); color: var(--primary-purple); transition: var(--transition); }
.qty-btn:hover { background: var(--primary-gradient); color: #fff; transform: translateY(-1px); }
.btn-cta-yellow { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.4rem; border-radius: 14px; border: none; cursor: pointer; background: var(--accent-yellow); color: var(--text-dark); font-weight: 900; font-family: 'Poppins', sans-serif; box-shadow: 0 10px 24px rgba(255,215,0,.35); transition: var(--transition); }
.btn-cta-yellow:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 30px rgba(255,215,0,.45); }
.ticket-hint { color: var(--text-gray); display: block; margin-top: .25rem; }

/* Localisation */
.event-location-section { padding: 1rem 0 3rem; }
.event-location-section h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: .9rem; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.location-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.map-embed iframe { width: 100%; height: 360px; border: 0; border-radius: 16px; box-shadow: var(--shadow); }
.address-card { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); padding: 1rem; }
.venue-name { font-weight: 800; font-size: 1.1rem; margin-bottom: .25rem; }
.venue-note { color: var(--text-gray); margin-top: .25rem; }

/* Similaires */
.similar-events-section { padding: .5rem 0 3rem; }
.similar-events-section h2 { text-align: left; font-size: 1.5rem; font-weight: 900; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: .9rem; }
.similar-events-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.similar-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.similar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.similar-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.similar-info { padding: .7rem .8rem; }
.similar-info h3 { font-size: 1rem; font-weight: 800; margin-bottom: .25rem; color: var(--text-dark); }
.similar-info p { color: var(--text-gray); display: flex; align-items: center; gap: .4rem; font-size: .92rem; }
.similar-info i { color: var(--primary-purple); }

/* Responsive */
@media (max-width: 1100px) {
  .event-top-grid { grid-template-columns: 1fr; }
  .ticket-widget { position: static; }
  .location-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .event-hero .event-title { font-size: 2.1rem; }
  .event-hero-image { height: 320px; }
  .similar-events-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .similar-events-grid { grid-template-columns: 1fr; }
}

/* ============== HOME PAGE ENHANCEMENTS ============== */

/* --- Hero floating orbs --- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 2;
    pointer-events: none;
}
.hero-orb-1 {
    width: 520px;
    height: 520px;
    background: rgba(138, 43, 226, 0.45);
    top: -120px;
    right: -80px;
    animation: floatOrb 10s ease-in-out infinite;
}
.hero-orb-2 {
    width: 420px;
    height: 420px;
    background: rgba(255, 0, 255, 0.35);
    bottom: -60px;
    left: -80px;
    animation: floatOrb 13s ease-in-out infinite reverse;
}
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -30px) scale(1.06); }
    66%       { transform: translate(-25px, 20px) scale(0.94); }
}

/* --- Hero badge --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50px;
    padding: 0.45rem 1.1rem;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
    letter-spacing: 0.03em;
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-yellow);
    box-shadow: 0 0 10px var(--accent-yellow);
    animation: pulseDot 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.5); opacity: 0.6; }
}

/* --- Hero features bar --- */
.hero-features {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.1rem 3rem;
    margin-top: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.hero-feature {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    justify-content: center;
}
.hero-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 215, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hero-feature-icon i {
    color: var(--accent-yellow);
    font-size: 1rem;
}
.hero-feature-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.hero-feature-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    white-space: nowrap;
}
.hero-feature-sub {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.1rem;
    white-space: nowrap;
}
.hero-feature-divider {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.22);
    margin: 0 1rem;
    flex-shrink: 0;
}

/* --- Featured events section header --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.section-header .section-title {
    margin-bottom: 0;
}
.btn-see-all {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: rgba(138, 43, 226, 0.09);
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    white-space: nowrap;
    border: 1.5px solid rgba(138, 43, 226, 0.2);
}
.btn-see-all:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateX(3px);
    box-shadow: 0 6px 18px rgba(138, 43, 226, 0.3);
}
.btn-see-all i {
    transition: transform 0.18s ease;
}
.btn-see-all:hover i {
    transform: translateX(4px);
}

/* --- Scroll reveal for event & category cards --- */
.event-card:not(.revealed) {
    opacity: 0;
    transform: translateY(28px);
}
.event-card.revealed {
    animation: revealCard 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.category-card:not(.revealed) {
    opacity: 0;
    transform: translateY(20px);
}
.category-card.revealed {
    animation: revealCard 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes revealCard {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Category color variants --- */
.cat-music    { --cat-bg: rgba(138, 43, 226, 0.08); --cat-hover: #8A2BE2; }
.cat-sport    { --cat-bg: rgba(14, 165, 233, 0.08); --cat-hover: #0EA5E9; }
.cat-theater  { --cat-bg: rgba(236, 72, 153, 0.08); --cat-hover: #EC4899; }
.cat-conference { --cat-bg: rgba(16, 185, 129, 0.08); --cat-hover: #10B981; }
.cat-humor    { --cat-bg: rgba(245, 158, 11, 0.08);  --cat-hover: #F59E0B; }

.category-card {
    background: var(--cat-bg, var(--bg-light));
    border: 2px solid transparent;
}
.category-card:hover {
    background: var(--cat-hover, var(--text-gray));
    border-color: var(--cat-hover, transparent);
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.cat-music    .category-icon { background: linear-gradient(135deg, #8A2BE2, #FF00FF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cat-sport    .category-icon { background: linear-gradient(135deg, #0EA5E9, #38BDF8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cat-theater  .category-icon { background: linear-gradient(135deg, #EC4899, #F43F5E); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cat-conference .category-icon { background: linear-gradient(135deg, #10B981, #34D399); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cat-humor    .category-icon { background: linear-gradient(135deg, #F59E0B, #FCD34D); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* --- CTA Section --- */
.cta-section {
    padding: 7rem 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.28) 0%, transparent 65%);
    pointer-events: none;
}
.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: -120px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.18) 0%, transparent 65%);
    pointer-events: none;
}
.cta-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.cta-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.35);
    color: var(--accent-yellow);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}
.cta-content h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}
.cta-content h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
    line-height: 1.75;
}
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: 0 10px 35px rgba(138, 43, 226, 0.45);
    letter-spacing: 0.01em;
}
.btn-cta:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 45px rgba(138, 43, 226, 0.55);
    color: var(--white);
}
.btn-cta i {
    transition: transform 0.18s ease;
}
.btn-cta:hover i {
    transform: translateX(5px);
}

/* --- Responsive: home enhancements --- */
@media (max-width: 768px) {
    .hero-orb-1 { width: 300px; height: 300px; top: -60px; right: -40px; }
    .hero-orb-2 { width: 240px; height: 240px; bottom: -30px; left: -40px; }

    .hero-features {
        padding: 0.85rem 1rem;
        margin-top: 1.4rem;
        max-width: 100%;
        border-radius: 16px;
    }
    .hero-feature-divider { margin: 0 0.7rem; }
    .hero-feature-title { font-size: 0.74rem; }
    .hero-feature-sub { display: none; }
    .hero-feature-icon { width: 30px; height: 30px; border-radius: 8px; }
    .hero-feature-icon i { font-size: 0.8rem; }
    .hero-feature { gap: 0.45rem; }

    .cta-content h2 { font-size: 2.1rem; }
    .cta-section { padding: 5rem 0; }
}

@media (max-width: 480px) {
    .hero-badge { font-size: 0.76rem; padding: 0.38rem 0.85rem; }

    .hero-features { padding: 0.7rem 0.75rem; border-radius: 14px; }
    .hero-feature-divider { margin: 0 0.4rem; height: 26px; }
    .hero-feature-title { font-size: 0.66rem; }
    .hero-feature-icon { width: 26px; height: 26px; border-radius: 6px; }
    .hero-feature-icon i { font-size: 0.7rem; }
    .hero-feature { gap: 0.35rem; }

    .cta-content h2 { font-size: 1.65rem; }
    .cta-section { padding: 4rem 0; }

    .section-header { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   PROFILE PAGE
   ============================================================ */

/* ── Navbar avatar bubble ── */
.navbar-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    text-decoration: none;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(138,43,226,.35);
}
.navbar-avatar:hover { transform: scale(1.08); box-shadow: var(--shadow-hover); }
.navbar-avatar-initials {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: .5px;
}

/* ── Page shell ── */
.profile-page {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* ── Hero banner ── */
.profile-hero {
    position: relative;
    padding: 3.5rem 0 2.5rem;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.profile-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: .07;
    pointer-events: none;
}
.profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(138,43,226,.4);
    border: 4px solid var(--white);
    overflow: hidden;
}
.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-avatar-initials {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: 2px;
}
.profile-avatar-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #22c55e;
    border: 3px solid var(--white);
}
.profile-hero-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 .3rem;
    line-height: 1.2;
}
.profile-hero-username {
    font-size: 1rem;
    color: var(--primary-purple);
    font-weight: 600;
    margin: 0 0 .5rem;
}
.profile-hero-since {
    font-size: .85rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0;
}

/* ── Stats row ── */
.profile-stats-section { padding: 2rem 0; }
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.profile-stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: var(--transition);
    border: 1px solid rgba(138,43,226,.08);
}
.profile-stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.profile-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.profile-stat-icon.upcoming { background: linear-gradient(135deg,#06b6d4,#0ea5e9); }
.profile-stat-icon.used     { background: linear-gradient(135deg,#22c55e,#16a34a); }
.profile-stat-icon.spent    { background: linear-gradient(135deg,#f59e0b,#d97706); }
.profile-stat-icon i { color: #fff; font-size: 1.1rem; }
.profile-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: .4rem;
}
.profile-stat-value small { font-size: .75rem; font-weight: 600; color: var(--text-gray); }
.profile-stat-label { font-size: .8rem; color: var(--text-gray); font-weight: 500; }

/* ── Content grid ── */
.profile-content-section { padding-bottom: 4rem; }
.profile-content-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ── Sidebar nav ── */
.profile-sidenav {
    background: var(--white);
    border-radius: 18px;
    padding: .75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    gap: .25rem;
    position: sticky;
    top: 100px;
}
.profile-sidenav-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: .92rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}
.profile-sidenav-item i:first-child { font-size: 1rem; width: 18px; text-align: center; color: var(--text-gray); }
.profile-sidenav-item:hover,
.profile-sidenav-item.active {
    background: linear-gradient(135deg,rgba(138,43,226,.1),rgba(255,0,255,.08));
    color: var(--primary-purple);
}
.profile-sidenav-item.active i:first-child,
.profile-sidenav-item:hover i:first-child { color: var(--primary-purple); }
.sidenav-arrow { margin-left: auto; font-size: .75rem; color: var(--text-gray); }
.profile-sidenav-logout { color: #ef4444; margin-top: .5rem; border-top: 1px solid rgba(0,0,0,.06); padding-top: 1rem; }
.profile-sidenav-logout i:first-child { color: #ef4444; }
.profile-sidenav-logout:hover { background: rgba(239,68,68,.08); color: #ef4444; }

/* ── Panels ── */
.profile-panel { display: none; }
.profile-panel.active { display: block; }
.profile-panel-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,.07);
}
.profile-panel-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 .4rem;
}
.profile-panel-header h2 i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.profile-panel-header p { color: var(--text-gray); font-size: .9rem; margin: 0; }

/* ── Form styles ── */
.profile-form {
    background: var(--white);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.profile-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.profile-field { display: flex; flex-direction: column; gap: .45rem; }
.profile-field label { font-size: .85rem; font-weight: 600; color: var(--text-dark); }
.profile-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.profile-input-wrap > i:first-child {
    position: absolute;
    left: 1rem;
    color: var(--text-gray);
    font-size: .9rem;
    pointer-events: none;
}
.profile-input-wrap input {
    width: 100%;
    padding: .8rem 1rem .8rem 2.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: .93rem;
    font-family: inherit;
    color: var(--text-dark);
    background: #f8fafc;
    transition: var(--transition);
    outline: none;
}
.profile-input-wrap input:focus {
    border-color: var(--primary-purple);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(138,43,226,.12);
}
.profile-input-wrap input:disabled {
    background: #f1f5f9;
    color: var(--text-gray);
    cursor: not-allowed;
}
.toggle-pwd {
    position: absolute;
    right: .9rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
    font-size: .9rem;
    padding: .25rem;
    line-height: 1;
    transition: var(--transition);
}
.toggle-pwd:hover { color: var(--primary-purple); }
.field-error {
    font-size: .8rem;
    color: #ef4444;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.field-hint { font-size: .78rem; color: var(--text-gray); font-style: italic; }
.pwd-requirements {
    background: rgba(138,43,226,.06);
    border-radius: 8px;
    padding: .75rem 1rem;
}
.pwd-requirements p {
    font-size: .82rem;
    color: var(--text-gray);
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}
.pwd-requirements p i { color: var(--primary-purple); margin-top: 2px; flex-shrink: 0; }
.profile-form-actions { padding-top: .5rem; }
.btn-profile-save {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 2rem;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(138,43,226,.35);
}
.btn-profile-save:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(138,43,226,.45); }
.btn-profile-save.btn-danger {
    background: linear-gradient(135deg,#ef4444,#dc2626);
    box-shadow: 0 4px 16px rgba(239,68,68,.35);
}
.btn-profile-save.btn-danger:hover { box-shadow: 0 8px 24px rgba(239,68,68,.45); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-content-grid { grid-template-columns: 1fr; }
    .profile-sidenav { position: static; flex-direction: row; flex-wrap: wrap; gap: .4rem; }
    .profile-sidenav-item { flex: 1 1 auto; justify-content: center; font-size: .82rem; padding: .6rem .8rem; }
    .sidenav-arrow { display: none; }
    .profile-sidenav-logout { margin-top: 0; border-top: none; padding-top: .6rem; }
}
@media (max-width: 600px) {
    .profile-hero-inner { flex-direction: column; text-align: center; }
    .profile-hero-since { justify-content: center; }
    .profile-stats-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .profile-stat-card { padding: 1.1rem .9rem; }
    .profile-stat-value { font-size: 1.4rem; }
    .profile-avatar { width: 80px; height: 80px; }
    .profile-avatar-initials { font-size: 1.8rem; }
    .profile-hero-name { font-size: 1.5rem; }
    .profile-form-row { grid-template-columns: 1fr; }
    .profile-form { padding: 1.25rem; }
}

/* ============== SCROLL TO TOP BUTTON ============== */
.scroll-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary, #e63946);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 900;
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    background: var(--primary-dark, #c1121f);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 72px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
}
