/* Card Premium Prossima Partita */
:root {
  --brand-primary: #002147;
  --brand-accent: #c8102e;
  --brand-bg: #f2f2f2;
}
.next-match-card-premium {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #0d3a5f 100%);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,33,71,0.18);
  padding: 32px 24px 24px 24px;
  margin: 32px auto 24px auto;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.next-match-header {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.league-badge {
  background: linear-gradient(135deg, #c8102e 0%, #dc3545 100%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1em;
  padding: 6px 18px;
  border-radius: 16px;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(200,16,46,0.10);
}
.next-match-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  margin-bottom: 18px;
}
.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.team-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,33,71,0.12);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 4px;
}
.team-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15em;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,33,71,0.18);
}
.vs-block {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vs-separator {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5em;
  font-weight: 800;
  color: #c8102e;
  background: linear-gradient(135deg, #c8102e 0%, #dc3545 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 8px 18px;
  border: 2px solid #c8102e;
  border-radius: 50%;
  min-width: 60px;
  text-align: center;
}
.next-match-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.match-datetime {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15em;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,33,71,0.18);
}
.match-venue {
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  color: #f2f2f2;
  font-weight: 500;
  margin-bottom: 2px;
}
.countdown-premium {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3em;
  color: #c8102e;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 6px;
  text-shadow: 0 2px 8px rgba(200,16,46,0.18);
}
/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Mobile-First Optimizations */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-size-adjust: 100%;
}

body {
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly buttons */
button, 
input[type="button"], 
input[type="submit"], 
.btn {
  touch-action: manipulation;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  min-height: 44px; /* Apple recommended touch target */
  min-width: 44px;
}

/* Improved form controls for mobile */
input, 
textarea, 
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 8px;
  font-size: 16px; /* Prevents zoom on iOS */
}

/* Prevent horizontal scroll */
.container, 
.section, 
.modal-content {
  max-width: 100%;
  overflow-x: hidden;
}

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

header, footer {
  background-color: var(--brand-primary);
  color: white;
  text-align: center;
  padding: 20px 10px;
  position: relative;
}

h1, h2 {
  margin-bottom: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  font-weight: 700;
}

/* Navigazione - Stile Moderno */
nav {
  background: linear-gradient(135deg, var(--brand-accent, #c8102e) 0%, #b01229 50%, var(--brand-accent, #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" */
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;
}

/* Fix per quadretto bianco: nascondere completamente badge quando display:none */
nav button .badge[style*="display:none"],
nav button .badge[style*="display: none"] {
  margin-left: 0 !important;
  padding: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

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

/* 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);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* === 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, #28a745 0%, #20c997 100%);
  color: #fff;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(40,167,69,0.15);
}

.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;
  }
}

/* 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);
}

/* Google Authentication Styles */
.google-auth-section {
  margin-bottom: 25px;
}

.btn-google-auth {
  width: 100%;
  padding: 12px 20px;
  background: #ffffff;
  border: 2px solid #dadce0;
  border-radius: 8px;
  color: #3c4043;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-google-auth:hover {
  background: #f8f9fa;
  border-color: #c8c9ca;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.btn-google-auth:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.google-icon {
  font-size: 18px;
  display: flex;
  align-items: center;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e9ecef 20%, #e9ecef 80%, transparent);
}

.auth-divider span {
  background: #ffffff;
  color: #6c757d;
  font-size: 12px;
  font-weight: 500;
  padding: 0 15px;
  position: relative;
  z-index: 1;
}

/* 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', Arial, sans-serif;
  box-shadow: 0 12px 36px rgba(0,33,71,0.12), 0 1.5px 0 #c8102e;
}

/* Header della sezione */
.section-header {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  box-shadow: 0 4px 18px rgba(0,33,71,0.13);
  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: 2rem;
  font-weight: 800;
  margin: 0 0 5px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 1px;
  color: #c8102e;
  text-shadow: 0 2px 8px #00214722;
}

.header-content .section-subtitle {
  font-size: 1.05rem;
  margin: 0;
  opacity: 0.92;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
}

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

.stat-card {
  background: linear-gradient(135deg, #c8102e22 0%, #00214711 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: 2.2rem;
  font-weight: 800;
  color: #c8102e;
  line-height: 1;
  font-family: 'Montserrat', Arial, sans-serif;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #002147;
  font-weight: 600;
  margin-top: 4px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* 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', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 12px rgba(200,16,46,0.08);
  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: #fff;
  border-color: #c8102e;
  box-shadow: 0 6px 24px rgba(200,16,46,0.22);
  text-shadow: 0 2px 8px #00214722;
}

/* 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 8px 32px rgba(0,33,71,0.10);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.storico-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(200,16,46,0.18);
  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.3rem;
  font-weight: 800;
  color: #c8102e;
  margin: 0 0 5px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.5px;
}

.match-details {
  font-size: 1rem;
  color: #002147;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
}

.transaction-badge {
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 12px rgba(200,16,46,0.12);
  font-family: 'Montserrat', Arial, sans-serif;
}

.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.4rem;
  font-weight: 800;
  color: #c8102e;
  margin: 0 0 10px 0;
  font-family: 'Montserrat', Arial, 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);
}

/* 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;
}

/* Header speciale per modale regolamento */
.modal-content.regolamento-content .modal-title {
  background: linear-gradient(135deg, #002147 0%, #0d3a5f 100%);
  color: #fff !important;
  padding: 18px 0 18px 0;
  border-radius: 12px;
  font-size: 1.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(0,33,71,0.10);
}

.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);
}

/* CHAT MODAL STYLING */
.chat-modal-content {
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(0,33,71,0.1);
  box-shadow: 0 25px 60px rgba(0,33,71,0.15);
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
}

.chat-modal-content .modal-header {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  padding: 20px 25px;
  border-bottom: none;
  position: relative;
}

.chat-modal-content .modal-title {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.chat-modal-content .close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.chat-modal-content .close:hover {
  background: rgba(200,16,46,0.8);
  transform: translateY(-50%) rotate(90deg);
}

.chat-modal-content .modal-body {
  padding: 25px;
}

/* Chat Box */
#chatBox {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(0,33,71,0.08);
  box-shadow: inset 0 2px 10px rgba(0,33,71,0.05);
  font-size: 0.9rem;
  color: #002147;
  font-family: 'Montserrat', sans-serif;
  min-height: 200px;
}

#chatBox::-webkit-scrollbar {
  width: 6px;
}

#chatBox::-webkit-scrollbar-track {
  background: rgba(0,33,71,0.05);
  border-radius: 10px;
}

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

#chatBox::-webkit-scrollbar-thumb:hover {
  background: rgba(0,33,71,0.3);
}

#chatBox p {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 75%;
  word-wrap: break-word;
  clear: both;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,33,71,0.1);
  position: relative;
}

#chatBox p.sent {
  background: linear-gradient(135deg, #c8102e 0%, #a50e26 100%);
  color: white;
  float: right;
  margin-left: auto;
  margin-right: 0;
  border-bottom-right-radius: 6px;
}

#chatBox p.received {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  color: white;
  float: left;
  margin-right: auto;
  margin-left: 0;
  font-weight: 500;
  border-bottom-left-radius: 6px;
}

/* Chat Input Container */
.chat-input-container {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
}

#chatInput {
  flex: 1;
  padding: 14px 18px;
  border-radius: 25px;
  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 10px rgba(0,33,71,0.05);
}

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

#chatInput::placeholder {
  color: rgba(0,33,71,0.5);
  font-weight: 400;
}

.send-btn {
  padding: 14px 20px;
  background: linear-gradient(135deg, #c8102e 0%, #a50e26 100%);
  color: white;
  border: none;
  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 4px 15px rgba(200,16,46,0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 100px;
  justify-content: center;
}

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

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

.send-btn span {
  font-size: 1rem;
}

/* Chat Actions */
.chat-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(0,33,71,0.1);
}

.chat-actions button {
  padding: 10px 16px;
  border-radius: 20px;
  border: 2px solid rgba(0,33,71,0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #002147;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,33,71,0.1);
}

.chat-actions button:hover {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  color: white;
  border-color: #002147;
  transform: translateY(-1px);
}

.chat-actions button.btn-accept {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border-color: #28a745;
}

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

.chat-actions button.btn-reject {
  background: linear-gradient(135deg, #c8102e 0%, #a50e26 100%);
  color: white;
  border-color: #c8102e;
}

.chat-actions button.btn-reject:hover {
  background: linear-gradient(135deg, #a50e26 0%, #8b0c20 100%);
  transform: translateY(-1px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .chat-modal-content {
    width: 95%;
    max-height: 85vh;
    margin: 0 auto;
  }
  
  .chat-modal-content .modal-header {
    padding: 15px 20px;
  }
  
  .chat-modal-content .modal-title {
    font-size: 1.1rem;
  }
  
  .chat-modal-content .modal-body {
    padding: 20px;
  }
  
  #chatBox {
    max-height: 250px;
    padding: 15px;
  }
  
  .chat-input-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .send-btn {
    width: 100%;
  }
  
  .chat-actions {
    flex-direction: column;
  }
  
  .chat-actions button {
    width: 100%;
    justify-content: center;
  }
}

/* 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%);
}

/* Stile per il nuovo layout delle squadre in homepage */
.match-teams-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 0;
  background: rgba(0, 33, 71, 0.02);
  border-radius: 12px;
  margin-bottom: 16px;
}

.team-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.team-section .team-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 33, 71, 0.15);
  background: #fff;
  padding: 6px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.team-section .team-logo:hover {
  transform: scale(1.1);
}

.team-section .team-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  color: #002147;
  letter-spacing: 0.5px;
}

.vs-separator {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
  font-weight: 800;
  color: #c8102e;
  background: linear-gradient(135deg, #c8102e 0%, #dc3545 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 8px 16px;
  border: 2px solid #c8102e;
  border-radius: 50%;
  min-width: 60px;
  text-align: center;
}

.match-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  margin-bottom: 16px;
}

.match-venue {
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  color: #6c757d;
  font-weight: 500;
}

.match-datetime {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  color: #002147;
  font-weight: 600;
}

.match-countdown {
  background: linear-gradient(135deg, #dc3545 0%, #c8102e 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  margin: 16px 0;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.match-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-details, .btn-negotiate {
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-height: 44px;
  min-width: 44px;
}

.btn-details {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
}

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

.btn-negotiate {
  background: linear-gradient(135deg, #002147 0%, #c8102e 100%);
  color: white;
}

.btn-negotiate:hover {
  background: linear-gradient(135deg, #c8102e 0%, #002147 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

/* ==============================================
   HOMEPAGE PREMIUM DESIGN - GENOA CFC BRAND
   ============================================== */

.homepage-hero {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(0, 33, 71, 0.95) 0%, 
    rgba(200, 16, 46, 0.85) 50%, 
    rgba(0, 33, 71, 0.95) 100%);
  border-radius: 24px;
  padding: 48px 32px;
  margin-bottom: 32px;
  overflow: hidden;
  color: white;
  text-align: center;
}

.homepage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(200, 16, 46, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 33, 71, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

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

.hero-badge-icon {
  font-size: 1.1em;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.2em;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.title-primary {
  display: block;
  color: #ffffff;
}

.title-accent {
  display: block;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.2); }
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  font-weight: 400;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: spin 20s linear infinite;
}

.circle-1 {
  width: 150px;
  height: 150px;
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.circle-2 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 15%;
  animation-delay: -5s;
}

.circle-3 {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 20%;
  animation-delay: -10s;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Stats Cards Premium */
.homepage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card-premium {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 33, 71, 0.1);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 33, 71, 0.08);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

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

.stat-card-premium:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 33, 71, 0.15);
  border-color: rgba(200, 16, 46, 0.3);
}

.stat-icon-container {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #002147 0%, #c8102e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  box-shadow: 0 6px 20px rgba(0, 33, 71, 0.2);
}

.stat-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5em;
  font-weight: 900;
  color: #002147;
  line-height: 1;
  margin-bottom: 8px;
  animation: countUp 0.8s ease-out;
}

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

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

/* Listings Container Premium */
.homepage-listings-container {
  margin-top: 40px;
}

.listings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.listings-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2em;
  font-weight: 700;
  color: #002147;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.title-icon {
  font-size: 0.8em;
  padding: 8px;
  background: linear-gradient(135deg, #c8102e 0%, #dc3545 100%);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.listings-filter {
  display: flex;
  gap: 8px;
  background: rgba(0, 33, 71, 0.05);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(0, 33, 71, 0.1);
}

.filter-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: #6c757d;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Premium Listings Grid */
.premium-listings-grid {
  display: grid;
  gap: 24px;
}

.premium-listing-card {
  background: linear-gradient(135deg, var(--brand-white) 0%, var(--brand-gold) 100%);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,33,71,0.10);
  padding: 36px 0 28px 0;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--brand-gold);

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

.premium-listing-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 33, 71, 0.15);
  border-color: rgba(200, 16, 46, 0.3);
}

.listing-card-header {
  padding: 24px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.teams-display-premium {
  display: flex;
  align-items: center;
  gap: 20px;
}

.team-section-premium {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-logo-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
}

.team-logo-premium {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--brand-white);
  padding: 4px;
  box-shadow: 0 6px 24px rgba(0,33,71,0.12);
  border: 2px solid var(--brand-gold);
  transition: all 0.3s ease;
}

.logo-glow-effect {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 33, 71, 0.2) 0%, rgba(200, 16, 46, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-section-premium:hover .logo-glow-effect {
  opacity: 1;
}

.team-section-premium:hover .team-logo-premium {
  transform: scale(1.1);
}

.team-details-premium {
  display: flex;
  flex-direction: column;
}

.team-name-premium {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3em;
  font-weight: 700;
  color: var(--brand-gold);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.team-subtitle-premium {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7em;
  font-weight: 500;
  color: #6c757d;
  margin-top: 2px;
}

.vs-section-premium {
  display: flex;
  align-items: center;
}

.vs-badge-premium {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #c8102e 0%, #dc3545 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.vs-text-premium {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.2em;
  font-weight: 700;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.listing-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8em;
  font-weight: 600;
  color: #28a745;
  background: rgba(40, 167, 69, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #28a745;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.listing-card-body {
  padding: 0 24px 16px;
}

.match-info-details {
  background: rgba(0, 33, 71, 0.02);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9em;
  color: #002147;
  margin-bottom: 8px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 20px;
  text-align: center;
}

.countdown-premium-card {
  background: linear-gradient(135deg, #c8102e 0%, #dc3545 100%);
  border-radius: 12px;
  padding: 16px;
  color: white;
  text-align: center;
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 8px;
  opacity: 0.9;
}

.countdown-display-premium {
  font-family: 'Montserrat', monospace;
  font-size: 1.1em;
  font-weight: 700;
}

.listing-card-footer {
  padding: 16px 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 33, 71, 0.05);
}

.price-section {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8em;
  font-weight: 500;
  color: #6c757d;
  margin-bottom: 2px;
}

.price-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3em;
  font-weight: 800;
  color: #002147;
}

.action-buttons-premium {
  display: flex;
  gap: 8px;
}

.btn-premium {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
}

.btn-secondary-premium {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.2);
}

.btn-secondary-premium:hover {
  background: #6c757d;
  color: white;
  transform: translateY(-2px);
}

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

.btn-primary-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

/* Empty State */
.empty-state-premium {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(0, 33, 71, 0.02) 0%, rgba(200, 16, 46, 0.01) 100%);
  border-radius: 20px;
  border: 2px dashed rgba(0, 33, 71, 0.1);
}

.empty-icon {
  font-size: 4em;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5em;
  font-weight: 700;
  color: #002147;
  margin-bottom: 12px;
}

.empty-text {
  font-family: 'Montserrat', sans-serif;
  color: #6c757d;
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Call to Action Premium */
.homepage-cta {
  background: linear-gradient(135deg, #002147 0%, #c8102e 100%);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  color: white;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}

.homepage-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2em;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  background: white;
  color: #002147;
  padding: 16px 32px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-button-icon {
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .homepage-hero {
    padding: 32px 20px;
  }
  
  .hero-title {
    font-size: 2.5em;
  }
  
  .homepage-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .listings-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .listings-filter {
    justify-content: center;
  }
  
  .teams-display-premium {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .vs-section-premium {
    order: 2;
  }
  
  .listing-card-footer {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .action-buttons-premium {
    justify-content: stretch;
  }
  
  .btn-premium {
    flex: 1;
    justify-content: center;
  }
  
  .homepage-cta {
    padding: 32px 20px;
  }
  
  .cta-title {
    font-size: 1.6em;
  }
}

/* Animazioni Premium */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* 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;
  animation: pulse-green 2s infinite;
}

.status-negotiation {
  background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
  color: white;
  animation: pulse-orange 2s 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); }
}

/* Dettagli settore e prezzo */
.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;
}

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

.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;
  box-shadow: 0 4px 15px rgba(0, 33, 71, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.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;
}

/* ==============================================
   DESIGN PREMIUM PARTITA GENOA CFC
   ============================================== */

.upcoming-match-card-premium {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 24px;
  box-shadow: 
    0 10px 40px rgba(0, 33, 71, 0.15),
    0 4px 20px rgba(200, 16, 46, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 28px 24px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

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

.upcoming-match-card-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(200, 16, 46, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.upcoming-match-card-premium:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 33, 71, 0.2),
    0 8px 30px rgba(200, 16, 46, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(200, 16, 46, 0.3);
}

/* Header Premium */
.premium-match-header {
  text-align: center;
  margin-bottom: 24px;
}

.match-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #002147;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid rgba(0, 33, 71, 0.1);
  box-shadow: 0 4px 15px rgba(0, 33, 71, 0.08);
  position: relative;
}

.match-badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  padding: 2px;
  background: linear-gradient(135deg, #002147, #c8102e, #002147);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: subtract;
  opacity: 0.6;
}

.badge-icon {
  font-size: 1.1em;
  filter: drop-shadow(0 2px 4px rgba(0, 33, 71, 0.2));
}

/* Display Squadre Premium */
.premium-match-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.team-premium-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  position: relative;
}

.team-logo-container {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-team-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 8px;
  box-shadow: 
    0 8px 25px rgba(0, 33, 71, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.team-glow {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 33, 71, 0.1) 0%, rgba(200, 16, 46, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.team-premium-section:hover .premium-team-logo {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 12px 35px rgba(0, 33, 71, 0.2),
    0 6px 20px rgba(200, 16, 46, 0.1);
}

.team-premium-section:hover .team-glow {
  opacity: 1;
}

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

.team-name-premium {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  font-weight: 800;
  color: #002147;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 33, 71, 0.1);
}

.team-subtitle {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75em;
  font-weight: 500;
  color: #6c757d;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Sezione VS Premium */
.vs-premium-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.vs-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8102e 0%, #dc3545 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 6px 20px rgba(200, 16, 46, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: pulse-vs 2s infinite ease-in-out;
}

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

.vs-circle::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 50%;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vs-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.match-details-premium {
  text-align: center;
}

.stadium-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75em;
  font-weight: 600;
  color: #6c757d;
  background: rgba(0, 33, 71, 0.05);
  padding: 4px 8px;
  border-radius: 12px;
}

/* Data e Ora Premium */
.premium-match-datetime {
  margin-bottom: 20px;
}

.datetime-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.date-section, .time-section {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #002147;
  background: linear-gradient(135deg, rgba(0, 33, 71, 0.05) 0%, rgba(200, 16, 46, 0.02) 100%);
  padding: 8px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 33, 71, 0.1);
}

.date-text, .time-text {
  font-size: 0.95em;
  letter-spacing: 0.5px;
}

/* Countdown Premium */
.premium-countdown-section {
  position: relative;
}

.premium-countdown-display {
  background: linear-gradient(135deg, #c8102e 0%, #dc3545 100%);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 16px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  box-shadow: 
    0 8px 25px rgba(200, 16, 46, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.premium-countdown-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s infinite;
}

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

/* Responsive Premium */
@media (max-width: 768px) {
  .upcoming-match-card-premium {
    padding: 20px 16px;
    margin: 0 16px;
  }
  
  .premium-match-display {
    flex-direction: column;
    gap: 20px;
  }
  
  .vs-premium-section {
    order: 2;
  }
  
  .team-premium-section {
    flex-direction: row;
    gap: 16px;
  }
  
  .team-logo-container {
    width: 60px;
    height: 60px;
  }
  
  .premium-team-logo {
    width: 50px;
    height: 50px;
  }
  
  .datetime-info {
    flex-direction: column;
    gap: 10px;
  }
}

.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;
}

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

.title-main {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-primary, #002147);
  letter-spacing: -0.8px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  background: none;
  position: relative;
}

.title-sub {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--brand-accent, #c8102e);
  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); }
}

/* Connection Status Indicator */
.connection-status {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

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

.connection-status.offline {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    animation: connection-blink 2s infinite;
}

@keyframes connection-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.6; }
}

/* Responsive connection status */
@media (max-width: 768px) {
    .connection-status {
        top: 10px;
        right: 10px;
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Regolamento, Telefono e Pagamento Modal Styles */
.regolamento-content, .telefono-content, .pagamento-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.regolamento-text {
    margin-bottom: 20px;
}

.regola-item {
    background: #f8f9fa;
    border-left: 4px solid #002147;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}

.regola-item h4 {
    color: #002147;
    margin-bottom: 8px;
    font-size: 16px;
}

.regola-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.acceptance-section {
    background: #e8f4f8;
    border: 2px solid #002147;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.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;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #002147;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.checkbox-container input:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    display: block;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-weight: 600;
    color: #002147;
    line-height: 1.5;
}

.telefono-info {
    text-align: left;
}

.telefono-info p {
    margin-bottom: 15px;
}

.privacy-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.privacy-notice ul {
    margin: 10px 0 0 20px;
    color: #856404;
}

.privacy-notice li {
    margin-bottom: 5px;
}

/* Modal Footer Actions */
.modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.modal-footer button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-primary {
    background: linear-gradient(135deg, #002147 0%, #c8102e 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 33, 71, 0.3);
}

/* Pagamento Form Styles */
.pagamento-form {
    margin: 20px 0;
}

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

.pagamento-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #002147;
}

.pagamento-form input, 
.pagamento-form select, 
.pagamento-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.pagamento-form input:focus, 
.pagamento-form select:focus, 
.pagamento-form textarea:focus {
    border-color: #002147;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.1);
}

.pagamento-form select {
    cursor: pointer;
    background-color: white;
}

.pagamento-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

.privacy-payment-notice {
    background: #e8f4f8;
    border: 2px solid #002147;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.privacy-payment-notice p {
    margin-bottom: 10px;
    font-weight: 600;
    color: #002147;
}

.privacy-payment-notice ul {
    margin: 0;
    padding-left: 20px;
    color: #495057;
}

.privacy-payment-notice li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* PayPal Group Animation */
#paypalGroup {
    transition: all 0.3s ease;
    overflow: hidden;
}

#paypalGroup.show {
    display: block !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 100px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .regolamento-content, .telefono-content, .pagamento-content {
        max-width: 95vw;
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .regola-item {
        padding: 12px;
    }
    
    .pagamento-form input, 
    .pagamento-form select, 
    .pagamento-form textarea {
        padding: 14px;
        font-size: 16px; /* Evita zoom su iOS */
    }
}

/* Contatti Venditore nel Modal Interesse */
.contatto-venditore {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #002147;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.contatto-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 18px;
    width: 30px;
    text-align: center;
}

.contact-link {
    color: #002147;
    text-decoration: none;
    font-weight: 600;
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: #002147;
    color: white;
    transform: translateX(5px);
}

.no-contact {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    color: #856404;
    text-align: center;
    margin-top: 15px;
    font-style: italic;
}

.interesse-dettagli h3 {
    color: #002147;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #c8102e;
}

.interesse-dettagli p {
    margin: 8px 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contatto-venditore {
        padding: 15px;
        margin-top: 15px;
    }
    
    .contatto-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .contact-link {
        width: 100%;
        text-align: center;
    }
}

/* Pulsante Annulla Abbonamento nelle Trattative */
.abbonamento-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-annulla-abbonamento {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-annulla-abbonamento:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

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

/* Versione warning per abbonamenti con richieste attive */
.btn-warning-action {
    background: linear-gradient(135deg, #fd7e14 0%, #e55100 100%);
    animation: subtle-pulse 2s infinite;
}

.btn-warning-action:hover {
    background: linear-gradient(135deg, #e55100 0%, #d84315 100%);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.4);
}

@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Separazione visiva tra azioni richieste e azioni abbonamento */
.row-actions + .abbonamento-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f8f9fa;
}

/* Dati Pagamento nelle Richieste */
.dati-pagamento-richiesta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
}

.dati-pagamento-richiesta h5 {
    color: #002147;
    margin: 0 0 12px 0;
    font-size: 16px;
    border-bottom: 2px solid #c8102e;
    padding-bottom: 8px;
}

.pagamento-details p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagamento-details strong {
    min-width: 120px;
    color: #002147;
}

.pagamento-details a {
    color: #c8102e;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagamento-details a:hover {
    background: #c8102e;
    color: white;
    transform: translateX(3px);
}

.messaggio-acquirente {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.messaggio-acquirente strong {
    color: #856404;
}

.messaggio-acquirente em {
    display: block;
    margin-top: 8px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    font-style: italic;
    color: #495057;
    border-left: 4px solid #c8102e;
}

/* Pulsante Completa Vendita e Conferma Pagamento */
.btn-completa-vendita, .btn-conferma-pagamento {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    width: 100%;
    justify-content: center;
    margin-top: 15px;
}

.btn-completa-vendita:hover, .btn-conferma-pagamento:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-completa-vendita span, .btn-conferma-pagamento span {
    font-size: 16px;
}

/* Stato Richiesta Accettata */
.richiesta-accettata {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

.richiesta-accettata .richiesta-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.richiesta-accettata .richiesta-icon {
    font-size: 20px;
}

.richiesta-accettata .richiesta-tipo {
    color: #28a745;
    font-weight: 600;
}

.info-pagamento {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.payment-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-icon {
    font-size: 24px;
}

.payment-note {
    font-style: italic;
    color: #856404;
    margin-top: 8px;
}

/* Contatti Venditore per Acquirenti */
.contatti-venditore {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #2196F3;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

.contatti-header h5 {
    color: #002147;
    margin: 0 0 15px 0;
    font-size: 16px;
    border-bottom: 2px solid #c8102e;
    padding-bottom: 8px;
}

.contatti-note {
    background: #fff3cd;
    border-left: 4px solid #c8102e;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 6px;
}

.contatti-note em {
    color: #856404;
    font-weight: 500;
}

/* Transazione Completata */
.transazione-completata {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
}

.completamento-header h5 {
    color: #155724;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.transazione-completata p {
    color: #155724;
    margin: 8px 0;
}

.transazione-completata em {
    font-size: 16px;
    font-weight: 600;
}

/* Venditor Actions */
.venditor-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Badge Status Aggiornati */
.badge-accepted {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.badge-completed {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    color: white;
}

/* Storico Transazioni Completate */
.storico-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.storico-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.storico-item.vendita {
    border-left: 5px solid #28a745;
}

.storico-item.acquisto {
    border-left: 5px solid #007bff;
}

.storico-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.match-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.match-logos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-title {
    font-size: 18px;
    font-weight: 700;
    color: #002147;
    margin: 0;
}

.storico-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

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

.badge-icon {
    font-size: 14px;
}

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

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

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #002147;
}

.price-value {
    color: #28a745;
    font-size: 16px;
}

.date-value {
    color: #6c757d;
}

.transazione-completata-badge {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.completion-icon {
    font-size: 18px;
}

.completion-text {
    color: #155724;
    font-weight: 600;
    font-size: 14px;
}

/* Dati Vendita Modal e Chat Modal */
#datiVenditaModal .modal-content,
#chatModal .modal-content {
    max-width: 600px;
    width: 95%;
}

.chat-modal-content {
    height: 80vh;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    max-height: 400px;
}

.chat-message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}

.chat-message.sent {
    background: linear-gradient(135deg, #c8102e 0%, #a00d26 100%);
    color: white;
    margin-left: auto;
    text-align: right;
}

.chat-message.received {
    background: white;
    border: 2px solid #e9ecef;
    color: #002147;
}

.chat-message .sender {
    font-weight: 600;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.chat-message .timestamp {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
}

.chat-actions {
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
}

.message-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.message-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.message-input:focus {
    border-color: #c8102e;
}

.btn-send-message {
    background: linear-gradient(135deg, #c8102e 0%, #a00d26 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.btn-send-message:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

#chatHeader {
    background: linear-gradient(135deg, #002147 0%, #003366 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

#chatHeader h4 {
    margin: 0;
    font-size: 16px;
}

#chatHeader p {
    margin: 5px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .btn-annulla-abbonamento {
        width: 100%;
        justify-content: center;
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .abbonamento-actions {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .dati-pagamento-richiesta {
        padding: 12px;
    }
    
    .pagamento-details p {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .pagamento-details strong {
        min-width: auto;
    }
    
    .btn-completa-vendita, .btn-conferma-pagamento {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .richiesta-accettata, .contatti-venditore, .transazione-completata {
        padding: 15px;
    }
}

/* Admin Header Actions */
.admin-header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.test-system-btn, .debug-info-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.test-system-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.debug-info-btn {
    background: linear-gradient(135deg, #6f42c1 0%, #563d7c 100%);
    color: white;
}

.debug-info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(111, 66, 193, 0.3);
}

@media (max-width: 768px) {
    .admin-header-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .test-system-btn, .debug-info-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* --- 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-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: Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
#mySubscription .btn-cancel-sale:hover {
  background: #a6031f;
}

/* 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: 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;
  }
}

/* === NUOVO SISTEMA INTERESSE === */

/* Pulsanti interesse */
.btn-interessato {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-right: 10px;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-interessato:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-acquistare {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-acquistare:hover {
  background: linear-gradient(135deg, #1976D2, #1565C0);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Info per proprietario e utenti non loggati */
.owner-info {
  color: #666;
  font-style: italic;
  padding: 12px;
  background: #f0f0f0;
  border-radius: 8px;
  text-align: center;
  margin: 0;
}

.login-required {
  color: #999;
  font-style: italic;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 8px;
  text-align: center;
  margin: 0;
}

/* Modal interesse */
.interesse-dettagli {
  padding: 20px 0;
  text-align: center;
}

.interesse-dettagli h3 {
  color: #002147;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.interesse-dettagli p {
  margin-bottom: 10px;
  color: #555;
}

.messaggio-interesse {
  background: #e8f5e8;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  border-left: 4px solid #4CAF50;
}

.messaggio-interesse p {
  margin-bottom: 8px;
  color: #2d5016;
}

/* Azioni modal */
.interesse-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
  flex-wrap: wrap;
}

.venditore-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
  flex-wrap: wrap;
}

/* Form contatti */
.contatti-form {
  padding: 20px 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  border-color: #4CAF50;
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
  flex-wrap: wrap;
}

/* Pulsanti success/danger */
.btn-success {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-success:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #d32f2f, #c62828);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #757575, #616161);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #616161, #424242);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(117, 117, 117, 0.3);
}

/* Responsive per pulsanti interesse */
@media (max-width: 768px) {
  .btn-interessato,
  .btn-acquistare {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
    min-width: auto;
  }
  
  .interesse-actions,
  .venditore-actions,
  .form-actions {
    flex-direction: column;
  }
  
  .btn-success,
  .btn-danger,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* === SEZIONE LE TUE TRATTATIVE === */

.subscription-section {
  margin-bottom: 40px;
}

.subscription-section .section-subtitle {
  color: #002147;
  font-size: 1.4em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c8102e;
}

.vendita-card {
  border-left: 4px solid #4CAF50;
}

.richiesta-card {
  border-left: 4px solid #2196F3;
}

.badge-interesse {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
  animation: pulse-interesse 2s infinite;
}

@keyframes pulse-interesse {
  0% { box-shadow: 0 0 0 rgba(255, 152, 0, 0.7); }
  50% { box-shadow: 0 0 15px rgba(255, 152, 0, 0.4); }
  100% { box-shadow: 0 0 0 rgba(255, 152, 0, 0.7); }
}

.badge-pending {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
}

.badge-accepted {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.badge-rejected {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

.richiesta-interesse {
  background: #fff3e0;
  border: 2px solid #FF9800;
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
  position: relative;
}

.richiesta-interesse::before {
  content: '📩';
  position: absolute;
  top: -10px;
  left: 15px;
  background: #fff3e0;
  padding: 0 10px;
  font-size: 20px;
}

.richiesta-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.richiesta-icon {
  font-size: 24px;
}

.richiesta-tipo {
  color: #666;
  font-style: italic;
}

.richiesta-data {
  color: #888;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.contatti-venditore {
  background: #e8f5e8;
  border: 2px solid #4CAF50;
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
  position: relative;
}

.contatti-venditore::before {
  content: '📞';
  position: absolute;
  top: -10px;
  left: 15px;
  background: #e8f5e8;
  padding: 0 10px;
  font-size: 20px;
}

.contatti-header h5 {
  color: #2d5016;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.contatti-venditore p {
  margin-bottom: 8px;
  color: #2d5016;
}

.contatti-note {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #4CAF50;
}

.contatti-note em {
  color: #2d5016;
  font-size: 0.9em;
}

.btn-conferma-pagamento {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn-conferma-pagamento:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-conferma-pagamento span {
  margin-right: 8px;
}

.transazione-completata {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.2);
}

.completamento-header h5 {
  color: #856404;
  margin: 0 0 15px 0;
  font-weight: 600;
  font-size: 1.2em;
}

.transazione-completata p {
  margin: 10px 0;
  color: #856404;
  font-weight: 500;
}

.no-subscriptions {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  background: #f9f9f9;
  border-radius: 12px;
  border: 2px dashed #ddd;
}

.no-subscriptions p {
  margin-bottom: 10px;
}

/* Pulsanti gestione interesse */
.btn-accetta-interesse,
.btn-rifiuta-interesse {
  flex: 1;
  min-width: 180px;
}

/* Responsive trattative */
@media (max-width: 768px) {
  .richiesta-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .richiesta-icon {
    font-size: 20px;
  }
  
  .btn-accetta-interesse,
  .btn-rifiuta-interesse {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* ========================================
   SISTEMA FEEDBACK UTENTI
   ======================================== */

/* Modal Feedback */
#feedbackModal .modal-content {
  animation: slideInDown 0.3s ease-out;
}

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

/* Rating System - Stelle principali */
.star-rating {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 10px 0;
}

.star {
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  filter: grayscale(100%);
  opacity: 0.4;
}

.star:hover,
.star.active {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.star.active {
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* Mini Rating per categorie specifiche */
.specific-ratings {
  margin-top: 20px;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #002147;
}

.rating-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 0;
}

.rating-item:last-child {
  margin-bottom: 0;
}

.rating-item label {
  font-weight: 600;
  color: #002147;
  margin: 0;
}

.mini-star-rating {
  display: flex;
  gap: 2px;
}

.mini-star {
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.15s ease;
  filter: grayscale(100%);
  opacity: 0.3;
}

.mini-star:hover,
.mini-star.active {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Sezione Bug Report */
.bug-info {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
}

.bug-info .form-group {
  margin-bottom: 15px;
}

.bug-info .form-group:last-child {
  margin-bottom: 0;
}

/* Informazioni tecniche */
.tech-info {
  border-left: 4px solid #17a2b8;
}

.tech-info h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}

#techDetails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.tech-detail-item {
  background: white;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.tech-detail-item strong {
  color: #002147;
}

/* Feedback Form Enhancements */
#feedbackModal .form-group {
  margin-bottom: 20px;
}

#feedbackModal .form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#feedbackModal .form-control:focus {
  border-color: #002147;
  box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.1);
  outline: none;
}

#feedbackModal label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #002147;
}

/* Consenso checkbox */
#feedbackModal input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
  accent-color: #002147;
}

/* Pulsante Feedback nella nav */
nav button[onclick="openFeedbackModal()"] {
  position: relative;
  overflow: hidden;
  animation: feedbackPulse 3s ease-in-out infinite;
}

@keyframes feedbackPulse {
  0%, 100% { 
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.3); 
  }
  50% { 
    box-shadow: 0 0 25px rgba(40, 167, 69, 0.6); 
  }
}

nav button[onclick="openFeedbackModal()"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Responsive Feedback */
@media (max-width: 768px) {
  #feedbackModal .modal-content {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  
  .star {
    font-size: 1.5rem;
  }
  
  .mini-star {
    font-size: 1rem;
  }
  
  .rating-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  #techDetails {
    grid-template-columns: 1fr;
  }
  
  nav button[onclick="openFeedbackModal()"] {
    order: -1;
    width: 100%;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .specific-ratings {
    padding: 10px;
  }
  
  .star-rating {
    gap: 2px;
  }
  
  .star {
    font-size: 1.3rem;
  }
}

/* ========================================
   PANNELLO ADMIN
   ======================================== */

/* Admin Section */
#admin {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  padding: 20px 0;
}

/* ==============================================
   ADMIN PANEL PREMIUM - GENOA CFC BRAND
   ============================================== */

.admin-container-premium {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Admin Header Premium */
.admin-header-premium {
  background: linear-gradient(135deg, 
    rgba(0, 33, 71, 0.95) 0%, 
    rgba(200, 16, 46, 0.9) 50%, 
    rgba(0, 33, 71, 0.95) 100%);
  border-radius: 24px;
  padding: 0;
  margin-bottom: 32px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 33, 71, 0.2);
}

.admin-header-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(200, 16, 46, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.admin-hero-section {
  text-align: center;
  padding: 48px 32px 32px;
  position: relative;
  z-index: 2;
}

.admin-crown-badge {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.crown-icon {
  font-size: 3em;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.4));
  animation: float 3s ease-in-out infinite;
}

.crown-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

.admin-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8em;
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.admin-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.admin-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.4);
  padding: 8px 16px;
  border-radius: 25px;
  color: #28a745;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #28a745;
  border-radius: 50%;
}

.status-dot.pulsing {
  animation: pulse-dot 2s infinite;
}

.admin-tools-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.admin-badge-premium {
  display: flex;
  align-items: center;
  gap: 8px;
  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);
  padding: 10px 16px;
  border-radius: 50px;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9em;
  letter-spacing: 1px;
}

.admin-quick-actions {
  display: flex;
  gap: 12px;
}

.admin-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 42px;
}

.admin-btn-test {
  background: rgba(108, 117, 125, 0.2);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(108, 117, 125, 0.3);
}

.admin-btn-test:hover {
  background: #6c757d;
  color: white;
  transform: translateY(-2px);
}

.admin-btn-debug {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.admin-btn-debug:hover {
  background: #ffc107;
  color: #000;
  transform: translateY(-2px);
}

.admin-btn-backup {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.admin-btn-backup:hover {
  background: #28a745;
  color: white;
  transform: translateY(-2px);
}

/* Dashboard Premium Stats */
.admin-dashboard-premium {
  margin-bottom: 32px;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card-premium {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 33, 71, 0.1);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 33, 71, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

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

.stat-card-premium:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 50px rgba(0, 33, 71, 0.15);
  border-color: rgba(200, 16, 46, 0.3);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.stat-icon-container {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  box-shadow: 0 4px 12px rgba(0, 33, 71, 0.15);
}

.stat-icon-container.stat-users {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  color: white;
}

.stat-icon-container.stat-tickets {
  background: linear-gradient(135deg, #c8102e 0%, #dc3545 100%);
  color: white;
}

.stat-icon-container.stat-messages {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.stat-icon-container.stat-engagement {
  background: linear-gradient(135deg, #6f42c1 0%, #6610f2 100%);
  color: white;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8em;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
}

.stat-trend.positive {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.stat-content-premium h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2em;
  font-weight: 900;
  color: #002147;
  margin-bottom: 4px;
  line-height: 1;
}

.stat-content-premium .stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9em;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 8px;
}

.stat-content-premium .stat-detail {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8em;
  color: #adb5bd;
  font-weight: 500;
}

/* Activity Feed Premium */
.activity-feed-premium {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 33, 71, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 33, 71, 0.08);
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: rgba(0, 33, 71, 0.02);
  border-bottom: 1px solid rgba(0, 33, 71, 0.1);
}

.feed-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  color: #002147;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8em;
  font-weight: 600;
  color: #dc3545;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #dc3545;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.feed-content {
  padding: 20px 24px;
  max-height: 300px;
  overflow-y: auto;
}

.stat-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #002147 0%, #c8102e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #002147;
  margin-bottom: 5px;
}

.stat-content p {
  color: #6c757d;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Navigation Tabs Premium */
.admin-nav-premium {
  margin-bottom: 32px;
}

.nav-container {
  display: flex;
  background: white;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0, 33, 71, 0.08);
  border: 1px solid rgba(0, 33, 71, 0.1);
  overflow-x: auto;
  gap: 4px;
}

.admin-nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9em;
  font-weight: 600;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  background: transparent;
  color: #6c757d;
  min-width: fit-content;
  white-space: nowrap;
}

.admin-nav-tab:hover {
  background: rgba(0, 33, 71, 0.05);
  color: #002147;
  transform: translateY(-2px);
}

.admin-nav-tab.active {
  background: linear-gradient(135deg, #002147 0%, #c8102e 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 33, 71, 0.3);
}

.admin-nav-tab.active:hover {
  transform: translateY(-2px) scale(1.02);
}

.tab-icon {
  font-size: 1.1em;
}

.tab-label {
  font-weight: 600;
}

.tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  font-size: 0.7em;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 4px;
}

.admin-nav-tab:not(.active) .tab-badge {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.tab-badge.alert {
  background: #dc3545 !important;
  color: white !important;
}

/* Content Premium */
.admin-content-premium {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 33, 71, 0.08);
  border: 1px solid rgba(0, 33, 71, 0.1);
  overflow: hidden;
}

.admin-tab-content-premium {
  display: none;
  padding: 32px;
}

.admin-tab-content-premium.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.content-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(0, 33, 71, 0.1);
}

.content-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2em;
  font-weight: 800;
  color: #002147;
  margin: 0 0 8px 0;
}

.content-description {
  font-family: 'Montserrat', sans-serif;
  color: #6c757d;
  font-size: 1em;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn.export-btn {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.action-btn.export-btn:hover {
  background: #28a745;
  color: white;
  transform: translateY(-2px);
}

.action-btn.message-btn {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.action-btn.message-btn:hover {
  background: #007bff;
  color: white;
  transform: translateY(-2px);
}

/* Users Overview Premium */
.users-overview-premium {
  margin-bottom: 32px;
}

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

.overview-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 33, 71, 0.02);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 33, 71, 0.1);
  transition: all 0.3s ease;
}

.overview-stat-card:hover {
  background: rgba(0, 33, 71, 0.05);
  transform: translateY(-2px);
}

.overview-stat-card .stat-icon-container {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
}

.overview-stat-card .stat-icon-container.verified {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.overview-stat-card .stat-icon-container.active {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  color: white;
}

.overview-stat-card .stat-icon-container.new {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  color: white;
}

.overview-stat-card .stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8em;
  font-weight: 900;
  color: #002147;
  margin: 0 0 4px 0;
}

.overview-stat-card .stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  color: #6c757d;
  margin: 0;
}

/* Users Table Premium */
.users-table-premium {
  background: white;
  border-radius: 16px;
  overflow: hidden;
}

.table-controls {
  padding: 20px;
  background: rgba(0, 33, 71, 0.02);
  border-bottom: 1px solid rgba(0, 33, 71, 0.1);
}

.search-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  max-width: 300px;
}

.search-input {
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9em;
  padding: 12px 16px;
  border: 2px solid rgba(0, 33, 71, 0.1);
  border-radius: 10px;
  background: white;
  transition: all 0.3s ease;
}

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

.filter-buttons {
  display: flex;
  gap: 8px;
}

.filter-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8em;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid rgba(0, 33, 71, 0.2);
  background: white;
  color: #6c757d;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(0, 33, 71, 0.05);
  color: #002147;
}

.filter-btn.active {
  background: linear-gradient(135deg, #002147 0%, #c8102e 100%);
  color: white;
  border-color: transparent;
}

.table-container {
  max-height: 600px;
  overflow-y: auto;
}

.users-table {
  width: 100%;
  padding: 20px;
}

/* Responsive Design Admin */
@media (max-width: 768px) {
  .admin-container-premium {
    padding: 0 16px;
  }
  
  .admin-header-premium .admin-title {
    font-size: 2.2em;
  }
  
  .admin-tools-bar {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .nav-container {
    overflow-x: auto;
    padding: 6px;
  }
  
  .admin-nav-tab {
    min-width: 120px;
  }
  
  .content-header-premium {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .header-actions {
    justify-content: stretch;
  }
  
  .action-btn {
    flex: 1;
    justify-content: center;
  }
  
  .search-filters {
    flex-direction: column;
    gap: 12px;
  }
  
  .search-box {
    max-width: none;
  }
  
  .overview-stats {
    grid-template-columns: 1fr;
  }
}

/* Users Grid Premium */
.users-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.user-card-premium {
  background: white;
  border: 1px solid rgba(0, 33, 71, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 33, 71, 0.08);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.user-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 33, 71, 0.15);
  border-color: rgba(200, 16, 46, 0.2);
}

.user-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(0, 33, 71, 0.02);
  border-bottom: 1px solid rgba(0, 33, 71, 0.1);
}

.user-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #002147 0%, #c8102e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 33, 71, 0.2);
}

.avatar-letter {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5em;
  font-weight: 900;
  color: white;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: #28a745;
  border: 3px solid white;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

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

.user-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  color: #002147;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-username {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9em;
  color: #6c757d;
  margin: 0 0 12px 0;
}

.user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7em;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.badge.verified {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.badge.unverified {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.badge.admin {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.badge.active {
  background: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
}

.badge.inactive {
  background: rgba(52, 58, 64, 0.1);
  color: #343a40;
}

.user-card-body {
  padding: 16px 20px;
}

.user-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85em;
}

.user-detail:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-weight: 600;
  color: #6c757d;
  flex-shrink: 0;
}

.detail-value {
  color: #002147;
  text-align: right;
  word-break: break-word;
  max-width: 60%;
}

.user-card-actions {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(0, 33, 71, 0.02);
  border-top: 1px solid rgba(0, 33, 71, 0.1);
}

.action-btn-small {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75em;
  font-weight: 600;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
}

.action-btn-small.message {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.action-btn-small.message:hover {
  background: #007bff;
  color: white;
}

.action-btn-small.verify {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.action-btn-small.verify:hover {
  background: #28a745;
  color: white;
}

.action-btn-small.admin {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.2);
}

.action-btn-small.admin:hover {
  background: #6c757d;
  color: white;
}

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

.empty-state-admin .empty-icon {
  font-size: 4em;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state-admin h3 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 12px;
  color: #002147;
}

@media (max-width: 768px) {
  .users-grid-premium {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .user-card-actions {
    flex-direction: column;
  }
  
  .action-btn-small {
    justify-content: center;
  }
}

/* ==============================================
   SEZIONI PREMIUM - GENOA CFC DESIGN
   ============================================== */

/* Trattative Premium */
.trattative-container-premium {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.trattative-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding: 32px;
  background: linear-gradient(135deg, 
    rgba(0, 33, 71, 0.95) 0%, 
    rgba(200, 16, 46, 0.9) 100%);
  border-radius: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.trattative-header-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.header-content {
  position: relative;
  z-index: 2;
}

.trattative-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5em;
  font-weight: 900;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.title-icon {
  font-size: 0.8em;
  padding: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.trattative-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  opacity: 0.9;
  margin: 0;
}

.trattative-stats {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 2em;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8em;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 4px;
}

.trattative-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  background: white;
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 33, 71, 0.1);
}

.filter-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9em;
  font-weight: 600;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
}

.filter-tab:hover {
  background: rgba(0, 33, 71, 0.05);
  color: #002147;
}

.filter-tab.active {
  background: linear-gradient(135deg, #002147 0%, #c8102e 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 33, 71, 0.3);
}

.subscription-list-premium {
  min-height: 300px;
}

/* Ticket Premium */
.ticket-container-premium {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.ticket-header-premium {
  position: relative;
  background: linear-gradient(135deg, #002147 0%, #c8102e 100%);
  border-radius: 24px;
  padding: 48px 32px;
  margin-bottom: 32px;
  overflow: hidden;
  color: white;
  text-align: center;
}

.header-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.genoa-pattern-overlay {
  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%);
}

.ticket-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 25px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9em;
  margin-bottom: 20px;
}

.ticket-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3em;
  font-weight: 900;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ticket-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  opacity: 0.9;
  margin: 0;
}

.ticket-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.info-card-premium {
  background: white;
  border: 1px solid rgba(0, 33, 71, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 33, 71, 0.08);
  transition: all 0.3s ease;
}

.info-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 33, 71, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: rgba(0, 33, 71, 0.02);
  border-bottom: 1px solid rgba(0, 33, 71, 0.1);
}

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

.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  color: #002147;
}

.card-content {
  padding: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-label {
  font-weight: 600;
  color: #6c757d;
  font-size: 0.9em;
}

.info-value {
  font-weight: 700;
  color: #002147;
}

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

.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.team-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 33, 71, 0.2);
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vs-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: #c8102e;
  font-size: 1.2em;
}

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

.match-date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #002147;
  font-size: 1.1em;
}

.match-time {
  font-family: 'Montserrat', sans-serif;
  color: #6c757d;
  font-size: 0.9em;
  margin-top: 4px;
}

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

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8em;
  font-weight: 900;
  color: #002147;
  line-height: 1;
}

.stat-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8em;
  font-weight: 600;
  color: #6c757d;
  margin-top: 4px;
}

.ticket-actions-premium {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.action-btn-premium {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  font-weight: 600;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn-premium.primary {
  background: linear-gradient(135deg, #002147 0%, #c8102e 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 33, 71, 0.3);
}

.action-btn-premium.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 33, 71, 0.4);
}

.action-btn-premium.secondary {
  background: rgba(0, 33, 71, 0.1);
  color: #002147;
  border: 1px solid rgba(0, 33, 71, 0.2);
}

.action-btn-premium.secondary:hover {
  background: rgba(0, 33, 71, 0.15);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .trattative-header-premium {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .trattative-title {
    font-size: 2em;
  }
  
  .trattative-stats {
    justify-content: center;
  }
  
  .trattative-filters {
    flex-direction: column;
    gap: 8px;
  }
  
  .ticket-title {
    font-size: 2.2em;
  }
  
  .ticket-info-cards {
    grid-template-columns: 1fr;
  }
  
  .ticket-actions-premium {
    flex-direction: column;
    align-items: stretch;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.tab-button:hover {
  background: #002147;
  color: white;
  transform: translateY(-2px);
}

.tab-button.active {
  background: linear-gradient(135deg, #002147 0%, #c8102e 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0,33,71,0.3);
}

.tab-button .badge {
  background: #dc3545;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  margin-left: 8px;
}

/* Admin Content */
.admin-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
}

.admin-tab-content {
  display: none;
  padding: 30px;
}

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

/* Feedback Management */
.feedback-management h3 {
  color: #002147;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.feedback-filters {
  display: flex;
  gap: 10px;
  align-items: center;
}

.feedback-filters select {
  padding: 8px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-weight: 600;
}

/* Feedback Items */
.feedbacks-list {
  max-height: 600px;
  overflow-y: auto;
}

.feedback-item {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.feedback-item:hover {
  border-color: #002147;
  box-shadow: 0 4px 15px rgba(0,33,71,0.1);
}

.feedback-item.status-new {
  border-left: 5px solid #007bff;
}

.feedback-item.status-pending {
  border-left: 5px solid #ffc107;
}

.feedback-item.status-resolved {
  border-left: 5px solid #28a745;
}

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

.feedback-type {
  font-weight: 700;
  color: #002147;
  font-size: 1.1rem;
}

.feedback-date {
  color: #6c757d;
  font-size: 0.9rem;
}

.feedback-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.feedback-status.status-new {
  background: #d1ecf1;
  color: #0c5460;
}

.feedback-status.status-pending {
  background: #fff3cd;
  color: #856404;
}

.feedback-status.status-resolved {
  background: #d4edda;
  color: #155724;
}

.feedback-content {
  margin-bottom: 15px;
}

.feedback-content > div {
  margin-bottom: 10px;
  padding: 10px;
  background: white;
  border-radius: 8px;
}

.feedback-content strong {
  color: #002147;
}

.feedback-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.admin-response {
  margin-top: 15px;
  background: #e8f5e8;
  border: 1px solid #c3e6c3;
  border-radius: 8px;
  padding: 15px;
}

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

/* Analytics Dashboard */
.analytics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.analytics-card {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.analytics-card:hover {
  border-color: #002147;
  transform: translateY(-2px);
}

.analytics-card h4 {
  color: #002147;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.analytics-data {
  font-size: 0.9rem;
  color: #495057;
}

.analytics-data div {
  padding: 5px 0;
  border-bottom: 1px solid #dee2e6;
}

.analytics-data div:last-child {
  border-bottom: none;
}

.real-time-users {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
}

.live-counter {
  font-size: 3rem;
  font-weight: 800;
  margin-top: 10px;
}

/* Settings */
.admin-settings h3 {
  color: #002147;
  margin-bottom: 25px;
}

.settings-sections {
  display: grid;
  gap: 25px;
}

.setting-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #002147;
}

.setting-section h4 {
  color: #002147;
  margin-bottom: 15px;
}

.setting-section label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.setting-section input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #002147;
}

/* Responsive Admin */
@media (max-width: 768px) {
  .admin-container {
    padding: 0 10px;
  }
  
  .admin-header {
    padding: 20px 15px;
  }
  
  .admin-header h2 {
    font-size: 1.5rem;
  }
  
  .admin-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 20px;
  }
  
  .admin-tabs {
    padding: 15px;
  }
  
  .tab-button {
    flex: 1;
    min-width: 0;
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .admin-tab-content {
    padding: 20px 15px;
  }
  
  .feedback-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .feedback-filters {
    width: 100%;
    justify-content: space-between;
  }
  
  .feedback-actions {
    justify-content: center;
  }
  
  .analytics-cards {
    grid-template-columns: 1fr;
  }
  
  .analytics-card {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .stat-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .feedback-item {
    padding: 15px;
  }
  
  .feedback-actions {
    flex-direction: column;
  }
  
  .btn-sm {
    width: 100%;
  }
}

/* ======================================
   OTTIMIZZAZIONI MOBILE ADVANCED
   Ti Presto Genoa 1893 - LAYOUT FIXES
   ====================================== */

/* CRITICAL MOBILE FIXES */
@media (max-width: 768px) {
  
  /* FIX: Header troppo ingombrante */
  header {
    padding: 10px 8px !important;
  }
  
  .site-brand {
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }
  
  .brand-logo {
    width: 48px !important;
    height: 48px !important;
  }
  
  .title-main {
    font-size: 1.4rem !important;
    line-height: 1.1 !important;
  }
  
  .title-sub {
    font-size: 0.7rem !important;
  }
  
  /* FIX: Navigazione hamburger sempre visibile */
  .mobile-menu-toggle {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
    position: absolute !important;
    top: 50% !important;
    right: 15px !important;
    transform: translateY(-50%) !important;
    z-index: 10001 !important;
  }
  
  .main-nav {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 280px !important;
    height: 100vh !important;
    background: linear-gradient(180deg, #002147 0%, #c8102e 100%) !important;
    flex-direction: column !important;
    padding: 80px 20px 20px 20px !important;
    gap: 0 !important;
    transition: right 0.3s ease !important;
    z-index: 10000 !important;
    box-shadow: -5px 0 25px rgba(0,0,0,0.3) !important;
  }
  
  .main-nav.mobile-open {
    right: 0 !important;
  }
  
  .main-nav button {
    width: 100% !important;
    padding: 16px 20px !important;
    margin: 0 0 8px 0 !important;
    text-align: left !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    font-size: 0.9rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
  }
  
  /* FIX: Cards abbonamenti compresse */
  .home-listing-item {
    padding: 16px !important;
    margin-bottom: 16px !important;
  }
  
  .listing-header {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }
  
  .match-teams {
    justify-content: center !important;
    gap: 12px !important;
  }
  
  .team-logo {
    width: 40px !important;
    height: 40px !important;
  }
  
  .match-title {
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
  }
  
  .sector-price {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
  }
  
  /* FIX: Modal full-screen */
  .modal {
    padding: 0 !important;
    align-items: stretch !important;
  }
  
  .modal-content {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 20px !important;
    overflow-y: auto !important;
  }
  
  .modal-content h2 {
    font-size: 1.3rem !important;
    padding-top: 40px !important;
  }
  
  .close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    background: rgba(0,0,0,0.1) !important;
    border-radius: 50% !important;
    z-index: 10001 !important;
  }
  
  /* FIX: Chat mobile ottimizzata */
  .chat-modal-content {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .chat-modal-content .modal-body {
    padding: 16px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  #chatBox {
    flex: 1 !important;
    max-height: none !important;
    min-height: 200px !important;
  }
  
  .chat-input-container {
    position: sticky !important;
    bottom: 0 !important;
    background: white !important;
    padding: 16px 0 !important;
    border-top: 1px solid #eee !important;
  }
  
  #chatInput {
    font-size: 16px !important; /* Prevent iOS zoom */
  }
  
  /* FIX: Form booking ottimizzati */
  #booking {
    margin: 20px 12px !important;
  }
  
  .booking-header {
    padding: 20px 16px !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
  }
  
  .booking-form-container {
    padding: 20px !important;
  }
  
  .form-group input,
  .form-group select {
    padding: 16px !important;
    font-size: 16px !important; /* Prevent iOS zoom */
  }
  
  .btn-sell-subscription {
    width: 100% !important;
    padding: 16px !important;
  }
  
  /* FIX: Touch targets minimi 44px */
  button, .btn, a[role="button"] {
    min-height: 44px !important;
    min-width: 44px !important;
    touch-action: manipulation !important;
  }
  
  /* FIX: Next match section */
  #nextMatchSection {
    margin: 15px 12px 25px 12px !important;
    padding: 20px !important;
  }
  
  .next-match-card {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    text-align: center !important;
  }
  
  .team {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto !important;
  }
  
  /* FIX: Upcoming match */
  .upcoming-match-content {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    text-align: center !important;
  }
  
  .upcoming-logo {
    width: 40px !important;
    height: 40px !important;
    margin: 0 auto !important;
  }
  
  /* FIX: User controls */
  #userControls {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    justify-content: center !important;
    margin-top: 8px !important;
    gap: 10px !important;
  }
  
  #loginBtn, #logoutBtn {
    font-size: 0.7rem !important;
    padding: 6px 12px !important;
    min-width: 80px !important;
  }
  
  /* FIX: Notification bell */
  #notificationBell {
    padding: 8px !important;
    width: 36px !important;
    height: 36px !important;
  }
  
  .notification-dropdown {
    width: 95vw !important;
    right: -80px !important;
    max-width: 320px !important;
  }
  
  /* FIX: Profile section */
  .profile-header {
    padding: 20px !important;
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
  }
  
  .profile-content {
    padding: 20px !important;
    grid-template-columns: 1fr !important;
  }
  
  .form-row {
    grid-template-columns: 1fr !important;
  }
  
  /* FIX: Toast notifications */
  #toast-container {
    left: 12px !important;
    right: 12px !important;
    bottom: 20px !important;
  }
  
  .toast {
    width: auto !important;
    max-width: none !important;
  }
}

/* ULTRA-MOBILE OPTIMIZATIONS (< 480px) */
@media (max-width: 480px) {
  
  header {
    padding: 8px 6px !important;
  }
  
  .title-main {
    font-size: 1.2rem !important;
  }
  
  .title-sub {
    font-size: 0.65rem !important;
  }
  
  .home-listing-item {
    padding: 12px !important;
  }
  
  .match-title {
    font-size: 1rem !important;
  }
  
  .btn-primary {
    padding: 12px 20px !important;
    font-size: 0.85rem !important;
  }
  
  .modal-content {
    padding: 16px !important;
  }
  
  .booking-form-container {
    padding: 16px !important;
  }
  
  #nextMatchSection {
    padding: 16px !important;
  }
  
  .team {
    width: 70px !important;
    height: 70px !important;
  }
}

/* LANDSCAPE MOBILE FIXES */
@media (max-height: 500px) and (orientation: landscape) {
  
  .modal-content {
    max-height: 90vh !important;
    padding: 16px !important;
  }
  
  .chat-modal-content .modal-body {
    padding: 12px !important;
  }
  
  #chatBox {
    min-height: 150px !important;
  }
  
  .booking-header {
    padding: 16px !important;
  }
  
  #nextMatchSection {
    padding: 16px !important;
  }
}

/* ========== ADMIN PANEL AVANZATO ========== */

/* User management styles */
.user-item {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.user-item:hover {
  border-color: #002147;
  box-shadow: 0 2px 8px rgba(0, 33, 71, 0.1);
}

.user-item.user-active {
  border-left: 4px solid #28a745;
  background: #f8fff9;
}

.user-item.user-inactive {
  border-left: 4px solid #6c757d;
  opacity: 0.8;
}

.user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.user-username {
  color: #6c757d;
  font-size: 0.9rem;
}

.verified-badge {
  background: #28a745;
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.unverified-badge {
  background: #dc3545;
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.user-details {
  font-size: 0.9rem;
  color: #495057;
  margin-bottom: 12px;
}

.user-details div {
  margin-bottom: 4px;
}

.user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Admin modal styles */
.admin-modal .modal-content {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.user-details-modal {
  padding: 8px;
}

.user-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #dee2e6;
}

.user-status.verified {
  background: #28a745;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.user-status.unverified {
  background: #dc3545;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.user-details-content {
  display: grid;
  gap: 24px;
}

.details-section h4 {
  color: #002147;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.detail-row {
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
  border-bottom: none;
}

.abbonamento-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 8px;
}

.abbonamento-item .price {
  font-weight: 600;
  color: #002147;
}

.abbonamento-item .status.available {
  color: #28a745;
  font-weight: 500;
}

.abbonamento-item .status.unavailable {
  color: #dc3545;
  font-weight: 500;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #e9ecef;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-action {
  font-weight: 500;
}

.activity-time {
  color: #6c757d;
  font-size: 0.85rem;
}

.user-details-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid #dee2e6;
  flex-wrap: wrap;
}

/* Analytics improvements */
.analytics-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #dee2e6;
}

.analytics-item:last-child {
  border-bottom: none;
}

.section-name, .search-query {
  font-weight: 500;
}

.section-count, .search-count {
  color: #002147;
  font-weight: 600;
}

.analytics-metric {
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: #002147;
  display: block;
}

.metric-label {
  color: #6c757d;
  font-size: 0.9rem;
}

.session-stats {
  margin-top: 8px;
  color: #6c757d;
  text-align: center;
}

.device-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.device-name {
  min-width: 80px;
  font-weight: 500;
}

.device-bar {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.device-fill {
  height: 100%;
  background: linear-gradient(90deg, #002147 0%, #c8102e 100%);
  transition: width 0.5s ease;
}

.device-percentage {
  min-width: 40px;
  text-align: right;
  font-weight: 600;
  color: #002147;
}

.live-counter.high-activity {
  animation: pulse-green 2s infinite;
}

.live-counter.normal-activity {
  animation: pulse-blue 3s infinite;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); color: #28a745; }
  50% { transform: scale(1.05); color: #20c997; }
}

@keyframes pulse-blue {
  0%, 100% { transform: scale(1); color: #007bff; }
  50% { transform: scale(1.02); color: #0056b3; }
}

.no-data {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  padding: 20px;
}

/* Button sizes for admin */
.btn-sm {
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
}

.btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  color: white;
  border: none;
}

.btn-info:hover {
  background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
  transform: translateY(-1px);
}

/* Match Management Styles */
.matches-overview-premium {
  margin-bottom: 30px;
}

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

.overview-stat-card {
  background: #fff;
  border: 2px solid #e8ecf0;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.overview-stat-card:hover {
  border-color: #c8102e;
  box-shadow: 0 8px 25px rgba(200, 16, 46, 0.1);
}

.stat-icon-container {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 2px solid #e8ecf0;
}

.stat-icon-container.active {
  background: rgba(40, 167, 69, 0.1);
  border-color: #28a745;
}

.stat-icon-container.suspended {
  background: rgba(255, 193, 7, 0.1);
  border-color: #ffc107;
}

.stat-icon-container.upcoming {
  background: rgba(0, 123, 255, 0.1);
  border-color: #007bff;
}

.stat-icon {
  font-size: 24px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #002147;
  margin: 0 0 5px 0;
}

.stat-label {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.matches-controls-premium {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid #e8ecf0;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  flex: 1;
  min-width: 250px;
}

.search-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e8ecf0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
}

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

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 2px solid #e8ecf0;
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn.active {
  background: #c8102e;
  color: #fff;
  border-color: #c8102e;
}

.filter-btn:hover:not(.active) {
  border-color: #c8102e;
  color: #c8102e;
}

.bulk-actions {
  display: flex;
  gap: 10px;
}

.bulk-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bulk-btn.activate {
  background: #28a745;
  color: #fff;
}

.bulk-btn.suspend {
  background: #ffc107;
  color: #000;
}

.bulk-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.matches-table-premium {
  background: #fff;
  border-radius: 15px;
  border: 2px solid #e8ecf0;
  overflow: hidden;
}

.table-container {
  overflow-x: auto;
}

.matches-table {
  width: 100%;
  min-width: 800px;
}

/* Match Form Styles */
.match-form-premium {
  padding: 0;
}

.form-grid-match {
  display: grid;
  gap: 30px;
}

.form-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  border: 2px solid #e8ecf0;
}

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

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

.form-row:last-child {
  margin-bottom: 0;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #002147;
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  padding: 12px 15px;
  border: 2px solid #e8ecf0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

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

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

.sector-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  border: 2px solid #e8ecf0;
}

.sector-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #002147;
  cursor: pointer;
  flex: 1;
}

.sector-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #c8102e;
}

.sector-item input[type="number"] {
  max-width: 100px;
  padding: 8px 10px;
  border: 2px solid #e8ecf0;
  border-radius: 6px;
  font-size: 14px;
}

/* Modal Premium Styles for Match Management */
.modal-content-premium {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 33, 71, 0.2);
  width: 95%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  color: #fff;
  padding: 20px 30px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  transition: all 0.3s ease;
}

.modal-close:hover {
  transform: scale(1.1);
  color: #c8102e;
}

.modal-body {
  padding: 30px;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 2px solid #e8ecf0;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  background: #f8f9fa;
  border-radius: 0 0 20px 20px;
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #c8102e 0%, #a50e26 100%);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.btn-icon {
  font-size: 16px;
}

/* Responsive Match Management */
@media (max-width: 768px) {
  .overview-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    min-width: auto;
  }
  
  .filter-buttons,
  .bulk-actions {
    justify-content: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .sectors-config {
    grid-template-columns: 1fr;
  }
  
  .sector-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .sector-label {
    justify-content: center;
  }
  
  .modal-content-premium {
    width: 98%;
    max-width: none;
    margin: 10px;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 20px;
  }
  
  .modal-footer {
    flex-direction: column;
  }
}

/* System Controls Styles */
.system-controls-premium {
  display: grid;
  gap: 30px;
}

.control-section {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  border: 2px solid #e8ecf0;
}

.control-section .section-title {
  font-size: 18px;
  font-weight: 700;
  color: #002147;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-buttons {
  display: grid;
  gap: 15px;
}

.control-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 2px solid #e8ecf0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.control-btn:hover {
  border-color: #c8102e;
  box-shadow: 0 5px 15px rgba(200, 16, 46, 0.1);
  transform: translateY(-2px);
}

.control-btn.load {
  border-color: #28a745;
}

.control-btn.load:hover {
  border-color: #1e7e34;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

.control-btn.sync {
  border-color: #007bff;
}

.control-btn.sync:hover {
  border-color: #0056b3;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.control-btn.danger {
  border-color: #dc3545;
}

.control-btn.danger:hover {
  border-color: #c82333;
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.2);
}

.control-btn.super-danger {
  border-color: #ff4444;
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.05) 0%, rgba(255, 0, 0, 0.05) 100%);
}

.control-btn.super-danger:hover {
  border-color: #ff0000;
  box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(255, 0, 0, 0.1) 100%);
}

.control-btn.super-danger .btn-text {
  color: #ff4444 !important;
  font-weight: 700;
}

.control-btn.super-danger .btn-desc {
  color: #ff6666 !important;
  font-weight: 600;
}

.control-btn .btn-icon {
  font-size: 24px;
  min-width: 40px;
  text-align: center;
}

.btn-content {
  flex: 1;
}

.control-btn .btn-text {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #002147;
  margin-bottom: 5px;
}

.control-btn .btn-desc {
  display: block;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.4;
}

.system-status {
  display: grid;
  gap: 15px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e8ecf0;
}

.status-label {
  font-weight: 600;
  color: #002147;
}

.status-value {
  font-weight: 700;
  color: #28a745;
  background: rgba(40, 167, 69, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
}

/* Responsive admin panel */
@media (max-width: 768px) {
  .control-btn {
    padding: 15px;
    gap: 10px;
  }
  
  .control-btn .btn-icon {
    font-size: 20px;
    min-width: 30px;
  }
  
  .control-btn .btn-text {
    font-size: 14px;
  }
  
  .control-btn .btn-desc {
    font-size: 12px;
  }
  
  .status-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    text-align: center;
  }
  
  .user-details-actions {
    flex-direction: column;
  }
  
  .user-actions {
    justify-content: center;
  }
  
  .admin-modal .modal-content {
    margin: 10px;
    max-height: 95vh;
  }
  
  .user-details-content {
    gap: 16px;
  }
  
  .analytics-cards {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   MOBILE OPTIMIZATION ENHANCEMENTS
   ======================================== */

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
  nav {
    padding: 8px 16px !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 33, 71, 0.95) !important;
  }
  
  nav button {
    font-size: 12px !important;
    padding: 8px 12px !important;
    white-space: nowrap;
    border-radius: 20px;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px !important;
    padding: 8px 12px !important;
  }
  
  nav button {
    flex: 1;
    min-width: calc(50% - 3px);
    max-width: 160px;
    font-size: 11px !important;
    padding: 6px 8px !important;
  }
}

/* Mobile Homepage Optimizations */
@media (max-width: 768px) {
  .homepage-hero {
    padding: 20px 16px !important;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.2em !important;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 16px !important;
    line-height: 1.4;
    margin-top: 12px;
  }
  
  .homepage-stats {
    padding: 0 16px;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  
  .stat-card-premium {
    padding: 16px !important;
    min-height: 100px;
  }
  
  .stat-number {
    font-size: 24px !important;
  }
  
  .stat-label {
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .homepage-stats {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  .hero-title {
    font-size: 1.8em !important;
  }
}

/* Mobile Listings Optimization */
@media (max-width: 768px) {
  .listings-container {
    padding: 0 16px !important;
  }
  
  .listing-card {
    margin-bottom: 16px !important;
    padding: 16px !important;
    border-radius: 12px;
  }
  
  .listing-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }
  
  .match-info h3 {
    font-size: 16px !important;
    line-height: 1.2;
  }
  
  .match-date {
    font-size: 13px !important;
  }
  
  .price-tag {
    padding: 6px 12px !important;
    font-size: 14px !important;
  }
  
  .listing-details {
    padding: 12px 0 !important;
  }
  
  .detail-item {
    font-size: 13px !important;
    margin-bottom: 6px;
  }
  
  .listing-actions {
    gap: 8px !important;
  }
  
  .action-button {
    padding: 10px 16px !important;
    font-size: 13px !important;
    border-radius: 8px;
    min-height: 44px;
  }
}

/* Mobile Modal Optimizations */
@media (max-width: 768px) {
  .modal {
    padding: 10px !important;
    align-items: flex-start;
    padding-top: 20px;
  }
  
  .modal-content,
  .modal-content-premium {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 16px !important;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-header {
    padding: 16px 20px !important;
    border-radius: 16px 16px 0 0 !important;
  }
  
  .modal-title {
    font-size: 18px !important;
  }
  
  .modal-body {
    padding: 20px !important;
  }
  
  .modal-footer {
    padding: 16px 20px !important;
    flex-direction: column-reverse;
    gap: 10px;
  }
  
  .modal-footer button {
    width: 100% !important;
    order: -1;
  }
  
  .btn-secondary {
    order: 1;
  }
}

/* Mobile Form Optimizations */
@media (max-width: 768px) {
  .form-group {
    margin-bottom: 16px !important;
  }
  
  .form-group label {
    font-size: 14px !important;
    margin-bottom: 6px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 16px !important;
    font-size: 16px !important;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .sectors-config {
    grid-template-columns: 1fr !important;
  }
  
  .sector-item {
    padding: 12px !important;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Mobile Admin Panel Optimizations */
@media (max-width: 768px) {
  .admin-container {
    padding: 16px !important;
  }
  
  .admin-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  
  .admin-nav-tabs {
    min-width: 600px;
    gap: 8px !important;
  }
  
  .admin-nav-tab {
    min-width: 120px;
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
  
  .tab-label {
    font-size: 12px !important;
  }
  
  .admin-content {
    padding: 16px 0 !important;
  }
  
  .content-header-premium {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 16px;
  }
  
  .header-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  
  .action-btn {
    width: 100% !important;
    justify-content: center;
  }
}

/* Mobile Search and Filters */
@media (max-width: 768px) {
  .search-filters {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px !important;
  }
  
  .search-box {
    width: 100% !important;
  }
  
  .search-input {
    padding: 12px 16px !important;
    font-size: 16px !important;
  }
  
  .filter-buttons {
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center;
  }
  
  .filter-btn {
    padding: 8px 16px !important;
    font-size: 12px !important;
    min-width: 80px;
    text-align: center;
  }
}

/* Mobile Tables */
@media (max-width: 768px) {
  .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }
  
  .matches-table,
  .admin-table {
    min-width: 600px !important;
  }
  
  .matches-table th,
  .matches-table td,
  .admin-table th,
  .admin-table td {
    padding: 8px !important;
    font-size: 12px !important;
  }
  
  .admin-table img {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Mobile Toast Notifications */
@media (max-width: 768px) {
  .toast {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    left: 16px !important;
    right: 16px !important;
    border-radius: 12px;
  }
}

/* Mobile Accessibility Improvements */
@media (max-width: 768px) {
  /* Larger touch targets */
  button,
  .btn,
  a[role="button"] {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 8px 16px !important;
  }
  
  /* Better contrast for small screens */
  .badge,
  .tab-badge {
    font-weight: 700 !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
  
  /* Improved spacing */
  .section {
    padding: 16px !important;
  }
  
  /* Better text sizing */
  h1 { font-size: 24px !important; }
  h2 { font-size: 20px !important; }
  h3 { font-size: 18px !important; }
  h4 { font-size: 16px !important; }
  
  p, span, div {
    line-height: 1.5 !important;
  }
}

/* Ultra-small devices (320px and down) */
@media (max-width: 375px) {
  body {
    font-size: 14px !important;
  }
  
  .homepage-hero {
    padding: 16px 12px !important;
  }
  
  .hero-title {
    font-size: 1.6em !important;
  }
  
  .modal-content,
  .modal-content-premium {
    border-radius: 12px !important;
  }
  
  .admin-nav-tabs {
    min-width: 100%;
    flex-wrap: wrap;
  }
  
  .admin-nav-tab {
    flex: 1;
    min-width: calc(50% - 4px);
  }
}

/* CSS Custom Properties for Mobile */
:root {
  --vh: 1vh;
}

/* Mobile viewport height fix */
@media (max-width: 768px) {
  .modal {
    height: calc(var(--vh, 1vh) * 100);
  }
  
  .section {
    min-height: calc(var(--vh, 1vh) * 100 - 80px);
  }
}

/* Touch device specific styles */
.touch-device button:hover {
  transform: none !important;
}

.touch-device .action-button:active,
.touch-device .btn:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Mobile navigation hide/show animation */
@media (max-width: 768px) {
  nav {
    transition: transform 0.3s ease-in-out;
  }
  
  nav.nav-hidden {
    transform: translateY(-100%);
  }
}

/* Better mobile scrolling */
.mobile-view .table-container,
.mobile-view .admin-nav {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.mobile-view .table-container::-webkit-scrollbar,
.mobile-view .admin-nav::-webkit-scrollbar {
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
}

.mobile-view .table-container::-webkit-scrollbar-thumb,
.mobile-view .admin-nav::-webkit-scrollbar-thumb {
  background: rgba(200, 16, 46, 0.5);
  border-radius: 2px;
}

/* Mobile focus states */
@media (max-width: 768px) {
  input:focus,
  textarea:focus,
  select:focus {
    outline: 2px solid #c8102e;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
  }
}

/* ========================================
   SEZIONE RIEPILOGO SVILUPPO SITO
   ======================================== */

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

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

.session-header h2 {
  color: #002147;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.session-header p {
  color: #666;
  font-size: 1.1rem;
}

/* Timeline Development */
.development-timeline {
  position: relative;
  margin: 40px 0;
}

.development-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #28a745 0%, #20c997 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-left: 80px;
}

.timeline-icon {
  position: absolute;
  left: 10px;
  top: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.timeline-content {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #28a745;
  flex: 1;
}

.timeline-content h3 {
  color: #002147;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.timeline-content > p {
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
}

.implementation-details h4 {
  color: #28a745;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.implementation-details ul {
  list-style: none;
  padding: 0;
}

.implementation-details li {
  padding: 5px 0;
  color: #333;
  position: relative;
  padding-left: 20px;
}

.implementation-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background: linear-gradient(135deg, #002147 0%, #1a4480 100%);
  color: white;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 33, 71, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Transformation Summary */
.transformation-summary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
  text-align: center;
}

.transformation-summary h3 {
  color: #002147;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.before-after {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.before, .after {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 250px;
}

.before h4 {
  color: #dc3545;
  margin-bottom: 10px;
}

.after h4 {
  color: #28a745;
  margin-bottom: 10px;
}

.arrow {
  font-size: 2rem;
  color: #28a745;
  font-weight: bold;
}

/* Technical Details */
.technical-details {
  margin: 40px 0;
}

.technical-details h3 {
  color: #002147;
  font-size: 1.6rem;
  margin-bottom: 20px;
  text-align: center;
}

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

.tech-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #c8102e;
}

.tech-item h4 {
  color: #002147;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.tech-item p {
  color: #666;
  line-height: 1.5;
}

/* Final Transformations */
.final-transformations {
  margin-top: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  border: 2px solid #dee2e6;
}

.final-transformations h3 {
  color: #495057;
  margin: 0 0 25px 0;
  text-align: center;
  font-size: 1.4em;
}

.final-transformation-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.transformation-final-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border-left: 4px solid #28a745;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.transformation-final-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Session Completion Banner */
.session-completion-banner {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 35px;
  border-radius: 20px;
  text-align: center;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4);
  position: relative;
  overflow: hidden;
}

.session-completion-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.completion-header {
  position: relative;
  z-index: 2;
  margin-bottom: 25px;
}

.completion-header h3 {
  margin: 0 0 15px 0;
  font-size: 1.6em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-weight: 700;
}

.completion-header p {
  margin: 0;
  font-size: 1.1em;
  opacity: 0.95;
  line-height: 1.6;
}

.completion-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin: 25px 0;
  position: relative;
  z-index: 2;
}

.completion-stat {
  text-align: center;
  padding: 15px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.completion-stat .stat-value {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.completion-stat .stat-desc {
  font-size: 0.9em;
  opacity: 0.9;
  font-weight: 500;
}

.success-features {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin: 25px 0;
}

.feature-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.next-step-banner {
  margin-top: 25px;
  padding: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  z-index: 2;
}

.next-step-banner h4 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  color: #fff;
}

.next-step-banner p {
  margin: 0;
  font-size: 1em;
  opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .session-summary-container {
    padding: 15px;
  }
  
  .session-header h2 {
    font-size: 1.8rem;
  }
  
  .development-timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-icon {
    left: 0;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .timeline-content {
    padding: 15px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .stat-card {
    padding: 20px 15px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .before-after {
    flex-direction: column;
    gap: 15px;
  }
  
  .arrow {
    transform: rotate(90deg);
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .success-features {
    gap: 8px;
  }
  
  .feature-badge {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}
