/* ==========================================================================
   RESET & VARIABILI COLORE (LO SVIZZERO HUB - COMPATIBILE CPANEL & BROWSER)
   ========================================================================== */
:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #12161f;
  --bg-card: rgba(18, 24, 38, 0.85);
  --border-card: rgba(255, 255, 255, 0.08);

  --accent-red: #e60012;
  --accent-red-glow: rgba(230, 0, 18, 0.4);
  --accent-yellow: #ffb703;
  --accent-cyan: #00d4ff;
  --discord-purple: #5865F2;
  --discord-hover: #4752c4;
  --discord-glow: rgba(88, 101, 242, 0.5);

  --text-main: #f0f2f5;
  --text-muted: #8c9ba5;
  --text-dim: #5c6873;

  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-body: 'Rajdhani', -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #0a0c10;
  background-color: var(--bg-primary);
  color: #f0f2f5;
  color: var(--text-main);
  font-family: 'Rajdhani', -apple-system, sans-serif;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 45px 45px;
  pointer-events: none;
  z-index: 0;
}

.glow-sphere {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.sphere-top {
  top: -150px;
  right: -100px;
  background-color: #5865F2;
  background-color: var(--discord-purple);
}

.sphere-bottom {
  bottom: 10%;
  left: -150px;
  background-color: #e60012;
  background-color: var(--accent-red);
}

/* ==========================================================================
   NAVBAR & QUADRATO LAMPEGGIANTE GRADO CP A+ / CS S A SINISTRA
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0a0c10;
  background-color: rgba(10, 12, 16, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  padding: 10px 24px;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-rank-square {
  position: relative;
  width: 52px;
  height: 52px;
  background-color: #161d2e;
  background-image: linear-gradient(145deg, #161d2e 0%, #0b0e16 100%);
  border: 2px solid #ffb703;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  animation: rankSquareGlow 1.8s infinite alternate;
}

.rank-blink-led {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  background-color: #00ff88;
  border-radius: 50%;
  border: 2px solid #0a0c10;
  box-shadow: 0 0 10px #00ff88, 0 0 18px #00ff88;
  animation: ledFlash 1s infinite alternate;
}

.rank-square-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 3px;
  line-height: 1.1;
}

.rank-square-divider {
  width: 85%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 2px 0;
}

.rank-k {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  color: #8c9ba5;
}

.rank-v {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  color: #ffb703;
}

.rank-v.rank-s {
  color: #00d4ff;
}

@keyframes rankSquareGlow {
  0% {
    box-shadow: 0 0 6px rgba(255, 183, 3, 0.25), inset 0 0 4px rgba(255, 183, 3, 0.15);
    border-color: rgba(255, 183, 3, 0.65);
  }
  100% {
    box-shadow: 0 0 18px rgba(255, 183, 3, 0.75), inset 0 0 10px rgba(255, 183, 3, 0.35);
    border-color: #ffb703;
  }
}

@keyframes ledFlash {
  0% {
    opacity: 0.25;
    transform: scale(0.85);
    box-shadow: 0 0 2px #00ff88;
  }
  100% {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 0 12px #00ff88, 0 0 20px #00ff88;
  }
}

.brand-main {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1.5px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: #8c9ba5;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a.nav-community-link {
  color: #ffb703;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-discord-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #5865F2;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.btn-discord-nav:hover {
  background-color: #4752c4;
}

.btn-auth-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffb703;
  background-image: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
  color: #0a0c10;
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 9px 16px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 183, 3, 0.3);
  transition: transform 0.2s ease;
}

.btn-auth-header:hover {
  transform: translateY(-2px);
}

.btn-logout-nav {
  display: inline-flex;
  align-items: center;
  background-color: #e60012;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 4px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #141822;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 18px;
  border-radius: 50px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffb703;
  margin-bottom: 24px;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  background-color: #e60012;
  border-radius: 50%;
  box-shadow: 0 0 10px #e60012;
  animation: pulseAnimation 1.5s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-headline {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}

.text-gradient {
  color: #ffb703;
  background-image: linear-gradient(90deg, #ff4b4b 0%, #ff844b 50%, #ffb703 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.25rem;
  color: #8c9ba5;
  max-width: 780px;
  margin: 0 auto 36px;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn-main-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #5865F2;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 15px 28px;
  border-radius: 6px;
  box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.btn-main-discord:hover {
  background-color: #4752c4;
  transform: translateY(-3px);
}

.btn-partitina-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffb703;
  background-image: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
  color: #0a0c10;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  padding: 15px 28px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.3);
  transition: transform 0.25s ease;
}

.btn-partitina-hero:hover {
  transform: translateY(-3px);
}

.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  background-color: #151923;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 15px 24px;
  border-radius: 6px;
  cursor: pointer;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffb703;
}

.stat-label {
  font-size: 0.85rem;
  color: #8c9ba5;
  text-transform: uppercase;
}

/* ==========================================================================
   SEZIONI GENERALI & STEPS CON EFFETTO HOVER/TOUCH DINAMICO
   ========================================================================== */
.content-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-tag {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffb703;
  background-color: #241e12;
  background-color: rgba(255, 183, 3, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.section-header p {
  color: #8c9ba5;
  font-size: 1.1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background-color: #121826;
  background-color: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px 24px;
  cursor: pointer;
  outline: none;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.step-card:hover,
.step-card:focus,
.step-card:active {
  transform: translateY(-7px);
  border-color: #ffb703;
  box-shadow: 0 12px 28px rgba(255, 183, 3, 0.2);
}

.step-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffb703;
  opacity: 0.85;
  margin-bottom: 12px;
}

.step-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.step-card p {
  color: #8c9ba5;
}

/* ==========================================================================
   CARD EVENTI (ALLINEAMENTO UNIFORME + NOMI DISCORD + BADGE PSN)
   ========================================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.event-card {
  background-color: #121826;
  background-color: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 4px solid #e60012;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.event-card-media {
  width: 100%;
  height: 195px;
  overflow: hidden;
  background-color: #0a0c10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.event-card-media img {
  width: 100%;
  height: 100%;
  display: block;
}

.event-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.event-badges-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 12px;
}

.event-category-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffb703;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.event-status-chip {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.event-status-chip.status-open {
  background-color: #0e2a21;
  background-color: rgba(0, 255, 136, 0.14);
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: #00ff88;
}

.event-status-chip.status-limited {
  background-color: #2b2310;
  background-color: rgba(255, 183, 3, 0.16);
  border: 1px solid rgba(255, 183, 3, 0.45);
  color: #ffb703;
}

.event-status-chip.status-live {
  background-color: #2c1016;
  background-color: rgba(230, 0, 18, 0.22);
  border: 1px solid #e60012;
  color: #ff5562;
}

.event-status-chip.status-closed {
  background-color: #1b202c;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #8c9ba5;
}

.event-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.event-meta-row {
  color: #8c9ba5;
  margin-bottom: 6px;
}

.event-voters-box {
  margin-top: 14px;
  padding: 10px 12px;
  background-color: #181f38;
  background-color: rgba(88, 101, 242, 0.09);
  border: 1px solid rgba(88, 101, 242, 0.28);
  border-radius: 6px;
}

.event-voters-box.event-voters-empty {
  background-color: #10141f;
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
  color: #5c6873;
  font-size: 0.85rem;
  text-align: center;
}

.event-voters-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #a5b4fc;
  margin-bottom: 7px;
}

.event-voters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-voter-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  background-color: #0a0c10;
  background-color: rgba(10, 12, 16, 0.82);
  border: 1px solid rgba(255, 183, 3, 0.35);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.voter-psn-tag {
  background-color: #0d2633;
  background-color: rgba(0, 212, 255, 0.14);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #00d4ff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
}

.btn-event-join {
  display: block;
  text-align: center;
  background-color: #5865F2;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 4px;
  margin-top: 16px;
  transition: background-color 0.2s ease;
}

.btn-event-join:hover {
  background-color: #4752c4;
}

/* ==========================================================================
   SOCIAL HUB ANIMATED BANNER & CARDS (LAYOUT 2x2 LEGGIBILE A SCHERMO INTERO)
   ========================================================================== */
.social-hub-banner {
  position: relative;
  background-color: #121826;
  background-image: linear-gradient(135deg, rgba(18, 24, 38, 0.95) 0%, rgba(10, 12, 16, 0.98) 100%);
  border: 1px solid rgba(255, 183, 3, 0.28);
  border-radius: 12px;
  padding: 32px 28px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

.social-hub-glow-bg {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background-image: radial-gradient(circle, rgba(145, 70, 255, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: socialPulseGlow 4s infinite alternate ease-in-out;
}

@keyframes socialPulseGlow {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.3); opacity: 0.85; }
}

.social-hub-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 26px;
  position: relative;
  z-index: 2;
}

.social-hub-tag {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffb703;
  background-color: #241e12;
  background-color: rgba(255, 183, 3, 0.12);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.social-hub-header h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
}

.social-hub-header p {
  color: #8c9ba5;
  font-size: 1rem;
}

.social-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #161d2e;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none;
  color: #ffffff;
  position: relative;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.social-card:hover {
  transform: translateY(-4px);
  background-color: #1d263b;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #ffb703;
  box-shadow: 0 8px 22px rgba(255, 183, 3, 0.2);
}

.social-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background-color: #0a0c10;
  background-color: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.social-card:hover .social-card-icon {
  transform: scale(1.1);
}

.social-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.social-net-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #8c9ba5;
  margin-bottom: 2px;
}

.social-card-info strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  white-space: normal;
  word-wrap: break-word;
}

.social-card-info small {
  font-size: 0.9rem;
  color: #b4c0cc;
  white-space: normal;
  margin-top: 2px;
}

.social-pulse-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  background-color: #292212;
  background-color: rgba(255, 183, 3, 0.15);
  color: #ffb703;
  border: 1px solid rgba(255, 183, 3, 0.35);
  padding: 5px 11px;
  border-radius: 5px;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-card.twitch-card:hover {
  border-color: #9146FF;
  box-shadow: 0 8px 22px rgba(145, 70, 255, 0.32);
}
.social-card.twitch-card:hover .social-pulse-badge {
  background-color: #9146FF;
  color: #ffffff;
  border-color: #9146FF;
}

.social-card.tiktok-card:hover {
  border-color: #ff0050;
  box-shadow: 0 8px 22px rgba(255, 0, 80, 0.32);
}
.social-card.tiktok-card:hover .social-pulse-badge {
  background-color: #ff0050;
  color: #ffffff;
  border-color: #ff0050;
}

.social-card.instagram-card:hover {
  border-color: #e1306c;
  box-shadow: 0 8px 22px rgba(225, 48, 108, 0.32);
}
.social-card.instagram-card:hover .social-pulse-badge {
  background-color: #e1306c;
  color: #ffffff;
  border-color: #e1306c;
}

.social-card.facebook-card:hover {
  border-color: #1877f2;
  box-shadow: 0 8px 22px rgba(24, 119, 242, 0.32);
}
.social-card.facebook-card:hover .social-pulse-badge {
  background-color: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}

/* ==========================================================================
   PAGINA PROFILO & FORM INPUTS
   ========================================================================== */
.profile-box-card {
  background-color: #121826;
  background-color: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px;
}

.profile-alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.alert-ok {
  background-color: #0e2a21;
  background-color: rgba(0, 255, 136, 0.12);
  border: 1px solid #00ff88;
  color: #00ff88;
}

.alert-err {
  background-color: #2b1016;
  background-color: rgba(230, 0, 18, 0.15);
  border: 1px solid #e60012;
  color: #ff5562;
}

.avatar-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
  background-color: #0a0c10;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 22px;
}

.avatar-preview-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: #12161f;
  border: 2px solid #ffb703;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-upload-label {
  display: inline-block;
  background-color: #232a3b;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-upload-label:hover {
  background-color: #ffb703;
  color: #0a0c10;
}

.avatar-upload-controls small {
  font-size: 0.85rem;
  color: #8c9ba5;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.input-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #8c9ba5;
  text-transform: uppercase;
}

.input-field input,
.input-field select,
.input-field textarea {
  background-color: #090b10;
  background-color: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
}

.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus {
  outline: none;
  border-color: #ffb703;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit-form {
  width: 100%;
  background-color: #e60012;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-submit-form:hover {
  background-color: #c2000f;
}

.btn-auth-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #1c2230;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  border-radius: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn-auth-provider:hover {
  transform: translateY(-2px);
  border-color: #ffb703;
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 900;
}

.google-g {
  background-color: #ffffff;
  color: #ea4335;
}

/* ==========================================================================
   STREAMING & RIG
   ========================================================================== */
.stream-rig-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.stream-embed-card,
.rig-specs-card {
  background-color: #121826;
  background-color: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 24px;
}

.stream-header-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.stream-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffb703;
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  background-color: #00ff88;
  border-radius: 50%;
}

.embed-box {
  position: relative;
  width: 100%;
  height: 380px;
  background-color: #000000;
  border-radius: 6px;
  overflow: hidden;
}

#twitch-embed {
  width: 100%;
  height: 100%;
}

.offline-box {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #0a0c10;
  background-image: radial-gradient(circle, #1a2233 0%, #0a0c10 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.rig-specs-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.rig-desc {
  color: #8c9ba5;
  margin-bottom: 20px;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.spec-title {
  color: #8c9ba5;
}

.spec-value {
  color: #ffffff;
  font-weight: 700;
}

.social-channels-box h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: #ffb703;
}

.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-chip {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  color: #ffffff;
}

.discord-chip {
  background-color: #5865F2;
}

.partitina-chip {
  background-color: #ffb703;
  color: #0a0c10;
}

.tiktok-chip {
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.twitch-chip {
  background-color: #9146FF;
}

/* ==========================================================================
   ROSTER PILOTI CON GRADI CP/CS, MOTTO E CASCO
   ========================================================================== */
.pilots-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.pilot-badge-card {
  background-color: #121826;
  background-color: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pilot-badge-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 183, 3, 0.4);
}

.pilot-avatar-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #12161f;
  border: 2px solid #ffb703;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.pilot-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pilot-num-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: #ffb703;
  background-color: #262012;
  background-color: rgba(255, 183, 3, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.pilot-details {
  display: flex;
  flex-direction: column;
  padding-right: 42px;
  width: 100%;
}

.pilot-psn {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.pilot-extra {
  font-size: 0.88rem;
  color: #8c9ba5;
}

.pilot-ranks-row {
  display: flex;
  gap: 6px;
  margin: 6px 0;
}

.pilot-rank-chip {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background-color: #0e2430;
  background-color: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: #00d4ff;
}

.pilot-motto-quote {
  margin-top: 6px;
  font-size: 0.85rem;
  font-style: italic;
  color: #d0d7e5;
  background-color: #0b0e14;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-left: 2px solid #ffb703;
  border-radius: 0 4px 4px 0;
}

/* ==========================================================================
   FOOTER & MODALI
   ========================================================================== */
.footer-hub {
  background-color: #07080a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 24px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #8c9ba5;
  margin-top: 6px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #5c6873;
  margin-top: 30px;
}

.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #000000;
  background-color: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background-color: #12161f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.btn-close-modal {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

.admin-pilots-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table th {
  color: #ffb703;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
}

.admin-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.admin-event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0b0e14;
  background-color: rgba(0, 0, 0, 0.35);
  padding: 10px 14px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .hero-headline {
    font-size: 2.1rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid,
  .stream-rig-grid,
  .input-row,
  .social-grid-cards {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
/* ==========================================================================
   VIDEO CENTRALE HERO SHOWCASE
   ========================================================================== */
.hero-video-showcase {
  position: relative;
  max-width: 820px;
  margin: 0 auto 42px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 183, 3, 0.38);
  background-color: #0a0c10;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 28px rgba(230, 0, 18, 0.22);
}

.hero-video-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0a0c10;
  background-color: rgba(10, 12, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 12px;
  border-radius: 50px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  pointer-events: none;
}

.hero-promo-video {
  width: 100%;
  height: auto;
  max-height: 460px;
  display: block;
  object-fit: cover;
}
/* ==========================================================================
   PULSANTE CONTROLLO AUDIO SUL VIDEO HERO
   ========================================================================== */
.hero-audio-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #0a0c10;
  background-color: rgba(10, 12, 16, 0.85);
  border: 1px solid #ffb703;
  color: #ffb703;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 7px 14px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hero-audio-btn:hover {
  transform: scale(1.05);
  background-color: #ffb703;
  color: #0a0c10;
}

.hero-audio-btn.is-muted {
  border-color: rgba(255, 255, 255, 0.35);
  color: #f0f2f5;
}
/* ==========================================================================
   VIDEO CENTRALE HERO SHOWCASE (BADGE ESTERNO + RESPONSIVE PC/SMARTPHONE)
   ========================================================================== */
.hero-video-wrapper {
  max-width: 840px;
  margin: 0 auto 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-video-top-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #121826;
  background-color: rgba(18, 24, 38, 0.92);
  border: 1px solid rgba(255, 183, 3, 0.4);
  border-bottom: none;
  padding: 6px 16px;
  border-radius: 10px 10px 0 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffb703;
}

.hero-video-showcase {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 183, 3, 0.42);
  background-color: #0a0c10;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 28px rgba(230, 0, 18, 0.22);
}

.hero-promo-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 470px;
  display: block;
  object-fit: cover;
  background-color: #0a0c10;
}

.hero-audio-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #0a0c10;
  background-color: rgba(10, 12, 16, 0.85);
  border: 1px solid #ffb703;
  color: #ffb703;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 7px 14px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hero-audio-btn:hover {
  transform: scale(1.05);
  background-color: #ffb703;
  color: #0a0c10;
}

.hero-audio-btn.is-muted {
  border-color: rgba(255, 255, 255, 0.35);
  color: #f0f2f5;
}

/* ==========================================================================
   ADATTAMENTO AUTOMATICO VERSIONE SMARTPHONE (SENZA ALTERARE LA VERSIONE PC)
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .steps-grid,
  .stream-rig-grid,
  .input-row,
  .social-grid-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-nav {
    padding: 8px 12px;
  }
  .brand-rank-square {
    width: 42px;
    height: 42px;
  }
  .rank-k {
    font-size: 0.5rem;
  }
  .rank-v {
    font-size: 0.68rem;
  }
  .brand-main {
    font-size: 1.05rem;
    letter-spacing: 0.8px;
  }
  .btn-discord-nav {
    padding: 7px 10px;
    font-size: 0.68rem;
  }
  .btn-auth-header {
    padding: 7px 10px;
    font-size: 0.68rem;
  }

  .hero-section {
    padding: 42px 14px 36px;
  }
  .hero-pill {
    font-size: 0.65rem;
    padding: 5px 12px;
    letter-spacing: 0.8px;
  }
  .hero-headline {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  .hero-subtext {
    font-size: 1.02rem;
    margin-bottom: 24px;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 28px;
  }
  .btn-main-discord,
  .btn-partitina-hero,
  .btn-secondary-action {
    width: 100%;
    justify-content: center;
    padding: 13px 16px;
    font-size: 0.84rem;
  }

  .hero-video-wrapper {
    margin-bottom: 28px;
  }
  .hero-video-top-bar {
    font-size: 0.62rem;
    padding: 5px 12px;
  }
  .hero-audio-btn {
    bottom: 10px;
    right: 10px;
    padding: 6px 11px;
    font-size: 0.65rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding-top: 20px;
  }
  .stat-number {
    font-size: 1.35rem;
  }
  .stat-label {
    font-size: 0.75rem;
  }

  .content-section {
    padding: 0 14px;
    margin-bottom: 50px;
  }
  .section-header h2 {
    font-size: 1.5rem;
  }
  .events-grid,
  .pilots-container {
    grid-template-columns: 1fr;
  }
  .social-hub-banner {
    padding: 20px 14px;
  }
  .social-card {
    padding: 14px;
    gap: 12px;
  }
  .social-card-icon {
    width: 44px;
    height: 44px;
  }
  .social-card-info strong {
    font-size: 1rem;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}