/* ==========================================================================
   Heroic Pullsse — Fantasy Football Styles (White 22)
   Matches Heroic Pullsse design system tokens & aesthetics
   ========================================================================== */

:root {
  --ff-accent: #00ff9d;
  --ff-accent-rgb: 0, 255, 157;
  --ff-purple: #a855f7;
  --ff-purple-rgb: 168, 85, 247;
  --ff-blue: #38bdf8;
  --ff-gold: #f59e0b;
  --ff-card-bg: #10141e;
  --ff-surface-alt: #161b28;
  --ff-border: #1e293b;
  --ff-border-hover: rgba(0, 255, 157, 0.4);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.ff-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) 0 3.5rem;
  background: radial-gradient(circle at 50% 20%, rgba(168, 85, 247, 0.15), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(0, 255, 157, 0.08), transparent 50%),
              var(--color-primary);
  border-bottom: 1px solid var(--ff-border);
}

.ff-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 1024px) {
  .ff-hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-8);
  }
}

.ff-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.25);
  border-radius: var(--radius-sm);
  color: var(--ff-accent);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.ff-hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: var(--space-3);
  letter-spacing: -0.03em;
}

.ff-hero__title span {
  color: var(--ff-accent);
}

.ff-hero__desc {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-5);
  max-width: 36rem;
}

.ff-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.ff-hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ff-metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ff-metric__val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.ff-metric__val span {
  color: var(--ff-accent);
}

.ff-metric__lbl {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ff-hero__card {
  background: linear-gradient(145deg, #131722, #0d1017);
  border: 1px solid var(--ff-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 255, 157, 0.05);
  position: relative;
}

.ff-hero__card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ff-hero__card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.ff-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--ff-accent);
  font-weight: 600;
  text-transform: uppercase;
}

.ff-live-pulse::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ff-accent);
  box-shadow: 0 0 8px var(--ff-accent);
}

.ff-hero__preview-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: var(--space-4);
}

.ff-hero__preview-slot {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.ff-hero__preview-slot.filled {
  border-style: solid;
  border-color: rgba(0, 255, 157, 0.3);
  background: rgba(0, 255, 157, 0.04);
}

.ff-hero__preview-slot img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 0.4rem;
  object-fit: cover;
  border: 1.5px solid var(--ff-accent);
}

.ff-hero__preview-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ff-hero__preview-pos {
  font-size: 0.65rem;
  color: var(--ff-accent);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Benefits Section ("Блок: О нас + преимущества")
   -------------------------------------------------------------------------- */
.ff-benefits-section {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--ff-border);
}

.ff-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .ff-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

.ff-benefit-card {
  background: var(--color-primary);
  border: 1px solid var(--ff-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.ff-benefit-card:hover {
  transform: translateY(-3px);
  border-color: var(--ff-border-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.ff-benefit-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  flex-shrink: 0;
}

.ff-benefit-icon-wrapper--moreless {
  background: linear-gradient(135deg, #10b981, #8b5cf6);
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
}

.ff-benefit-icon-wrapper--cash {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ff-benefit-icon-wrapper--payouts {
  background: rgba(168, 85, 247, 0.15);
  color: var(--ff-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.ff-benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.ff-benefit-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-3);
  flex-grow: 1;
}

.ff-benefit-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   Play Now Section ("Блок: Играть сейчас" — 2 Sub-blocks: List & Squad)
   -------------------------------------------------------------------------- */
.ff-play-section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--ff-border);
}

.ff-section-heading {
  margin-bottom: var(--space-5);
}

.ff-section-heading__tag {
  color: var(--ff-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.35rem;
}

.ff-section-heading__title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.ff-section-heading__desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 44rem;
}

/* Player Filter & Search Bar */
.ff-controls-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
  .ff-controls-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.ff-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ff-filter-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--ff-border);
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ff-filter-tab:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.ff-filter-tab.active {
  background: var(--ff-accent);
  color: var(--color-primary);
  border-color: var(--ff-accent);
  font-weight: 700;
}

.ff-search-box {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  gap: 0.5rem;
  min-width: 240px;
}

.ff-search-box input {
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-size: 0.85rem;
  width: 100%;
}

.ff-search-box input::placeholder {
  color: var(--color-text-secondary);
}

/* Player Grid / Mobile Slider Container */
.ff-players-container-wrapper {
  position: relative;
  margin-bottom: var(--space-6);
}

.ff-players-slider-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: var(--space-3);
}

.ff-nav-arrow {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--ff-border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ff-nav-arrow:hover {
  background: var(--color-secondary);
  border-color: var(--ff-accent);
  color: var(--ff-accent);
}

.ff-players-slider {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}

/* Mobile: Horizontal scrollable slider */
@media (max-width: 767px) {
  .ff-players-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ff-border) transparent;
  }

  .ff-player-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }
}

/* Player Card */
.ff-player-card {
  background: var(--color-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.ff-player-card:hover {
  border-color: rgba(0, 255, 157, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ff-player-card.is-selected {
  border-color: var(--ff-accent);
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.2);
  background: linear-gradient(180deg, rgba(0, 255, 157, 0.05), var(--color-surface));
}

.ff-player-card__head {
  position: relative;
  height: 180px;
  background: #0a0c10;
  overflow: hidden;
}

.ff-player-card__head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-normal);
}

.ff-player-card:hover .ff-player-card__head img {
  transform: scale(1.03);
}

.ff-player-card__pos {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(4px);
}

.ff-player-card__pos--FWD {
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.ff-player-card__pos--MID {
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
}

.ff-player-card__pos--DEF {
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.ff-player-card__pos--GK {
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.ff-player-card__country {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(10, 12, 16, 0.85);
  color: #cbd5e1;
}

.ff-player-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ff-player-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ff-player-card__team {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.ff-player-card__stats-row {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  margin-bottom: var(--space-3);
}

.ff-player-card__stat-item {
  display: flex;
  flex-direction: column;
}

.ff-player-card__stat-lbl {
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

.ff-player-card__stat-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.ff-player-card__stat-val--pts {
  color: var(--ff-accent);
}

/* Projection More/Less Pill */
.ff-player-card__projection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  margin-bottom: var(--space-3);
  font-size: 0.75rem;
}

.ff-player-card__proj-target {
  font-weight: 700;
  color: #e2e8f0;
}

.ff-player-card__proj-options {
  display: flex;
  gap: 0.3rem;
}

.ff-proj-btn {
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ff-proj-btn.active-more {
  background: #10b981;
  color: #000;
  border-color: #10b981;
}

.ff-proj-btn.active-less {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.ff-btn-add {
  margin-top: auto;
  width: 100%;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid var(--ff-border);
}

.ff-btn-add:hover {
  background: var(--ff-accent);
  color: var(--color-primary);
  border-color: var(--ff-accent);
}

.ff-player-card.is-selected .ff-btn-add {
  background: rgba(0, 255, 157, 0.15);
  color: var(--ff-accent);
  border-color: var(--ff-accent);
}

/* --------------------------------------------------------------------------
   Sub-block 2: Your Squad Builder Dock ("Твоя команда")
   Placed below player list; on mobile also rendered as a slider
   -------------------------------------------------------------------------- */
.ff-squad-dock {
  background: linear-gradient(180deg, #131722, #0d1017);
  border: 1px solid var(--ff-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  position: relative;
}

.ff-squad-dock__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .ff-squad-dock__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.ff-squad-dock__title-wrap h3 {
  font-size: 1.35rem;
  margin: 0 0 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ff-squad-dock__title-wrap p {
  margin: 0;
  font-size: 0.85rem;
}

.ff-squad-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ff-border);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.ff-squad-status-badge.is-complete {
  background: rgba(0, 255, 157, 0.15);
  border-color: var(--ff-accent);
  color: var(--ff-accent);
}

/* Squad Slots Grid / Slider */
.ff-squad-slots-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: var(--space-5);
}

@media (min-width: 640px) {
  .ff-squad-slots-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .ff-squad-slots-container {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 639px) {
  .ff-squad-slots-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    gap: 0.75rem;
  }

  .ff-squad-slot {
    flex: 0 0 170px;
    scroll-snap-align: start;
  }
}

/* Single Squad Slot */
.ff-squad-slot {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: all var(--transition-fast);
}

.ff-squad-slot.filled {
  border-style: solid;
  border-color: rgba(0, 255, 157, 0.35);
  background: rgba(0, 255, 157, 0.03);
}

.ff-squad-slot__empty {
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.ff-squad-slot__req-pos {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
}

.ff-squad-slot__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--ff-accent);
  margin-bottom: 0.4rem;
}

.ff-squad-slot__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ff-squad-slot__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ff-squad-slot__club {
  font-size: 0.68rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ff-squad-slot__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ff-squad-slot__remove:hover {
  background: #ef4444;
  color: #fff;
}

/* Play Action Button Footer */
.ff-squad-dock__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.ff-btn-play-game {
  width: 100%;
  max-width: 380px;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-border);
  color: var(--color-text-secondary);
  cursor: not-allowed;
  border: none;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.ff-btn-play-game.is-ready {
  background: linear-gradient(135deg, #00ff9d, #00d282);
  color: #06080d;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.4);
  animation: ffPulse 2s infinite;
}

.ff-btn-play-game.is-ready:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 0 35px rgba(0, 255, 157, 0.6);
}

@keyframes ffPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.35);
  }
  50% {
    box-shadow: 0 0 35px rgba(0, 255, 157, 0.7);
  }
}

/* --------------------------------------------------------------------------
   Predictions Block ("Блок: Прогнозы")
   -------------------------------------------------------------------------- */
.ff-predictions-section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--ff-border);
}

.ff-predictions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .ff-predictions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ff-pred-card {
  background: var(--color-primary);
  border: 1px solid var(--ff-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.ff-pred-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.4);
}

.ff-pred-card__img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.ff-pred-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.ff-pred-card:hover .ff-pred-card__img-wrap img {
  transform: scale(1.04);
}

.ff-pred-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(168, 85, 247, 0.85);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.ff-pred-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ff-pred-card__date {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: var(--space-2);
}

.ff-pred-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--space-2);
  color: #ffffff;
}

.ff-pred-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.ff-pred-card__action {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ff-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition-fast);
}

.ff-pred-card:hover .ff-pred-card__action {
  gap: 0.6rem;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Modals: Match Simulator, Lead Registration, Success Confirmation
   -------------------------------------------------------------------------- */
.ff-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 13, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.ff-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.ff-modal-box {
  background: var(--color-primary);
  border: 1px solid var(--ff-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-6);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 157, 0.1);
  position: relative;
  transform: translateY(20px);
  transition: transform 250ms ease;
}

.ff-modal-overlay.is-active .ff-modal-box {
  transform: translateY(0);
}

.ff-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ff-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.ff-modal-title {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.ff-modal-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
}

/* Match Simulator Engine UI */
.ff-sim-arena {
  background: #0d1017;
  border: 1px solid var(--ff-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
}

.ff-sim-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-3);
}

.ff-sim-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 38%;
}

.ff-sim-team__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.ff-sim-team__sub {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
}

.ff-sim-score {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ff-accent);
  letter-spacing: 0.1em;
}

.ff-sim-timeline {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--space-3);
  position: relative;
}

.ff-sim-timeline__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a855f7, #00ff9d);
  transition: width 100ms linear;
}

.ff-sim-events-log {
  max-height: 150px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.ff-sim-event-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.4rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
}

.ff-sim-event-item.goal {
  background: rgba(0, 255, 157, 0.1);
  color: #00ff9d;
  font-weight: 700;
}

.ff-sim-event-time {
  font-weight: 700;
  color: #94a3b8;
  min-width: 26px;
}

/* Success Modal Icon */
.ff-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 255, 157, 0.15);
  border: 2px solid var(--ff-accent);
  color: var(--ff-accent);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}
