/* ============================================================
   Dynasty Football Trade Calculator — Design System
   Premium dark-mode glassmorphism with vibrant accents
   Full multi-page site styles
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Core palette */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2235;
  --bg-card: rgba(17, 24, 39, 0.65);
  --bg-card-hover: rgba(26, 34, 53, 0.8);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glass-blur: 20px;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;

  /* Accent - Emerald/Cyan for positive */
  --accent-primary: #10b981;
  --accent-primary-rgb: 16, 185, 129;
  --accent-secondary: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #10b981, #06b6d4);

  /* Accent - Rose/Amber for negative */
  --danger-primary: #f43f5e;
  --danger-primary-rgb: 244, 63, 94;
  --danger-secondary: #f59e0b;
  --danger-gradient: linear-gradient(135deg, #f43f5e, #f59e0b);

  /* Position colors */
  --pos-qb: #ef4444;
  --pos-rb: #22c55e;
  --pos-wr: #3b82f6;
  --pos-te: #f59e0b;
  --pos-pick: #a855f7;

  /* Tier colors */
  --tier-elite: #fbbf24;
  --tier-star: #f472b6;
  --tier-starter: #60a5fa;
  --tier-bench: #94a3b8;
  --tier-stash: #64748b;

  /* Layout */
  --max-width: 1400px;
  --nav-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-accent: 0 0 20px rgba(16, 185, 129, 0.15);
  --shadow-glow-danger: 0 0 20px rgba(244, 63, 94, 0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-secondary);
}

/* --- Animated Background --- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-canvas::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 600px 600px at 20% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 60% 30%, rgba(244, 63, 94, 0.04) 0%, transparent 70%);
  animation: bgDrift 25s ease-in-out infinite alternate;
}

.bg-grid {
  position: absolute;
  inset: 0;
  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: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

@keyframes bgDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-2%, -1%) rotate(1deg); }
}

/* Floating orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb:nth-child(1) {
  width: 300px;
  height: 300px;
  background: rgba(16, 185, 129, 0.08);
  top: 10%;
  left: 15%;
  animation-duration: 22s;
}

.bg-orb:nth-child(2) {
  width: 250px;
  height: 250px;
  background: rgba(6, 182, 212, 0.07);
  top: 60%;
  right: 10%;
  animation-duration: 18s;
  animation-delay: -5s;
}

.bg-orb:nth-child(3) {
  width: 200px;
  height: 200px;
  background: rgba(168, 85, 247, 0.06);
  bottom: 20%;
  left: 40%;
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}


/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  height: var(--nav-height);
  transition: var(--transition-base);
}

.site-nav.scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand:hover {
  color: var(--text-primary);
}

.nav-logo {
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.nav-brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.08);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition-base);
}

.hamburger-icon.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu-overlay.active .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.mobile-menu-header .nav-brand-text {
  flex: 1;
}

.mobile-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: var(--radius-sm);
  color: var(--danger-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-close-btn:hover {
  background: rgba(244, 63, 94, 0.2);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mobile-link {
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  text-decoration: none;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-link.active {
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.08);
}

.mobile-menu-footer {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.mobile-menu-footer a {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mobile-menu-footer a:hover {
  color: var(--text-secondary);
}


/* ============================================================
   LAYOUT
   ============================================================ */
.app-container {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  padding-top: var(--nav-height);
}


/* ============================================================
   HEADER / HERO
   ============================================================ */
.site-header {
  padding: 40px 0 24px;
  text-align: center;
}

.logo-section {
  margin-bottom: 8px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--accent-gradient);
  margin-bottom: 16px;
  font-size: 28px;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.25); }
  50% { box-shadow: 0 0 50px rgba(16, 185, 129, 0.4); }
}

.site-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 50%, #f1f5f9 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s ease-in-out infinite;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@keyframes textShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

.site-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 4px;
}


/* ============================================================
   SETTINGS BAR
   ============================================================ */
.settings-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.setting-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Pill toggle */
.pill-toggle {
  display: flex;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 3px;
  position: relative;
  backdrop-filter: blur(10px);
}

.pill-toggle input[type="radio"] {
  display: none;
}

.pill-option {
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  position: relative;
  z-index: 1;
  user-select: none;
  white-space: nowrap;
}

.pill-toggle input[type="radio"]:checked + .pill-option {
  color: var(--text-primary);
  background: var(--accent-gradient);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.pill-option:hover {
  color: var(--text-secondary);
}


/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: var(--transition-base);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
}


/* ============================================================
   TRADE CALCULATOR
   ============================================================ */
.trade-section {
  margin-top: 32px;
}

.trade-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.trade-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
}

/* Trade Side Panel */
.trade-side {
  min-height: 400px;
}

.trade-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.trade-side-label {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.side-a .side-dot {
  background: var(--accent-primary);
  box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.5);
}

.side-b .side-dot {
  background: var(--danger-primary);
  box-shadow: 0 0 10px rgba(var(--danger-primary-rgb), 0.5);
}

.trade-side-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  transition: var(--transition-base);
}

.side-a .trade-side-value {
  color: var(--accent-primary);
  text-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.3);
}

.side-b .trade-side-value {
  color: var(--danger-primary);
  text-shadow: 0 0 20px rgba(var(--danger-primary-rgb), 0.3);
}

/* Search input */
.player-search-container {
  position: relative;
  margin-bottom: 12px;
}

.player-search {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-base);
}

.player-search::placeholder {
  color: var(--text-muted);
}

.player-search:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  display: none;
  animation: dropdownIn 200ms ease-out;
}

.autocomplete-dropdown.active {
  display: block;
}

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

.autocomplete-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background: rgba(255, 255, 255, 0.06);
}

.autocomplete-item .player-pos-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  flex-shrink: 0;
}

.autocomplete-item .player-info {
  flex: 1;
  min-width: 0;
}

.autocomplete-item .player-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-item .player-meta {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.autocomplete-item .player-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* Position badge colors */
.pos-qb { background: rgba(239, 68, 68, 0.15); color: var(--pos-qb); }
.pos-rb { background: rgba(34, 197, 94, 0.15); color: var(--pos-rb); }
.pos-wr { background: rgba(59, 130, 246, 0.15); color: var(--pos-wr); }
.pos-te { background: rgba(245, 158, 11, 0.15); color: var(--pos-te); }
.pos-pick { background: rgba(168, 85, 247, 0.15); color: var(--pos-pick); }

/* Draft Pick Selector */
.pick-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pick-select {
  flex: 1;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-base);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

.pick-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.pick-select:focus {
  border-color: var(--accent-primary);
}

.add-pick-btn {
  padding: 8px 14px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-sm);
  color: var(--pos-pick);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

.add-pick-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-1px);
}

/* Player Cards in Trade */
.trade-players-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}

.trade-player-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  animation: cardSlideIn 300ms var(--transition-spring);
  transition: var(--transition-base);
}

.trade-player-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateX(-16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.trade-player-card.removing {
  animation: cardSlideOut 250ms ease-in forwards;
}

@keyframes cardSlideOut {
  to {
    opacity: 0;
    transform: translateX(16px) scale(0.9);
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}

.trade-player-card .card-pos {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  flex-shrink: 0;
}

.trade-player-card .card-info {
  flex: 1;
  min-width: 0;
}

.trade-player-card .card-name {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trade-player-card .card-team {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.trade-player-card .card-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.trade-player-card .card-remove {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: var(--danger-primary);
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.trade-player-card .card-remove:hover {
  background: rgba(244, 63, 94, 0.25);
  transform: scale(1.1);
}

.empty-side-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  border: 2px dashed rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

/* --- Center Divider (VS) --- */
.trade-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 80px;
}

.vs-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(244, 63, 94, 0.2));
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  position: relative;
  animation: vsPulse 2.5s ease-in-out infinite;
}

@keyframes vsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); }
  50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

.swap-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-base);
}

.swap-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: rotate(180deg);
}

/* --- Trade Result Area --- */
.trade-result {
  margin-top: 24px;
}

.fairness-meter {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: visible;
  margin-bottom: 8px;
}

.fairness-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: var(--radius-full);
  transition: all 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fairness-fill.side-a-fill {
  left: 0;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px rgba(var(--accent-primary-rgb), 0.4);
}

.fairness-fill.side-b-fill {
  right: 0;
  background: var(--danger-gradient);
  box-shadow: 0 0 12px rgba(var(--danger-primary-rgb), 0.4);
}

.fairness-indicator {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  transition: left 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.fairness-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Trade Verdict */
.trade-verdict {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  transition: var(--transition-slow);
}

.verdict-status {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
  transition: var(--transition-base);
}

.verdict-status.fair {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.verdict-status.side-a-wins {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.verdict-status.side-b-wins {
  background: var(--danger-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.verdict-status.lopsided {
  background: linear-gradient(135deg, #f43f5e, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: lopsidedPulse 1s ease-in-out;
}

@keyframes lopsidedPulse {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.05); }
  50% { transform: scale(1); }
  75% { transform: scale(1.03); }
}

.verdict-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.verdict-diff {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  margin-top: 8px;
}

.verdict-diff.positive {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-primary);
}

.verdict-diff.negative {
  background: rgba(244, 63, 94, 0.1);
  color: var(--danger-primary);
}

.stud-adjustment-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--tier-elite);
  animation: fadeIn 400ms ease-out;
}

.stud-adjustment-note .star-icon {
  font-size: 0.85rem;
}

/* Action buttons */
.trade-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  border: 1px solid;
}

.btn-share {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-primary);
}

.btn-share:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-reset {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--danger-primary);
}

.btn-reset:hover {
  background: rgba(244, 63, 94, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.2);
}

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

/* Toast notification */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */
.how-it-works {
  margin-top: 64px;
  text-align: center;
}

.section-title-center {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 0 0 3px 3px;
}

.step-number {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.step-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ============================================================
   RANKINGS SECTION
   ============================================================ */
.rankings-section {
  margin-top: 64px;
  padding-bottom: 48px;
}

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

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

/* Filter chips */
.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-tertiary);
  transition: var(--transition-base);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-chip:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-secondary);
}

.filter-chip.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.filter-chip.active.chip-qb { background: var(--pos-qb); box-shadow: 0 2px 10px rgba(239, 68, 68, 0.25); }
.filter-chip.active.chip-rb { background: var(--pos-rb); box-shadow: 0 2px 10px rgba(34, 197, 94, 0.25); }
.filter-chip.active.chip-wr { background: var(--pos-wr); box-shadow: 0 2px 10px rgba(59, 130, 246, 0.25); }
.filter-chip.active.chip-te { background: var(--pos-te); box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25); }
.filter-chip.active.chip-pick { background: var(--pos-pick); box-shadow: 0 2px 10px rgba(168, 85, 247, 0.25); }

/* Rankings search */
.rankings-search-bar {
  margin-bottom: 16px;
}

.rankings-search {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px 10px 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-base);
}

.rankings-search::placeholder {
  color: var(--text-muted);
}

.rankings-search:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
}

/* Rankings table */
.rankings-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.rankings-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--glass-border);
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.rankings-table thead th:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.rankings-table thead th.sorted {
  color: var(--accent-primary);
}

.rankings-table thead th .sort-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: var(--transition-fast);
}

.rankings-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-fast);
}

.rankings-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.rankings-table tbody td {
  padding: 10px 16px;
  white-space: nowrap;
}

.rank-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.table-player-name {
  font-weight: 600;
  color: var(--text-primary);
}

.table-team {
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

.table-pos {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.table-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-primary);
}

.table-age {
  color: var(--text-secondary);
}

.table-tier {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.tier-elite { background: rgba(251, 191, 36, 0.12); color: var(--tier-elite); }
.tier-star { background: rgba(244, 114, 182, 0.12); color: var(--tier-star); }
.tier-starter { background: rgba(96, 165, 250, 0.12); color: var(--tier-starter); }
.tier-bench { background: rgba(148, 163, 184, 0.1); color: var(--tier-bench); }
.tier-stash { background: rgba(100, 116, 139, 0.1); color: var(--tier-stash); }

.trend-up {
  color: var(--accent-primary);
  font-weight: 600;
}

.trend-down {
  color: var(--danger-primary);
  font-weight: 600;
}

.trend-flat {
  color: var(--text-muted);
}

/* Pagination */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-tertiary);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.page-btn:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-secondary);
}

.page-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}


/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  margin-top: 64px;
  padding-bottom: 64px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: '';
}

.faq-item summary:hover {
  color: var(--accent-primary);
}

.faq-chevron {
  font-size: 1.2rem;
  color: var(--text-tertiary);
  transition: transform 300ms ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.faq-answer {
  padding: 0 24px 18px;
  animation: faqOpen 300ms ease-out;
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
}

.footer-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.footer-desc {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 360px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-tertiary);
  transition: var(--transition-base);
}

.social-icon:hover {
  color: var(--accent-primary);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  transform: translateY(-2px);
}

.footer-nav-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-nav-list a:hover {
  color: var(--accent-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  text-align: left;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
  flex: 1;
  min-width: 280px;
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.7;
}


/* ============================================================
   CONTENT PAGES (About, Contact, Terms, Privacy, Sitemap)
   ============================================================ */
.page-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.page-hero .page-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--accent-gradient);
  margin-bottom: 20px;
  font-size: 32px;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
}

.page-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 50%, #f1f5f9 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s ease-in-out infinite;
}

.page-hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  justify-content: center;
}

.breadcrumbs a {
  color: var(--text-tertiary);
}

.breadcrumbs a:hover {
  color: var(--accent-primary);
}

.breadcrumbs .separator {
  color: var(--text-muted);
}

/* Content area */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.content-card {
  padding: 40px;
}

.content-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.content-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-card ul,
.content-card ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-card li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}

.content-card a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-card a:hover {
  color: var(--accent-secondary);
}

.content-card strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Feature grid in about page */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.feature-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.feature-item:hover {
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

.feature-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}


/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.contact-info-card {
  padding: 32px;
}

.contact-info-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.contact-detail-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.08);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-detail-text strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.contact-form-card {
  padding: 32px;
}

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

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-input.error,
.form-textarea.error {
  border-color: var(--danger-primary);
  box-shadow: 0 0 0 3px rgba(var(--danger-primary-rgb), 0.1);
}

.form-error-msg {
  font-size: 0.75rem;
  color: var(--danger-primary);
  margin-top: 4px;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 12px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-primary);
}

.form-status.error {
  display: block;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: var(--danger-primary);
}

.form-status.sending {
  display: block;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: var(--tier-starter);
}

.email-fallback {
  text-align: center;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.email-fallback a {
  color: var(--accent-primary);
}


/* ============================================================
   BLOG SYSTEM
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.blog-card {
  overflow: hidden;
  transition: var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -24px -24px 0 -24px;
  width: calc(100% + 48px);
}

.blog-card-body {
  padding-top: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.blog-category {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-primary);
}

.blog-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: var(--transition-fast);
}

.blog-read-more:hover {
  gap: 10px;
}

/* Blog single post */
.blog-post-hero {
  padding: 40px 0 24px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-hero .blog-category {
  margin-bottom: 12px;
  display: inline-block;
}

.blog-post-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 50%, #f1f5f9 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.blog-post-meta .author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-post-featured-image {
  width: 100%;
  max-width: 800px;
  margin: 24px auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.blog-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.blog-post-content .content-card {
  padding: 40px;
}

.blog-post-content .content-card h2 {
  color: var(--accent-primary);
  margin-top: 32px;
}

.blog-post-content .content-card p {
  font-size: 0.92rem;
  line-height: 1.85;
}

.blog-post-content .content-card blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--accent-primary);
  background: rgba(16, 185, 129, 0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.blog-post-content .content-card blockquote p {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Related posts */
.related-posts {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.related-posts h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.related-card {
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

.related-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.related-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.related-card-excerpt {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}


/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  text-align: center;
  padding: 80px 0;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-code {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.6;
}

.error-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.error-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 32px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-full);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}

.error-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
  color: white;
}


/* ============================================================
   SITEMAP PAGE
   ============================================================ */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.sitemap-group {
  padding: 24px;
}

.sitemap-group h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sitemap-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sitemap-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.sitemap-links a::before {
  content: '→';
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.sitemap-links a:hover {
  color: var(--accent-primary);
  padding-left: 4px;
}

.sitemap-links a:hover::before {
  color: var(--accent-primary);
}


/* ============================================================
   HOMEPAGE CONTENT SECTIONS
   ============================================================ */

/* --- Shared Content Section Styles --- */
.homepage-content-section {
  margin-top: 72px;
  padding-bottom: 16px;
}

.homepage-content-section .section-title-center {
  margin-bottom: 12px;
}

.homepage-content-section .section-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 36px;
  text-align: center;
}

.homepage-content-section .section-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Stat Counter Cards --- */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  text-align: center;
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 0 0 3px 3px;
}

.stat-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.stat-card-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* --- Trade Fairness Gauge (SVG) --- */
.gauge-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px auto;
  max-width: 340px;
}

.gauge-svg {
  width: 100%;
  max-width: 320px;
  overflow: visible;
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 20;
  stroke-linecap: round;
}

.gauge-fill-a {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 20;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
  transition: stroke-dashoffset 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gauge-fill-b {
  fill: none;
  stroke: var(--danger-primary);
  stroke-width: 20;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.3));
  transition: stroke-dashoffset 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gauge-needle {
  fill: var(--text-primary);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 160px 160px;
}

.gauge-center-dot {
  fill: var(--bg-secondary);
  stroke: var(--text-primary);
  stroke-width: 3;
}

.gauge-label {
  fill: var(--text-tertiary);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
}

.gauge-value-text {
  fill: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-anchor: middle;
}

.gauge-verdict-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
  transition: fill 0.5s ease;
}


/* --- Feature Tabs --- */
.feature-tabs-container {
  max-width: 900px;
  margin: 0 auto;
}

.feature-tabs-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-tab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-tertiary);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-tab-btn:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-secondary);
}

.feature-tab-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
}

.feature-tab-btn .tab-icon {
  font-size: 1rem;
}

.feature-panel {
  display: none;
  animation: featurePanelIn 400ms ease-out;
}

.feature-panel.active {
  display: block;
}

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

.feature-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.feature-panel-text {
  padding: 8px 0;
}

.feature-panel-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-panel-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-panel-visual {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Stud adjustment bar chart */
.stud-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 160px;
  width: 100%;
  justify-content: center;
}

.stud-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 100px;
}

.stud-bar {
  width: 100%;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  min-height: 4px;
}

.stud-bar.elite {
  background: var(--accent-gradient);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.stud-bar.average {
  background: rgba(148, 163, 184, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.stud-bar.bonus {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.stud-bar-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.stud-bar-value {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Format flip cards */
.format-flip-container {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: center;
}

.format-flip-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  flex: 1;
  max-width: 140px;
  transition: var(--transition-base);
}

.format-flip-card.sf-card {
  border-color: rgba(16, 185, 129, 0.2);
}

.format-flip-card.qb-card {
  border-color: rgba(6, 182, 212, 0.2);
}

.format-flip-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: var(--text-tertiary);
}

.format-flip-player {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.format-flip-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.sf-card .format-flip-value {
  color: var(--accent-primary);
}

.qb-card .format-flip-value {
  color: var(--accent-secondary);
}

.format-flip-diff {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Draft pick decay chart */
.pick-decay-chart {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pick-decay-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pick-decay-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: 50px;
  text-align: right;
  flex-shrink: 0;
}

.pick-decay-bar-bg {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.pick-decay-bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.pick-decay-bar-fill.early-pick {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.6), rgba(168, 85, 247, 0.9));
}

.pick-decay-bar-fill.mid-pick {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.5), rgba(96, 165, 250, 0.8));
}

.pick-decay-bar-fill.late-pick {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.4), rgba(148, 163, 184, 0.7));
}

.pick-decay-bar-fill.future-pick {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.4), rgba(245, 158, 11, 0.7));
}

.pick-decay-value {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}


/* --- Pick Value Explorer --- */
.pick-explorer {
  max-width: 600px;
  margin: 0 auto;
}

.pick-explorer-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pick-explorer-select {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: var(--transition-base);
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.pick-explorer-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
}

.pick-explorer-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.pick-explorer-result {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.pick-explorer-pick-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pos-pick);
  margin-bottom: 12px;
}

.pick-explorer-value-bar-bg {
  width: 100%;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}

.pick-explorer-value-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pos-pick), rgba(168, 85, 247, 0.6));
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  min-width: 40px;
}

.pick-explorer-value-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.pick-explorer-equivalent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-md);
}

.pick-explorer-approx {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

.pick-explorer-player-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-primary);
}


/* --- Value Scale --- */
.value-scale-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.value-scale-bar {
  position: relative;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg,
    rgba(100, 116, 139, 0.3) 0%,
    rgba(148, 163, 184, 0.3) 20%,
    rgba(96, 165, 250, 0.4) 40%,
    rgba(244, 114, 182, 0.4) 70%,
    rgba(251, 191, 36, 0.5) 100%
  );
  margin-bottom: 8px;
  overflow: visible;
  border: 1px solid var(--glass-border);
}

.value-scale-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  margin-bottom: 28px;
}

.value-scale-tick {
  text-align: center;
}

.value-scale-tick-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.value-scale-tick-value {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
}

.tier-color-stash { color: var(--tier-stash); }
.tier-color-bench { color: var(--tier-bench); }
.tier-color-starter { color: var(--tier-starter); }
.tier-color-star { color: var(--tier-star); }
.tier-color-elite { color: var(--tier-elite); }

.value-scale-players {
  position: relative;
  height: 44px;
  margin-top: 8px;
}

.value-scale-player {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-scale-player.visible {
  opacity: 1;
}

.value-scale-player-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 4px;
  box-shadow: 0 0 8px currentColor;
}

.value-scale-player-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.value-scale-player-val {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
}


/* --- Comparison Table --- */
.comparison-container {
  max-width: 700px;
  margin: 0 auto;
}

.comparison-table-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead th {
  padding: 14px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

.comparison-table thead th:first-child {
  text-align: left;
}

.comparison-table thead th.highlight-col {
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.06);
}

.comparison-table tbody td {
  padding: 12px 20px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  text-align: center;
  color: var(--text-secondary);
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
}

.comparison-table tbody td.highlight-col {
  background: rgba(16, 185, 129, 0.03);
}

.comparison-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.comparison-check.visible {
  opacity: 1;
  transform: scale(1);
}

.comparison-check.yes {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-primary);
}

.comparison-check.no {
  background: rgba(244, 63, 94, 0.1);
  color: var(--danger-primary);
}

.comparison-check.partial {
  background: rgba(245, 158, 11, 0.12);
  color: var(--danger-secondary);
}


/* --- Strategy Slider --- */
.strategy-container {
  max-width: 800px;
  margin: 0 auto;
}

.strategy-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.strategy-toggle-inner {
  display: flex;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 4px;
  position: relative;
}

.strategy-btn {
  padding: 10px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  position: relative;
  z-index: 1;
}

.strategy-btn:hover {
  color: var(--text-secondary);
}

.strategy-btn.active {
  color: white;
  background: var(--accent-gradient);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
}

.strategy-diagram {
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.strategy-roster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.roster-slot {
  padding: 12px 8px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.roster-slot.highlight-young {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}

.roster-slot.highlight-vet {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
}

.roster-slot.highlight-pick {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.06);
}

.roster-slot-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
  display: block;
}

.roster-slot-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-slot-meta {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.strategy-summary {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.strategy-summary-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.strategy-summary-text strong {
  color: var(--accent-primary);
  font-weight: 700;
}


/* --- Content Section Responsive --- */
@media (max-width: 900px) {
  .stat-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-panel-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .strategy-roster {
    grid-template-columns: repeat(2, 1fr);
  }

  .format-flip-container {
    flex-direction: column;
    align-items: center;
  }

  .format-flip-card {
    max-width: 200px;
    width: 100%;
  }

  .pick-explorer-controls {
    flex-direction: column;
    align-items: center;
  }

  .pick-explorer-select {
    width: 100%;
    max-width: 260px;
  }
}

@media (max-width: 600px) {
  .homepage-content-section {
    margin-top: 48px;
  }

  .feature-tabs-nav {
    gap: 4px;
  }

  .feature-tab-btn {
    padding: 8px 12px;
    font-size: 0.72rem;
  }

  .stud-bars {
    height: 120px;
  }

  .value-scale-player-name {
    font-size: 0.55rem;
  }

  .strategy-roster {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .strategy-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 10px 12px;
    font-size: 0.75rem;
  }
}


/* ============================================================
   UTILITY ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-in {
  animation: slideUp 500ms ease-out both;
}

.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .trade-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .trade-divider {
    padding: 16px 0;
    flex-direction: row;
    gap: 12px;
  }

  .trade-side {
    min-height: auto;
  }

  .settings-bar {
    flex-direction: column;
    gap: 10px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rankings-search {
    max-width: 100%;
  }

  .app-container {
    padding: 0 16px;
    padding-top: var(--nav-height);
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-title {
    font-size: 1.5rem;
  }

  .glass-card {
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .trade-side-value {
    font-size: 1.2rem;
  }

  .pick-selector {
    flex-wrap: wrap;
  }

  .trade-actions {
    flex-direction: column;
  }

  .action-btn {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-copyright {
    text-align: center;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-image {
    height: 160px;
  }

  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 24px;
  }

  .contact-form-card,
  .contact-info-card {
    padding: 24px;
  }
}

/* ============================================================
   i18n & Language Switcher
   ============================================================ */
.lang-switcher {
  position: relative;
  display: inline-block;
  z-index: 550;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.lang-globe {
  font-size: 0.95rem;
}

.lang-chevron {
  font-size: 0.7rem;
  opacity: 0.7;
  transition: transform var(--transition-fast);
}

.lang-switcher-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 220px;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast) cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.lang-option.active {
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.08);
  font-weight: 600;
}

.lang-option-native {
  font-weight: 500;
}

.lang-option-name {
  font-size: 0.72rem;
  opacity: 0.6;
  margin-left: 8px;
}

.lang-check {
  font-size: 0.85rem;
  margin-left: auto;
}

/* Custom scrollbar for language dropdown */
.lang-dropdown::-webkit-scrollbar {
  width: 5px;
}

.lang-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.lang-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.lang-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Position dropdowns in nav and footer correctly */
.site-nav #lang-switcher-nav {
  margin-left: 8px;
}

.site-footer #lang-switcher-footer .lang-dropdown {
  top: auto;
  bottom: calc(100% + 6px);
}

/* ============================================================
   RTL (Right-To-Left) Support
   ============================================================ */
html[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] body {
  direction: rtl;
  font-family: 'Outfit', 'Inter', sans-serif;
}

html[dir="rtl"] .nav-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-brand {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .site-nav #lang-switcher-nav {
  margin-left: 0;
  margin-right: 8px;
}

html[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

html[dir="rtl"] .lang-option {
  flex-direction: row-reverse;
}

html[dir="rtl"] .lang-option-name {
  margin-left: 0;
  margin-right: 8px;
}

html[dir="rtl"] .lang-check {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .mobile-menu-panel {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--glass-border);
  transform: translateX(-100%);
}

html[dir="rtl"] .mobile-menu-overlay.active .mobile-menu-panel {
  transform: translateX(0);
}

html[dir="rtl"] .mobile-menu-header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .mobile-menu-links {
  text-align: right;
}

html[dir="rtl"] .mobile-menu-footer {
  flex-direction: row-reverse;
}

html[dir="rtl"] .player-search-container {
  display: flex;
  flex-direction: row-reverse;
}

html[dir="rtl"] .player-search {
  padding: 12px 40px 12px 16px;
  text-align: right;
}

html[dir="rtl"] .search-icon {
  left: auto;
  right: 16px;
}

html[dir="rtl"] .pick-selector {
  flex-direction: row-reverse;
}

html[dir="rtl"] .trade-side-header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .trade-side-label {
  flex-direction: row-reverse;
}

html[dir="rtl"] .empty-side-msg {
  text-align: center;
}

html[dir="rtl"] .trade-player-row {
  flex-direction: row-reverse;
}

html[dir="rtl"] .trade-player-info {
  text-align: right;
  margin-left: 0;
  margin-right: 12px;
}

html[dir="rtl"] .trade-player-value {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .trade-player-remove {
  margin-left: 0;
  margin-right: 8px;
}

html[dir="rtl"] .verdict-metric {
  flex-direction: row-reverse;
}

html[dir="rtl"] .verdict-value {
  margin-right: 0;
  margin-left: 10px;
}

html[dir="rtl"] .how-it-works {
  text-align: center;
}

html[dir="rtl"] .step-card {
  text-align: center;
}

html[dir="rtl"] .faq-trigger {
  flex-direction: row-reverse;
}

html[dir="rtl"] .faq-icon {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .faq-answer {
  text-align: right;
}

html[dir="rtl"] .footer-grid {
  text-align: right;
}

html[dir="rtl"] .footer-logo-row {
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-bottom {
  text-align: center;
}

html[dir="rtl"] .breadcrumbs {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

html[dir="rtl"] .breadcrumbs .separator {
  transform: scaleX(-1);
}

html[dir="rtl"] .features-grid {
  text-align: right;
}

html[dir="rtl"] .feature-item {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .feature-icon {
  margin-right: 0;
  margin-left: 16px;
}

html[dir="rtl"] .contact-grid {
  text-align: right;
}

html[dir="rtl"] .contact-detail {
  flex-direction: row-reverse;
}

html[dir="rtl"] .contact-detail-text {
  margin-left: 0;
  margin-right: 16px;
}

html[dir="rtl"] .form-group {
  text-align: right;
}

html[dir="rtl"] .submit-btn {
  flex-direction: row-reverse;
}

/* ═══════════════════════════════════════════════════════
   TOOLS SHOWCASE GRID
   ═══════════════════════════════════════════════════════ */

.tools-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 18px 20px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.12), 0 0 0 1px rgba(16, 185, 129, 0.15);
}

.tool-card:hover::before {
  opacity: 1;
}

/* ─── SVG Diagram Container ─── */
.tool-card-icon-wrap {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 3/2;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.tool-card-diagram {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ─── SVG Diagram Elements ─── */
.tool-dia-box {
  fill: none;
  stroke-width: 1.5;
}
.tool-dia-a {
  stroke: var(--accent-primary, #10b981);
  fill: rgba(16, 185, 129, 0.08);
}
.tool-dia-b {
  stroke: var(--accent-secondary, #06b6d4);
  fill: rgba(6, 182, 212, 0.08);
}
.tool-dia-idp {
  stroke: #f59e0b;
  fill: rgba(245, 158, 11, 0.08);
}
.tool-dia-line {
  stroke: var(--text-muted, #64748b);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.tool-dia-arrow {
  fill: var(--accent-primary, #10b981);
}
.tool-dia-text {
  fill: var(--text-secondary, #94a3b8);
  font-size: 9px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-anchor: middle;
  dominant-baseline: central;
}
.tool-dia-badge {
  fill: rgba(16, 185, 129, 0.15);
  stroke: var(--accent-primary, #10b981);
  stroke-width: 1;
}
.tool-dia-badge-text {
  fill: var(--text-primary, #f1f5f9);
  font-size: 8px;
  text-anchor: middle;
  dominant-baseline: central;
}
.tool-dia-curve {
  stroke: var(--accent-primary, #10b981);
  stroke-width: 1.5;
  stroke-dasharray: 3 2;
}
.tool-dia-glow {
  fill: rgba(16, 185, 129, 0.1);
  stroke: rgba(16, 185, 129, 0.3);
  stroke-width: 1;
}
.tool-dia-panel {
  fill: rgba(255, 255, 255, 0.03);
  stroke: var(--glass-border, rgba(148, 163, 184, 0.12));
  stroke-width: 1;
}
.tool-dia-divider {
  stroke: var(--glass-border, rgba(148, 163, 184, 0.12));
  stroke-width: 0.5;
}
.tool-dia-bar {
  rx: 3;
}
.tool-dia-bar-a {
  fill: var(--accent-primary, #10b981);
  opacity: 0.6;
}
.tool-dia-bar-b {
  fill: var(--accent-secondary, #06b6d4);
  opacity: 0.5;
}
.tool-dia-bar-c {
  fill: #f59e0b;
  opacity: 0.4;
}
.tool-dia-check {
  fill: rgba(16, 185, 129, 0.15);
  stroke: var(--accent-primary, #10b981);
  stroke-width: 1.5;
}
.tool-dia-pick {
  stroke-width: 1.5;
}
.tool-dia-pick.pick-1 {
  fill: rgba(16, 185, 129, 0.12);
  stroke: var(--accent-primary, #10b981);
}
.tool-dia-pick.pick-2 {
  fill: rgba(6, 182, 212, 0.12);
  stroke: var(--accent-secondary, #06b6d4);
}
.tool-dia-pick.pick-3 {
  fill: rgba(245, 158, 11, 0.10);
  stroke: #f59e0b;
}
.tool-dia-axis {
  stroke: var(--text-muted, #64748b);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}
.tool-dia-track {
  fill: rgba(148, 163, 184, 0.08);
}
.tool-dia-fill-ppr {
  fill: var(--accent-primary, #10b981);
  opacity: 0.5;
}
.tool-dia-fill-half {
  fill: var(--accent-secondary, #06b6d4);
  opacity: 0.45;
}
.tool-dia-fill-std {
  fill: #94a3b8;
  opacity: 0.35;
}
.tool-dia-scale {
  fill: rgba(148, 163, 184, 0.06);
}
.tool-dia-tier-stash { fill: rgba(148, 163, 184, 0.25); }
.tool-dia-tier-bench { fill: rgba(245, 158, 11, 0.25); }
.tool-dia-tier-starter { fill: rgba(6, 182, 212, 0.3); }
.tool-dia-tier-star { fill: rgba(139, 92, 246, 0.3); }
.tool-dia-tier-elite { fill: rgba(16, 185, 129, 0.35); }
.tool-dia-dot {
  stroke-width: 1;
}
.tool-dia-dot.dot-elite { fill: var(--accent-primary, #10b981); stroke: var(--accent-primary, #10b981); }
.tool-dia-dot.dot-star { fill: #8b5cf6; stroke: #8b5cf6; }
.tool-dia-dot.dot-starter { fill: var(--accent-secondary, #06b6d4); stroke: var(--accent-secondary, #06b6d4); }
.tool-dia-dot.dot-bench { fill: #f59e0b; stroke: #f59e0b; }
.tool-dia-connector {
  stroke: var(--text-muted, #64748b);
  stroke-width: 0.5;
  stroke-dasharray: 2 1;
}
.tool-dia-field {
  fill: rgba(16, 185, 129, 0.06);
  stroke: rgba(16, 185, 129, 0.2);
  stroke-width: 1.5;
}
.tool-dia-midline {
  stroke: rgba(16, 185, 129, 0.15);
  stroke-width: 1;
  stroke-dasharray: 3 2;
}
.tool-dia-center {
  fill: rgba(16, 185, 129, 0.2);
  stroke: var(--accent-primary, #10b981);
  stroke-width: 1;
}
.tool-dia-player-dot {
  stroke-width: 1;
}
.tool-dia-player-dot.dot-a {
  fill: var(--accent-primary, #10b981);
  stroke: rgba(16, 185, 129, 0.4);
}
.tool-dia-player-dot.dot-b {
  fill: var(--accent-secondary, #06b6d4);
  stroke: rgba(6, 182, 212, 0.4);
}
.tool-dia-diamond {
  fill: rgba(16, 185, 129, 0.06);
  stroke: rgba(16, 185, 129, 0.3);
  stroke-width: 1.5;
}
.tool-dia-base {
  fill: rgba(245, 158, 11, 0.2);
  stroke: #f59e0b;
  stroke-width: 1;
}
.tool-dia-home {
  fill: rgba(16, 185, 129, 0.25);
  stroke: var(--accent-primary, #10b981);
  stroke-width: 1.5;
}
.tool-dia-league-ring {
  fill: none;
  stroke: rgba(16, 185, 129, 0.2);
  stroke-width: 1.5;
  stroke-dasharray: 5 3;
}
.tool-dia-league-inner {
  fill: rgba(16, 185, 129, 0.04);
  stroke: rgba(16, 185, 129, 0.12);
  stroke-width: 1;
}
.tool-dia-team-dot {
  fill: rgba(6, 182, 212, 0.3);
  stroke: var(--accent-secondary, #06b6d4);
  stroke-width: 1;
}
.tool-dia-star {
  fill: #f59e0b;
  opacity: 0.6;
}

/* ─── Card Text ─── */
.tool-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary, #f1f5f9);
  margin: 0 0 6px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.tool-card-desc {
  font-size: 0.74rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.45;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

.tool-card-cta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary, #10b981);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
}

.tool-card:hover .tool-card-cta {
  letter-spacing: 0.12em;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* ─── Hover Animations for Diagrams ─── */
.tool-card:hover .tool-dia-a {
  stroke: var(--accent-primary, #10b981);
  fill: rgba(16, 185, 129, 0.15);
  transition: all 0.3s ease;
}
.tool-card:hover .tool-dia-b {
  stroke: var(--accent-secondary, #06b6d4);
  fill: rgba(6, 182, 212, 0.15);
  transition: all 0.3s ease;
}
.tool-card:hover .tool-dia-badge {
  fill: rgba(16, 185, 129, 0.25);
}
.tool-card:hover .tool-dia-fill-ppr { opacity: 0.75; }
.tool-card:hover .tool-dia-fill-half { opacity: 0.65; }
.tool-card:hover .tool-dia-fill-std { opacity: 0.5; }
.tool-card:hover .tool-dia-dot { r: 6; }
.tool-card:hover .tool-dia-player-dot { r: 6; }
.tool-card:hover .tool-dia-team-dot { fill: rgba(6, 182, 212, 0.5); }
.tool-card:hover .tool-dia-field { fill: rgba(16, 185, 129, 0.1); }
.tool-card:hover .tool-dia-diamond { fill: rgba(16, 185, 129, 0.1); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .tools-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .tools-showcase-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tool-card {
    padding: 20px 16px 18px;
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }
  .tool-card-icon-wrap {
    max-width: 90px;
    min-width: 90px;
    margin-bottom: 0;
  }
  .tool-card-title {
    font-size: 0.82rem;
  }
  .tool-card-desc {
    font-size: 0.72rem;
    margin-bottom: 8px;
  }
}

