/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background-color: #f2f2f2;
  color: #222;
  line-height: 1.6;
}

header, footer {
  background-color: #002147;
  color: white;
  text-align: center;
  padding: 20px 10px;
  position: relative;
}

h1, h2 {
  margin-bottom: 15px;
}

/* Navigazione - Stile Moderno */
nav {
  background: linear-gradient(135deg, #c8102e 0%, #b01229 50%, #c8102e 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 16px 20px;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(200, 16, 46, 0.3);
  position: relative;
  overflow: hidden;
}

nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: nav-shine 3s ease-in-out infinite;
}

@keyframes nav-shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

nav button {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #002147;
  border: 2px solid transparent;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 33, 71, 0.1);
  z-index: 1;
}

nav button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #002147 0%, #0d3a5f 100%);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

nav button:hover::before {
  transform: translateY(0);
}

nav button:hover {
  color: white;
  border-color: #002147;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 33, 71, 0.3);
}

nav button:active {
  transform: translateY(0);
}

/* Pulsante navigazione attivo */
nav button.active {
  background: linear-gradient(135deg, #002147 0%, #0d3a5f 100%);
  color: white;
  border-color: #c8102e;
  box-shadow: 0 4px 15px rgba(0, 33, 71, 0.4);
  transform: translateY(-1px);
}

nav button.active::before {
  transform: translateY(0);
}

nav button.active .badge {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #c8102e;
}

/* Badge per "Le tue Trattative" - Sistema Notifiche Avanzato */
nav button .badge {
  background: linear-gradient(135deg, #c8102e 0%, #dc3545 100%);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7em;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: pulse-badge 2s infinite;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Animazione pulse normale */
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

/* 💥 ANIMAZIONE LAMPEGGIANTE per nuove trattative */
.badge.blink {
  animation: blink-urgent 1.5s ease-in-out infinite !important;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.8) !important;
}

@keyframes blink-urgent {
  0%, 50%, 100% { 
    opacity: 1; 
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
  }
  25%, 75% { 
    opacity: 0.3; 
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(255, 107, 53, 1);
  }
}

/* 💫 ANIMAZIONE ZOOM al login */
.trattative-btn.zoom-login {
  animation: zoom-login 0.8s ease-out forwards !important;
  position: relative;
}

@keyframes zoom-login {
  0% { transform: scale(1); }
  30% { transform: scale(1.15); box-shadow: 0 8px 25px rgba(200, 16, 46, 0.4); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); box-shadow: 0 4px 15px rgba(200, 16, 46, 0.2); }
}

/* ✨ EFFETTO GLOW per trattative attive */
.trattative-btn.has-active {
  background: linear-gradient(135deg, #c8102e 0%, #ff6b35 50%, #c8102e 100%) !important;
  box-shadow: 0 4px 20px rgba(200, 16, 46, 0.3), 0 0 20px rgba(255, 107, 53, 0.2) !important;
  animation: glow-active 3s ease-in-out infinite;
}

@keyframes glow-active {
  0%, 100% { box-shadow: 0 4px 20px rgba(200, 16, 46, 0.3), 0 0 20px rgba(255, 107, 53, 0.2); }
  50% { box-shadow: 0 6px 30px rgba(200, 16, 46, 0.5), 0 0 30px rgba(255, 107, 53, 0.4); }
}

/* Responsività Navigazione */
@media (max-width: 768px) {
  nav {
    padding: 12px 16px;
    gap: 8px;
  }
  
  nav button {
    font-size: 0.8em;
    padding: 10px 16px;
    letter-spacing: 0.3px;
  }
  
  nav button .badge {
    font-size: 0.65em;
    padding: 1px 4px;
    margin-left: 4px;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 10px 12px;
    gap: 6px;
  }
  
  nav button {
    font-size: 0.75em;
    padding: 8px 12px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  nav button {
    width: 100%;
    max-width: 250px;
    font-size: 0.8em;
    padding: 10px 16px;
  }
}

/* Contenitore login/logout e campanella - Migliorato */
#userControls {
  display: flex;
  align-items: center;
  gap: 18px;
  position: absolute;
  top: 18px;
  right: 20px;
  justify-content: flex-end;
  z-index: 100;
}

/* Pulsanti login/logout - Stile Moderno */
#loginBtn,
#logoutBtn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

#loginBtn::before,
#logoutBtn::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 ease;
}

#loginBtn:hover::before,
#logoutBtn:hover::before {
  left: 100%;
}

#loginBtn:hover,
#logoutBtn:hover {
  background: linear-gradient(135deg, #c8102e 0%, #002147 100%);
  border-color: #c8102e;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

#loginBtn:active,
#logoutBtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Stile specifico per logout - Badge rosso */
#logoutBtn {
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.2) 0%, rgba(200, 16, 46, 0.1) 100%);
  border-color: rgba(200, 16, 46, 0.5);
}

#logoutBtn:hover {
  background: linear-gradient(135deg, #c8102e 0%, #dc3545 100%);
  border-color: #c8102e;
}

/* Responsività per pulsanti login/logout */
@media (max-width: 768px) {
  #userControls {
    position: relative;
    top: auto;
    right: auto;
    justify-content: center;
    margin-top: 10px;
    gap: 12px;
  }
  
  #loginBtn,
  #logoutBtn {
    font-size: 0.8em;
    padding: 8px 14px;
    letter-spacing: 0.3px;
  }
}

@media (max-width: 480px) {
  #loginBtn,
  #logoutBtn {
    font-size: 0.75em;
    padding: 6px 12px;
  }
  
  #userControls {
    gap: 10px;
  }
}

/* NOTIFICATION BELL SYSTEM - Stile Facebook */
#notificationBell {
  position: relative;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

#notificationBell:hover {
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.3) 0%, rgba(200, 16, 46, 0.1) 100%);
  border-color: rgba(200, 16, 46, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.25);
}

.bell-icon {
  font-size: 22px;
  color: white;
  transition: all 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

#notificationBell:hover .bell-icon {
  transform: rotate(15deg);
  animation: bellRing 0.6s ease-in-out;
}

@keyframes bellRing {
  0%, 50%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(15deg); }
  20%, 40% { transform: rotate(-10deg); }
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, #c8102e 0%, #dc3545 100%);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 12px;
  min-width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(200,16,46,0.4), 0 0 0 2px white;
  animation: notificationPulse 0.6s ease;
  border: 2px solid white;
}

.notification-badge.show {
  display: flex;
}

@keyframes notificationPulse {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* DROPDOWN NOTIFICHE */
.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 380px;
  max-height: 450px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,249,250,0.98) 100%);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(0,33,71,0.1);
  box-shadow: 0 20px 40px rgba(0,33,71,0.15), 0 8px 16px rgba(0,33,71,0.1);
  z-index: 1000;
  margin-top: 8px;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
  0% { 
    opacity: 0; 
    transform: translateY(-10px) scale(0.95); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

.notification-header {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-header h3 {
  color: white;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.mark-read-btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.mark-read-btn:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.2) 100%);
  transform: translateY(-1px);
}

.notification-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 0;
}

.notification-list::-webkit-scrollbar {
  width: 6px;
}

.notification-list::-webkit-scrollbar-track {
  background: rgba(0,33,71,0.05);
}

.notification-list::-webkit-scrollbar-thumb {
  background: rgba(0,33,71,0.2);
  border-radius: 10px;
}

.notification-item {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,33,71,0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  position: relative;
}

.notification-item:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  transform: translateX(2px);
}

.notification-item.unread {
  background: linear-gradient(135deg, rgba(200,16,46,0.05) 0%, rgba(200,16,46,0.02) 100%);
  border-left: 4px solid #c8102e;
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #c8102e;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(200,16,46,0.5);
}

.notification-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.notification-match {
  font-weight: 700;
  color: #002147;
  font-size: 0.95rem;
  margin: 0;
}

.notification-time {
  font-size: 0.75rem;
  color: rgba(0,33,71,0.6);
  font-weight: 500;
}

.notification-message {
  color: rgba(0,33,71,0.8);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  font-weight: 400;
}

.notification-sender {
  font-weight: 600;
  color: #c8102e;
}

.no-notifications {
  padding: 40px 20px;
  text-align: center;
  color: rgba(0,33,71,0.5);
  font-size: 0.9rem;
  font-weight: 500;
  font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .notification-dropdown {
    width: 320px;
    right: -50px;
  }
  
  #notificationBell {
    padding: 8px;
  }
  
  .bell-icon {
    font-size: 20px;
  }
  
  .notification-badge {
    font-size: 10px;
    padding: 2px 6px;
    min-width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .notification-dropdown {
    width: 280px;
    right: -80px;
  }
}

/* Sezioni */
.section {
  display: none;
  padding: 20px;
  max-width: 700px;
  margin: 80px auto 20px auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.section.active {
  display: block;
}

/* === SEZIONE BOOKING - STILE MODERNO === */
#booking {
  font-family: 'Montserrat', sans-serif;
  max-width: 800px;
  margin: 60px auto 40px auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 33, 71, 0.1);
  border: 1px solid rgba(200, 16, 46, 0.1);
  overflow: hidden;
  position: relative;
}

#booking::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #002147 0%, #c8102e 50%, #002147 100%);
}

/* Header della sezione booking */
.booking-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 40px 40px 30px 40px;
  background: linear-gradient(135deg, rgba(0, 33, 71, 0.03) 0%, rgba(200, 16, 46, 0.02) 100%);
  border-bottom: 1px solid rgba(0, 33, 71, 0.05);
}

.booking-icon {
  font-size: 3em;
  background: linear-gradient(135deg, #c8102e 0%, #002147 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 33, 71, 0.1));
}

.booking-title-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8em;
  font-weight: 700;
  color: #002147;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.booking-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  color: #6c757d;
  margin: 0 0 12px 0;
  font-weight: 500;
}

/* Contatore abbonamenti utente */
.booking-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.booking-counter.counter-available {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #c3e6cb;
}

.booking-counter.counter-full {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 1px solid #f5c6cb;
  animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.counter-label {
  font-weight: 500;
}

.counter-value {
  font-weight: 700;
  font-size: 1.1em;
}

/* Container del form */
.booking-form-container {
  padding: 30px 40px 40px 40px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

/* Form Groups */
.booking-form-container .form-group {
  position: relative;
}

.booking-form-container .form-group label {
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #002147;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-icon {
  font-size: 1.2em;
  filter: grayscale(30%);
}

/* Select elementi */
.booking-form-container select {
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  font-size: 1em;
  font-weight: 500;
  color: #002147;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 33, 71, 0.04);
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  box-sizing: border-box;
}

.booking-form-container select:focus {
  outline: none;
  border-color: #c8102e;
  box-shadow: 0 4px 20px rgba(200, 16, 46, 0.15);
  transform: translateY(-2px);
}

/* SELECT SETTORE - Stile Moderno */
.booking-form-container select option {
  font-family: 'Montserrat', sans-serif;
  padding: 14px 18px;
  font-weight: 500;
  color: #002147;
  background: white;
  border: none;
}

.booking-form-container select option.placeholder-option {
  color: rgba(0,33,71,0.5);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.booking-form-container select option.sector-option {
  color: #002147;
  font-weight: 600;
  background: white;
  transition: all 0.3s ease;
}

.booking-form-container select option.sector-option:hover {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  color: white;
}

.booking-form-container select option:checked {
  background: linear-gradient(135deg, #c8102e 0%, #a50e26 100%);
  color: white;
  font-weight: 700;
}

/* Miglioramenti per il select principale */
.booking-form-container select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002147' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
  padding-right: 50px;
  cursor: pointer;
  position: relative;
}

.booking-form-container select:hover {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.booking-form-container select:focus {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Stile del dropdown quando è aperto (supporto limitato browser) */
.booking-form-container select[size]:not([size="1"]) {
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,33,71,0.15);
  max-height: 300px;
  overflow-y: auto;
}

/* Scrollbar personalizzata per select */
.booking-form-container select::-webkit-scrollbar {
  width: 6px;
}

.booking-form-container select::-webkit-scrollbar-track {
  background: rgba(0,33,71,0.05);
  border-radius: 10px;
}

.booking-form-container select::-webkit-scrollbar-thumb {
  background: rgba(0,33,71,0.2);
  border-radius: 10px;
}

.booking-form-container select::-webkit-scrollbar-thumb:hover {
  background: rgba(0,33,71,0.3);
}

/* Help text modernizzato */
.sector-help {
  background: linear-gradient(135deg, rgba(200,16,46,0.05) 0%, rgba(200,16,46,0.02) 100%);
  border-left: 3px solid #c8102e;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8em;
  color: rgba(0,33,71,0.8);
  margin-top: 8px;
  font-weight: 500;
  font-style: normal;
}

.sector-help:before {
  content: "💡 ";
  font-size: 0.9em;
}

/* Responsive per select */
@media (max-width: 768px) {
  .booking-form-container select {
    font-size: 0.9rem;
    padding: 12px 16px;
    padding-right: 45px;
    background-size: 16px;
    background-position: right 12px center;
  }
  
  .booking-form-container select option {
    padding: 12px 14px;
  }
}

/* Azioni del form */
.booking-actions {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 33, 71, 0.05);
}

.btn-sell-subscription {
  font-family: 'Montserrat', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #c8102e 0%, #002147 100%);
  color: white;
  border: none;
  padding: 18px 32px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(200, 16, 46, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-sell-subscription::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 ease;
}

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

.btn-sell-subscription:hover {
  background: linear-gradient(135deg, #002147 0%, #c8102e 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(200, 16, 46, 0.4);
}

.btn-sell-subscription:active {
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 1.2em;
}

.booking-disclaimer {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85em;
  color: #6c757d;
  margin-top: 15px;
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.4;
}

/* Responsività Sezione Booking */
@media (max-width: 768px) {
  #booking {
    margin: 40px 16px;
    max-width: none;
  }
  
  .booking-header {
    padding: 30px 24px 20px 24px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .booking-icon {
    font-size: 2.5em;
  }
  
  .booking-title-section h2 {
    font-size: 1.5em;
  }
  
  .booking-subtitle {
    font-size: 0.9em;
  }
  
  .booking-counter {
    font-size: 0.8em;
    padding: 6px 12px;
  }
  
  .booking-form-container {
    padding: 24px;
  }
  
  .btn-sell-subscription {
    padding: 16px 28px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .booking-header {
    padding: 24px 20px 16px 20px;
  }
  
  .booking-title-section h2 {
    font-size: 1.3em;
  }
  
  .booking-form-container {
    padding: 20px;
  }
  
  .booking-form-container select {
    padding: 14px 16px;
  }
  
  .btn-sell-subscription {
    padding: 14px 24px;
    font-size: 0.9em;
    gap: 8px;
  }
  
  .form-section {
    gap: 20px;
  }
}

/* ===============================
   MODAL CONFERMA ABBONAMENTO
   =============================== */

.confirm-booking-modal {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 0;
}

.confirm-booking-modal .modal-header {
  background: linear-gradient(135deg, #002147 0%, #0d3a5f 100%);
  color: white;
  padding: 24px 32px;
  margin: 0;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.confirm-booking-modal .modal-title {
  margin: 0;
  font-size: 1.3em;
  font-weight: 600;
  color: white;
}

.confirm-booking-modal .close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.confirm-booking-modal .close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.confirm-booking-modal .modal-body {
  padding: 32px;
  background: white;
}

.security-section {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border-left: 4px solid #c8102e;
}

.security-icon {
  font-size: 2.5em;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.security-section h3 {
  color: #002147;
  margin-bottom: 12px;
  font-weight: 600;
}

.security-section p {
  color: #495057;
  line-height: 1.6;
  margin: 0;
}

.contact-verification {
  margin-bottom: 32px;
  padding: 24px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-verification:focus-within {
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.contact-note {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff3cd, #fef9e7);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #c8102e;
}

.contact-note .note-icon {
  font-size: 1.2em;
  margin-right: 12px;
}

.contact-note strong {
  color: #002147;
}

.phone-verification, .email-verification {
  margin-bottom: 20px;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.phone-verification:focus-within, .email-verification:focus-within {
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
  background: white;
}

.phone-verification label, .email-verification label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #002147;
  font-size: 0.95em;
}

.phone-verification .label-icon, .email-verification .label-icon {
  margin-right: 8px;
}

.phone-verification input, .email-verification input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: white;
}

.phone-verification input:focus, .email-verification input:focus {
  outline: none;
  border-color: #c8102e;
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.1);
}

.help-text {
  margin-top: 8px;
  color: #6c757d;
  font-size: 0.85em;
  font-style: italic;
}

.rules-section {
  margin-bottom: 24px;
}

.rules-section h4 {
  color: #002147;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.1em;
}

.rules-content {
  margin-bottom: 24px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #28a745;
  transition: all 0.3s ease;
}

.rule-item:hover {
  background: #e9ecef;
  transform: translateX(4px);
}

.rule-icon {
  font-size: 1.1em;
  margin-top: 2px;
  flex-shrink: 0;
}

.rule-item p {
  margin: 0;
  color: #495057;
  line-height: 1.5;
  font-size: 0.95em;
}

.agreement-checkbox {
  padding: 20px;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #ffc107;
  border-radius: 12px;
  margin-bottom: 20px;
}

.privacy-checkbox {
  padding: 20px;
  background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
  border: 2px solid #0288d1;
  border-radius: 12px;
  margin-bottom: 24px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
}

.checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 20px;
  width: 20px;
  background-color: white;
  border: 2px solid #c8102e;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-container:hover .checkmark {
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #c8102e;
  border-color: #c8102e;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-text {
  color: #495057;
  line-height: 1.5;
  font-size: 0.95em;
  font-weight: 500;
}

.checkbox-text a {
  color: #c8102e;
  text-decoration: underline;
  font-weight: 600;
}

.checkbox-text a:hover {
  color: #a00d26;
  text-decoration: none;
}

.data-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 8px;
  border-left: 4px solid #2196f3;
}

.info-icon {
  font-size: 1.2em;
  flex-shrink: 0;
}

.data-info p {
  margin: 0;
  color: #1565c0;
  font-size: 0.9em;
  line-height: 1.5;
}

.modal-footer {
  padding: 24px 32px;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e9ecef;
}

.btn-secondary, .btn-primary {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9em;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 130px;
  justify-content: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

/* Pulsante Apri Trattativa - Design Premium Moderno */
.btn-trattativa {
  background: linear-gradient(135deg, #c8102e 0%, #e31837 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 4px 15px rgba(200, 16, 46, 0.3),
    0 2px 6px rgba(200, 16, 46, 0.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-trattativa::before {
  content: '💎';
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-trattativa::after {
  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.6s ease;
}

.btn-trattativa:hover {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(0, 33, 71, 0.4),
    0 4px 12px rgba(0, 33, 71, 0.3);
}

.btn-trattativa:hover::before {
  transform: scale(1.2) rotate(10deg);
}

.btn-trattativa:hover::after {
  left: 100%;
}

.btn-trattativa:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

/* Pulsante Contatta Venditore - Design Premium Genoa */
.btn-contact-seller {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
  color: #002147;
  border: 2px solid #002147;
  border-radius: 12px;
  padding: 14px 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 4px 15px rgba(0, 33, 71, 0.15),
    0 2px 8px rgba(0, 33, 71, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.6);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  backdrop-filter: blur(15px);
  min-width: 180px;
}

.btn-contact-seller::before {
  content: '';
  /* Icona rimossa poiché ora è nel testo HTML */
}

.btn-contact-seller::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(200, 16, 46, 0.1), 
    transparent
  );
  transition: left 0.5s ease;
}

.btn-contact-seller:hover {
  background: linear-gradient(135deg, #c8102e 0%, #e31837 100%);
  color: white;
  border-color: #c8102e;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(200, 16, 46, 0.3),
    0 4px 15px rgba(200, 16, 46, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.2);
  letter-spacing: 1.5px;
}

.btn-contact-seller:hover::before {
  /* Animazione icona rimossa */
}

.btn-contact-seller:hover::after {
  left: 100%;
}

.btn-contact-seller:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 33, 71, 0.2);
}

/* Container azioni pulsanti - Design premium */
.listing-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 33, 71, 0.1);
}

@media (min-width: 480px) {
  .listing-actions {
    flex-direction: row;
    gap: 16px;
    justify-content: space-between;
  }
  
  .btn-trattativa {
    flex: 1.2;
  }
  
  .btn-contact-seller {
    flex: 1;
  }
}

/* Responsive Design per Pulsanti Premium */
@media (max-width: 768px) {
  .btn-trattativa,
  .btn-contact-seller {
    padding: 14px 20px;
    font-size: 13px;
    border-radius: 10px;
    gap: 6px;
  }
  
  .btn-trattativa::before,
  .btn-contact-seller::before {
    font-size: 14px;
  }
}

/* Animazioni di caricamento per i pulsanti */
.btn-trattativa.loading,
.btn-contact-seller.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-trattativa.loading::before,
.btn-contact-seller.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: button-spin 1s linear infinite;
}

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

/* Focus states per accessibilità */
.btn-trattativa:focus,
.btn-contact-seller:focus {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(200, 16, 46, 0.3),
    0 4px 15px rgba(200, 16, 46, 0.2);
}

/* 🎯 Stati pulsanti contatto venditore - Single Contact System */
.btn-contact-active {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
  border: 2px solid #d68910 !important;
  color: white !important;
  animation: pulse-active 1.5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.btn-contact-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shine-active 2s ease-in-out infinite;
}

.btn-contact:disabled {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%) !important;
  border: 2px solid #7f8c8d !important;
  color: #ecf0f1 !important;
  cursor: not-allowed !important;
  opacity: 0.7;
  transform: none !important;
}

.btn-contact:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

@keyframes pulse-active {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes shine-active {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Stili di fallback per compatibilità */
.btn-secondary {
  background: transparent;
  color: #002147;
  border: 2px solid #002147;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  color: #c8102e;
  border-color: #c8102e;
  background: rgba(200, 16, 46, 0.05);
}

.btn-primary {
  background: #c8102e;
  color: white;
  border: 2px solid #c8102e;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: #002147;
  border-color: #002147;
  color: white;
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 33, 71, 0.25);
}

.btn-primary:disabled {
  background: #adb5bd;
  border-color: #adb5bd;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

/* Responsive per modal conferma */
@media (max-width: 768px) {
  .confirm-booking-modal {
    max-width: 95vw;
    margin: 20px;
  }
  
  .confirm-booking-modal .modal-header,
  .confirm-booking-modal .modal-body,
  .modal-footer {
    padding: 20px;
  }
  
  .security-section,
  .phone-verification {
    padding: 16px;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .btn-secondary, .btn-primary {
    width: 100%;
  }
}

/* ===============================
   FINE MODAL CONFERMA ABBONAMENTO
   =============================== */

/* Form */
form {
  max-width: 450px;
  margin: auto;
  padding: 20px;
}

/* Form Styles nel Modal - Moderni */
.modal-content form label {
  font-family: 'Montserrat', sans-serif;
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #002147;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-content form input,
.modal-content form select {
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  padding: 14px 16px;
  margin-top: 0;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  font-size: 1em;
  transition: all 0.3s ease;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 33, 71, 0.04);
  box-sizing: border-box;
}

.modal-content form input:focus,
.modal-content form select:focus {
  border-color: #c8102e;
  outline: none;
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.1);
  transform: translateY(-2px);
}

.modal-content form input::placeholder {
  color: #6c757d;
  font-weight: 400;
}

/* Pulsanti Submit nel Modal */
.modal-content button[type="submit"],
.modal-content form button {
  font-family: 'Montserrat', sans-serif;
  margin-top: 25px;
  background: linear-gradient(135deg, #c8102e 0%, #002147 100%);
  color: white;
  padding: 16px;
  border: none;
  width: 100%;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
  position: relative;
  overflow: hidden;
}

.modal-content button[type="submit"]::before,
.modal-content form button::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 ease;
}

.modal-content button[type="submit"]:hover::before,
.modal-content form button:hover::before {
  left: 100%;
}

.modal-content button[type="submit"]:hover,
.modal-content form button:hover {
  background: linear-gradient(135deg, #002147 0%, #c8102e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(200, 16, 46, 0.4);
}

.modal-content button[type="submit"]:active,
.modal-content form button:active {
  transform: translateY(0);
}

/* Separatore HR nel Modal */
.modal-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e9ecef, transparent);
  margin: 30px 0;
  position: relative;
}

.modal-content hr::after {
  content: 'O';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #f8f9fa;
  color: #6c757d;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 50%;
  font-size: 0.8em;
}

/* Messaggi nel Modal - Moderni */
.modal-content .form-message {
  font-family: 'Montserrat', sans-serif;
  margin-top: 15px;
  font-weight: 600;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9em;
}

.modal-content .success-msg {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #c3e6cb;
}

.modal-content .error-msg {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsività Modal */
@media (max-width: 768px) {
  .modal-content {
    padding: 30px 24px;
    margin: 20px;
    max-width: none;
    width: calc(100% - 40px);
  }
  
  .modal-content h2 {
    font-size: 1.5em;
    margin-bottom: 25px;
  }
  
  .modal-content form input,
  .modal-content form select {
    padding: 12px 14px;
  }
  
  .modal-content button[type="submit"],
  .modal-content form button {
    padding: 14px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 24px 20px;
    border-radius: 16px;
  }
  
  .modal-content h2 {
    font-size: 1.3em;
  }
  
  .modal-content form label {
    font-size: 0.8em;
    margin-top: 16px;
  }
}

/* SEZIONE STORICO PRENOTAZIONI - Design Moderno */
#history {
  max-width: 1000px;
  margin: 20px auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  border: 1px solid rgba(0,33,71,0.1);
  box-shadow: 0 10px 30px rgba(0,33,71,0.08);
  padding: 0;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

/* Header della sezione */
.section-header {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  padding: 25px 30px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-content .section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 5px 0;
  font-family: 'Montserrat', sans-serif;
}

.header-content .section-subtitle {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.9;
  font-weight: 400;
}

.header-stats {
  display: flex;
  gap: 20px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  padding: 15px 20px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  min-width: 80px;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  margin-top: 4px;
}

/* Container principale */
.storico-container {
  padding: 25px 30px;
}

/* Filtri */
.storico-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 18px;
  border: 2px solid rgba(0,33,71,0.15);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #002147;
  border-radius: 25px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,33,71,0.08);
}

.filter-btn:hover {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  color: white;
  border-color: #002147;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,33,71,0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, #c8102e 0%, #a50e26 100%);
  color: white;
  border-color: #c8102e;
  box-shadow: 0 4px 15px rgba(200,16,46,0.3);
}

/* Lista storico */
.storico-list {
  display: grid;
  gap: 20px;
}

.storico-item {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid rgba(0,33,71,0.08);
  box-shadow: 0 4px 15px rgba(0,33,71,0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.storico-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,33,71,0.12);
  border-color: rgba(200,16,46,0.2);
}

.storico-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #c8102e 0%, #002147 100%);
}

.storico-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.match-info {
  flex: 1;
}

.match-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #002147;
  margin: 0 0 5px 0;
  font-family: 'Montserrat', sans-serif;
}

.match-details {
  font-size: 0.9rem;
  color: rgba(0,33,71,0.7);
  font-weight: 500;
}

.transaction-badge {
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.transaction-badge.vendita {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.transaction-badge.acquisto {
  background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
  color: white;
}

.storico-item-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-label {
  font-size: 0.8rem;
  color: rgba(0,33,71,0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1rem;
  color: #002147;
  font-weight: 600;
}

.price-value {
  color: #c8102e;
  font-size: 1.1rem;
  font-weight: 700;
}

.date-value {
  color: rgba(0,33,71,0.8);
  font-size: 0.9rem;
}

/* Stato vuoto */
.storico-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(0,33,71,0.6);
}

.storico-empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.3;
}

.storico-empty h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #002147;
  margin: 0 0 10px 0;
  font-family: 'Montserrat', sans-serif;
}

.storico-empty p {
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  #history {
    margin: 10px;
    border-radius: 15px;
  }
  
  .section-header {
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .storico-container {
    padding: 20px;
  }
  
  .header-content .section-title {
    font-size: 1.4rem;
  }
  
  .storico-filters {
    justify-content: center;
  }
  
  .filter-btn {
    font-size: 0.8rem;
    padding: 8px 15px;
  }
  
  .storico-item {
    padding: 20px;
  }
  
  .storico-item-header {
    flex-direction: column;
    gap: 10px;
  }
  
  .storico-item-body {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .match-title {
    font-size: 1.1rem;
  }
}

/* SEZIONE PROFILO UTENTE - Design Moderno */
#profile {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  border: 1px solid rgba(0,33,71,0.1);
  box-shadow: 0 10px 30px rgba(0,33,71,0.08);
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

.profile-container {
  display: flex;
  flex-direction: column;
}

/* Header del profilo */
.profile-header {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  padding: 30px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.profile-avatar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
  border: 3px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.avatar-initial {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

.avatar-info .profile-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 5px 0;
  font-family: 'Montserrat', sans-serif;
}

.avatar-info .profile-subtitle {
  font-size: 0.95rem;
  margin: 0 0 10px 0;
  opacity: 0.9;
  font-weight: 400;
}

.verification-status {
  display: flex;
  gap: 8px;
}

.profile-stats {
  display: flex;
  gap: 20px;
}

.stat-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  padding: 15px 20px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  min-width: 80px;
}

.stat-item .stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
}

.stat-item .stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  margin-top: 4px;
}

/* Contenuto del profilo */
.profile-content {
  padding: 30px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.section-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: #002147;
  margin: 0 0 20px 0;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form moderno */
.modern-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

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

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #002147;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}

.label-icon {
  font-size: 1rem;
}

.form-group input {
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid rgba(0,33,71,0.1);
  font-size: 0.95rem;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,33,71,0.05);
}

.form-group input:focus {
  outline: none;
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
  transform: translateY(-1px);
  background: white;
}

.form-group input::placeholder {
  color: rgba(0,33,71,0.5);
  font-weight: 400;
}

/* Azioni del form */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,33,71,0.1);
}

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 25px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #c8102e 0%, #a50e26 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(200,16,46,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,33,71,0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #002147;
  border: 2px solid rgba(0,33,71,0.2);
  box-shadow: 0 2px 8px rgba(0,33,71,0.1);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-color: rgba(0,33,71,0.3);
  transform: translateY(-1px);
}

/* Sezione preferenze */
.profile-preferences {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid rgba(0,33,71,0.08);
  box-shadow: 0 4px 15px rgba(0,33,71,0.06);
  height: fit-content;
}

.preferences-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preference-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0,33,71,0.08);
  box-shadow: 0 2px 8px rgba(0,33,71,0.05);
  transition: all 0.3s ease;
}

.preference-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,33,71,0.1);
}

.preference-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #002147;
  margin: 0 0 4px 0;
  font-family: 'Montserrat', sans-serif;
}

.preference-info p {
  font-size: 0.85rem;
  color: rgba(0,33,71,0.7);
  margin: 0;
  font-weight: 400;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 28px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
  transition: all 0.3s ease;
  border-radius: 28px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .slider {
  background: linear-gradient(135deg, #c8102e 0%, #a50e26 100%);
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(26px);
}

/* 📊 POPUP STATISTICHE SITO - Design Genoa CFC */
.stats-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 33, 71, 0.3);
  max-width: 600px;
  width: 95%;
  position: relative;
  overflow: hidden;
  animation: statsPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stats-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #c8102e 0%, #002147 50%, #c8102e 100%);
}

.stats-modal-header {
  text-align: center;
  padding: 30px 30px 20px;
  position: relative;
}

.stats-logo {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: statsLogoSpin 2s ease-in-out infinite alternate;
}

.stats-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #002147;
  margin: 0;
  line-height: 1.3;
}

.genoa-text {
  color: #c8102e;
  text-shadow: 2px 2px 4px rgba(200, 16, 46, 0.2);
}

.stats-modal-body {
  padding: 0 30px 30px;
}

.stats-intro {
  text-align: center;
  margin-bottom: 25px;
}

.stats-intro p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: #495057;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.stat-card {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 33, 71, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: all 0.3s ease;
}

.stat-card.stat-users::before {
  background: linear-gradient(90deg, #17a2b8, #20c997);
}

.stat-card.stat-selling::before {
  background: linear-gradient(90deg, #c8102e, #ff6b35);
}

.stat-card.stat-sold::before {
  background: linear-gradient(90deg, #28a745, #20c997);
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 33, 71, 0.2);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #002147;
  margin: 5px 0;
  text-shadow: 2px 2px 4px rgba(0, 33, 71, 0.1);
  animation: statsCounterPulse 2s ease-in-out infinite;
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-cta {
  background: linear-gradient(135deg, #c8102e 0%, #a50e26 100%);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(200, 16, 46, 0.3);
}

.stats-cta p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.stats-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.stats-btn-primary,
.stats-btn-secondary {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 25px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 150px;
}

.stats-btn-primary {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  color: #c8102e;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.stats-btn-primary:hover {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 33, 71, 0.4);
}

.stats-btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.stats-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #c8102e;
  border-color: white;
  transform: translateY(-3px);
}

.stats-footer {
  text-align: center;
  padding: 15px;
  background: rgba(200, 16, 46, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(200, 16, 46, 0.1);
}

.stats-footer small {
  font-family: 'Montserrat', sans-serif;
  color: #6c757d;
  font-weight: 500;
}

/* Animazioni */
@keyframes statsPopIn {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes statsLogoSpin {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(10deg) scale(1.1); }
}

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

/* Responsiveness */
@media (max-width: 768px) {
  .stats-modal-content {
    max-width: 95%;
    margin: 20px;
  }
  
  .stats-modal-header,
  .stats-modal-body {
    padding: 20px;
  }
  
  .stats-title {
    font-size: 1.3rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stats-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .stats-btn-primary,
  .stats-btn-secondary {
    width: 100%;
    max-width: 250px;
  }
}

/* Chiusura close button personalizzata */
.stats-modal-content .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #6c757d;
  background: rgba(108, 117, 125, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.stats-modal-content .close:hover {
  color: #c8102e;
  background: rgba(200, 16, 46, 0.1);
  transform: rotate(90deg) scale(1.1);
}

/* Badge email verificata */
.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Montserrat', sans-serif;
}

.badge.small {
  padding: 4px 8px;
  font-size: 0.7rem;
}

.badge.verified {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(40,167,69,0.3);
}

.badge.unverified {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  color: #000;
  box-shadow: 0 2px 8px rgba(255,193,7,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  #profile {
    margin: 10px;
    border-radius: 15px;
  }
  
  .profile-header {
    padding: 20px;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .profile-avatar {
    flex-direction: column;
    gap: 15px;
  }
  
  .avatar-circle {
    width: 60px;
    height: 60px;
  }
  
  .avatar-initial {
    font-size: 1.5rem;
  }
  
  .avatar-info .profile-title {
    font-size: 1.4rem;
  }
  
  .profile-stats {
    justify-content: center;
  }
  
  .profile-content {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  .preference-item {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Ticket */
#ticket {
  max-width: 700px;
  margin: 20px auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(200, 17, 46, 0.2);
  padding: 20px;
  color: #002147;
  font-weight: 600;
  font-size: 1.2em;
  cursor: pointer;
  text-align: center;
}

/* Modal - Stile Moderno */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0, 33, 71, 0.8) 0%, rgba(200, 16, 46, 0.6) 100%);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.active,
.modal[style*="display: flex"] {
  display: flex;
}

.modal-content {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  color: #002147;
  box-shadow: 0 20px 60px rgba(0, 33, 71, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: modalSlideIn 0.4s ease;
  transform-origin: center;
}

@keyframes modalSlideIn {
  from { 
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
  }
  to { 
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Header del Modal */
.modal-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8em;
  font-weight: 700;
  color: #002147;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  letter-spacing: -0.5px;
}

.modal-content h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #c8102e 0%, #002147 100%);
  border-radius: 2px;
}

/* Pulsante chiusura modale - Moderno */
.close {
  position: absolute;
  top: 15px; 
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #6c757d;
  font-weight: 300;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(108, 117, 125, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close:hover {
  background: #c8102e;
  color: white;
  transform: scale(1.1);
}

/* === STILI CHAT RIMOSSI === */

/* LISTA ABBONAMENTI IN VENDITA HOME */
#homeListings {
  margin: 25px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 850px;
  padding: 0 16px;
}

/* Home Listings - Stile Moderno */
.home-listing-item {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 33, 71, 0.08);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.home-listing-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 33, 71, 0.15);
  border-color: #c8102e;
}

.home-listing-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #002147 0%, #c8102e 100%);
}

/* Header con squadre e badge */
.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.team-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: #fff;
  padding: 4px;
  object-fit: contain;
}

.match-info {
  flex: 1;
  text-align: center;
}

.match-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3em;
  font-weight: 700;
  color: #002147;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}

.match-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9em;
  color: #6c757d;
  font-weight: 500;
  margin: 0;
}

/* Badge di stato */
.listing-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge-status {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 20px;
  text-align: center;
  min-width: 100px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-available {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  position: relative;
  overflow: hidden;
  animation: availablePulse 3s ease-in-out infinite;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.status-available::before {
  content: '💰';
  position: absolute;
  top: 50%;
  left: -30px;
  transform: translateY(-50%);
  font-size: 1.2em;
  animation: slideInOut 4s ease-in-out infinite;
}

.status-available::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shine 3s ease-in-out infinite;
}

.status-available:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.status-negotiation {
  background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
  color: white;
  position: relative;
  overflow: hidden;
  animation: negotiationUrgent 2s ease-in-out infinite;
  border: 2px solid transparent;
}

.status-negotiation::before {
  content: '⏰';
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
  font-size: 1.1em;
  animation: urgentBounce 1.5s ease-in-out infinite;
}

.status-negotiation::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff6b35, #ffc107, #fd7e14);
  z-index: -1;
  border-radius: 20px;
  animation: rotateBorder 3s linear infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3); }
  50% { box-shadow: 0 4px 16px rgba(40, 167, 69, 0.5); }
}

@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3); }
  50% { box-shadow: 0 4px 16px rgba(253, 126, 20, 0.5); }
}

/* 🚀 KEYFRAMES ANIMAZIONI AVANZATE PER BADGE */

/* Animazioni DISPONIBILE */
@keyframes availablePulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.5);
  }
}

@keyframes slideInOut {
  0%, 100% { left: -30px; opacity: 0; }
  25%, 75% { left: 8px; opacity: 1; }
  50% { left: 8px; opacity: 0.7; }
}

@keyframes shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Animazioni IN TRATTATIVA */
@keyframes negotiationUrgent {
  0%, 100% { 
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
    transform: scale(1);
  }
  25% { 
    background: linear-gradient(135deg, #ff6b35 0%, #fd7e14 100%);
    transform: scale(1.03);
  }
  50% { 
    background: linear-gradient(135deg, #ffc107 0%, #ff6b35 100%);
    transform: scale(1.05);
  }
  75% { 
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
    transform: scale(1.03);
  }
}

@keyframes urgentBounce {
  0%, 100% { 
    right: -25px; 
    transform: translateY(-50%) scale(1);
  }
  50% { 
    right: 8px; 
    transform: translateY(-50%) scale(1.2);
  }
}

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

/* Animazioni VENDUTO */
@keyframes soldCelebration {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
  }
  25% { 
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(111, 66, 193, 0.4);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
  }
  75% { 
    transform: scale(0.98);
    box-shadow: 0 3px 12px rgba(111, 66, 193, 0.3);
  }
}

@keyframes celebrateJump {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  25% { 
    transform: translate(-50%, -60%) scale(1.2) rotate(10deg);
  }
  50% { 
    transform: translate(-50%, -40%) scale(1.1) rotate(-5deg);
  }
  75% { 
    transform: translate(-50%, -55%) scale(1.15) rotate(5deg);
  }
}

.status-sold {
  background: linear-gradient(135deg, #dc3545 0%, #6f42c1 100%);
  color: white;
  position: relative;
  overflow: hidden;
  animation: soldCelebration 4s ease-in-out infinite;
  opacity: 0.8;
}

.status-sold::before {
  content: '🎉';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4em;
  animation: celebrateJump 2s ease-in-out infinite;
}

.status-sold::after {
  content: 'VENDUTO!';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 900;
  font-size: 0.9em;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 🔧 ACCESSIBILITÀ: Rispetta le preferenze utente per movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  .status-available,
  .status-negotiation,
  .status-sold {
    animation: none !important;
  }
  
  .status-available::after,
  .status-negotiation::after,
  .status-sold::before {
    animation: none !important;
  }
  
  .status-negotiation::before {
    animation: none !important;
  }
}

/* 📱 OTTIMIZZAZIONI MOBILE per performance */
@media (max-width: 768px) {
  .status-available {
    animation-duration: 4s; /* Più lenta su mobile */
  }
  
  .status-negotiation {
    animation-duration: 3s; /* Più lenta su mobile */
  }
  
  .status-sold {
    animation-duration: 5s; /* Più lenta su mobile */
  }
}

/* Hover effects per desktop */
@media (min-width: 769px) {
  .badge-status:hover {
    cursor: default;
    filter: brightness(1.1);
    transform: scale(1.02);
    transition: all 0.2s ease;
  }
  
  .status-available:hover {
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.6);
  }
}

/* 🎯 ANIMAZIONE SPOTLIGHT per nuovo abbonamento */
.new-listing-spotlight {
  position: relative;
  overflow: visible !important;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid #c8102e;
  border-radius: 15px;
}

.new-listing-spotlight::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, #c8102e, #002147, #c8102e, #002147);
  background-size: 400% 400%;
  border-radius: 20px;
  z-index: -1;
  animation: spotlightGlow 2s ease-in-out;
}

.new-listing-spotlight::after {
  content: '🆕 NUOVO!';
  position: absolute;
  top: -15px;
  right: -10px;
  background: linear-gradient(135deg, #c8102e 0%, #ff4757 100%);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4);
  animation: newBadgeBounce 0.6s ease-out;
  z-index: 1001;
}

@keyframes spotlightGlow {
  0%, 100% {
    background-position: 0% 50%;
    opacity: 0.8;
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

@keyframes newBadgeBounce {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.3) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* 🚀 NUOVE ANIMAZIONI AVANZATE */
.listing-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sector-price {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sector-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  background: linear-gradient(135deg, #002147 0%, #0d3a5f 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(0, 33, 71, 0.2);
}

.price-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  background: linear-gradient(135deg, #c8102e 0%, #e74c3c 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.2);
}

.card-seller {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8em;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 4px; /* Spazio per la data */
}

/* 📅 Data e ora inserimento abbonamento */
.insertion-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75em;
  color: #8e9499;
  font-weight: 400;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  padding: 2px 6px;
  background: rgba(200, 16, 46, 0.05);
  border-radius: 8px;
  border-left: 2px solid rgba(200, 16, 46, 0.3);
}

.insertion-date::before {
  content: '🕐';
  font-size: 0.9em;
}

/* Variante per trattative e storico */
.abbo-card .insertion-date,
.storico-item .insertion-date {
  background: rgba(200, 16, 46, 0.08);
  font-size: 0.8em;
  margin: 4px 0;
  display: inline-flex;
}

/* Responsiveness per data inserimento */
@media (max-width: 600px) {
  .insertion-date {
    font-size: 0.7em;
  }
  
  .insertion-date::before {
    font-size: 0.8em;
  }
  
  .abbo-card .insertion-date,
  .storico-item .insertion-date {
    font-size: 0.75em;
  }
}

/* Azioni */
.listing-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.btn-primary {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #002147 0%, #c8102e 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1em;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 33, 71, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-contact-seller {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #c8102e 0%, #8b0e24 100%);
  color: white;
  border: 2px solid #002147;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.9em;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 12px rgba(200, 16, 46, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-contact-seller::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 ease;
}

.btn-contact-seller:hover {
  background: linear-gradient(135deg, #002147 0%, #1a3a5c 100%);
  border-color: #c8102e;
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(0, 33, 71, 0.4);
}

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

.btn-contact-seller:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 33, 71, 0.3);
  background: linear-gradient(135deg, #c8102e 0%, #002147 100%);
}

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

/* Messaggio nessun listing */
.no-listings {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  font-size: 1.1em;
  color: #6c757d;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #dee2e6;
}

/* Responsività Home Listings */
@media (max-width: 768px) {
  .home-listing-item {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .listing-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .match-teams {
    gap: 12px;
  }
  
  .team-logo {
    width: 40px;
    height: 40px;
  }
  
  .match-title {
    font-size: 1.1em;
  }
  
  .sector-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .btn-primary {
    padding: 12px 24px;
    font-size: 0.9em;
  }
  
  .badge-status {
    font-size: 0.7em;
    padding: 5px 10px;
    min-width: 80px;
  }
}

/* --- HERO STILE SKY SPORT (senza CTA) --- */
#nextMatchSection {
  max-width: 1100px;
  margin: 20px auto 30px auto;
  padding: 28px;
  border-radius: 16px;
  color: white;
  background: radial-gradient(1200px 400px at 50% -10%, rgba(0,33,71,0.9), rgba(0,20,50,0.96) 60%, rgba(0,12,35,1) 100%),
              linear-gradient(135deg, rgba(200,16,46,0.08), rgba(0,33,71,0.08));
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 30px rgba(200,16,46,0.2);
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
}

.league-tag {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  margin-bottom: 12px;
}

.next-match-card {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  align-items: center;
  gap: 24px;
}

.team {
  width: 120px;
  height: 120px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
  transition: transform 0.25s ease;
}
.team:hover { transform: scale(1.04); }

.match-info {
  text-align: center;
}

.match-description {
  font-size: 1.6em;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.vs-badge {
  display: inline-block;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 6px auto 10px auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(2px);
}

.match-datetime {
  font-size: 1.05em;
  margin-bottom: 12px;
  font-weight: 600;
  opacity: 0.95;
}

.countdown {
  font-size: 1.25em;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px rgba(200, 17, 46, 0.8);
  margin-bottom: 2px;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(200,17,46,0.6); }
  50% { text-shadow: 0 0 16px rgba(200,17,46,1); }
}

/* Responsive */
@media (max-width: 700px) {
  .next-match-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .team {
    width: 86px;
    height: 86px;
    margin: 0 auto;
  }
  .match-description { font-size: 1.35em; }
  .countdown { font-size: 1.1em; }
}

/* --- PROSSIMA PARTITA IN CASA (Stile più piccolo) --- */
#upcomingMatchSection {
  max-width: 700px;
  margin: 15px auto 25px auto;
  padding: 0 16px;
}

.upcoming-match-card {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 33, 71, 0.06);
  padding: 16px 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.upcoming-match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #002147 0%, #c8102e 100%);
}

.upcoming-match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 33, 71, 0.12);
  border-color: #c8102e;
}

.upcoming-header {
  text-align: center;
  margin-bottom: 12px;
}

.upcoming-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6c757d;
  background: #f8f9fa;
  padding: 4px 12px;
  border-radius: 15px;
  border: 1px solid #dee2e6;
}

.upcoming-match-content {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 16px;
}

.upcoming-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background: #fff;
  padding: 3px;
  object-fit: contain;
}

.upcoming-match-info {
  text-align: center;
}

.upcoming-teams {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  color: #002147;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.upcoming-datetime {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85em;
  color: #6c757d;
  font-weight: 500;
  margin: 0;
}

/* Responsive per prossima partita */
@media (max-width: 600px) {
  .upcoming-match-content {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  
  .upcoming-logo {
    width: 45px;
    height: 45px;
    margin: 0 auto;
  }
  
  .upcoming-teams {
    font-size: 1em;
  }
  
  .upcoming-datetime {
    font-size: 0.8em;
  }
  
  .upcoming-label {
    font-size: 0.65em;
    padding: 3px 10px;
  }
}


/* Logo + Titolo */
.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.site-logo {
  height: 60px;
  width: auto;
}

@media (max-width: 600px) {
  .logo-title {
    flex-direction: column;
  }
  .site-logo {
    height: 80px;
  }
}

/* --- Brand header with responsive logo --- */
.site-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 15px;
  padding: 0 16px;
  flex-wrap: wrap;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: #fff;
  padding: 4px;
  border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.4);
  border-color: #c8102e;
}

/* 🎫 ICONA BIGLIETTO ANIMATA */
#ticketNotification {
  position: relative;
  margin-right: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ticket-icon {
  font-size: 2rem;
  opacity: 0.3;
  transition: all 0.3s ease;
  transform: scale(0.9);
  filter: grayscale(100%);
}

#ticketNotification.has-data .ticket-icon {
  opacity: 1;
  transform: scale(1.1);
  filter: grayscale(0%) brightness(1.2);
  animation: ticketZoom 2s ease-in-out infinite;
}

#ticketNotification:hover .ticket-icon {
  transform: scale(1.2);
}

.ticket-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  min-width: 20px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

#ticketNotification.has-data .ticket-badge {
  opacity: 1;
  transform: scale(1);
  animation: ticketBadgePulse 3s ease-in-out infinite;
}

.ticket-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 3px solid #ff6b35;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

#ticketNotification.has-data .ticket-pulse {
  animation: ticketPulseRing 2s ease-out infinite;
}

/* Animazioni Biglietto */
@keyframes ticketZoom {
  from {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes ticketZoomOut {
  from {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  to {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }
}

@keyframes ticketBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes ticketPulseRing {
  0% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

@keyframes ticketSlideIn {
  0% {
    transform: translateY(-20px) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateY(5px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.brand-title {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.title-main {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.8px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #ffffff 0%, #c8102e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.title-sub {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  color: #e9ecef;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.brand-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #c8102e 0%, #002147 50%, #c8102e 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

/* Mobile: logo sopra al titolo, tutto centrato */
@media (max-width: 640px) {
  .site-brand {
    flex-direction: column;
    gap: 12px;
  }
  .brand-logo {
    width: 72px;
    height: 72px;
  }
  .title-main {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
  }
  .title-sub {
    font-size: 0.75rem;
    letter-spacing: 0.3px;
  }
  .brand-title::after {
    width: 50px;
    height: 2px;
    bottom: -6px;
  }
}

/* Tablet */
@media (max-width: 900px) and (min-width: 641px) {
  .title-main {
    font-size: 1.9rem;
  }
  .title-sub {
    font-size: 0.8rem;
  }
}

/* Desktop large */
@media (min-width: 1200px) {
  .title-main {
    font-size: 2.4rem;
  }
  .title-sub {
    font-size: 0.9rem;
  }
}


/* Data e orario live in alto a sinistra */
#liveDateTime {
  position: absolute;
  top: 8px;
  left: 15px;
  color: white;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  pointer-events: none;
}
@media (max-width: 640px){
  #liveDateTime {
    font-size: 0.85rem;
    top: 6px;
    left: 10px;
  }
}

/* Live Firestore badge */
.live-badge{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  font-size:.8rem;
  font-weight:600;
  padding:.2rem .5rem;
  border-radius:999px;
  border:1px solid rgba(220,38,38,.6);
  background: rgba(254,226,226,.65);
  color:#7f1d1d;
  margin-left:.5rem;
}
.live-badge::before{
  content:"";
  width:.5rem;height:.5rem;border-radius:999px;background:#dc2626;
  box-shadow:0 0 0 0 rgba(220,38,38,.6);
}
.live-badge.pulse::before{
  animation: livepulse 1.2s ease-out 1;
}
@keyframes livepulse{
  0%   { box-shadow:0 0 0 0 rgba(220,38,38,.6); }
  70%  { box-shadow:0 0 0 .5rem rgba(220,38,38,0); }
  100% { box-shadow:0 0 0 0 rgba(220,38,38,0); }
}


/* --- Password toggle nel Modal - Moderno --- */
.modal-content .pw-inline-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.modal-content .pw-inline-wrap input {
  padding-right: 50px;
}

.modal-content .pw-inline-btn {
  font-family: 'Montserrat', sans-serif;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #6c757d;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: 6px;
  transition: all 0.3s ease;
  z-index: 2;
}

.modal-content .pw-inline-btn:hover {
  color: #c8102e;
  background: rgba(200, 16, 46, 0.1);
}

/* Password toggle generale (fallback) */
.pw-inline-btn {
  background: transparent;
  border: none;
  color: #0b5ed7;
  text-decoration: underline;
  padding: 0 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.pw-inline-btn:hover { color: #084298; }
.pw-inline-wrap { display: inline-flex; align-items: center; gap: 8px; }


/* Toasts */
#toast-container {
  position: fixed; right: 16px; bottom: 16px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  min-width: 220px; max-width: 360px;
  background: #333; color: #fff; padding: 10px 12px; border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); font-size: 14px;
}
.toast-success { background: #198754; }
.toast-error { background: #dc3545; }
.toast-info { background: #0d6efd; }
.badge.small {
  display: inline-block; padding: 2px 8px; border-radius: 12px;
  background: #6c757d; color: #fff; font-size: 12px; vertical-align: middle;
}
.badge.small.verified { background: #198754; }
.badge.small.unverified { background: #dc3545; }



/* === Brand Theme (Genoa) === */
:root {
  --brand-red: #c8102e;   /* deep red */
  --brand-navy: #002147;  /* dark navy */
  --brand-text: #ffffff;
  --brand-muted: #6c757d;
}

/* Toasts (brand) */
#toast-container { right: 20px; bottom: 20px; }
.toast {
  background: var(--brand-navy);
  color: var(--brand-text);
  border-left: 4px solid var(--brand-red);
  animation: toast-in .25s ease-out;
}
.toast-success { background: #198754; border-left-color: #198754; }
.toast-error   { background: var(--brand-red); border-left-color: var(--brand-navy); }
.toast-warning { background: #ffc107; color: #212529; border-left-color: #fd7e14; }
.toast-info    { background: var(--brand-navy); border-left-color: var(--brand-red); }

@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Badge (brand) */
.badge.small { background: var(--brand-muted); }
.badge.small.verified { background: #198754; }
.badge.small.unverified { background: var(--brand-red); }

/* Password toggle link (brand) */
.pw-inline-btn {
  color: var(--brand-navy);
  text-decoration: underline;
}
.pw-inline-btn:hover { color: var(--brand-red); }


/* Notifications bell */
.bell-badge {
  display:inline-block; min-width:18px; padding:2px 6px; border-radius:12px;
  background: var(--brand-red); color:#fff; font-size:12px; text-align:center;
}
.notif-bell { position: relative; }
.notif-menu {
  position:absolute; right:0; top:38px; width:320px; max-height:60vh; overflow:auto;
  background:#fff; border:1px solid #ddd; border-radius:10px; box-shadow:0 10px 22px rgba(0,0,0,.15);
  z-index:1000; padding:8px;
}
.notif-item { padding:8px; border-bottom:1px solid #eee; cursor:pointer; }
.notif-item:last-child { border-bottom:0; }
.notif-item .small { color:#666; font-size:12px; }

/* Floating bell if page has no bell in header */
.notif-fab {
  position: fixed; right: 20px; bottom: 84px; z-index: 1000;
  background: #fff; border: 1px solid #ddd; border-radius: 30px; padding: 8px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}


/* Anchor notifications dropdown under the header bell */
#notificationBell { position: relative; }
#notificationBell .notif-menu {
  position: absolute; right: 0; top: 100%; margin-top: 6px;
}


/* Notifications menu header */
#notifMenu .notif-item:first-child { background:#f8f9fa; border-radius:8px; margin-bottom:6px; }
#notifMenu .notif-item:first-child .pw-inline-btn { padding:2px 6px; border:1px solid #ddd; border-radius:6px; text-decoration:none; }
#notificationBell .notif-menu { min-width: 320px; }


/* Role badges for "Il tuo Abbonamento" */
.role-badge.selling { background: var(--brand-red); }
.role-badge.purchased { background: #198754; }
.abbo-card { border:1px solid #e9ecef; border-radius:10px; padding:10px 12px; margin-bottom:10px; background:#fff; }
.abbo-card .row-actions { margin-top:8px; }

.role-badge.pending { background: #ffc107; color: #000; }


/* Campanella delle notifiche attiva */

/* --- "Il tuo abbonamento" section styling --- */
#mySubscription {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f8f9fb;
  border-top: 3px solid var(--brand-navy);
  padding-top: 12px;
}
#mySubscription h2, #mySubscription .section-title {
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: .2px;
  margin-bottom: 12px;
}
#mySubscriptionContent {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
#mySubscription .abbo-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-left: 4px solid var(--brand-red);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
#mySubscription .abbo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
#mySubscription .abbo-card .row-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

/* Header card con titolo e badge */
#mySubscription .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
#mySubscription .card-header h3 {
  margin: 0;
  flex: 1;
  font-size: 1.1em;
  color: var(--brand-navy);
}

/* Badge per stato trattativa */
.badge-vendita {
  background: #28a745;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-trattativa {
  background: #fd7e14;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Indicatore ruolo */
#mySubscription .role-indicator {
  font-size: 0.9em;
  color: #6c757d;
  margin: 4px 0 8px 0;
}

#mySubscription .btn-open-chat {
  background: var(--brand-navy);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}
#mySubscription .btn-open-chat:hover { background: var(--brand-red); }

#mySubscription .btn-cancel-sale {
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}
#mySubscription .btn-cancel-sale:hover { 
  background: #c82333; 
}

/* Role badges */
#mySubscription .role-badge.selling   { background: var(--brand-red); }
#mySubscription .role-badge.purchased { background: #198754; }
#mySubscription .role-badge.pending   { background: #ffc107; color:#000; }
#mySubscription .role-badge {
  margin-right: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}


/* Red cancel button */
#mySubscription .btn-cancel-sale {
  background: #d90429;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 10px;
}
#mySubscription .btn-cancel-sale:hover {
  background: #a6031f;
}

/* Row actions styling per allineare i pulsanti */
#mySubscription .row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
}

/* Canceled badge + disabled chat */
#mySubscription .role-badge.canceled { background: #6c757d; } /* gray */
#mySubscription .btn-open-chat[disabled] {
  opacity: .6; cursor: not-allowed;
}

.badge.count{display:inline-block;min-width:18px;padding:0 6px;border-radius:999px;background:#d00;color:#fff;font-size:12px;line-height:18px;text-align:center;vertical-align:middle}

.card-seller{display:block;font-size:12px;opacity:0.8;margin-top:4px}

.badge.tag{display:inline-block;padding:0 8px;border-radius:999px;background:#eee;color:#333;font-size:12px;line-height:18px}

.badge.sale{background:#0a7;color:#fff}

.btn-accept {
  background: #2ecc40;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 16px;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-accept:hover {
  background: #229c2e;
}

#mainNav {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--brand-red, #d90429);
  padding: 0.5rem 0;
}

.nav-center {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
}

/* ===============================
   GDPR & PRIVACY COMPONENTS
   =============================== */

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(0,33,71,0.98) 0%, rgba(0,51,102,0.98) 100%);
  backdrop-filter: blur(20px);
  border-top: 3px solid #c8102e;
  z-index: 10000;
  box-shadow: 0 -5px 25px rgba(0,33,71,0.3);
  animation: slideUpIn 0.5s ease;
}

@keyframes slideUpIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;
  gap: 30px;
  font-family: 'Montserrat', sans-serif;
}

.cookie-text h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.cookie-text p {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
  font-weight: 400;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 10px 18px;
  border: none;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 120px;
  justify-content: center;
}

.btn-cookie.accept {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(40,167,69,0.3);
}

.btn-cookie.accept:hover {
  background: linear-gradient(135deg, #1e7e34 0%, #17a2b8 100%);
  transform: translateY(-2px);
}

.btn-cookie.customize {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(108,117,125,0.3);
}

.btn-cookie.customize:hover {
  background: linear-gradient(135deg, #495057 0%, #343a40 100%);
  transform: translateY(-2px);
}

.btn-cookie.reject {
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-cookie.reject:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.2) 100%);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* Cookie Settings Modal */
.cookie-settings-content, .privacy-policy-content {
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,249,250,0.98) 100%);
  backdrop-filter: blur(20px);
}

.cookie-category {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(0,33,71,0.08);
  box-shadow: 0 2px 8px rgba(0,33,71,0.05);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.category-header h3 {
  color: #002147;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

.category-description {
  color: rgba(0,33,71,0.8);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 10px 0;
  font-weight: 400;
}

.cookie-details {
  background: rgba(200,16,46,0.05);
  border-left: 3px solid #c8102e;
  padding: 10px 15px;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: rgba(0,33,71,0.8);
  margin-top: 10px;
}

.cookie-details strong {
  color: #002147;
}

.toggle-switch.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.privacy-info {
  background: linear-gradient(135deg, rgba(0,33,71,0.05) 0%, rgba(0,33,71,0.02) 100%);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(0,33,71,0.1);
}

.privacy-info h3 {
  color: #002147;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  font-family: 'Montserrat', sans-serif;
}

.privacy-info ul {
  margin: 0;
  padding-left: 20px;
}

.privacy-info li {
  color: rgba(0,33,71,0.8);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.privacy-info li strong {
  color: #002147;
  font-weight: 600;
}

/* Privacy Policy Modal */
.privacy-text section {
  margin-bottom: 25px;
}

.privacy-text h3 {
  color: #002147;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  font-family: 'Montserrat', sans-serif;
  border-bottom: 2px solid #c8102e;
  padding-bottom: 8px;
}

.privacy-text p, .privacy-text li {
  color: rgba(0,33,71,0.8);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 400;
}

.privacy-text ul {
  margin: 10px 0;
  padding-left: 20px;
}

.privacy-text li {
  margin-bottom: 8px;
}

.privacy-text strong {
  color: #002147;
  font-weight: 600;
}

/* Footer Privacy */
.privacy-footer {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  color: white;
  padding: 25px 0;
  margin-top: 50px;
  border-top: 3px solid #c8102e;
  font-family: 'Montserrat', sans-serif;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  background: linear-gradient(135deg, #c8102e 0%, #a50e26 100%);
  border-color: #c8102e;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200,16,46,0.3);
}

.footer-info p {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  margin: 0;
  font-weight: 400;
}

/* Modal Footer for GDPR */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 20px 30px;
  border-top: 1px solid rgba(0,33,71,0.1);
  background: rgba(248,249,250,0.5);
}

/* ===============================
   CONTACTS SECTION
   =============================== */

.contacts-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  font-family: 'Montserrat', sans-serif;
}

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

.contacts-header h2 {
  color: #002147;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.contacts-header p {
  color: rgba(0,33,71,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.contact-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(0,33,71,0.08);
  box-shadow: 0 5px 20px rgba(0,33,71,0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,33,71,0.15);
  border-color: rgba(200,16,46,0.3);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.contact-card h3 {
  color: #002147;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.contact-card p {
  color: rgba(0,33,71,0.8);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.contact-link {
  color: #c8102e;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: #002147;
  text-decoration: underline;
}

.legal-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.legal-button {
  background: linear-gradient(135deg, #c8102e 0%, #a50e26 100%);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.legal-button:hover {
  background: linear-gradient(135deg, #a50e26 0%, #8b0c1f 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200,16,46,0.3);
}

.info-section {
  background: linear-gradient(135deg, rgba(0,33,71,0.05) 0%, rgba(0,33,71,0.02) 100%);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(0,33,71,0.1);
}

.info-section h3 {
  color: #002147;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
  border: 1px solid rgba(0,33,71,0.08);
}

.info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-item strong {
  color: #002147;
  font-size: 1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}

.info-item p {
  color: rgba(0,33,71,0.8);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* Responsive Privacy Components */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
  
  .btn-cookie {
    min-width: 100px;
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  
  .cookie-settings-content, .privacy-policy-content {
    width: 95%;
    margin: 0 auto;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-links a {
    display: inline-block;
    margin: 0 auto;
    max-width: 200px;
  }
  
  .modal-footer {
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-footer .btn-primary,
  .modal-footer .btn-secondary {
    width: 100%;
  }
  
  /* Contacts responsive */
  .contacts-header h2 {
    font-size: 1.8rem;
  }
  
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-card {
    padding: 20px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .legal-links {
    flex-direction: column;
    align-items: center;
  }
  
  .legal-button {
    width: 100%;
    max-width: 200px;
  }
}

/* 🎫 MODAL BIGLIETTO STILI PREMIUM GENOA */
.ticket-modal-content {
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 33, 71, 0.3), 0 0 0 1px rgba(200, 16, 46, 0.1);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
  overflow: hidden;
}

.ticket-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #c8102e 0%, #002147 50%, #c8102e 100%);
  animation: ticketHeaderGlow 3s ease-in-out infinite;
}

@keyframes ticketHeaderGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; box-shadow: 0 0 20px rgba(200, 16, 46, 0.5); }
}

.ticket-header {
  text-align: center;
  padding: 30px 20px 25px;
  background: linear-gradient(135deg, #002147 0%, #003875 100%);
  color: white;
  position: relative;
  margin: 0 0 25px 0;
  border-radius: 20px 20px 0 0;
}

.ticket-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  background: radial-gradient(ellipse, transparent 50%, #002147 50%);
  background-size: 20px 20px;
}

.ticket-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #ffffff, #c8102e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ticket-header p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
  font-weight: 400;
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 0 25px 25px;
}

.ticket-item {
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 33, 71, 0.08), 0 3px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: ticketSlideIn 0.6s ease-out;
  transform: translateY(0);
}

.ticket-item:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 15px 40px rgba(0, 33, 71, 0.15), 0 5px 15px rgba(200, 16, 46, 0.1);
  border-color: rgba(200, 16, 46, 0.2);
}

.ticket-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #c8102e, #002147, #c8102e);
  border-radius: 16px 16px 0 0;
}

.ticket-item::after {
  content: '🎫';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  opacity: 0.1;
  animation: ticketFloat 4s ease-in-out infinite;
}

@keyframes ticketFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
}

.ticket-match {
  font-size: 1.5rem;
  font-weight: 700;
  color: #002147;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.ticket-match-teams {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.ticket-delete-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.ticket-delete-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
  background: linear-gradient(135deg, #c82333, #a71e2a);
}

.ticket-details {
  margin: 20px 0;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-radius: 12px;
  border-left: 4px solid #c8102e;
  font-size: 0.95rem;
  line-height: 1.6;
}

.ticket-details strong {
  color: #002147;
  font-weight: 600;
}

.ticket-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-chip {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 12px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
  position: relative;
  overflow: hidden;
}

.contact-chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.contact-chip:hover::before {
  left: 100%;
}

.contact-chip:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.contact-chip:active {
  transform: translateY(-1px) scale(1.02);
}

.contact-chip.phone {
  background: linear-gradient(135deg, #007bff, #0056b3);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}

.contact-chip.phone:hover {
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.contact-chip.email {
  background: linear-gradient(135deg, #fd7e14, #e55100);
  box-shadow: 0 4px 12px rgba(253, 126, 20, 0.25);
}

.contact-chip.email:hover {
  box-shadow: 0 8px 20px rgba(253, 126, 20, 0.4);
}

.contact-chip.payment {
  background: linear-gradient(135deg, #6f42c1, #5a2d91);
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.25);
}

.contact-chip.payment:hover {
  box-shadow: 0 8px 20px rgba(111, 66, 193, 0.4);
}

.ticket-seller {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px dashed rgba(0, 33, 71, 0.1);
  font-size: 0.9rem;
  color: #6c757d;
  text-align: right;
  font-style: italic;
}

.ticket-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.ticket-empty-icon {
  font-size: 5rem;
  margin-bottom: 25px;
  opacity: 0.3;
  animation: ticketEmptyFloat 3s ease-in-out infinite;
}

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

.ticket-empty h3 {
  font-size: 1.5rem;
  color: #002147;
  margin-bottom: 15px;
  font-weight: 600;
}

.ticket-empty p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* ===============================
   🔥 BIG MATCH GENOA-INTER STYLES
   =============================== */

/* Styling speciale per la sezione BIG MATCH */
.big-match-inter {
  background: linear-gradient(135deg, #c8102e 0%, #002147 50%, #c8102e 100%) !important;
  border: 3px solid #ffd700 !important;
  box-shadow: 0 0 30px rgba(200,16,46,0.6), 0 0 60px rgba(255,215,0,0.4) !important;
  position: relative;
  overflow: hidden;
}

.big-match-inter::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
  animation: bigMatchShine 3s ease-in-out infinite;
}

.big-match-inter::after {
  content: '🔥⚽🔥';
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
  animation: bigMatchPulse 2s ease-in-out infinite;
}

/* Animazioni per BIG MATCH */
@keyframes bigMatchShine {
  0% { left: -50%; }
  100% { left: 150%; }
}

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

/* Styling per select option Genoa-Inter */
select option[style*="linear-gradient"] {
  background: linear-gradient(45deg, #c8102e, #ffd700) !important;
  color: white !important;
  font-weight: bold !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

/* Countdown speciale per BIG MATCH */
#countdown.big-match-countdown {
  background: linear-gradient(45deg, #c8102e, #ffd700) !important;
  box-shadow: 0 0 20px rgba(200,16,46,0.5), 0 0 40px rgba(255,215,0,0.3) !important;
  animation: pulse 2s infinite !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(200,16,46,0.5); }
  50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(200,16,46,0.8), 0 0 50px rgba(255,215,0,0.5); }
}

/* Messaggio speciale per BIG MATCH */
.big-match-alert {
  background: linear-gradient(45deg, #c8102e, #ffd700);
  color: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  margin: 10px 0;
  box-shadow: 0 4px 15px rgba(200,16,46,0.4);
  animation: bigMatchAlert 3s ease-in-out infinite;
}

@keyframes bigMatchAlert {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 15px rgba(200,16,46,0.4); }
  50% { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(200,16,46,0.6); }
}

/* ========================================
   MODAL CONTATTA VENDITORE - DESIGN PREMIUM GENOA
======================================== */

/* Modal Backdrop */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 33, 71, 0.8);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { 
    opacity: 0; 
    backdrop-filter: blur(0px);
  }
  to { 
    opacity: 1; 
    backdrop-filter: blur(8px);
  }
}

/* Modal Container Premium */
.contact-seller-modal-new {
  width: 90%;
  max-width: 480px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 25px 60px rgba(0, 33, 71, 0.3),
    0 15px 35px rgba(200, 16, 46, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: scale(0.9);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  font-family: 'Montserrat', sans-serif;
  position: relative;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.9) translateY(-30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

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

@keyframes modalFadeOut {
  from { 
    opacity: 1; 
    backdrop-filter: blur(8px);
  }
  to { 
    opacity: 0; 
    backdrop-filter: blur(0px);
  }
}

/* Header Premium con Pattern */
.modal-header-premium {
  background: linear-gradient(135deg, #002147 0%, #003366 50%, #c8102e 100%);
  position: relative;
  padding: 32px 24px 24px;
  text-align: center;
  overflow: hidden;
}

.header-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200,16,46,0.2) 0%, transparent 50%),
    linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
  animation: patternShine 3s ease-in-out infinite;
}

@keyframes patternShine {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Close Button Moderno */
.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}

.close-btn span {
  color: white;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

/* Header Content */
.header-content {
  position: relative;
  z-index: 5;
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 8px;
  display: inline-block;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.modal-title-premium {
  color: white;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

.modal-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0;
  opacity: 0.9;
}

/* Body Premium */
.modal-body-premium {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Seller Card Premium */
.seller-card-premium {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.9) 100%);
  border: 1px solid rgba(0, 33, 71, 0.1);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 33, 71, 0.08);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.seller-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 16, 46, 0.05), transparent);
  transition: left 0.6s ease;
}

.seller-card-premium:hover::before {
  left: 100%;
}

/* Avatar Premium */
.seller-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-circle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #c8102e 0%, #e31837 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
  position: relative;
  overflow: hidden;
}

.verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: #28a745;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: bold;
}

/* Seller Info */
.seller-info-premium {
  flex: 1;
  min-width: 0;
}

.seller-name {
  color: #002147;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  letter-spacing: 0.3px;
}

.rating-stars {
  margin: 4px 0 8px 0;
  font-size: 0.9rem;
}

.match-details {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

/* Contact Section */
.contact-section {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(0, 33, 71, 0.1);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #002147;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  letter-spacing: 0.3px;
}

.title-icon {
  font-size: 1.2rem;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Contact Option Premium */
.contact-option-premium {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.9) 100%);
  border: 1px solid rgba(0, 33, 71, 0.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-option-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 33, 71, 0.05), transparent);
  transition: left 0.5s ease;
}

.contact-option-premium:hover::before {
  left: 100%;
}

.contact-option-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 33, 71, 0.12);
  border-color: rgba(200, 16, 46, 0.3);
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.contact-icon-premium {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #c8102e 0%, #e31837 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-label-premium {
  color: #666;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value-premium {
  color: #002147;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.3s ease;
}

.contact-value-premium:hover {
  color: #c8102e;
}

.btn-copy-contact {
  background: linear-gradient(135deg, rgba(0,33,71,0.1) 0%, rgba(0,33,71,0.05) 100%);
  border: 1px solid rgba(0, 33, 71, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #002147;
  font-size: 0.9rem;
  min-width: 40px;
  height: 40px;
}

.btn-copy-contact:hover {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 33, 71, 0.3);
}

/* Pulsante Disabilitato - Proprietario Abbonamento */
.btn-contact-seller-disabled {
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.1) 0%, rgba(108, 117, 125, 0.05) 100%);
  color: #6c757d;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 14px 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  cursor: not-allowed;
  opacity: 0.6;
  transition: none;
}

.btn-disabled {
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.1) 0%, rgba(108, 117, 125, 0.05) 100%);
  color: #6c757d !important;
  border: 2px solid #e9ecef !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

.btn-disabled:hover {
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.1) 0%, rgba(108, 117, 125, 0.05) 100%) !important;
  color: #6c757d !important;
  border: 2px solid #e9ecef !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Privacy Card */
.privacy-card {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
  border: 1px solid rgba(40, 167, 69, 0.2);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.privacy-icon {
  font-size: 1.5rem;
  color: #28a745;
  flex-shrink: 0;
}

.privacy-text {
  flex: 1;
  color: #002147;
  font-size: 0.9rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.privacy-text strong {
  font-weight: 700;
}

.privacy-text span {
  color: #666;
  font-size: 0.85rem;
}

/* Footer Premium */
.modal-footer-premium {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 28px;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(0, 33, 71, 0.1);
}

/* Button Close Premium */
.btn-close-premium {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 180px;
  justify-content: center;
}

.btn-close-premium:hover {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 33, 71, 0.4);
}

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

.btn-icon {
  font-size: 1.1rem;
}

.btn-text {
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-seller-modal-new {
    width: 95%;
    max-width: none;
    margin: 20px;
  }
  
  .modal-header-premium {
    padding: 24px 20px 20px;
  }
  
  .modal-body-premium {
    padding: 20px;
  }
  
  .seller-card-premium {
    padding: 16px;
  }
  
  .contact-icon {
    font-size: 2.5rem;
  }
  
  .modal-title-premium {
    font-size: 1.4rem;
  }
  
  .btn-close-premium {
    padding: 12px 24px;
    font-size: 0.9rem;
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .seller-card-premium {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .avatar-circle {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

.seller-rating-display {
  margin-bottom: 8px;
}

.seller-details p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9em;
  line-height: 1.4;
}

.contact-methods h4 {
  color: #002147;
  margin-bottom: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.contact-option:hover {
  border-color: #c8102e;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.2);
}

.contact-icon {
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #c8102e 0%, #8b0e24 100%);
  color: white;
  border-radius: 50%;
  border: 2px solid #002147;
}

.contact-details {
  flex: 1;
}

.contact-label {
  font-weight: 600;
  color: #002147;
  display: block;
  font-size: 0.9em;
  margin-bottom: 4px;
}

.contact-value {
  color: #c8102e;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
}

.contact-value:hover {
  text-decoration: underline;
  color: #8b0e24;
}

.btn-contact-action {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1em;
}

.btn-contact-action:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.no-contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #ffc107;
  border-radius: 12px;
  color: #856404;
}

.no-contact-info .info-icon {
  font-size: 1.5em;
}

.no-contact-info p {
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

.privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: 1px solid #2196f3;
  border-radius: 12px;
  margin-top: 20px;
}

.privacy-notice .notice-icon {
  font-size: 1.2em;
  margin-top: 2px;
}

.privacy-notice p {
  margin: 0;
  color: #0d47a1;
  font-size: 0.9em;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .contact-seller-modal {
    margin: 20px;
    max-width: none;
  }
  
  .seller-info {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-option {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .btn-contact-action {
    align-self: stretch;
  }
}
