/* ==============================================================================
   FANTARESCUECUP STYLES - FantaSanremo & Glamour Rescue Aesthetic
   ============================================================================== */

:root {
  --fanta-primary: #ec4899;
  --fanta-primary-hover: #db2777;
  --fanta-secondary: #8b5cf6;
  --fanta-gold: #facc15;
  --fanta-gold-dark: #ca8a04;
  --fanta-cyan: #06b6d4;
  --fanta-emerald: #10b981;
  --fanta-rose: #f43f5e;
  --fanta-bg: #070913;
  --fanta-card-bg: rgba(18, 22, 38, 0.75);
  --fanta-card-border: rgba(236, 72, 153, 0.25);
  --fanta-text: #f8fafc;
  --fanta-text-muted: #94a3b8;
  --fanta-gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #0f172a 40%, #2e1065 100%);
  --fanta-glow-pink: 0 0 25px rgba(236, 72, 153, 0.4);
  --fanta-glow-gold: 0 0 25px rgba(250, 204, 21, 0.35);
  --fanta-font-display: 'Outfit', sans-serif;
  --fanta-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body.fanta-page {
  background-color: var(--fanta-bg);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(236, 72, 153, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%);
  color: var(--fanta-text);
  font-family: var(--fanta-font-body);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Confetti Sparkle Animation Background */
.fanta-hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle 8s infinite ease-in-out;
  opacity: 0.4;
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}

/* Header & Ticker */
.fanta-ticker {
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6, #ec4899);
  background-size: 300% 100%;
  animation: gradientShift 10s ease infinite;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 0;
  letter-spacing: 1px;
  text-align: center;
  position: relative;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.3);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fanta-header {
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(236, 72, 153, 0.2);
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 0;
}

.fanta-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fanta-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.fanta-brand-logo {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.6));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fanta-brand:hover .fanta-brand-logo {
  transform: rotate(-8deg) scale(1.08);
}

.fanta-brand-title {
  font-family: var(--fanta-font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #fff 0%, #fbcfe8 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fanta-brand-badge {
  font-size: 10px;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f472b6;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-block;
}

.fanta-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fanta-menu a {
  color: var(--fanta-text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.fanta-menu a:hover, .fanta-menu a.active {
  color: #fff;
  text-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}

.fanta-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--fanta-primary);
  box-shadow: 0 0 8px var(--fanta-primary);
  border-radius: 2px;
}

.btn-fanta-play {
  background: linear-gradient(135deg, #ec4899, #d946ef);
  color: #fff;
  font-family: var(--fanta-font-display);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-fanta-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(236, 72, 153, 0.6);
  background: linear-gradient(135deg, #f43f5e, #ec4899);
}

/* Hero Section */
.fanta-hero {
  position: relative;
  padding: 60px 20px 80px;
  text-align: center;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.fanta-hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.4);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #f472b6;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.2);
}

.fanta-hero-logo {
  width: 170px;
  height: 170px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 15px 30px rgba(236, 72, 153, 0.45));
  animation: heroFloat 5s ease-in-out infinite alternate;
  display: block;
}

@keyframes heroFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(2deg); }
}

.fanta-hero-title {
  font-family: var(--fanta-font-display);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -1px;
}

.fanta-title-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #f472b6 40%, #fbbf24 80%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.fanta-hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: #cbd5e1;
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.fanta-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-fanta-primary {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  color: #fff;
  font-family: var(--fanta-font-display);
  font-weight: 900;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-fanta-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(236, 72, 153, 0.6);
}

.btn-fanta-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--fanta-font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.btn-fanta-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(236, 72, 153, 0.4);
  color: #fbcfe8;
}

/* Feature Highlights Grid */
.fanta-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1050px;
  margin: 0 auto;
}

.fanta-stat-card {
  background: var(--fanta-card-bg);
  border: 1px solid var(--fanta-card-border);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.fanta-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.fanta-stat-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

.fanta-stat-val {
  font-family: var(--fanta-font-display);
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.fanta-stat-lbl {
  font-size: 13px;
  color: var(--fanta-text-muted);
  font-weight: 600;
}

/* Sections */
.fanta-section {
  padding: 70px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.fanta-section-header {
  text-align: center;
  margin-bottom: 44px;
}

.fanta-section-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--fanta-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: inline-block;
}

.fanta-section-title {
  font-family: var(--fanta-font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: #E0218A;
  margin: 0 0 12px;
}

.fanta-section-sub {
  color: var(--fanta-text-muted);
  font-size: 16px;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Rules / Bonus Malus Grid */
.fanta-filter-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.fanta-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fanta-text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fanta-pill:hover, .fanta-pill.active {
  background: rgba(236, 72, 153, 0.2);
  border-color: var(--fanta-primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.3);
}

.fanta-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.fanta-rule-card {
  background: var(--fanta-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.fanta-rule-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.fanta-rule-card.bonus {
  border-left: 4px solid var(--fanta-emerald);
}

.fanta-rule-card.malus {
  border-left: 4px solid var(--fanta-rose);
}

.fanta-rule-card.baudo,
.fanta-rule-card.special {
  border-left: 4px solid var(--fanta-gold);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, rgba(18, 22, 38, 0.85) 100%);
  border-color: rgba(250, 204, 21, 0.35);
}

.fanta-rule-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.fanta-rule-icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fanta-rule-emoji {
  font-size: 28px;
  line-height: 1;
}

.fanta-rule-title {
  font-family: var(--fanta-font-display);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.fanta-rule-points {
  font-family: var(--fanta-font-display);
  font-weight: 900;
  font-size: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.fanta-rule-card.bonus .fanta-rule-points {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.fanta-rule-card.malus .fanta-rule-points {
  background: rgba(244, 63, 94, 0.18);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.fanta-rule-card.baudo .fanta-rule-points,
.fanta-rule-card.special .fanta-rule-points {
  background: rgba(250, 204, 21, 0.2);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.5);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.3);
}

.fanta-rule-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 14px;
}

.fanta-rule-cat-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fanta-text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

/* Standings & Leaderboard */
.fanta-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  padding-top: 30px;
}

.podium-slot {
  flex: 1;
  max-width: 260px;
  text-align: center;
}

.podium-card {
  background: var(--fanta-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 16px;
  position: relative;
  transition: transform 0.3s ease;
}

.podium-slot.first .podium-card {
  border-color: rgba(250, 204, 21, 0.6);
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.15) 0%, rgba(18, 22, 38, 0.95) 100%);
  transform: translateY(-16px);
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.2);
}

.podium-rank-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fanta-font-display);
  font-weight: 900;
  font-size: 18px;
  margin: -42px auto 12px;
  border: 2px solid #fff;
}

.podium-slot.first .podium-rank-badge {
  background: #facc15;
  color: #78350f;
  border-color: #fde047;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.6);
}

.podium-slot.second .podium-rank-badge {
  background: #94a3b8;
  color: #0f172a;
  border-color: #cbd5e1;
}

.podium-slot.third .podium-rank-badge {
  background: #b45309;
  color: #fef3c7;
  border-color: #d97706;
}

.podium-team-name {
  font-family: var(--fanta-font-display);
  font-weight: 900;
  font-size: 17px;
  color: #fff;
  margin-bottom: 4px;
}

.podium-owner {
  font-size: 12px;
  color: var(--fanta-text-muted);
  margin-bottom: 12px;
}

.podium-points {
  font-family: var(--fanta-font-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--fanta-gold);
}

/* Standings Table */
.fanta-table-wrap {
  background: var(--fanta-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.fanta-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.fanta-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 18px;
  font-family: var(--fanta-font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--fanta-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fanta-table td {
  padding: 14px 18px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.fanta-table tr:hover td {
  background: rgba(236, 72, 153, 0.05);
}

.fanta-table-rank {
  font-weight: 900;
  color: var(--fanta-primary);
  width: 50px;
}

.fanta-table-team {
  font-weight: 800;
  color: #fff;
}

.fanta-table-pts {
  font-family: var(--fanta-font-display);
  font-weight: 900;
  font-size: 16px;
  color: var(--fanta-gold);
  text-align: right;
}

/* Steps Cards */
.fanta-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.fanta-step-card {
  background: var(--fanta-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  backdrop-filter: blur(10px);
}

.fanta-step-num {
  font-family: var(--fanta-font-display);
  font-weight: 900;
  font-size: 40px;
  color: rgba(236, 72, 153, 0.35);
  line-height: 1;
  margin-bottom: 12px;
}

.fanta-step-title {
  font-family: var(--fanta-font-display);
  font-weight: 800;
  font-size: 19px;
  color: #fff;
  margin-bottom: 10px;
}

.fanta-step-desc {
  font-size: 14px;
  color: var(--fanta-text-muted);
  line-height: 1.6;
}

/* Live Feed */
.fanta-feed-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.fanta-feed-item {
  background: var(--fanta-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.fanta-feed-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fanta-feed-emoji {
  font-size: 24px;
}

.fanta-feed-details strong {
  color: #fff;
  display: block;
  font-size: 14px;
}

.fanta-feed-details span {
  font-size: 12px;
  color: var(--fanta-text-muted);
}

.fanta-feed-pts {
  font-family: var(--fanta-font-display);
  font-weight: 900;
  font-size: 16px;
  padding: 4px 10px;
  border-radius: 999px;
}

.fanta-feed-pts.pos {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.fanta-feed-pts.neg {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
}

/* Call to action section */
.fanta-cta-box {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(139, 92, 246, 0.25) 50%, rgba(6, 182, 212, 0.15) 100%);
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: 24px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
}

/* Footer */
.fanta-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 20px;
  text-align: center;
  color: var(--fanta-text-muted);
  font-size: 13px;
}

.fanta-footer a {
  color: var(--fanta-primary);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .fanta-menu {
    display: none;
  }
  .fanta-podium {
    flex-direction: column;
    align-items: stretch;
  }
  .podium-slot.first .podium-card {
    transform: none;
  }
  .fanta-hero {
    padding: 40px 16px 60px;
  }
}

/* ==============================================================================
   WEEK SELECTOR & LINGUETTA BREAKDOWN STYLES (Manuel's Feedback)
   ============================================================================== */
.fanta-week-pill {
  background: transparent;
  border: none;
  color: var(--fanta-text-muted);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fanta-week-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.fanta-week-pill.active {
  background: linear-gradient(135deg, var(--fanta-primary) 0%, var(--fanta-rose) 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.4);
}

.btn-fanta-linguetta {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--fanta-font-display);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-fanta-linguetta:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}
.btn-fanta-linguetta .arrow {
  font-size: 9px;
  transition: transform 0.2s ease;
}
.btn-fanta-linguetta.open .arrow {
  transform: rotate(180deg);
}

.fanta-linguetta-row td {
  padding: 0 !important;
  background: rgba(10, 14, 28, 0.85) !important;
}
.fanta-linguetta-card {
  padding: 20px 24px;
  border-top: 1px solid rgba(236, 72, 153, 0.2);
  border-bottom: 2px solid rgba(56, 189, 248, 0.4);
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.35) 0%, rgba(15, 23, 42, 0.6) 100%);
  animation: fantaSlideDown 0.25s ease-out;
}
@keyframes fantaSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fanta-linguetta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fanta-linguetta-title {
  font-family: var(--fanta-font-display);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fanta-linguetta-total {
  font-family: var(--fanta-font-display);
  font-weight: 900;
  font-size: 14px;
  padding: 4px 12px;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: var(--fanta-gold);
  border-radius: 20px;
}

.fanta-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.fanta-event-mini-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}
.fanta-event-mini-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.fanta-event-mini-card.bonus {
  border-left: 3px solid var(--fanta-emerald);
}
.fanta-event-mini-card.malus {
  border-left: 3px solid var(--fanta-rose);
}
.fanta-event-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fanta-event-mini-rule {
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fanta-event-mini-pts {
  font-family: var(--fanta-font-display);
  font-weight: 900;
  font-size: 13px;
}
.fanta-event-mini-card.bonus .fanta-event-mini-pts {
  color: #34d399;
}
.fanta-event-mini-card.malus .fanta-event-mini-pts {
  color: #fb7185;
}
.fanta-event-mini-player {
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fanta-team-tag {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.fanta-cap-badge {
  background: rgba(250, 204, 21, 0.2);
  color: #fde047;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}
.fanta-event-mini-notes {
  font-size: 11px;
  color: var(--fanta-text-muted);
  font-style: italic;
}

/* 5 Selected Squad Badges in Standings */
.fanta-squad-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.fanta-team-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ==============================================================================
   MOBILE RESPONSIVENESS OVERRIDES (POINTS BREAKDOWN & LINGUETTA)
   ============================================================================== */
@media (max-width: 768px) {
  .fanta-table th,
  .fanta-table td {
    padding: 10px 8px !important;
    font-size: 13px !important;
  }
  .fanta-table-rank {
    font-size: 13px !important;
    width: 36px !important;
    padding-left: 6px !important;
  }
  .fanta-team-title {
    font-size: 14px !important;
    line-height: 1.3;
    display: block;
  }
  .fanta-table-pts {
    font-size: 15px !important;
    padding-right: 6px !important;
  }
  .btn-fanta-linguetta {
    padding: 5px 8px !important;
    font-size: 11px !important;
    border-radius: 14px !important;
    white-space: nowrap;
  }

  /* Full-width responsive linguetta breakdown on phone */
  .fanta-linguetta-card {
    padding: 14px 10px !important;
    border-radius: 8px !important;
  }
  .fanta-linguetta-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
  }
  .fanta-linguetta-title {
    font-size: 13px !important;
    flex-wrap: wrap;
  }
  .fanta-linguetta-total {
    font-size: 12px !important;
    padding: 2px 8px !important;
  }
  .fanta-events-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .fanta-event-mini-card {
    padding: 10px 12px !important;
  }
  .fanta-event-mini-rule {
    font-size: 12px !important;
  }
}

/* ==============================================================================
   WHATSAPP BONUS/MALUS REPORTING CARD
   ============================================================================== */
.fanta-whatsapp-card {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.16) 0%, rgba(18, 22, 38, 0.95) 100%);
  border: 1px solid rgba(37, 211, 102, 0.45);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 22px auto 26px auto;
  max-width: 820px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 25px rgba(37, 211, 102, 0.18);
  position: relative;
  overflow: hidden;
}

.fanta-whatsapp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #25d366, #128c7e, #4ade80);
}

.fanta-whatsapp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.fanta-whatsapp-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fanta-font-display);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.fanta-whatsapp-badge {
  background: #25d366;
  color: #042f2e;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
}

.fanta-whatsapp-body {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 16px;
}

.fanta-whatsapp-body strong {
  color: #fff;
}

.fanta-whatsapp-body .highlight-phone {
  color: #4ade80;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.fanta-whatsapp-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fanta-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff !important;
  font-family: var(--fanta-font-display);
  font-weight: 800;
  font-size: 13.5px;
  padding: 11px 22px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fanta-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #fff !important;
}



