/* ============================================================
   DrimTeam — Redesign
   RTL · Responsive (desktop + mobile)
   Brand: deep navy + lime green + sunset grass pitch
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* ============================================================
     מיתוג: איגוד הכדורגל העממי בישראל — כחול נייבי / כחול רויאל / כסף.
     ponytail: שמות המשתנים (navy/lime) נשמרו בכוונה — הם כבר שימשו
     כשמות גנריים גם בערכת השחור-זהב. שינוי הערכים כאן מחליף מיתוג
     בכל האתר; שינוי השמות היה דיף ענק ללא שום רווח למשתמש.
     lime-* = צבע ההדגשה של המותג (כעת כחול), navy-* = משטחים.
     ============================================================ */
  --navy-900: #081428;   /* רקע העמוד — נייבי עמוק */
  --navy-800: #0d1d36;   /* פאנלים */
  --navy-700: #14294a;   /* משטח מורם */
  --navy-600: #1c3760;
  --navy-card: #0f2039;
  --navy-line: rgba(125, 179, 240, 0.18);

  /* Brand accent — royal blue (was gold) */
  --lime-400: #7db3f0;   /* טקסט הדגשה — 8.4:1 על הרקע הכהה */
  --lime-500: #2f7fe0;
  --lime-600: #1e5aa8;
  --lime-glow: rgba(47, 127, 224, 0.34);

  /* Text */
  --text: #eef4fb;
  --text-muted: #b3c4d9;
  --text-dim: #7f92ac;

  /* Misc */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  --shadow-lime: 0 14px 34px -12px var(--lime-glow);
  --maxw: 1180px;

  --grad-lime: linear-gradient(100deg, #6ba8e8 0%, #2f7fe0 52%, #1e5aa8 100%);
  /* wordmark: כסף→תכלת, כמו הליטוש המתכתי בלוגו */
  --grad-gold-text: linear-gradient(180deg, #f2f7fd 0%, #c3d6ec 38%, #7db3f0 72%, #eaf2fb 100%);
  --grad-navy: linear-gradient(180deg, #0f2039 0%, #081428 100%);
  --font: "Rubik", "Assistant", "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 72px 0; position: relative; }
.section--tight { padding: 48px 0; }

.eyebrow {
  display: inline-block;
  color: var(--lime-400);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; }
.h-xl { font-size: clamp(2.1rem, 6vw, 3.6rem); }
.h-lg { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
.h-md { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--text-muted); }
.muted { color: var(--text-muted); }
.text-lime { color: var(--lime-400); }

/* ---------- Logo — איגוד הכדורגל העממי בישראל (סמל + שם) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  color: var(--text);
  line-height: 1;
}
/* יחס הלוגו 548x453 — height:auto כדי לא למעוך אותו */
.logo__mark { width: 44px; height: auto; flex: none; display: block; }
.logo__name { display: flex; flex-direction: column; gap: 2px; text-align: start; }
.logo__name b {
  font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em;
  background: var(--grad-gold-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo__name i {
  font-style: normal; font-size: 0.72rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.04em;
}
/* תאימות לאחור לסימון הישן (Drim/Team) אם נשאר איפשהו */
.logo .drim, .logo .team {
  background: var(--grad-gold-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo .ball { display: none; }
@media (max-width: 420px) {
  .logo__mark { width: 36px; height: auto; }
  .logo__name b { font-size: 0.9rem; }
  .logo__name i { font-size: 0.64rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.02rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--grad-lime);
  color: #ffffff;   /* לבן על כחול = 4.8:1 (טקסט כהה על כחול נכשל ב-AA) */
  box-shadow: var(--shadow-lime);
}
.btn--primary:hover { box-shadow: 0 18px 44px -8px var(--lime-glow); transform: translateY(-2px); filter: brightness(1.07) saturate(1.05); }
.btn--ghost {
  background: transparent;
  color: var(--lime-400);
  border-color: var(--lime-500);
}
/* מתמלא בזהב ב-hover */
.btn--ghost:hover {
  background: var(--grad-lime);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-lime);
  transform: translateY(-2px);
}
/* בתוך פס ה-CTA המוזהב — וריאנט כהה כדי לא ליצור זהב-על-זהב */
.cta-band .btn--ghost { color: #ffffff; }
.cta-band .btn--ghost:hover { background: rgba(0, 0, 0, 0.14); color: #ffffff; border-color: #ffffff; box-shadow: none; }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 38px; font-size: 1.1rem; }
.btn--sm { padding: 9px 18px; font-size: 0.9rem; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 20, 40, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navy-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 70px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 0.15s ease;
  position: relative;
}
.nav__links a:hover,
.nav__links a.active { color: #fff; }
/* underline grows from the center outward on hover/active */
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -10px;
  inset-inline: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-lime);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--navy-line);
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: 0.25s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--navy-900); }

/* Black + gold brand banner (recreates the logo image) */
.hero__media {
  position: relative;
  height: clamp(300px, 46vw, 520px);
  overflow: hidden;
  background-color: #090806;
  background-image:
    radial-gradient(70px 70px at 78% 26%, rgba(244,215,128,0.30), transparent 70%),
    radial-gradient(42px 42px at 86% 20%, rgba(47, 127, 224,0.26), transparent 70%),
    radial-gradient(26px 26px at 70% 15%, rgba(244,215,128,0.22), transparent 70%),
    radial-gradient(95px 95px at 16% 30%, rgba(244,215,128,0.15), transparent 70%),
    radial-gradient(34px 34px at 30% 72%, rgba(47, 127, 224,0.20), transparent 70%),
    radial-gradient(130px 130px at 64% 82%, rgba(184,134,11,0.16), transparent 70%),
    radial-gradient(18px 18px at 46% 20%, rgba(244,215,128,0.18), transparent 70%),
    linear-gradient(120deg, #060504 0%, #16110a 46%, #0a0806 100%);
}
.hero__media img { display: none; } /* brand banner uses CSS, not a photo */
/* fade into the page background at the bottom */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 32%, transparent 62%, var(--navy-900) 100%);
}
.hero__logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18em;
  text-align: center;
  z-index: 2;
}
.hero__logo {
  font-family: "Pacifico", "Rubik", cursive;
  font-weight: 400;
  font-size: clamp(2.8rem, 11vw, 6.4rem);
  display: inline-flex;
  align-items: center;
  direction: ltr;
  gap: 0.04em;
  line-height: 1;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,0.6));
}
.hero__logo .drim, .hero__logo .team {
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__logo .ball { display: none; }
.hero__tagline {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(0.95rem, 3.2vw, 1.7rem);
  letter-spacing: 0.18em;
  direction: ltr;
  background: linear-gradient(180deg, #f6dd8a, #c99a2e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__body {
  position: relative;
  background: var(--navy-900);
  text-align: center;
  padding: 4px 0 64px;
  margin-top: -2px;
}
.hero__title { margin-top: 0; }
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
  margin: 28px auto 0;
}

/* ============================================================
   FEATURE / WHY US
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(47, 127, 224,0.35); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(47, 127, 224, 0.14);
  color: var(--lime-400);
  margin-bottom: 16px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--text-muted); margin: 0; }

/* ---------- Section heading helper ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.stat__num {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: var(--grad-lime);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat__label { color: var(--text-muted); font-weight: 600; margin-top: 6px; }

/* ============================================================
   VENUES  (מצא מגרש קרוב — redesigned)
   ============================================================ */
.venues {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.venue {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--navy-line);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease;
}
/* lime accent bar that grows on hover */
.venue::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--grad-lime);
  transform: scaleY(0.0);
  transform-origin: center;
  transition: transform 0.22s ease;
}
.venue:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 127, 224, 0.45);
  box-shadow: 0 18px 36px -20px rgba(0,0,0,0.7);
}
.venue:hover::before { transform: scaleY(1); }
.venue__pin {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(47, 127, 224, 0.14);
  color: var(--lime-400);
  transition: background 0.2s ease, color 0.2s ease;
}
.venue__pin svg { width: 24px; height: 24px; }
.venue:hover .venue__pin { background: var(--grad-lime); color: #ffffff; }
.venue__body { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.venue__name { font-weight: 700; font-size: 1.12rem; color: #fff; }
.venue__meta { font-size: 0.85rem; color: var(--text-dim); }
.venue__arrow {
  margin-inline-start: auto;
  flex: 0 0 auto;
  color: var(--text-dim);
  transition: color 0.2s ease, transform 0.2s ease;
}
.venue__arrow svg { width: 20px; height: 20px; }
.venue:hover .venue__arrow { color: var(--lime-400); transform: translateX(-4px); }

/* ============================================================
   TOURNAMENTS  (עמודות לפי פורמט)
   ============================================================ */
.tournaments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.tcol {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.tcol:hover { transform: translateY(-5px); border-color: rgba(47, 127, 224,0.4); }
/* featured column */
.tcol--featured {
  background: linear-gradient(180deg, #16306e, #112456);
  border-color: rgba(47, 127, 224,0.5);
}
.tcol__tag {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-lime);
  color: #ffffff;
  margin-bottom: 14px;
}
.tcol__icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(47, 127, 224, 0.14);
  color: var(--lime-400);
  margin-bottom: 16px;
}
.tcol__icon svg { width: 30px; height: 30px; }
.tcol h3 { font-size: 1.25rem; margin-bottom: 4px; }
.tcol__sub { color: var(--lime-400); font-weight: 700; font-size: 0.92rem; margin-bottom: 14px; }
.tcol__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.tcol__list li {
  position: relative;
  padding-inline-start: 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.tcol__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(47, 127, 224,0.18);
  box-shadow: inset 0 0 0 4px var(--lime-500);
}
.tcol__foot { margin-top: auto; }
.tcol__price { font-weight: 800; font-size: 1.5rem; margin-bottom: 12px; }
.tcol__price span { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); }

/* Format detail rows (tournaments page) */
.format { padding: 48px 0; }
.format__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: center;
}
.format__grid--rev { direction: ltr; }
.format__grid--rev > * { direction: rtl; }
.format__media {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.format__media .card__icon { color: var(--lime-400); }
.format__price { font-weight: 800; font-size: 1.9rem; }
.format__price span { font-size: 0.9rem; font-weight: 600; color: var(--text-dim); }
.format__media .btn { width: 100%; margin-top: 4px; }
.format__body .eyebrow { margin-bottom: 8px; }
.format__body h2 { margin-bottom: 12px; }

@media (max-width: 760px) {
  .format__grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--grad-lime);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-lime);
}
.cta-band h2 { color: #ffffff; }
/* היה #14224a על הרצועה הכחולה = 3.2:1 (נכשל AA) — לבן-רך נותן ~4.6:1 */
.cta-band p { color: #eef4fb; opacity: 0.92; }
.cta-band .btn--primary {
  /* כפתור לבן על רצועה כחולה — הטקסט חייב להיות כהה (היה לבן-על-לבן) */
  background: #ffffff; color: #000000;
}
.cta-band .btn--ghost { border-color: #ffffff; color: #ffffff; }

/* ============================================================
   FORMS  (register / login)
   ============================================================ */
.auth-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.panel {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.field .hint { font-size: 0.85rem; color: var(--text-dim); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--navy-900);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--lime-500);
  box-shadow: 0 0 0 3px rgba(47, 127, 224,0.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* rating pills 1-7 */
.rating {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating label {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  border: 1px solid var(--navy-line);
  font-weight: 700;
  cursor: pointer;
  margin: 0;
  transition: all 0.15s ease;
}
.rating input:checked + label {
  background: var(--grad-lime);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.06);
}
.rating-scale {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; color: var(--text-dim); margin-top: 8px;
}
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--lime-500); }
.divider-or {
  text-align: center; color: var(--text-dim);
  margin: 22px 0; position: relative;
}
.link-lime { color: var(--lime-400); font-weight: 600; }

/* ============================================================
   GAMES / SCHEDULE
   ============================================================ */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters .select { width: auto; min-width: 150px; padding: 10px 14px; }
.view-tabs { display: flex; gap: 6px; background: var(--navy-800); padding: 5px; border-radius: var(--radius-pill); }
.view-tabs button {
  border: none; background: transparent; color: var(--text-muted);
  padding: 8px 16px; border-radius: var(--radius-pill); font-weight: 600;
}
.view-tabs button.active { background: var(--grad-lime); color: #ffffff; }

.games-list { display: grid; gap: 16px; }
.game-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.game-card:hover { border-color: rgba(47, 127, 224,0.4); transform: translateY(-2px); }
.game-date {
  text-align: center;
  background: rgba(47, 127, 224,0.12);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-width: 72px;
}
.game-date .day { font-size: 1.8rem; font-weight: 800; color: var(--lime-400); line-height: 1; }
.game-date .mon { font-size: 0.85rem; color: var(--text-muted); }
.game-date .dow { font-size: 0.78rem; color: var(--text-dim); font-weight: 700; margin-top: 4px; }
.game-info h3 { margin: 0 0 4px; font-size: 1.2rem; }
.game-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: 0.95rem; }
.game-meta span { display: inline-flex; align-items: center; gap: 6px; }
.game-meta svg { width: 16px; height: 16px; color: var(--lime-400); }
.game-cta { text-align: center; }
.game-price { font-weight: 800; font-size: 1.25rem; margin-bottom: 8px; }
.badge {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: rgba(47, 127, 224,0.15); color: var(--lime-400);
}
.badge--low { background: rgba(255,120,90,0.16); color: #ff9277; }

/* ============================================================
   SHOP / PRODUCTS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.product:hover { transform: translateY(-4px); border-color: rgba(47, 127, 224,0.4); }
.product__media {
  height: 170px;
  background:
    radial-gradient(120px 80px at 50% 40%, rgba(47, 127, 224,0.18), transparent 70%),
    linear-gradient(135deg, #0f2039 0%, #241c10 100%);
  position: relative;
  display: grid; place-items: center;
}
.product__media .ico { font-size: 3rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4)); }
.product__body { padding: 22px; }
.product__body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.product__price { font-weight: 800; font-size: 1.4rem; color: var(--lime-400); margin: 10px 0 16px; }

/* ============================================================
   CONTENT (terms / health)
   ============================================================ */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul.bullets { padding-inline-start: 0; }
.prose ul.bullets li {
  position: relative; padding-inline-start: 28px; margin-bottom: 12px;
}
.prose ul.bullets li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 10px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--grad-lime);
}
.note {
  background: rgba(47, 127, 224,0.08);
  border: 1px solid rgba(47, 127, 224,0.25);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 22px 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #081428 0%, #14110a 62%, #2a2008 140%);
  border-top: 1px solid var(--navy-line);
  padding: 56px 0 28px;
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--lime-400); }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--navy-line);
  color: #fff; transition: 0.18s;
}
.socials a:hover { background: var(--grad-lime); color: #ffffff; border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.footer-cities {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  color: var(--text-muted); font-weight: 600;
}
.footer-cities .pin { color: var(--lime-400); display: inline-flex; }
.footer-cities span { color: var(--text-dim); }
.footer-bottom {
  border-top: 1px solid var(--navy-line);
  margin-top: 32px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: var(--text-dim); font-size: 0.9rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr; }
  .venues { grid-template-columns: repeat(2, 1fr); }
  .tournaments { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-grid { grid-template-columns: 1fr; }
  /* מובייל: טופס ההתחברות (הפאנל השני) מעל טופס ההרשמה */
  .auth-grid > .panel:nth-child(2) { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 720px) {
  /* תפריט מובייל — פתיחה/סגירה ע"י display (אמין), במקום slide ב-transform
     שהיה נתקע מחוץ למסך על חלק מהמכשירים (הבאג ה"מוזר" בתפריט). */
  .nav__links {
    display: none;
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-800);
    border-bottom: 1px solid var(--navy-line);
    padding: 8px 20px 20px;
    box-shadow: var(--shadow);
    z-index: 45;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 4px; border-bottom: 1px solid var(--navy-line); }
  .nav__links a.active::after { display: none; }
  .nav__toggle { display: flex; }
  .nav__actions .btn { display: none; }
  .nav__actions .btn.show-mobile { display: inline-flex; }

  .product-grid { grid-template-columns: 1fr; }
  .game-card { grid-template-columns: auto 1fr; }
  .game-cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
  .game-price { margin: 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .section { padding: 52px 0; }
  .cta-band { padding: 36px 24px; }
}

@media (max-width: 720px) {
  .tournaments { grid-template-columns: 1fr; }
}

/* דף הבית בלבד — כפתור תפריט (3 קווים) גם בדסקטופ, פותח תפריט נפתח */
@media (min-width: 721px) {
  body.home .nav__toggle { display: flex; }
  body.home .nav__links {
    display: none;
    position: fixed;
    top: 70px;
    inset-inline-end: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 230px;
    background: var(--navy-800);
    border: 1px solid var(--navy-line);
    border-radius: 12px;
    padding: 8px 16px 14px;
    box-shadow: var(--shadow);
    z-index: 45;
  }
  body.home .nav__links.open { display: flex; }
  body.home .nav__links a { padding: 12px 4px; border-bottom: 1px solid var(--navy-line); }
  body.home .nav__links a:last-child { border-bottom: none; }
  body.home .nav__links a::after { display: none; }
}

@media (max-width: 460px) {
  .venues { grid-template-columns: 1fr; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--navy-line);
  background: var(--navy-700);
  cursor: pointer;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: contain;   /* התצוגה המקדימה מציגה את התמונה במלואה (בלי חיתוך) */
  transition: transform 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,20,48,0.7));
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute; inset-inline: 14px; bottom: 12px;
  color: #fff; font-weight: 700; z-index: 2;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: none; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  display: none; align-items: center; justify-content: center;
  padding: 64px 16px;
}
.lightbox.open { display: flex; }
.lightbox__stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  max-width: min(880px, 92vw); max-height: 80vh;
}
.lightbox__stage img, .lightbox__stage video {
  max-width: min(880px, 92vw); max-height: 80vh;
  width: auto; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #000;
}
.lightbox__stage iframe {
  width: min(880px, 92vw); aspect-ratio: 16 / 9; max-height: 80vh;
  border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
}
.lightbox__close {
  position: absolute; top: 16px; right: 18px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; border: none; font-size: 1.7rem; cursor: pointer; z-index: 2;
}
.lightbox__close:hover { background: rgba(255,255,255,0.22); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; border: none;
  font-size: 2rem; line-height: 1; cursor: pointer; z-index: 2;
  display: grid; place-items: center;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.22); }
.lightbox__nav--prev { right: 10px; }
.lightbox__nav--next { left: 10px; }
.lightbox__cap {
  position: absolute; bottom: 20px; left: 0; right: 0; text-align: center;
  color: #fff; font-size: .95rem; padding: 0 16px;
}
.gallery__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.4rem; color: #fff; pointer-events: none;
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
}
@media (max-width: 640px) {
  .lightbox { padding: 60px 8px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.6rem; }
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--navy-800);
  border-inline-start: 1px solid var(--navy-line);
  padding: 24px 16px;
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto; overscroll-behavior: contain;
}
.admin-side .logo { margin-bottom: 22px; padding-inline: 8px; }
.admin-nav-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: start;
  background: transparent; border: none; color: var(--text-muted);
  padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 1rem;
}
.admin-nav-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.admin-nav-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-nav-btn.active { background: var(--grad-lime); color: #ffffff; }
.admin-side__foot { margin-top: auto; }

.admin-main { padding: 28px clamp(16px, 4vw, 40px); min-width: 0; } /* min-width:0 — נותן ל-overflow-x:auto של הטבלה להכיל אותה במקום להרחיב את העמוד (תיקון מודל הניהול בטלפון) */
.admin-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.admin-head h1 { margin: 0; }
.admin-view { display: none; }
.admin-view.active { display: block; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  text-align: start; padding: 14px 12px; border-bottom: 1px solid var(--navy-line);
}
.admin-table th { color: var(--text-dim); font-size: 0.85rem; font-weight: 700; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table .row-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--navy-line); color: var(--text-muted);
}
.icon-btn:hover { color: #fff; border-color: var(--lime-500); }
.icon-btn--danger:hover { color: #ff8a72; border-color: #ff8a72; }
.icon-btn svg { width: 17px; height: 17px; }

.admin-empty { color: var(--text-dim); padding: 28px; text-align: center; }

/* login */
.admin-login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.admin-login .panel { width: 100%; max-width: 420px; }

/* team builder */
.teams-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: end;
  margin-bottom: 22px;
}
.teams-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team-col {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--navy-line); border-radius: var(--radius);
  padding: 16px; min-height: 200px;
}
.team-col__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--navy-line);
}
.team-col__name { font-weight: 800; font-size: 1.05rem; }
.team-col__sum { font-size: 0.82rem; color: var(--lime-400); font-weight: 700; }
.player-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--navy-900); border: 1px solid var(--navy-line);
  border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; font-weight: 600;
}
.player-chip .rate {
  margin-inline-start: auto; font-size: 0.78rem; color: var(--text-dim);
  background: rgba(47, 127, 224,0.14); color: var(--lime-400);
  padding: 2px 8px; border-radius: 99px; font-weight: 700;
}
.player-chip .move { display: flex; gap: 4px; }
.player-chip .move button {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--navy-line);
  background: transparent; color: var(--text-muted); font-size: 0.8rem; line-height: 1;
}
.player-chip .move button:hover { color: var(--lime-400); border-color: var(--lime-500); }
.pool {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: var(--navy-900); border: 1px dashed var(--navy-line);
  border-radius: var(--radius); padding: 14px; min-height: 64px; margin-bottom: 18px;
}
.pool .player-chip { margin: 0; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 1; }
  .teams-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: static; height: auto; flex-direction: row; flex-wrap: wrap;
    border: none; border-bottom: 1px solid var(--navy-line);
  }
  .admin-side .logo { width: 100%; margin-bottom: 10px; }
  .admin-nav-btn { width: auto; }
  .admin-side__foot { margin: 0; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 180px; }
}

/* ============================================================
   USER MENU (avatar) — logged-in state
   ============================================================ */
.user-menu { position: relative; }
.user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--lime-500); background: var(--navy-700);
  color: var(--lime-400); font-weight: 800; font-size: 0.95rem;
  display: grid; place-items: center; overflow: hidden; padding: 0; cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.user-avatar:hover { box-shadow: var(--shadow-lime); transform: translateY(-1px); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar span { text-transform: uppercase; }
.user-dropdown {
  position: absolute; inset-inline-start: 0; top: calc(100% + 10px);
  min-width: 190px; background: var(--navy-800);
  border: 1px solid var(--navy-line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; z-index: 60;
  display: none; flex-direction: column; gap: 2px;
}
.user-dropdown.open { display: flex; }
.user-dropdown .user-name {
  padding: 8px 12px; font-weight: 700; color: #fff;
  border-bottom: 1px solid var(--navy-line); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}
.user-dropdown a, .user-dropdown button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: start;
  background: transparent; border: none; color: var(--text-muted);
  padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: 0.95rem; cursor: pointer;
}
.user-dropdown a svg, .user-dropdown button svg { width: 17px; height: 17px; flex: 0 0 auto; }
.user-dropdown a:hover, .user-dropdown button:hover { background: rgba(47, 127, 224,0.12); color: var(--lime-400); }
/* יציאה — אדום */
.user-dropdown .user-logout { color: #ff6b5e; }
.user-dropdown .user-logout:hover { background: rgba(255,107,94,0.14); color: #ff6b5e; }
.user-dropdown .user-del { color: #ff8a72; font-size: .9rem; opacity: .85; }
.user-dropdown .user-del:hover { background: rgba(226,59,59,0.16); color: #ff6b5e; opacity: 1; }

/* התנתקות מהאדמין פאנל — אדום */
.admin-side__foot #logoutBtn { color: #ff6b5e; }
.admin-side__foot #logoutBtn:hover { background: rgba(255,107,94,0.14); color: #ff6b5e; }

/* OTP setup box */
.otp-box { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 12px; }
.otp-box img { border-radius: 12px; background: #fff; padding: 8px; }
.otp-secret { font-family: monospace; font-size: 1.05rem; letter-spacing: 2px; color: var(--lime-400); word-break: break-all; }

/* Admin gallery items with clear remove button */
.gal-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gal-admin-item { position: relative; background: var(--navy-800); border: 1px solid var(--navy-line); border-radius: var(--radius); overflow: hidden; }
.gal-admin-check { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: rgba(0,0,0,0.55); cursor: pointer; }
.gal-admin-check input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--lime-400); }
.gal-admin-media { height: 130px; overflow: hidden; background: #0f2039; }
.gal-admin-media img, .gal-admin-media iframe, .gal-admin-media video { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.gal-admin-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-weight: 600; font-size: 0.9rem; }
.gal-admin-foot .gal-del { color: #ff6b5e; border-color: #ff6b5e; padding: 6px 14px; }
.gal-admin-foot .gal-del:hover { background: #ff6b5e; color: #ffffff; border-color: #ff6b5e; }

/* ============================================================
   HERO 2 — sports/tech banner (athlete + giant headline)
   Black & gold (keeps current palette)
   ============================================================ */
.hero2 { position: relative; min-height: clamp(540px, 88vh, 840px); background: #070605; overflow: hidden; }
.hero2__media { position: absolute; inset: 0; }
.hero2__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; filter: saturate(0.5) contrast(1.05) brightness(0.72); }
.hero2__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 55% at 70% 42%, rgba(47, 127, 224,0.16), transparent 70%),
    linear-gradient(270deg, #070605 8%, rgba(6, 16, 34,0.35) 42%, rgba(6, 16, 34,0.2) 66%, rgba(6, 16, 34,0.72) 100%),
    linear-gradient(180deg, rgba(6, 16, 34,0.45), transparent 26%, transparent 56%, #070605);
}
.hero2 .container { position: relative; z-index: 3; min-height: inherit; display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 48px; }
.hero2__inner { max-width: 640px; text-align: start; }
.hero2__kicker { color: var(--lime-400); font-weight: 700; letter-spacing: 0.22em; font-size: 0.9rem; margin-bottom: 12px; }
.hero2__title {
  font-family: var(--font); font-weight: 900;
  font-size: clamp(3.2rem, 13vw, 10.5rem); line-height: 0.86; letter-spacing: -0.02em; margin: 0 0 0.18em;
  background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(0,0,0,0.5));
}
.hero2__sub { max-width: 540px; color: var(--text-muted); font-size: clamp(1rem, 2.2vw, 1.25rem); margin-bottom: 28px; }
.hero2__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* vertical icon rail (start edge) — fixed, anchored near the top (under the header) */
.hero2__rail { position: fixed; z-index: 45; inset-inline-start: 18px; top: 104px; display: flex; flex-direction: column; gap: 14px; }
.hero2__rail a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--text-muted); border: 1px solid var(--navy-line); background: rgba(255,255,255,0.03); transition: 0.18s; }
.hero2__rail a:hover { color: #ffffff; background: var(--grad-lime); border-color: transparent; transform: translateY(-2px); }
.hero2__rail svg { width: 20px; height: 20px; }

/* secondary text block (end-bottom) */
.hero2__side { position: absolute; z-index: 3; inset-inline-end: 26px; bottom: 30px; max-width: 300px; text-align: start; }
.hero2__side h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.12em; margin: 0 0 8px; }
.hero2__side p { color: var(--text-dim); font-size: 0.88rem; margin: 0; line-height: 1.55; }

/* decorative carousel arrows */
.hero2__arrow { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--navy-line); background: rgba(0,0,0,0.3); color: var(--lime-400); display: grid; place-items: center; transition: 0.18s; }
.hero2__arrow:hover { border-color: var(--lime-500); background: rgba(47, 127, 224,0.12); }
.hero2__arrow svg { width: 22px; height: 22px; }
.hero2__arrow.prev { inset-inline-start: 78px; }
.hero2__arrow.next { inset-inline-end: 26px; }

/* socials bottom-start — fixed so they stay visible on scroll */
.hero2__socials { position: fixed; z-index: 45; inset-inline-start: 18px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.hero2__socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text-muted); border: 1px solid var(--navy-line); transition: 0.18s; }
.hero2__socials a:hover { color: var(--lime-400); border-color: var(--lime-500); }
.hero2__socials svg { width: 16px; height: 16px; }

/* shorter banner variant for sub-pages */
.hero2--page { min-height: clamp(320px, 48vh, 460px); }
.hero2--page .hero2__title { font-size: clamp(2.6rem, 9vw, 5.5rem); line-height: 0.95; }
/* reserve a start gutter on the landing so the fixed social rail never overlaps content */
@media (min-width: 901px) { body:has(.hero2__socials) .container { padding-inline-start: 64px; } }
@media (max-width: 900px) {
  .hero2__rail, .hero2__arrow, .hero2__side, .hero2__socials { display: none; }
  .hero2__media img { object-position: 58% center; }
  .hero2 { min-height: 78vh; }
}

/* ---- general sports-category cards (landing) ---- */
.sports-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sport-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--navy-line); border-radius: var(--radius);
  padding: 22px; transition: transform 0.18s ease, border-color 0.18s ease;
}
.sport-card:hover { transform: translateY(-4px); border-color: rgba(47, 127, 224,0.45); }
.sport-card .card__icon { margin: 0; flex: 0 0 auto; }
.sport-card h3 { margin: 0 0 2px; font-size: 1.15rem; }
.sport-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
@media (max-width: 900px) { .sports-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sports-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TEAM COLORS (white / yellow / orange) + PLAYER CARD + polish
   ============================================================ */
.team-col--white  { border-top: 3px solid #f5f0e6; }
.team-col--yellow { border-top: 3px solid #f4d042; }
.team-col--orange { border-top: 3px solid #ff9d2e; }

.player-card {
  display: flex; gap: 24px; align-items: center;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--navy-line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.player-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-lime); }
.player-card__avatar {
  width: 104px; height: 104px; border-radius: 50%; border: 3px solid var(--lime-500);
  display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: var(--lime-400);
  background: var(--navy-900); flex: 0 0 auto; overflow: hidden;
}
.player-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-card__name { font-size: 1.6rem; font-weight: 800; margin: 0 0 4px; }
.player-card__meta { color: var(--text-muted); margin: 0; }
.player-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.player-stat {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 20px; text-align: center;
}
.player-stat .n { font-size: 2.1rem; font-weight: 800; line-height: 1; background: var(--grad-lime); -webkit-background-clip: text; background-clip: text; color: transparent; }
.player-stat .l { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }
.player-stat--btn { font: inherit; cursor: pointer; transition: border-color .15s, transform .1s; }
.player-stat--btn:hover { border-color: var(--lime-500); }
.player-stat--btn:active { transform: scale(.98); }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--navy-line); }
.rank-row .rk { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 127, 224,0.14); color: var(--lime-400); font-weight: 800; flex: 0 0 auto; }
.rank-row .nm { font-weight: 700; }
.rank-row .gl { margin-inline-start: auto; color: var(--lime-400); font-weight: 800; }
@media (max-width: 560px) { .player-card { flex-direction: column; text-align: center; } }

/* ---- polish ---- */
*:focus-visible { outline: 2px solid var(--lime-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--lime-500); color: #ffffff; }
.section-head h2::after { content: ""; display: block; width: 54px; height: 3px; margin: 14px auto 0; border-radius: 3px; background: var(--grad-lime); opacity: 0.85; }
.card, .product, .tcol, .venue, .sport-card, .game-card { will-change: transform; }

/* ============================================================
   MODAL (sign popup)
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.72); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal__box {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--navy-line); border-radius: var(--radius-lg);
  padding: 30px; max-width: 460px; width: 100%; box-shadow: var(--shadow);
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal__box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--grad-lime); }

/* ============================================================
   HOME — card-deck hero (logo + fan-out sport cards)
   ============================================================ */
/* קבוצת הכפתורים בדף הבית — בצד שמאל למעלה, ליד כפתור מצב בהיר/כהה */
.home-auth { position: fixed; top: 16px; inset-inline-end: 20px; z-index: 60; }
.home-auth .nav__actions { gap: 8px; align-items: center; flex-wrap: wrap; }
/* מוצגים בכל רזולוציה (עוקף את הסתרת כפתורי הניווט בטלפון) */
.home-auth a.btn { display: inline-flex; }
/* תפריט דף הבית — נפתח רק בטלפון. מוסתר/מוצג ע"י display (לא ע"י ה-transform
   השברירי של הכותרת: בדף הבית אין header עם backdrop-filter שישמש containing-block
   ל-fixed, וה-slide נתקע מחוץ למסך). מוצג רק כשנלחץ ההמבורגר. */
.home-nav { display: none; }
@media (max-width: 720px) {
  /* דף הבית בטלפון: הכפתורים הצפים הופכים לפס עליון אטום ברוחב מלא —
     כדי שתוכן הדף לא "יציץ" מאחוריהם בזמן גלילה (הכותרת הייתה שקופה). */
  .home-auth { top: 0; inset-inline: 0; padding: 8px 14px; background: rgba(8, 20, 40, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--navy-line); }
  .home-auth .nav__actions { justify-content: flex-end; }
  .home-nav { top: 56px; }
  .home-nav.open { display: flex; z-index: 55; }
}

.hero-deck {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 20px 90px; position: relative; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 24%, rgba(47, 127, 224,0.14), transparent 70%),
    linear-gradient(180deg, rgba(8, 20, 40,0.84), rgba(8, 20, 40,0.93)),
    url("../img/hero-athlete.jpg") center / cover no-repeat,
    #081428;
}
/* social rail — pinned to the right edge of the hero, scrolls away with it */
.hero-socials {
  position: absolute; top: 50%; inset-inline-start: 16px; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px; z-index: 5;
}
.hero-socials a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--navy-line);
  color: #fff; transition: 0.18s;
}
.hero-socials a:hover { background: var(--grad-lime); color: #ffffff; border-color: transparent; transform: translateY(-3px); }
.hero-socials svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .hero-socials { inset-inline-start: 8px; gap: 8px; }
  .hero-socials a { width: 36px; height: 36px; }
  .hero-socials svg { width: 17px; height: 17px; }
}

/* sport-event cards (games.html?cat=אירועי ספורט) */
.sport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-bottom: 8px; }
.sportcard { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--navy-line); background: #0f2039; }
.sportcard img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.sportcard:hover img { transform: scale(1.06); }
.sportcard h3 { position: absolute; inset-inline: 0; bottom: 0; margin: 0; padding: 14px 16px; font-size: 1.25rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.82)); }

/* schedule / games map (schedule.html) — calendar grid */
.cal-toolbar { align-items: center; gap: 14px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-navbtn {
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  background: var(--navy-800); border: 1px solid var(--navy-line);
  color: var(--lime-400); font-size: 1.3rem; line-height: 1; display: grid; place-items: center;
  transition: .15s;
}
.cal-navbtn:hover { border-color: var(--lime-500); background: rgba(47, 127, 224,.08); }
.cal-title { margin: 0; font-size: 1.15rem; font-weight: 800; white-space: nowrap; }

/* ----- week view ----- */
.calw {
  background: var(--navy-800); border: 1px solid var(--navy-line);
  border-radius: 16px; overflow: hidden;
}
.calw-head, .calw-allrow { display: grid; grid-template-columns: 56px repeat(7, 1fr); }
.calw-head { border-bottom: 1px solid var(--navy-line); }
.calw-corner { font-size: .68rem; color: var(--text-dim); display: grid; place-items: center; padding: 8px 0; }
.calw-dayhead {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px; border-inline-start: 1px solid var(--navy-line);
}
.calw-dow { font-size: .72rem; color: var(--text-dim); font-weight: 700; }
.calw-dnum { font-size: 1.25rem; font-weight: 800; }
.calw-dayhead.is-today .calw-dnum {
  background: var(--lime-500); color: #081428; width: 34px; height: 34px;
  border-radius: 50%; display: grid; place-items: center;
}
.calw-dayhead.is-today .calw-dow { color: var(--lime-400); }

.calw-allrow { border-bottom: 1px solid var(--navy-line); }
.calw-allcorner { font-size: .68rem; color: var(--text-dim); display: grid; place-items: center; }
.calw-allcell { border-inline-start: 1px solid var(--navy-line); padding: 4px; display: flex; flex-direction: column; gap: 4px; min-height: 30px; }

.calw-body { display: grid; grid-template-columns: 56px 1fr; }
.calw-times { border-inline-end: 1px solid var(--navy-line); }
.calw-time { font-size: .72rem; color: var(--text-dim); text-align: center; padding-top: 4px; box-sizing: border-box; font-variant-numeric: tabular-nums; }
.calw-cols { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); }
.calw-col {
  position: relative; border-inline-start: 1px solid var(--navy-line);
  background-image: linear-gradient(to bottom, var(--navy-line) 1px, transparent 1px);
  background-repeat: repeat-y;
}
.calw-col.is-today { background-color: rgba(47, 127, 224,.045); }

/* event block */
.cal-ev {
  position: absolute; box-sizing: border-box; overflow: hidden;
  border-radius: 8px; padding: 4px 7px; text-decoration: none;
  background: rgba(47, 127, 224,.16); border: 1px solid rgba(47, 127, 224,.42);
  border-inline-start: 3px solid var(--lime-500); color: #fff;
  display: flex; flex-direction: column; gap: 1px; transition: .12s; cursor: pointer; min-width: 0;
}
.cal-ev:hover { background: rgba(47, 127, 224,.28); transform: translateY(-1px); }
.cal-ev__t { font-weight: 700; font-size: .82rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev__m { font-size: .72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.is-cancelled { opacity: .5; border-inline-start-color: var(--text-dim); }
.cal-ev.is-cancelled .cal-ev__t { text-decoration: line-through; }
/* משחק לולאה עתידי שטרם נפתח — אפור, לא לחיץ */
.cal-ev.is-placeholder {
  background: rgba(143,135,107,.1); border: 1px dashed rgba(143,135,107,.5);
  border-inline-start: 3px dashed var(--text-dim); color: var(--text-dim); cursor: default;
}
.cal-ev.is-placeholder:hover { transform: none; background: rgba(143,135,107,.14); }
.cal-ev.is-placeholder .cal-ev__t { color: var(--text-muted); font-weight: 600; }
.cal-ev.is-placeholder .cal-ev__m { font-style: italic; }

/* chips (all-day + month) */
.cal-chip {
  display: block; text-decoration: none; border-radius: 6px; padding: 3px 7px;
  font-size: .76rem; font-weight: 600; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: .12s;
}
.cal-chip--game { background: rgba(47, 127, 224,.16); border: 1px solid rgba(47, 127, 224,.38); color: #fff; }
.cal-chip--tourn { background: rgba(244,215,128,.2); border: 1px solid var(--lime-500); color: var(--lime-400); }
.cal-chip:hover { filter: brightness(1.2); }
.cal-chip.is-cancelled { opacity: .5; text-decoration: line-through; }
.cal-chip.is-placeholder {
  background: rgba(143,135,107,.1); border: 1px dashed rgba(143,135,107,.5);
  color: var(--text-dim); font-style: italic; cursor: default;
}
.cal-chip.is-placeholder:hover { filter: none; }

/* ----- month view ----- */
.calm { background: var(--navy-800); border: 1px solid var(--navy-line); border-radius: 16px; overflow: hidden; }
.calm-head { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--navy-line); }
.calm-dow { text-align: center; padding: 10px 0; font-size: .78rem; font-weight: 700; color: var(--text-dim); }
.calm-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calm-cell {
  min-height: 96px; padding: 6px; border-inline-start: 1px solid var(--navy-line);
  border-top: 1px solid var(--navy-line); display: flex; flex-direction: column; gap: 4px;
}
.calm-cell:nth-child(7n+1) { border-inline-start: none; }
.calm-date { font-size: .85rem; font-weight: 700; align-self: flex-start; }
.calm-cell.is-other { opacity: .4; }
.calm-cell.is-today .calm-date {
  background: var(--lime-500); color: #081428; width: 26px; height: 26px;
  border-radius: 50%; display: grid; place-items: center;
}
.calm-more { font-size: .72rem; color: var(--text-dim); padding: 0 4px; }

@media (max-width: 720px) {
  .cal-toolbar { flex-direction: column; align-items: stretch; }
  .cal-nav { justify-content: center; }
  .calw-corner, .calw-allcorner { font-size: 0; }
  .calw-time { font-size: .64rem; }
  .calw-head, .calw-allrow, .calw-body { grid-template-columns: 40px repeat(7, 1fr); }
  .calw-body { grid-template-columns: 40px 1fr; }
  .calw-dnum { font-size: 1rem; }
  .cal-ev__t { font-size: .7rem; }
  .cal-ev__m { display: none; }
  .calm-cell { min-height: 70px; padding: 3px; }
  .cal-chip { font-size: .64rem; padding: 2px 4px; }
  .calm-date { font-size: .75rem; }
}

/* הלוגו הגדול בבאנר הבית — סמל מוגדל + שם המותג בשתי שורות */
.hero-deck__logo { flex-direction: column; gap: 16px; margin-bottom: 6px; }
.hero-deck__logo .logo__mark { width: clamp(96px, 26vw, 168px); height: auto; }
.hero-deck__logo .logo__name { align-items: center; text-align: center; gap: 6px; }
.hero-deck__logo .logo__name b { font-size: clamp(1.6rem, 6vw, 3.1rem); }
.hero-deck__logo .logo__name i { font-size: clamp(0.95rem, 2.8vw, 1.4rem); letter-spacing: 0.12em; }
.hero-deck__tag { color: var(--text-muted); letter-spacing: 0.2em; font-weight: 600; margin: 0 0 56px; }
.hero-deck__all { margin-top: 64px; }

.deck { position: relative; display: flex; flex-direction: column; align-items: center; }

/* 3 category cards — always visible, no toggle */
.deck__cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 860px; }

.pcard {
  position: relative; width: clamp(150px, 25vw, 230px); height: clamp(210px, 33vw, 308px);
  border-radius: 16px; border: 1px solid var(--lime-500);
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; text-align: start; overflow: hidden;
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.8);
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.pcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-lime); z-index: 2; }
.pcard h3 { margin: 0 0 6px; font-size: 1.25rem; }
.pcard p { margin: 0; color: #e9e1ce; font-size: 0.86rem; line-height: 1.4; }
.pcard:hover { transform: translateY(-6px); border-color: var(--lime-400); box-shadow: var(--shadow-lime); }

/* category card backgrounds */
.pcard--1 { background-image: linear-gradient(180deg, rgba(8,7,5,0.08) 18%, rgba(8,7,5,0.92) 82%), url("../img/gallery/pitch.jpg"); }
.pcard--2 { background-image: linear-gradient(180deg, rgba(8,7,5,0.15) 22%, rgba(8,7,5,0.93) 84%), url("../img/gallery/fitness.jpg"); }
.pcard--3 { background-image: linear-gradient(180deg, rgba(8,7,5,0.08) 18%, rgba(8,7,5,0.92) 82%), url("../img/gallery/balls.jpg"); }
.pcard--4 { background-image: linear-gradient(180deg, rgba(8,7,5,0.15) 22%, rgba(8,7,5,0.93) 84%), url("../img/gallery/futsal.jpg"); }
.pcard--5 { background-image: linear-gradient(180deg, rgba(8,7,5,0.15) 22%, rgba(8,7,5,0.93) 84%), url("../img/gallery/basketball.jpg"); }

/* 3 cards fit side-by-side on mobile */
@media (max-width: 540px) { .pcard { width: 29vw; height: 41vw; padding: 12px; } .pcard h3 { font-size: 0.95rem; } .pcard p { font-size: 0.78rem; } .deck__cards { gap: 10px; } }

/* ============================================================
   ACCESSIBILITY widget + modes (Israeli law / WCAG AA helpers)
   ============================================================ */
/* ---- community chat (logged-in members) — bottom-left ---- */
.dt-chat-btn {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 1100;
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--lime-500);
  background: var(--navy-800); color: var(--lime-400); display: none; place-items: center;
  box-shadow: var(--shadow); cursor: pointer;
}
.dt-chat-btn svg { width: 28px; height: 28px; }
/* WhatsApp float (before login) — same spot as chat, gently pulsing */
.wa-float {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 1100;
  width: 56px; height: 56px; border-radius: 50%; display: none; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 22px -6px rgba(37,211,102,.7);
  text-decoration: none; animation: wa-pulse 1.6s ease-in-out infinite;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.06); animation-play-state: paused; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 22px -6px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.55); }
  50%      { box-shadow: 0 8px 22px -6px rgba(37,211,102,.7), 0 0 0 12px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }
.dt-chat-badge {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #e23b3b; color: #fff; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--navy-800);
}
.dt-chat-btn:hover { background: var(--grad-lime); color: #ffffff; border-color: transparent; }
.dt-chat-panel {
  position: fixed; inset-inline-end: 18px; bottom: 84px; z-index: 1101;
  width: min(360px, calc(100vw - 36px)); height: min(520px, calc(100vh - 120px));
  background: var(--navy-800); border: 1px solid var(--navy-line); border-radius: 16px;
  box-shadow: var(--shadow); display: none; flex-direction: column; overflow: hidden;
}
.dt-chat-panel.open { display: flex; }
.dt-chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--grad-lime); color: #ffffff; font-weight: 800;
}
.dt-chat-close { background: none; border: none; color: #ffffff; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.dt-chat-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.dt-chat-empty { color: var(--text-dim); text-align: center; margin: auto; font-size: .92rem; }
.dt-chat-msg { max-width: 82%; align-self: flex-start; }
.dt-chat-msg.mine { align-self: flex-end; text-align: start; }
.dt-chat-name { font-size: .76rem; color: var(--lime-400); margin-bottom: 2px; font-weight: 700; }
.dt-chat-bubble {
  background: var(--navy-900, #0f2039); border: 1px solid var(--navy-line);
  padding: 8px 12px; border-radius: 12px; color: var(--text, #fff); font-size: .92rem;
  word-break: break-word; white-space: pre-wrap;
}
.dt-chat-msg.mine .dt-chat-bubble { background: var(--grad-lime); color: #ffffff; border-color: transparent; }
.dt-chat-time { font-size: .68rem; color: var(--text-dim); margin-top: 2px; }
.dt-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--navy-line); }
.dt-chat-input {
  flex: 1; background: var(--navy-900, #0f2039); border: 1px solid var(--navy-line);
  border-radius: 10px; padding: 10px 12px; color: var(--text, #fff); font: inherit;
}
.dt-chat-send {
  width: 44px; border: none; border-radius: 10px; background: var(--grad-lime);
  color: #ffffff; font-size: 1.1rem; cursor: pointer;
}
.dt-chat-back { background: none; border: none; color: #ffffff; font-size: 1.6rem; line-height: 1; cursor: pointer; font-weight: 800; }
.dt-chat-mute { background: none; border: none; color: #ffffff; font-size: 1.15rem; line-height: 1; cursor: pointer; }
/* popup toast for new chat messages */
.dt-toast-wrap { position: fixed; bottom: 84px; inset-inline-end: 18px; z-index: 1200; display: flex; flex-direction: column; gap: 8px; max-width: min(320px, calc(100vw - 36px)); }
.dt-toast { background: var(--navy-800); border: 1px solid var(--lime-500); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(10px); transition: .25s; }
.dt-toast.show { opacity: 1; transform: translateY(0); }
.dt-toast-title { font-weight: 800; color: var(--lime-400); font-size: .9rem; }
.dt-toast-body { color: var(--text, #fff); font-size: .85rem; margin-top: 2px; word-break: break-word; }
.dt-chat-head .dt-chat-title { flex: 1; }
.dt-chat-tabs { display: flex; border-bottom: 1px solid var(--navy-line); }
.dt-chat-tab { flex: 1; background: none; border: none; color: var(--text-dim); padding: 10px; cursor: pointer; font: inherit; font-weight: 700; border-bottom: 2px solid transparent; }
.dt-chat-tab.active { color: var(--lime-400); border-bottom-color: var(--lime-400); }
.dt-chat-search { padding: 10px 10px 0; }
.dt-chat-search .dt-chat-input { width: 100%; }
.dt-chat-del { background: none; border: none; cursor: pointer; font-size: .85rem; opacity: .55; margin-inline-start: 6px; padding: 0; }
.dt-chat-del:hover { opacity: 1; }
.dt-chat-link { color: var(--lime-400); text-decoration: underline; font-weight: 700; }
.dt-chat-msg.mine .dt-chat-link { color: #0a2e16; }
.dt-chat-name { cursor: pointer; }
.dt-chat-name:hover { text-decoration: underline; }
.dt-chat-conv {
  display: flex; flex-direction: column; gap: 2px; text-align: start; width: 100%;
  background: var(--navy-900, #0f2039); border: 1px solid var(--navy-line);
  border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--text, #fff);
}
.dt-chat-conv:hover { border-color: var(--lime-500); }
.dt-chat-conv-name { font-weight: 700; color: var(--lime-400); }
.dt-chat-conv-last { font-size: .82rem; color: var(--text-dim); }

.a11y-btn {
  position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 1100;
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--lime-500);
  background: var(--navy-800); color: var(--lime-400); display: grid; place-items: center;
  box-shadow: var(--shadow); cursor: pointer;
}
.a11y-btn svg { width: 26px; height: 26px; }
.a11y-btn:hover { background: var(--grad-lime); color: #ffffff; border-color: transparent; }
.a11y-panel {
  position: fixed; inset-inline-start: 18px; bottom: 80px; z-index: 1100;
  width: 290px; max-width: calc(100vw - 36px); max-height: 76vh; overflow-y: auto;
  background: var(--navy-800); border: 1px solid var(--navy-line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 16px; display: none;
}
.a11y-panel.open { display: block; }
.a11y-panel h2 { font-size: 1.1rem; margin: 0 0 12px; }
.a11y-row { display: flex; gap: 8px; margin-bottom: 8px; }
.a11y-opt {
  flex: 1; display: flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--navy-700); border: 1px solid var(--navy-line); color: var(--text-muted);
  padding: 11px 10px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; cursor: pointer; text-align: center;
}
.a11y-opt:hover { color: var(--lime-400); border-color: var(--lime-500); }
.a11y-opt.active { background: var(--grad-lime); color: #ffffff; border-color: transparent; }
.a11y-link { display: block; text-align: center; margin-top: 10px; color: var(--lime-400); font-weight: 700; }
.a11y-reset { width: 100%; margin-top: 4px; }

/* modes (applied on <html>) */
html.a11y-grayscale { filter: grayscale(100%); }
html.a11y-links a { text-decoration: underline !important; font-weight: 700 !important; }
html.a11y-readable, html.a11y-readable * { font-family: Arial, "Segoe UI", sans-serif !important; letter-spacing: 0.01em; }
html.a11y-readable p, html.a11y-readable li, html.a11y-readable label { line-height: 1.9 !important; }
html.a11y-nomotion *, html.a11y-nomotion *::before, html.a11y-nomotion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-contrast body { background: #000 !important; }
html.a11y-contrast :where(section,header,footer,article,aside,nav,.panel,.card,.tcol,.venue,.game-card,.pcard,.modal__box,.deck__cover,.hero-deck,.cta-band) { background: #000 !important; }
html.a11y-contrast :where(h1,h2,h3,h4,p,span,li,td,th,label,.lead,.muted,.eyebrow) { color: #fff !important; -webkit-text-fill-color: #fff !important; background-image: none !important; }
html.a11y-contrast a, html.a11y-contrast .link-lime, html.a11y-contrast .text-lime { color: #ff0 !important; -webkit-text-fill-color: #ff0 !important; background-image: none !important; }
html.a11y-contrast .btn { background: #ff0 !important; color: #000 !important; -webkit-text-fill-color: #000 !important; border-color: #ff0 !important; }

.game-card--ended { opacity: 0.62; }
.game-card--ended .game-date .day { color: var(--text-dim); }

/* ============================================================
   COOKIE consent popup (choice remembered 48h)
   ============================================================ */
.cookie-pop {
  position: fixed; z-index: 1200; inset-inline: 18px; bottom: 18px;
  max-width: 540px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: var(--navy-800); border: 1px solid var(--navy-line);
  border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow);
  transform: translateY(140%); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.35s ease;
}
.cookie-pop.show { transform: none; opacity: 1; }
.cookie-pop__text { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.cookie-pop__text strong { color: #fff; font-size: 1rem; }
.cookie-pop__text span { color: var(--text-muted); font-size: 0.86rem; line-height: 1.5; }
.cookie-pop__text a { color: var(--lime-400); text-decoration: underline; }
.cookie-pop__btns { display: flex; gap: 8px; flex: 0 0 auto; }
@media (max-width: 480px) {
  .cookie-pop { flex-direction: column; align-items: stretch; text-align: center; }
  /* בעמודה, flex-basis:240px הפך לגובה וגרם לרווח ענק — מאפסים */
  .cookie-pop__text { flex: 0 0 auto; }
  .cookie-pop__btns { justify-content: center; }
  .a2hs-pop__row { justify-content: center; }
}
/* "הוספה למסך הבית" — נשען על .cookie-pop */
.a2hs-pop__row { display: flex; align-items: center; gap: 12px; flex: 1 1 240px; }
.a2hs-pop__icon { width: 44px; height: 44px; border-radius: 11px; flex: 0 0 auto; box-shadow: 0 0 0 1px var(--navy-line); }
.a2hs-pop__hint { flex: 1 1 100%; margin: 4px 0 0; color: var(--lime-400); font-size: 0.86rem; line-height: 1.5; }

/* ============================================================
   THEME TOGGLE (light / dark) — default dark, remembered via cookie
   ============================================================ */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; cursor: pointer;
  background: var(--navy-800); border: 1px solid var(--navy-line);
  color: var(--lime-400); transition: .15s;
}
.theme-toggle:hover { border-color: var(--lime-500); background: rgba(47, 127, 224,.08); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle--float { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 1000; box-shadow: var(--shadow); }

/* ---- LIGHT THEME tokens (cream + gold, dark text) ---- */
:root[data-theme="light"] {
  --navy-900: #eef3f9;
  --navy-800: #ffffff;
  --navy-700: #e4edf7;
  --navy-600: #d3e0ef;
  --navy-card: #ffffff;
  --navy-line: rgba(30, 90, 168, 0.22);
  --lime-400: #1b5aa6;   /* accent text — כחול כהה, 6.1:1 על רקע בהיר */
  --lime-500: #2f7fe0;
  --lime-600: #1e5aa8;
  --lime-glow: rgba(47, 127, 224, 0.26);
  --text: #0c1b30;
  --text-muted: #44576f;
  --text-dim: #6b7d95;
  --shadow: 0 18px 40px -20px rgba(12, 40, 82, 0.28);
  --grad-navy: linear-gradient(180deg, #ffffff 0%, #eef3f9 100%);
  --grad-gold-text: linear-gradient(180deg, #1e5aa8 0%, #14406f 60%, #0c2a4d 100%);
}
/* light-theme fixups for hardcoded dark-surface whites */
:root[data-theme="light"] .site-header { background: rgba(255, 255, 255, 0.9); }
:root[data-theme="light"] .nav__links a:hover,
:root[data-theme="light"] .nav__links a.active { color: var(--text); }
:root[data-theme="light"] .nav__toggle span { background: var(--text); }
:root[data-theme="light"] .venue__name { color: var(--text); }
:root[data-theme="light"] .logo { color: var(--text); }
/* form fields: white surface + dark text (were white-on-dark) */
:root[data-theme="light"] .input,
:root[data-theme="light"] .select,
:root[data-theme="light"] .textarea { background: #fff; color: var(--text); }
:root[data-theme="light"] .input::placeholder,
:root[data-theme="light"] .textarea::placeholder { color: var(--text-dim); }
/* calendar event blocks/chips had hardcoded white text */
:root[data-theme="light"] .cal-ev,
:root[data-theme="light"] .cal-chip--game { color: var(--text); }
:root[data-theme="light"] .dt-chat-bubble { background: #fff; }
:root[data-theme="light"] .cookie-pop__text strong { color: var(--text); }
/* מצב בהיר — הבאנר עצמו מתבהר (קודם הוא נשאר כהה והטקסט הוכרח להיות בהיר,
   ולכן החלק העליון של דף הבית לא הגיב כלל להחלפת המצב). כשהרקע בהיר,
   הכותרות/הטקסט/הוורדמארק מקבלים אוטומטית את צבעי הטוקנים הכהים. */
:root[data-theme="light"] .hero-deck {
  background:
    radial-gradient(60% 50% at 50% 24%, rgba(47, 127, 224, 0.13), transparent 70%),
    linear-gradient(180deg, rgba(238, 243, 249, 0.90), rgba(238, 243, 249, 0.96)),
    url("../img/hero-athlete.jpg") center / cover no-repeat,
    #eef3f9;
}
/* אייקוני הרשתות היו לבנים — על רקע בהיר הם נעלמו */
:root[data-theme="light"] .hero-socials a {
  background: rgba(12, 40, 82, 0.06);
  color: var(--lime-600);
  border-color: rgba(30, 90, 168, 0.28);
}
:root[data-theme="light"] .hero-socials a:hover { color: #ffffff; }
/* סרגל ההתחברות בדף הבית — מתבהר יחד עם הבאנר */
:root[data-theme="light"] .home-auth { background: rgba(238, 243, 249, 0.94); }
/* (footer stays dark on purpose — branded band, looks intentional on light) */

/* ============================================================
   ACTIVITY GRAPH — games map (schedule.html) — vertical bar chart
   ============================================================ */
.activity-card {
  background: var(--grad-navy); border: 1px solid var(--navy-line);
  border-radius: var(--radius); padding: 20px 22px 16px; margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.activity-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.activity-head h2 { margin: 0; font-size: 1.1rem; }
.activity-total { color: var(--lime-400); font-weight: 800; font-size: 1.05rem; }
.activity-total span { color: var(--text-dim); font-weight: 600; font-size: .82rem; }
.activity-hint { color: var(--text-dim); font-size: .8rem; margin: 6px 0 0; }

.act-bars {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 16px 4px 0; overflow-x: auto;
}
.act-bar {
  flex: 1 1 0; min-width: 46px; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: inherit; font: inherit; padding: 0;
}
.act-bar__val { font-weight: 800; color: var(--lime-400); font-size: .9rem; font-variant-numeric: tabular-nums; }
.act-bar__col {
  width: 100%; max-width: 44px; min-height: 6px; border-radius: 9px 9px 4px 4px;
  background: var(--grad-lime); box-shadow: inset 0 -2px 6px rgba(0,0,0,.12);
  transition: height .7s cubic-bezier(.2,.8,.25,1), filter .15s, transform .15s;
}
.act-bar__name {
  font-size: .76rem; font-weight: 600; color: var(--text-muted); text-align: center;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.act-bar:hover .act-bar__col { filter: brightness(1.08); transform: translateY(-2px); }
.act-bars.has-filter .act-bar:not(.is-active) .act-bar__col { opacity: .4; }
.act-bar.is-active .act-bar__col { box-shadow: 0 0 14px var(--lime-glow); }
.act-bar.is-active .act-bar__name { color: var(--lime-400); }
.activity-empty { color: var(--text-dim); text-align: center; padding: 16px; }
@media (max-width: 560px) {
  .activity-card { padding: 16px 14px 12px; }
  .act-bars { gap: 7px; }
  .act-bar { min-width: 40px; }
  .act-bar__name { font-size: .68rem; }
}

/* ============================================================
   RATING SURVEY (rate.html) — stars
   ============================================================ */
.rate-card { max-width: 540px; margin: 0 auto; }
.rate-stars { display: flex; justify-content: center; gap: 6px; margin: 18px 0 8px; }
.rate-star {
  background: none; border: none; cursor: pointer; padding: 4px;
  font-size: 2.6rem; line-height: 1; color: var(--text-dim); transition: transform .1s, color .12s;
}
.rate-star:hover { transform: scale(1.12); }
.rate-star.on { color: var(--lime-500); }
.rate-label { text-align: center; color: var(--lime-400); font-weight: 700; min-height: 1.4em; }


.mm-c { font-size: .92rem; line-height: 1.4; }
.mm-c strong { color: var(--lime-400); }
.mm-c__del { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: .8rem; }
.mm-c__del:hover { color: #ff8a72; }

/* admin player-management modal */
.modal__x { position: sticky; top: -4px; z-index: 3; display: block; margin-inline-end: auto; margin-bottom: 2px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-700); border: 1px solid var(--navy-line); color: var(--text, #fff); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal__x:hover { border-color: var(--lime-500); }
.pm-hr { border: none; border-top: 1px solid var(--navy-line); margin: 18px 0 14px; }
.profile-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.pm-thumb-wrap { position: relative; aspect-ratio: 1/1; }
.pm-thumb { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--navy-line); display: grid; place-items: center; background: var(--navy-800); }
.pm-thumb--vid { font-size: 1.6rem; }
.pm-thumb-del { position: absolute; top: 4px; inset-inline-end: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: none; cursor: pointer; font-size: .75rem; line-height: 1; }

/* double-tap like heart pop */
.heart-pop { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); font-size: 5rem; z-index: 4; pointer-events: none; filter: drop-shadow(0 3px 10px rgba(0,0,0,.5)); animation: heartPop .75s ease forwards; }
@keyframes heartPop { 0% { transform: translate(-50%,-50%) scale(0); opacity: 0; } 20% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; } 40% { transform: translate(-50%,-50%) scale(.95); } 70% { opacity: 1; } 100% { transform: translate(-50%,-55%) scale(1); opacity: 0; } }

/* feed author row (feed.html) */
.pfeed__author { padding: 10px 12px 4px; }
.pfeed__who { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text, #fff); text-decoration: none; }
.pfeed__ava { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad-lime); color: #081428; font-size: .8rem; font-weight: 800; }

/* stories bar + bubbles (feed.html) */
.stories-bar { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 12px; -webkit-overflow-scrolling: touch; }
.stories-bar::-webkit-scrollbar { height: 0; }
.story-bubble { flex: 0 0 auto; background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 68px; }
/* טבעת אפורה = נצפה; טבעת זהב מסתובבת = סטורי חדש שלא נצפה */
.story-bubble__ring { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; padding: 3px; background: var(--navy-line); }
.story-bubble__ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 0; }
.story-bubble--unseen .story-bubble__ring::before { background: conic-gradient(from 0deg, var(--lime-400), #2f7fe0, var(--lime-500), var(--lime-400)); animation: storyspin 2.4s linear infinite; }
.story-bubble--admin.story-bubble--unseen .story-bubble__ring::before { background: conic-gradient(from 0deg, #ff5f6d, #ffc371, #ff5f6d, #ff5f6d); }
.story-bubble__ava { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--navy-800); color: #fff; font-weight: 800; font-size: 1.05rem; border: 2px solid var(--navy-900, #081428); }
.story-bubble__ava img { width: 100%; height: 100%; object-fit: cover; }
.story-bubble__name { font-size: .72rem; color: var(--text-muted); max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-bubble--add .story-bubble__ava { color: var(--lime-400); font-size: 1.5rem; }
@keyframes storyspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .story-bubble--unseen .story-bubble__ring::before { animation: none; } }

/* story viewer (fullscreen) */
.story-viewer { position: fixed; inset: 0; z-index: 2200; display: none; background: #000; }
.story-viewer.open { display: block; }
.story-viewer__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.story-viewer__bars { position: absolute; top: 8px; inset-inline: 10px; z-index: 3; display: flex; gap: 4px; }
.story-viewer__bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.story-viewer__bars span.done { background: #fff; }
.story-viewer__bars span.on { background: linear-gradient(90deg,#fff 50%,rgba(255,255,255,.3) 50%); }
.story-viewer__head { position: absolute; top: 18px; inset-inline: 12px; z-index: 3; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.story-viewer__name { font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.story-viewer__close { background: rgba(0,0,0,.4); color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.story-viewer__tap { position: absolute; top: 0; bottom: 0; width: 40%; z-index: 2; background: none; border: none; cursor: pointer; }
.story-viewer__tap--prev { inset-inline-end: 0; }
.story-viewer__tap--next { inset-inline-start: 0; }
.story-viewer__del { position: absolute; bottom: 20px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 5; }
.story-reply { position: absolute; bottom: 0; inset-inline: 0; z-index: 5; display: flex; gap: 8px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, rgba(0,0,0,.55) 40%); }
.story-reply .input { flex: 1; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.story-reply .input::placeholder { color: rgba(255,255,255,.7); }

/* health questionnaire (register modal + health.html) */
.hq-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.hq-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; background: var(--navy-800); border: 1px solid var(--navy-line); border-radius: 10px; }
.hq-q { font-size: .9rem; flex: 1; }
.hq-ans { display: flex; gap: 12px; flex: 0 0 auto; white-space: nowrap; }
.hq-ans label { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; cursor: pointer; margin: 0; }

/* signature pad (health declaration — register modal + health.html) */
.sign-block { margin-top: 16px; }
.sign-block__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sign-block__head label { margin: 0; font-weight: 600; }
.sign-block__head button { background: none; border: none; cursor: pointer; font: inherit; font-weight: 600; }
.sign-pad { display: block; width: 100%; height: 140px; background: #fff; border: 1px solid var(--navy-line); border-radius: 12px; touch-action: none; cursor: crosshair; }
.sign-block__date { margin: 6px 0 0; font-size: .85rem; color: var(--text-muted); }

/* avatar cropper (round profile photo positioning) */
.crop-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.8); }
.crop-box { background: var(--navy-800); border: 1px solid var(--navy-line); border-radius: 16px; padding: 20px; max-width: 340px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.crop-box__title { font-size: 1.15rem; font-weight: 800; color: #fff; margin: 0 0 4px; }
.crop-box__hint { color: var(--text-muted); font-size: .82rem; line-height: 1.45; margin: 0 0 14px; }
.crop-stage { position: relative; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #000; touch-action: none; }
.crop-stage canvas { display: block; cursor: move; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.55); pointer-events: none; }
.crop-zoom { width: 100%; margin: 16px 0 4px; accent-color: var(--lime-500); }
.crop-actions { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
:root[data-theme="light"] .crop-box__title { color: var(--text); }

/* players browse/search (players.html) */
.players-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.player-row {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text, #fff);
  background: var(--navy-800); border: 1px solid var(--navy-line); border-radius: 12px; padding: 10px 14px; transition: .15s;
}
.player-row:hover { border-color: var(--lime-500); transform: translateY(-1px); }
.player-row__av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 127, 224,.14); color: var(--lime-400); font-weight: 800; overflow: hidden; flex: 0 0 auto; }
.player-row__av img { width: 100%; height: 100%; object-fit: cover; }
.player-row__nm { font-weight: 700; flex: 1; }
.player-row__go { color: var(--lime-400); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.pv-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 1.8rem; background: var(--navy-700); }

/* profile photo grid (player.html — Instagram-style) */
.profile-grid { display: flex; flex-direction: column; gap: 22px; max-width: 480px; margin: 0 auto; }
.pfeed { background: var(--navy-800); border: 1px solid var(--navy-line); border-radius: 14px; overflow: hidden; }
.pfeed__media { position: relative; background: #000; }
.pfeed__media img, .pfeed__media video { width: 100%; height: auto; max-height: 80vh; display: block; object-fit: contain; background: #000; }
.pfeed__media iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; }
.pfeed__del {
  position: absolute; top: 8px; inset-inline-end: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; border: none; cursor: pointer; font-size: .95rem; line-height: 1;
}
.pfeed__bar { padding: 10px 14px 2px; }
.pfeed__like { background: none; border: none; cursor: pointer; font-size: 1.2rem; font-weight: 800; color: var(--text, #fff); display: inline-flex; align-items: center; gap: 6px; }
.pfeed__like.is-on { color: #ff6b81; }
.pfeed__caption { padding: 2px 14px 6px; font-size: .92rem; line-height: 1.4; }
.pfeed__comments { padding: 2px 14px 8px; display: flex; flex-direction: column; gap: 7px; }
.pfeed__comments:empty { display: none; }
.pfeed__form { display: flex; gap: 8px; padding: 8px 14px 14px; border-top: 1px solid var(--navy-line); }
.pfeed__form .input { flex: 1; }

/* winning team card (stats.html) */
.winner-card {
  background: var(--grad-navy); border: 1px solid var(--lime-500); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 22px; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.winner-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-lime); }
.winner-card__badge { color: var(--lime-400); font-weight: 800; font-size: .9rem; }
.winner-card__team { font-size: 1.6rem; font-weight: 900; margin: 4px 0; }
.winner-card__meta { color: var(--text-dim); font-size: .88rem; }
.winner-card__players { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.winner-card__players span { background: rgba(47, 127, 224,.14); border: 1px solid var(--navy-line); border-radius: var(--radius-pill); padding: 4px 12px; font-size: .85rem; font-weight: 600; }

/* player statistics boards (stats.html + admin stats) */
.stats-boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-board { background: var(--navy-800); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 14px 16px; }
.stat-board h4 { margin: 0 0 12px; font-size: 1rem; text-align: center; color: var(--lime-400); }
.stat-row {
  display: grid; grid-template-columns: 2ch 1fr auto; align-items: center; gap: 10px;
  padding: 9px 8px; border-bottom: 1px solid var(--navy-line);
}
.stat-row:last-child { border-bottom: none; }
.stat-rank { color: var(--lime-500); font-weight: 800; font-size: .85rem; }
.stat-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-val { font-weight: 800; color: var(--lime-400); font-variant-numeric: tabular-nums; }
.stat-row:nth-child(2) .stat-val { font-size: 1.05rem; } /* leader pops a touch */
@media (max-width: 720px) { .stats-boards { grid-template-columns: 1fr; } }

/* punch cards (cards.html) */
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.punch-card {
  position: relative; background: var(--grad-navy); border: 1px solid var(--lime-500);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.punch-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: var(--grad-lime); }
.punch-card__badge {
  align-self: flex-start; background: rgba(47, 127, 224,.14); color: var(--lime-400);
  border: 1px solid var(--navy-line); border-radius: var(--radius-pill);
  padding: 4px 12px; font-size: .8rem; font-weight: 800; margin-bottom: 2px;
}
.punch-card h2 { margin: 0; }
.punch-card__price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.punch-card__price strong { font-size: 2rem; color: var(--lime-400); }
.punch-card__price span { color: var(--text-dim); font-weight: 600; }
.punch-card .bullets { margin: 4px 0 12px; }
.punch-card .btn { margin-top: auto; }
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }

/* punch option on checkout */
.punch-box {
  border: 1px solid var(--lime-500); border-radius: var(--radius-sm);
  padding: 14px 16px; margin: 6px 0 4px; background: rgba(47, 127, 224,.08);
}
.punch-box__count { font-weight: 700; margin-bottom: 10px; }
.punch-box__count.is-low { color: #ff8a72; }

/* regular-players chips (admin recurring loop) */
.reg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.reg-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(47, 127, 224,.12); border: 1px solid var(--navy-line);
  color: var(--text); border-radius: var(--radius-pill); padding: 5px 12px; font-size: .88rem; font-weight: 600;
}
.reg-chip__x { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: .9rem; line-height: 1; padding: 0; }
.reg-chip__x:hover { color: #ff8a72; }

/* ============================================================
   Phone-only UX refinements (≤560px). Placed LAST so these
   overrides win by source order. Desktop is untouched.
   ============================================================ */
@media (max-width: 560px) {
  /* מודלים: לנצל יותר מסך, פחות מרווח דחוס (חשוב לפופאפ ההרשמה/חתימה הארוך) */
  .modal { padding: 12px; align-items: flex-start; }
  .modal__box { padding: 22px 16px; max-height: 94vh; margin-top: 8px; }
  /* צ'קבוקסים גדולים יותר לנגיעה נוחה (flex-shrink:0 כדי שלא יתכווצו ליד תווית ארוכה) */
  .checkbox-row input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; }
  /* שאלון רפואי: השאלה מעל, ואז כן/לא — כדי ששאלות ארוכות לא יידחסו */
  .hq-item { flex-direction: column; align-items: stretch; gap: 8px; }
  .hq-ans { justify-content: flex-start; gap: 28px; }
  .hq-ans label { font-size: 1rem; }
  /* אזור חתימה מעט גבוה יותר לחתימה באצבע */
  .sign-pad { height: 150px; }
  /* בחירות (select) ל-16px — מונע זום אוטומטי במיקוד ב-iOS */
  .select { font-size: 16px; }
}
