/**
 * PaddocLabs Design System v4.0
 * Ultra-minimal glassmorphism + Orbitron racing font
 * Brand: Orange #f15a24 on deep black #050505
 */

/* ═══════════════════════════════════════════════════════
   TOKENS
   ═══════════════════════════════════════════════════════ */

:root {
  --pl-orange: #f15a24;
  --pl-orange-dark: #d94f1f;
  --pl-orange-light: #ff7a4a;
  --pl-orange-glow: rgba(241, 90, 36, 0.15);

  --pl-bg: #050505;
  --pl-bg-card: rgba(255, 255, 255, 0.03);
  --pl-bg-elevated: rgba(255, 255, 255, 0.05);

  --pl-glass-bg: rgba(255, 255, 255, 0.04);
  --pl-glass-border: rgba(255, 255, 255, 0.08);
  --pl-glass-border-hover: rgba(255, 255, 255, 0.15);
  --pl-glass-blur: blur(24px);

  --pl-text: #ffffff;
  --pl-text-secondary: #aaaaaa;
  --pl-text-muted: #666666;

  --pl-font: 'Orbitron', sans-serif;
  --pl-font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --pl-radius: 16px;
  --pl-radius-sm: 8px;
  --pl-radius-full: 9999px;

  --pl-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --pl-transition-fast: 0.15s ease;

  --pl-success: #22c55e;
  --pl-success-glow: rgba(34, 197, 94, 0.45);
  --pl-fuchsia: #D946EF;
  --pl-danger: #ef4444;
  --pl-discord: #5865F2;
  --pl-selected-glow: rgba(220, 220, 220, 0.35);

  --pl-navbar-h: 72px;
  --pl-navbar-h-expanded: 128px;
  --pl-container: 1100px;
}


/* ═══════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--pl-font-body);
  background: var(--pl-bg);
  color: var(--pl-text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Animated ambient glow — orange + fuchsia pulse */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(241, 90, 36, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(217, 70, 239, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: pl-bg-pulse 8s ease-in-out infinite;
}
@keyframes pl-bg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }


/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pl-font);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.pl-text-gradient {
  background: linear-gradient(135deg, var(--pl-orange) 0%, var(--pl-orange-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pl-text-orange { color: var(--pl-orange); }
.pl-text-muted { color: var(--pl-text-muted); }
.pl-text-secondary { color: var(--pl-text-secondary); }
.pl-text-center { text-align: center; }
.pl-text-sm { font-size: 0.875rem; }
.pl-text-xs { font-size: 0.75rem; }


/* ═══════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════ */

.pl-container {
  width: 100%;
  max-width: var(--pl-container);
  margin: 0 auto;
  padding: 0 24px;
}

.pl-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.pl-section--tinted {
  background: rgba(255, 255, 255, 0.01);
}

.pl-grid {
  display: grid;
  gap: 24px;
}

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

.pl-flex { display: flex; }
.pl-flex-center { display: flex; align-items: center; justify-content: center; }
.pl-gap-sm { gap: 8px; }
.pl-gap-md { gap: 16px; }
.pl-gap-lg { gap: 24px; }

.pl-mt-sm { margin-top: 8px; }
.pl-mt-md { margin-top: 16px; }
.pl-mt-lg { margin-top: 32px; }
.pl-mt-xl { margin-top: 48px; }
.pl-mb-sm { margin-bottom: 8px; }
.pl-mb-md { margin-bottom: 16px; }
.pl-mb-lg { margin-bottom: 32px; }
.pl-mb-xl { margin-bottom: 48px; }

.pl-navbar-spacer {
  height: var(--pl-navbar-h);
}

@media (max-width: 768px) {
  .pl-grid-2, .pl-grid-3 { grid-template-columns: 1fr; }
  .pl-section { padding: 60px 0; }
}


/* ═══════════════════════════════════════════════════════
   HEADER / NAVBAR — Expandable on hover
   ═══════════════════════════════════════════════════════ */

.pl-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--pl-navbar-h);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  /* NO border-bottom — solo box-shadow glow arancione */
  box-shadow:
    0 1px 0 0 rgba(241, 90, 36, 0.15),
    0 4px 24px 0 rgba(241, 90, 36, 0.20),
    0 8px 48px -8px rgba(241, 90, 36, 0.12);
  transition:
    height 280ms cubic-bezier(0.16, 1, 0.3, 1),
    background 280ms ease,
    backdrop-filter 280ms ease,
    box-shadow 280ms ease;
  overflow: hidden;
  padding: 0 24px;
}

/* Expanded state — on hover or when account dropdown is forced open */
.pl-header:hover,
.pl-header.is-expanded {
  height: var(--pl-navbar-h-expanded);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 1px 0 0 rgba(241, 90, 36, 0.25),
    0 6px 32px 0 rgba(241, 90, 36, 0.30),
    0 16px 64px -8px rgba(241, 90, 36, 0.18);
}

.pl-header.scrolled {
  background: rgba(255, 255, 255, 0.06);
}

/* ── MAIN ROW (always visible): 3 columns ── */
.pl-header__main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--pl-navbar-h);
  width: 100%;
}

/* Team pillole (left) */
.pl-header__teams {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  min-width: 0;
  grid-column: 1;
}



.pl-team-pill:hover {
  border-color: rgba(241, 90, 36, 0.40);
  background: rgba(241, 90, 36, 0.06);
}

.pl-team-pill__members {
  display: flex;
  align-items: center;
}

.pl-team-member {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pl-orange), var(--pl-orange-dark));
  border: 2.5px solid rgba(10, 13, 20, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.pl-team-member:not(:first-child) { margin-left: -14px; }

.pl-team-member img { width: 100%; height: 100%; object-fit: cover; }

.pl-team-pill__label {
  font-family: var(--pl-font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.80);
  white-space: nowrap;
}

/* Logo (center) — absolute positioning: rests on orange border (bottom touches header-collapsed edge) */
.pl-header__logo {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  height: 54px;
  display: flex;
  align-items: center;
  z-index: 5;
  pointer-events: auto;
}

.pl-header__logo img {
  height: 100%;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(241, 90, 36, 0.45));
  transition: filter var(--pl-transition);
}

.pl-header:hover .pl-header__logo img,
.pl-header.is-expanded .pl-header__logo img {
  filter: drop-shadow(0 0 22px rgba(241, 90, 36, 0.65));
}

/* Account section (right) */
.pl-header__account {
  display: flex;
  align-items: center;
  justify-self: end;
  grid-column: 3;
}

/* Not logged — auth buttons */
.pl-header__auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pl-header__auth .pl-btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.80);
  border-radius: var(--pl-radius-full);
  padding: 8px 18px;
  font-family: var(--pl-font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 150ms ease, color 150ms ease;
}

.pl-header__auth .pl-btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 1.00);
}

.pl-header__auth .pl-btn--primary {
  background: #f15a24;
  color: #ffffff;
  border-radius: var(--pl-radius-full);
  padding: 8px 18px;
  font-family: var(--pl-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border: none;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.pl-header__auth .pl-btn--primary:hover {
  background: #ff6b35;
  box-shadow: 0 0 16px rgba(241, 90, 36, 0.45);
}

/* Logged — user button */
.pl-header__user {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 220ms ease-out;
}

.pl-header__user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(241, 90, 36, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--pl-orange);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(241, 90, 36, 0);
  overflow: hidden;
  transition: border-color 220ms ease-out, box-shadow 220ms ease-out;
}

.pl-header__user-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Expanded: avatar glow + username visibile */
.pl-header:hover .pl-header__user-avatar,
.pl-header.is-expanded .pl-header__user-avatar {
  box-shadow: 0 0 0 2px rgba(241, 90, 36, 0.50);
}

/* Discord-linked: viola #5865f2 glow sul avatar */
.pl-header__user-avatar.is-discord-linked {
  border-color: rgba(88, 101, 242, 0.60);
  box-shadow:
    0 0 0 2px rgba(88, 101, 242, 0.45),
    0 0 14px rgba(88, 101, 242, 0.50);
}
.pl-header:hover .pl-header__user-avatar.is-discord-linked,
.pl-header.is-expanded .pl-header__user-avatar.is-discord-linked {
  border-color: rgba(88, 101, 242, 0.85);
  box-shadow:
    0 0 0 2px rgba(88, 101, 242, 0.70),
    0 0 20px rgba(88, 101, 242, 0.65);
}
.pl-account-panel__avatar.is-discord-linked {
  border-color: rgba(88, 101, 242, 0.70);
  box-shadow:
    0 0 0 3px rgba(88, 101, 242, 0.40),
    0 0 24px rgba(88, 101, 242, 0.55);
}

.pl-header__username {
  font-family: var(--pl-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.90);
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  margin-left: 0;
  transition:
    max-width 220ms ease-out,
    opacity 220ms ease-out,
    margin-left 220ms ease-out;
}

.pl-header:hover .pl-header__username,
.pl-header.is-expanded .pl-header__username {
  max-width: 200px;
  opacity: 1;
  margin-left: 10px;
}

/* ── NAV ROW (visible on expand): page links ── */
.pl-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  height: 0;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  transition:
    height 280ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 200ms ease-out,
    padding 280ms ease,
    overflow 0s 280ms;
}

.pl-header:hover .pl-header__nav,
.pl-header.is-expanded .pl-header__nav {
  height: 56px;
  opacity: 1;
  padding: 8px 0;
  overflow: visible;
  transition-delay: 0s;
}

/* Nav links — Inter, 4 stati */
.pl-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  font-family: var(--pl-font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.60);
  text-decoration: none;
  border-radius: 8px;
  transition: color 150ms ease;
}

.pl-nav-link i {
  font-size: 0.85em;
  opacity: 0.75;
  transition: opacity 150ms ease;
}

/* Glow faro — posizionato sotto il link, blur radiale */
.pl-nav-link::after {
  content: '';
  position: absolute;
  bottom: -33px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 40px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out, background 150ms ease;
}

/* Stato 1: Normal — già definito sopra (rgba(255,255,255,0.60)) */

/* Stato 2: Hover — bianco pieno + glow arancione */
.pl-nav-link:hover {
  color: rgba(255, 255, 255, 1.00);
}
.pl-nav-link:hover i { opacity: 1; }
.pl-nav-link:hover::after {
  background: #f15a24;
  opacity: 0.60;
}

/* Stato 3: Selected — arancione + glow grigio chiaro */
.pl-nav-link--active {
  color: #f15a24;
}
.pl-nav-link--active i { opacity: 1; color: #f15a24; }
.pl-nav-link--active::after {
  background: rgba(220, 220, 220, 0.35);
  opacity: 1;
}

/* Stato 4: Selected + Hover — fuchsia + glow verde */
.pl-nav-link--active:hover {
  color: var(--pl-fuchsia);
}
.pl-nav-link--active:hover i { color: var(--pl-fuchsia); }
.pl-nav-link--active:hover::after {
  background: rgba(34, 197, 94, 0.50);
  opacity: 1;
}

/* ── ACCOUNT DROPDOWN PANEL (click on account) ── */
.pl-account-panel {
  position: absolute;
  top: calc(var(--pl-navbar-h-expanded) + 8px);
  right: 24px;
  width: 320px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.60),
    0 2px 8px rgba(0, 0, 0, 0.40),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 20px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pl-account-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pl-account-panel__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pl-account-panel__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(241, 90, 36, 0.12);
  border: 2px solid rgba(241, 90, 36, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--pl-orange);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.pl-account-panel__avatar img { width: 100%; height: 100%; object-fit: cover; }

.pl-account-panel__avatar-edit {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  opacity: 0;
  transition: opacity var(--pl-transition-fast);
}

.pl-account-panel__avatar:hover .pl-account-panel__avatar-edit {
  opacity: 1;
}

.pl-account-panel__info { min-width: 0; flex: 1; }

.pl-account-panel__username {
  font-family: var(--pl-font);
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pl-account-panel__email {
  font-family: var(--pl-font-body);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pl-account-panel__license {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.pl-account-panel__license-label {
  font-family: var(--pl-font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.pl-license-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--pl-radius-full);
  font-family: var(--pl-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Tier colors */
.pl-license-badge--free {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(180, 180, 180, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.pl-license-badge--pro {
  background: rgba(241, 90, 36, 0.12);
  color: var(--pl-orange);
  border: 1px solid rgba(241, 90, 36, 0.35);
}

.pl-license-badge--team {
  background: rgba(34, 197, 94, 0.10);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.30);
}

.pl-license-badge--elite {
  background: rgba(217, 70, 239, 0.12);
  color: var(--pl-fuchsia);
  border: 1px solid rgba(217, 70, 239, 0.35);
}

/* Divider */
.pl-account-panel__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0;
  border: none;
}

.pl-account-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pl-account-panel__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  font-family: var(--pl-font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70);
  border-radius: 8px;
  transition: background 150ms ease, color 150ms ease;
  text-align: left;
  text-decoration: none;
}

.pl-account-panel__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 1.00);
}

.pl-account-panel__item i {
  width: 16px;
  text-align: center;
  opacity: 0.70;
  flex-shrink: 0;
}

.pl-account-panel__item--danger {
  color: rgba(241, 90, 36, 0.80);
}
.pl-account-panel__item--danger i { color: rgba(241, 90, 36, 0.80); }
.pl-account-panel__item--danger:hover {
  background: rgba(241, 90, 36, 0.08);
  color: #f15a24;
}
.pl-account-panel__item--danger:hover i { color: #f15a24; }

/* ═══ PANEL SECTIONS (redesign) ═══ */
.pl-account-panel__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pl-account-panel__section-title {
  font-family: var(--pl-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.40);
  padding: 0 4px;
}

.pl-account-panel__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: border-color 200ms ease, background 200ms ease;
}

.pl-account-panel__card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

/* License card */
.pl-license-card { justify-content: space-between; }
.pl-license-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.pl-license-card__label {
  font-family: var(--pl-font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-license-card__upgrade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(241, 90, 36, 0.90), rgba(241, 90, 36, 0.70));
  color: #fff;
  font-family: var(--pl-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
  flex-shrink: 0;
}
.pl-license-card__upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(241, 90, 36, 0.35);
}
.pl-license-card__upgrade i { font-size: 9px; }
/* Hide upgrade if already on top plan */
.pl-license-card[data-plan="elite"] .pl-license-card__upgrade,
.pl-license-card[data-plan="team"] .pl-license-card__upgrade { display: none; }

/* Donation card — replaces license card (donation-only model) */
.pl-donation-card { gap: 12px; }
.pl-donation-card__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(241, 90, 36, 0.18), rgba(217, 70, 239, 0.12));
  border: 1px solid rgba(241, 90, 36, 0.30);
  border-radius: 10px;
  color: #f15a24;
  font-size: 15px;
  transition: all 220ms ease;
}
.pl-donation-card:hover .pl-donation-card__icon {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(241, 90, 36, 0.35);
}
.pl-donation-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pl-donation-card__title {
  font-family: var(--pl-font-body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
}
.pl-donation-card__subtitle {
  font-family: var(--pl-font-body);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.2;
}
.pl-donation-card__btn {
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(241, 90, 36, 0.95), rgba(241, 90, 36, 0.75));
  color: #fff;
  font-family: var(--pl-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
  flex-shrink: 0;
}
.pl-donation-card__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(241, 90, 36, 0.40);
}

/* Connection card (Discord) */
.pl-connection-card__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(88, 101, 242, 0.14);
  border: 1px solid rgba(88, 101, 242, 0.30);
  border-radius: 10px;
  color: #5865f2;
  font-size: 18px;
  transition: all 220ms ease;
}
.pl-connection-card[data-connected="true"] .pl-connection-card__icon {
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.55);
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.30);
}
.pl-connection-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pl-connection-card__title {
  font-family: var(--pl-font-body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
}
.pl-connection-card__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pl-font-body);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.2;
}
.pl-connection-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.30);
  transition: all 220ms ease;
}
.pl-connection-card[data-connected="true"] .pl-connection-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.60);
}
.pl-connection-card[data-connected="true"] .pl-connection-card__status { color: rgba(34, 197, 94, 0.90); }

.pl-connection-card__btn {
  padding: 6px 12px;
  background: rgba(88, 101, 242, 0.14);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #a5b0ff;
  font-family: var(--pl-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
  flex-shrink: 0;
}
.pl-connection-card__btn:hover {
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.55);
  color: #fff;
}
.pl-connection-card[data-connected="true"] .pl-connection-card__btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
}
.pl-connection-card[data-connected="true"] .pl-connection-card__btn:hover {
  background: rgba(241, 90, 36, 0.10);
  border-color: rgba(241, 90, 36, 0.40);
  color: #f15a24;
}


/* Pill buttons variant for auth (usato anche altrove) */
.pl-btn--pill {
  border-radius: var(--pl-radius-full);
  padding: 8px 18px;
}

/* ── MOBILE HAMBURGER ── */
.pl-header__toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  cursor: pointer;
}

.pl-header__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.80);
  transition: var(--pl-transition-fast);
  border-radius: 2px;
}

/* ── RESPONSIVE < 900px ── */
@media (max-width: 900px) {
  .pl-header {
    height: 56px;
  }
  /* Su mobile NON si espande mai via hover */
  .pl-header:hover {
    height: 56px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow:
      0 1px 0 0 rgba(241, 90, 36, 0.15),
      0 4px 24px 0 rgba(241, 90, 36, 0.20),
      0 8px 48px -8px rgba(241, 90, 36, 0.12);
  }
  /* Expanded solo via JS (hamburger) */
  .pl-header.is-expanded {
    height: auto;
    min-height: 56px;
  }
  .pl-header__teams { display: none; }
  .pl-header__main {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    height: 56px;
  }
  .pl-header__toggle { display: flex; justify-self: start; }
  .pl-header__logo { position: static; top: auto; left: auto; transform: none; height: 38px; justify-self: center; }
  .pl-header__account { justify-self: end; }
  .pl-header__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0;
    height: 0;
  }
  .pl-header.is-expanded .pl-header__nav {
    height: auto;
    opacity: 1;
    padding: 8px 0 16px;
  }
  .pl-nav-link { width: 100%; justify-content: flex-start; }
  .pl-header__username { display: none; }
  .pl-account-panel {
    position: fixed;
    right: 12px;
    width: calc(100vw - 24px);
    max-width: 360px;
    top: calc(56px + 8px);
  }
}


/* ═══════════════════════════════════════════════════════
   GLASS CARD
   ═══════════════════════════════════════════════════════ */

.pl-glass {
  background: var(--pl-glass-bg);
  backdrop-filter: var(--pl-glass-blur);
  -webkit-backdrop-filter: var(--pl-glass-blur);
  border: 1px solid var(--pl-glass-border);
  border-radius: var(--pl-radius);
  padding: 32px;
  transition: border-color var(--pl-transition), transform var(--pl-transition);
}

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

.pl-glass--interactive:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 90, 36, 0.2);
}

.pl-glass--compact {
  padding: 20px;
}

.pl-glass--accent {
  border-color: rgba(241, 90, 36, 0.15);
  box-shadow: 0 0 40px rgba(241, 90, 36, 0.05);
}


/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */

.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--pl-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--pl-radius-sm);
  transition: all var(--pl-transition);
  white-space: nowrap;
}

.pl-btn--primary {
  background: var(--pl-orange);
  color: #000;
}

.pl-btn--primary:hover {
  background: var(--pl-orange-light);
  box-shadow: 0 0 24px rgba(241, 90, 36, 0.4);
}

.pl-btn--outline {
  background: transparent;
  border: 1px solid var(--pl-glass-border);
  color: var(--pl-text);
}

.pl-btn--outline:hover {
  border-color: var(--pl-orange);
  color: var(--pl-orange);
}

.pl-btn--ghost {
  background: rgba(241, 90, 36, 0.08);
  border: 1px solid rgba(241, 90, 36, 0.2);
  color: var(--pl-orange);
}

.pl-btn--ghost:hover {
  background: rgba(241, 90, 36, 0.15);
}

.pl-btn--discord {
  background: var(--pl-discord);
  color: white;
}

.pl-btn--discord:hover {
  background: #6b73f7;
  box-shadow: 0 0 24px rgba(88, 101, 242, 0.3);
}

.pl-btn--sm {
  padding: 8px 18px;
  font-size: 0.65rem;
}

.pl-btn--lg {
  padding: 16px 36px;
  font-size: 0.8rem;
}

.pl-btn--full {
  width: 100%;
}


/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */

.pl-hero {
  min-height: calc(100vh - var(--pl-navbar-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

.pl-hero__content {
  max-width: 700px;
}

.pl-hero__title {
  margin-bottom: 24px;
}

.pl-hero__subtitle {
  font-size: 1.1rem;
  color: var(--pl-text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.pl-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════
   FEATURE CARD (inside grid)
   ═══════════════════════════════════════════════════════ */

.pl-feature {
  text-align: center;
}

.pl-feature__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--pl-orange);
  border: 1px solid rgba(241, 90, 36, 0.2);
  border-radius: 12px;
  background: rgba(241, 90, 36, 0.06);
}

.pl-feature h3 {
  font-size: 0.85rem;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.pl-feature p {
  font-size: 0.9rem;
  color: var(--pl-text-secondary);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════ */

.pl-pricing {
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.pl-pricing__price {
  font-family: var(--pl-font);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--pl-text);
}

.pl-pricing__period {
  font-size: 0.9rem;
  color: var(--pl-text-muted);
}

.pl-pricing__features {
  flex: 1;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pl-pricing__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--pl-text-secondary);
}

.pl-pricing__feature i {
  font-size: 0.75rem;
  color: var(--pl-orange);
  width: 16px;
  text-align: center;
}

.pl-pricing__feature--disabled {
  opacity: 0.35;
}

.pl-pricing__feature--disabled i {
  color: var(--pl-text-muted);
}

.pl-pricing--featured {
  border-color: rgba(241, 90, 36, 0.3);
  box-shadow: 0 0 60px rgba(241, 90, 36, 0.08);
}

.pl-badge {
  display: inline-block;
  font-family: var(--pl-font);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--pl-radius-full);
  background: rgba(241, 90, 36, 0.12);
  color: var(--pl-orange);
  border: 1px solid rgba(241, 90, 36, 0.3);
}


/* ═══════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════ */

.pl-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pl-glass-border);
  border-radius: var(--pl-radius-sm);
  color: var(--pl-text);
  font-size: 0.95rem;
  transition: border-color var(--pl-transition-fast);
  outline: none;
}

.pl-input:focus {
  border-color: var(--pl-orange);
  box-shadow: 0 0 0 2px rgba(241, 90, 36, 0.1);
}

.pl-input::placeholder {
  color: var(--pl-text-muted);
}

.pl-label {
  display: block;
  font-family: var(--pl-font);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pl-text-secondary);
  margin-bottom: 8px;
}


/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.pl-footer {
  border-top: 1px solid var(--pl-glass-border);
  padding: 48px 0;
  position: relative;
  z-index: 1;
}

.pl-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.pl-footer__heading {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pl-text-secondary);
  margin-bottom: 16px;
}

.pl-footer__link {
  display: block;
  font-size: 0.85rem;
  color: var(--pl-text-muted);
  padding: 4px 0;
  transition: color var(--pl-transition-fast);
}

.pl-footer__link:hover {
  color: var(--pl-orange);
}

.pl-footer__divider {
  height: 1px;
  background: var(--pl-glass-border);
  margin-bottom: 24px;
}

.pl-footer__copyright {
  font-size: 0.8rem;
  color: var(--pl-text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .pl-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}


/* ═══════════════════════════════════════════════════════
   STATUS DOT
   ═══════════════════════════════════════════════════════ */

.pl-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--pl-success);
}

.pl-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pl-success);
  box-shadow: 0 0 8px var(--pl-success);
  animation: pl-pulse 2s ease-in-out infinite;
}

@keyframes pl-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}


/* ═══════════════════════════════════════════════════════
   STAT CARD (for counters)
   ═══════════════════════════════════════════════════════ */

.pl-stat {
  text-align: center;
  padding: 24px;
}

.pl-stat__value {
  font-family: var(--pl-font);
  font-size: 2rem;
  font-weight: 900;
  color: var(--pl-orange);
  display: block;
}

.pl-stat__label {
  font-size: 0.8rem;
  color: var(--pl-text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ═══════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════ */

.pl-toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.pl-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--pl-radius-sm);
  font-size: 0.9rem;
  backdrop-filter: blur(20px);
  border: 1px solid transparent;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  animation: pl-toast-in 0.25s ease-out;
  max-width: 340px;
}

.pl-toast.hiding { animation: pl-toast-out 0.25s ease-in forwards; }

.pl-toast--error { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); color: #fca5a5; }
.pl-toast--success { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.25); color: #86efac; }
.pl-toast--info { background: rgba(241, 90, 36, 0.1); border-color: rgba(241, 90, 36, 0.25); color: #fdba74; }

@keyframes pl-toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pl-toast-out { from { opacity: 1; } to { opacity: 0; transform: translateX(20px); } }


/* ═══════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════ */

.pl-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pl-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.pl-reveal-group .pl-reveal:nth-child(2) { transition-delay: 0.1s; }
.pl-reveal-group .pl-reveal:nth-child(3) { transition-delay: 0.2s; }
.pl-reveal-group .pl-reveal:nth-child(4) { transition-delay: 0.15s; }
.pl-reveal-group .pl-reveal:nth-child(5) { transition-delay: 0.2s; }
.pl-reveal-group .pl-reveal:nth-child(6) { transition-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  .pl-reveal { opacity: 1; transform: none; transition: none; }
}


/* ═══════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(241, 90, 36, 0.25); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(241, 90, 36, 0.45); }


/* ═══════════════════════════════════════════════════════
   ACCOUNT PILL (navbar)
   ═══════════════════════════════════════════════════════ */

.pl-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--pl-radius-full);
  border: 1px solid var(--pl-glass-border);
  background: var(--pl-glass-bg);
  cursor: pointer;
  transition: border-color var(--pl-transition-fast);
}

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

.pl-pill__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(241, 90, 36, 0.15);
  border: 1px solid rgba(241, 90, 36, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--pl-orange);
}

.pl-pill__name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--pl-text);
}


/* ═══════════════════════════════════════════════════════
   DROPDOWN
   ═══════════════════════════════════════════════════════ */

.pl-dropdown {
  display: none;
  position: fixed;
  top: calc(var(--pl-navbar-h) + 8px);
  right: 24px;
  width: 280px;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(24px);
  border: 1px solid var(--pl-glass-border);
  border-radius: var(--pl-radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  z-index: 200;
  overflow: hidden;
}

.pl-dropdown.is-open { display: block; }

.pl-dropdown__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pl-dropdown__nav {
  padding: 8px;
}

.pl-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--pl-text-secondary);
  border-radius: var(--pl-radius-sm);
  transition: all var(--pl-transition-fast);
}

.pl-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--pl-text);
}

.pl-dropdown__item i {
  width: 16px;
  text-align: center;
  color: var(--pl-orange);
  opacity: 0.7;
}

.pl-dropdown__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}


/* ═══════════════════════════════════════════════════════
   LANGUAGE SELECTOR
   ═══════════════════════════════════════════════════════ */

.pl-lang {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
}

.pl-lang__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.75rem;
  color: var(--pl-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pl-glass-border);
  border-radius: var(--pl-radius-full);
  transition: all var(--pl-transition-fast);
}

.pl-lang__btn:hover {
  color: var(--pl-text);
  border-color: var(--pl-glass-border-hover);
}

.pl-lang__dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--pl-glass-border);
  border-radius: var(--pl-radius-sm);
  overflow: hidden;
  min-width: 120px;
}

.pl-lang__dropdown.is-open { display: block; }

.pl-lang__option {
  display: block;
  width: 100%;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--pl-text-secondary);
  text-align: left;
  transition: all var(--pl-transition-fast);
}

.pl-lang__option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--pl-text);
}

/* Team pill: clickable link styling */
.pl-team-pill {
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 220ms ease;
}
.pl-team-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(241, 90, 36, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(241, 90, 36, 0.20);
}
.pl-team-pill:hover .pl-team-pill__icon {
  opacity: 1;
  transform: translateX(0);
}
.pl-team-pill:active {
  transform: translateY(0);
}
.pl-team-pill--active {
  background: rgba(241, 90, 36, 0.12);
  border-color: rgba(241, 90, 36, 0.60);
  box-shadow: 0 0 0 1px rgba(241, 90, 36, 0.25), 0 4px 20px rgba(241, 90, 36, 0.25);
}
.pl-team-pill--active .pl-team-pill__icon { opacity: 1; color: #f15a24; }

.pl-team-pill__icon {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.60);
  opacity: 0;
  transform: translateX(-4px);
  margin-left: 2px;
  transition: opacity 180ms ease, transform 180ms ease;
}

/* Car number label (replaces team name) */
.pl-team-pill__label {
  font-family: var(--pl-font) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1 !important;
  padding-right: 2px;
}
.pl-team-pill__hash {
  font-size: 11px;
  font-weight: 600;
  color: rgba(241, 90, 36, 0.85);
  margin-right: 1px;
  vertical-align: 2px;
}
.pl-team-pill:hover .pl-team-pill__label { color: #fff !important; }
.pl-team-pill--active .pl-team-pill__label { color: #f15a24 !important; }
.pl-team-pill--active .pl-team-pill__hash { color: #f15a24 !important; }






/* Members: collapsed by default, slide-in on hover */
.pl-team-pill__members {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  margin-left: 0;
  transition:
    max-width 260ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 200ms ease-out 40ms,
    margin-left 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pl-team-pill:hover .pl-team-pill__members,
.pl-team-pill--active .pl-team-pill__members {
  max-width: 200px;
  opacity: 1;
  margin-left: 8px;
}

/* Hide standalone label (no longer used) */
.pl-team-pill__label { display: none; }

/* Teams wrapper: fieldset-like container with 'TEAMS' legend */
.pl-header__teams-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pl-header__teams {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 220ms ease, background 220ms ease;
}
.pl-header__teams:empty { display: none; }
/* When no team pills are present: strip chrome (border, label, background) */
.pl-header__teams:not(:has(.pl-team-pill)) {
  border-color: transparent;
  background: transparent;
  padding: 0;
}
.pl-header__teams:not(:has(.pl-team-pill))::before { display: none; }
.pl-header__teams::before {
  content: attr(data-label);
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 8px;
  font-family: var(--pl-font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
  background: transparent;
  border-radius: 3px;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
  z-index: 1;
}
.pl-header__teams:hover { border-color: rgba(241, 90, 36, 0.25); }
.pl-header__teams:hover::before { color: #ffffff; }

/* Badge: num and liveicon stacked, swap on hover */
.pl-team-pill__badge { position: relative; }
.pl-team-pill__num,
.pl-team-pill__liveicon {
  display: inline-flex;
  align-items: center;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pl-team-pill__num {
  opacity: 1;
  transform: scale(1);
}
.pl-team-pill__liveicon {
  position: absolute;
  inset: 0;
  justify-content: center;
  font-size: 14px;
  color: #f15a24;
  opacity: 0;
  transform: scale(0.6) rotate(-20deg);
}
.pl-team-pill:hover .pl-team-pill__num,
.pl-team-pill--active .pl-team-pill__num {
  opacity: 0;
  transform: scale(0.7);
}
.pl-team-pill:hover .pl-team-pill__liveicon,
.pl-team-pill--active .pl-team-pill__liveicon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ═══ Team pill = THE badge (unified) ═══ */
.pl-team-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(241,90,36,0.22), rgba(241,90,36,0.08));
  border: 1px solid rgba(241,90,36,0.35);
  font-family: var(--pl-font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 220ms ease,
    transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pl-team-pill:hover {
  background: linear-gradient(135deg, rgba(241,90,36,0.38), rgba(241,90,36,0.18));
  border-color: rgba(241,90,36,0.70);
  box-shadow: 0 0 16px rgba(241,90,36,0.40);
  transform: translateY(-1px);
}
.pl-team-pill--active {
  background: linear-gradient(135deg, rgba(241,90,36,0.48), rgba(241,90,36,0.22));
  border-color: rgba(241,90,36,0.90);
  box-shadow: 0 0 20px rgba(241,90,36,0.55);
}

/* Slot (num ↔ liveicon swap) — transparent container only */
.pl-team-pill__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 100%;
  background: none;
  border: none;
  padding: 0;
}
.pl-team-pill__hash {
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  font-weight: 600;
  margin-right: 1px;
  vertical-align: 2px;
}
