:root {
  --bg: #f4f7ff;
  --surface: #ffffff;
  --text: #4a2f82;
  --muted: #7d63ad;
  --blue: #2f80ed;
  --green: #27ae60;
  --orange: #f2994a;
  --pink: #eb5757;
  --border: #d9e2f2;
  --text-on-accent: #ffe2a8;
  --text-hero-strong: #5b2f8f;
  --text-hero-main: #45207a;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Heebo", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

.container { width: min(1120px, 92%); margin-inline: auto; }
.site-header,
.site-header.site-header--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: transparent;
  border: none;
  box-shadow: none;
}
.site-header.site-header--static {
  position: static;
}
.nav-wrap {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-wrap--tools {
  justify-content: flex-end;
}
.nav-wrap--tools.has-logo {
  justify-content: space-between;
}
.header-brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.15rem;
}
body:not(.home-page) .header-brand-link {
  margin-inline-end: 0.35rem;
}
body:not(.home-page) main {
  padding-top: 3.75rem;
}
body.order-page main {
  padding-top: 0.6rem;
}
.site-logo-badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: min(248px, 54vw);
  min-width: 0;
  min-height: 48px;
  max-height: 58px;
  height: auto;
  margin: 0;
  padding: 9px clamp(14px, 2.8vw, 22px);
  border-radius: 10px;
  background: #085041;
  color: #9fe1cb;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 2.15vw, 21px);
  line-height: 1.12;
  direction: rtl;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 2px 8px rgba(8, 80, 65, 0.22);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
body:not(.home-page) .site-logo-badge {
  min-height: 40px;
  max-height: 48px;
  padding: 7px clamp(12px, 2.2vw, 18px);
  font-size: clamp(14px, 1.7vw, 18px);
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(8, 80, 65, 0.2);
  animation: logoBreath 4.2s ease-in-out infinite;
}
body:not(.home-page) .header-brand-link:hover .site-logo-badge {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(8, 80, 65, 0.28);
}
@keyframes logoBreath {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

.hero-logo-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.75rem;
  padding-top: 0.25rem;
}
.hero-brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease;
}
.hero-brand-link:hover {
  opacity: 1;
}
.hero-brand-link:hover .site-logo-badge--hero {
  box-shadow:
    0 6px 22px rgba(8, 80, 65, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  transform: translateY(-2px);
}
.hero-brand-link:focus-visible .site-logo-badge--hero {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.site-logo-badge--hero {
  max-width: min(580px, 96vw);
  min-height: 108px;
  max-height: 158px;
  padding: 20px clamp(32px, 5.5vw, 64px);
  font-size: clamp(28px, 5vw, 52px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 10px 40px rgba(8, 40, 35, 0.42),
    0 4px 16px rgba(8, 80, 65, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.main-nav { display: flex; gap: 1rem; }
.main-nav a, .small-cta { text-decoration: none; color: var(--text); font-weight: 600; }
.small-cta { padding: 0.45rem 0.9rem; border: 1px solid var(--blue); border-radius: 10px; color: var(--blue); background: #fff; }
.small-cta.secondary { border-color: #aab7d3; color: #607196; }
.auth-actions { display: flex; gap: 0.5rem; }
.auth-actions a.small-cta { display: inline-flex; align-items: center; }

.side-quick-actions {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-108%);
  z-index: 53;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(300px, 84vw);
  max-width: 100%;
  border-radius: 0 18px 18px 0;
  border: 0;
  box-shadow: 10px 0 30px rgba(15, 40, 70, 0.26);
  padding: 1.1rem 0.7rem 0.95rem;
  justify-content: flex-start;
  background: #fff;
  transition: transform 0.24s ease;
  overflow-y: auto;
}
.side-quick-action {
  min-width: 100%;
  border: 0;
  border-radius: 12px;
  color: var(--text-on-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  padding: 0.72rem 0.9rem;
  text-align: right;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 40, 70, 0.2);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.side-quick-action:hover {
  transform: translateX(3px);
  filter: brightness(1.06);
  box-shadow: 0 8px 18px rgba(15, 40, 70, 0.25);
}
.side-quick-action--personal { background: linear-gradient(180deg, #2f80ed 0%, #266ac3 100%); }
.side-quick-action--support { background: linear-gradient(180deg, #27ae60 0%, #1d9250 100%); }
.side-quick-action--terms { background: linear-gradient(180deg, #9b51e0 0%, #7f3fbc 100%); }
.side-quick-action--privacy { background: linear-gradient(180deg, #eb5757 0%, #cf4040 100%); }
.side-quick-action--price { background: linear-gradient(180deg, #f2994a 0%, #de7f2d 100%); }
.side-quick-action--intro { background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%); }
.side-quick-action--winners { background: linear-gradient(180deg, #b45309 0%, #92400e 100%); }

.side-quick-actions-extra {
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(29, 42, 68, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.side-quick-actions-toggle {
  display: block;
  position: fixed;
  left: 0.9rem;
  top: 5.25rem;
  z-index: 55;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #2f80ed 0%, #276dc8 100%);
  color: var(--text-on-accent);
  box-shadow: 0 10px 20px rgba(15, 40, 70, 0.24);
  cursor: pointer;
}
.side-quick-actions-toggle span {
  font-size: 1.24rem;
  line-height: 1;
}

.side-quick-actions-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 32, 56, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
body.quick-actions-open {
  overflow: hidden;
}
body.quick-actions-open .side-quick-actions {
  transform: translateX(0);
}
body.quick-actions-open .side-quick-actions-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.intro-points {
  margin: 0.75rem 0 0;
  padding: 0 1.1rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.intro-points li { margin-bottom: 0.35rem; }
.intro-points--tight { margin-top: 0.4rem; }
.intro-points--tight li { margin-bottom: 0.55rem; }

.about-intro-prose {
  max-width: 46rem;
  margin-inline: auto;
}
.about-intro-prose h3 {
  margin: 1.85rem 0 0.55rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
}
.about-intro-prose h3:first-child { margin-top: 0.25rem; }
.about-intro-prose p {
  margin: 0 0 0.9rem;
  color: var(--text);
  line-height: 1.62;
  font-size: 0.98rem;
}
.about-intro-prose p:last-child { margin-bottom: 0; }
.about-intro-prose a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.about-intro-prose a:hover { text-decoration-thickness: 2px; }
.about-intro-prose .intro-points { color: var(--text); }
.about-intro-prose .intro-points strong { color: var(--text); }

body.view-order .hero,
body.view-order #results-2026,
body.view-order #personal {
  display: none;
}
body.view-personal .hero,
body.view-personal #order,
body.view-personal #results-2026 {
  display: none;
}

.page-order-fill {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}
.page-order-fill .builder-progress-wrap {
  margin-top: 0;
}

.hero {
  position: relative;
  padding: 4rem 0;
  color: var(--text);
  overflow: hidden;
  background: linear-gradient(175deg, #f3fbff 0%, #dff3fb 24%, #c8e8f4 52%, #b5dfee 78%, #ceeaf5 100%);
}
body.home-page .hero {
  padding-top: 7.25rem;
  padding-bottom: 4rem;
}
.hero-motion {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* תעלה/מסלול מים בהיר — רק גרדיאנטים קלים, ללא תמונה או וידאו */
.hero-canal-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 118% 90% at 50% -4%, rgba(255, 255, 255, 0.97) 0%, rgba(237, 250, 255, 0.55) 32%, transparent 58%),
    radial-gradient(ellipse 55% 70% at 0% 52%, rgba(214, 244, 234, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at 100% 50%, rgba(210, 235, 250, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse 72% 48% at 50% 100%, rgba(130, 200, 222, 0.28) 0%, transparent 62%),
    linear-gradient(
      173deg,
      rgba(251, 254, 255, 1) 0%,
      rgba(232, 248, 255, 1) 22%,
      rgba(206, 236, 248, 1) 45%,
      rgba(172, 220, 236, 1) 68%,
      rgba(156, 214, 232, 1) 84%,
      rgba(178, 228, 240, 1) 100%
    ),
    radial-gradient(ellipse 85% 45% at 50% 88%, rgba(120, 200, 220, 0.22) 0%, transparent 55%);
}
.hero-canal-shine {
  position: absolute;
  left: -15%;
  right: -15%;
  top: 42%;
  height: 55%;
  pointer-events: none;
  background: linear-gradient(
    185deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 18%,
    rgba(255, 255, 255, 0.06) 44%,
    transparent 72%
  );
  filter: blur(24px);
  opacity: 0.85;
}
.ball-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  contain: layout style paint;
}
.hero-ball {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: radial-gradient(circle at 30% 24%, #ffffff 0%, #f2f5ff 25%, #a7c6ff 100%);
  color: #163f74;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 22px rgba(15, 55, 90, 0.22),
    inset -7px -10px 14px rgba(0, 0, 0, 0.1);
  animation: canalBallDrift linear infinite;
}
.hero-ball.tone-blue { background: radial-gradient(circle at 30% 24%, #fff 0%, #e8f2ff 25%, #5ca9ff 100%); }
.hero-ball.tone-gold { background: radial-gradient(circle at 30% 24%, #fff8dc 0%, #ffe8a4 24%, #f2b63f 100%); color: #6b4907; }
.hero-ball.tone-red { background: radial-gradient(circle at 30% 24%, #fff 0%, #ffd6dc 25%, #ff5f7d 100%); color: #6f1028; }
.hero-ball.tone-green { background: radial-gradient(circle at 30% 24%, #f6fff8 0%, #c4ffd2 25%, #29c763 100%); color: #0c5a2c; }
.hero-ball.tone-purple { background: radial-gradient(circle at 30% 24%, #fff 0%, #eed9ff 25%, #9f68f1 100%); color: #451980; }
.hero-ball.tone-cyan { background: radial-gradient(circle at 30% 24%, #fff 0%, #d8feff 25%, #2ed5d8 100%); color: #0f5a60; }
.hero-ball.tone-orange { background: radial-gradient(circle at 30% 24%, #fff3e9 0%, #ffd4b0 25%, #ff8b3d 100%); color: #6a3208; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 38%),
    linear-gradient(to top, rgba(25, 88, 115, 0.14), transparent 45%),
    radial-gradient(ellipse 92% 55% at 50% 0%, rgba(255, 255, 255, 0.42) 0%, transparent 55%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-hero-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.version-badge { display: inline-block; background: #ffffff33; padding: 0.2rem 0.55rem; border-radius: 8px; font-weight: 700; }
.hero-inner .notice {
  margin: 0.7rem 0 0.25rem;
  font-weight: 800;
  color: #7a1515;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}
h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.3rem); }
.hero-inner > h1 {
  color: var(--text-hero-main);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 12px rgba(255, 255, 255, 0.5);
}
.hero-subtext {
  margin: 0.8rem auto 1.3rem;
  max-width: 760px;
  font-size: 1.1rem;
  color: #152942;
  font-weight: 700;
  line-height: 1.55;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}
.hero-jackpot {
  margin: 1rem auto 0;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(30, 80, 120, 0.18);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.32rem;
  box-shadow:
    0 8px 28px rgba(15, 55, 90, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.hero-jackpot strong {
  font-size: 1.28rem;
  color: #2d1d4b;
}
.hero-jackpot span {
  font-size: 1rem;
  color: #344a66;
  font-weight: 600;
}
.jackpot-btn {
  justify-self: center;
  margin-top: 0.35rem;
  border-color: var(--blue);
  color: var(--text-on-accent);
  background: linear-gradient(180deg, #3d8ef0 0%, #2f80ed 100%);
  box-shadow: 0 4px 14px rgba(47, 128, 237, 0.35);
}
.jackpot-btn:hover {
  filter: brightness(1.06);
}
@keyframes canalBallDrift {
  0% {
    transform: translate3d(0, -14vh, 0) rotate(0deg) scale(0.9);
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  48% {
    transform: translate3d(14px, 42vh, 0) rotate(140deg) scale(1);
  }
  100% {
    transform: translate3d(-12px, 118vh, 0) rotate(300deg) scale(0.94);
    opacity: 0.9;
  }
}
.cta-btn {
  border: 0;
  border-radius: 10px;
  padding: 0.78rem 1.25rem;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.section { padding: 2rem 0; }
.section h2 { margin: 0 0 1rem; font-size: 1.7rem; color: #213559; }
.section-head p { margin: -0.35rem 0 1rem; color: var(--muted); }

.draws-grid, .products-grid, .personal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.draw-card, .product-card, .step-card, .checkout-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}
.step-card {
  text-align: right;
}
.personal-tab {
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.personal-tab.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.16) inset;
}
.draw-card h3, .product-card h3 { margin: 0 0 0.3rem; }
.draw-amount { color: var(--blue); font-weight: 800; margin: 0 0 0.45rem; }
.draw-date { margin: 0 0 0.35rem; color: var(--muted); font-weight: 600; }
.draw-time { margin: 0; color: var(--muted); font-weight: 600; }
.result-lotto {
  background: linear-gradient(180deg, #edf8ff 0%, #dff1ff 100%);
  border-color: #c6e6ff;
}
.result-chance {
  background: linear-gradient(180deg, #edf8ff 0%, #dff1ff 100%);
  border-color: #c6e6ff;
}
.result-777 {
  background: linear-gradient(180deg, #edf8ff 0%, #dff1ff 100%);
  border-color: #c6e6ff;
}
.result-123 {
  background: linear-gradient(180deg, #edf8ff 0%, #dff1ff 100%);
  border-color: #c6e6ff;
}
.result-lotto h3,
.result-lotto .draw-amount,
.result-lotto .draw-date,
.result-lotto .draw-time,
.result-chance h3,
.result-chance .draw-amount,
.result-chance .draw-date,
.result-chance .draw-time,
.result-777 h3,
.result-777 .draw-amount,
.result-777 .draw-date,
.result-777 .draw-time,
.result-123 h3,
.result-123 .draw-amount,
.result-123 .draw-date,
.result-123 .draw-time {
  color: inherit;
}
.result-lotto h3,
.result-lotto .draw-amount,
.result-lotto .draw-date,
.result-lotto .draw-time { color: #d62839; }
.result-chance h3,
.result-chance .draw-amount,
.result-chance .draw-date,
.result-chance .draw-time { color: #15803d; }
.result-777 h3,
.result-777 .draw-amount,
.result-777 .draw-date,
.result-777 .draw-time { color: #db2777; }
.result-lotto .chance-res-label { color: #d62839; }
.result-chance .chance-res-label { color: #15803d; }
.result-777 .chance-res-label { color: #db2777; }
.result-123 .chance-res-label { color: #ea580c; }

.chance-res-label {
  display: block;
  font-weight: 800;
}

.chance-results-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: flex-end;
  justify-content: center;
}

.chance-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  min-width: 2.65rem;
}

.chance-suit-img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.chance-rank {
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1;
}

.result-chance .chance-draw-output {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.price { color: var(--green); font-weight: 700; margin: 0.35rem 0 0.7rem; }
.home-price-hidden { color: #8a9ab8; font-weight: 500; }
.table-count {
  width: 100%;
  margin: 0.3rem 0 0.8rem;
  padding: 0.62rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.add-to-cart {
  width: 100%;
  border: 0;
  background: var(--blue);
  color: var(--text-on-accent);
  border-radius: 10px;
  padding: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}
.game-lotto {
  background: linear-gradient(180deg, #edf8ff 0%, #dff1ff 100%);
  color: #d62839;
  border-color: #c6e6ff;
}
.game-chance {
  background: linear-gradient(180deg, #edf8ff 0%, #dff1ff 100%);
  color: #15803d;
  border-color: #c6e6ff;
}
.game-777 {
  background: linear-gradient(180deg, #edf8ff 0%, #dff1ff 100%);
  color: #db2777;
  border-color: #c6e6ff;
}
.game-123 {
  background: linear-gradient(180deg, #edf8ff 0%, #dff1ff 100%);
  color: #ea580c;
  border-color: #c6e6ff;
}
.game-lotto .price,
.game-chance .price,
.game-777 .price,
.game-123 .price,
.game-lotto h3,
.game-chance h3,
.game-777 h3,
.game-123 h3 {
  color: inherit;
}

.result-123 h3,
.result-123 .draw-amount,
.result-123 .draw-date,
.result-123 .draw-time {
  color: #ea580c;
}
.game-lotto .add-to-cart,
.game-chance .add-to-cart,
.game-777 .add-to-cart,
.game-123 .add-to-cart {
  color: #fff7eb;
}
.game-lotto .add-to-cart {
  background: #d62839;
  border: 1px solid #d62839;
}
.game-chance .add-to-cart {
  background: #15803d;
  border: 1px solid #15803d;
}
.game-777 .add-to-cart {
  background: #db2777;
  border: 1px solid #db2777;
}
.game-123 .add-to-cart {
  background: #ea580c;
  border: 1px solid #ea580c;
}
.badge {
  position: absolute;
  top: -10px;
  left: 1rem;
  background: var(--orange);
  color: var(--text-on-accent);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
}
.product-card { position: relative; }
.product-card h3 { text-align: center; }
.products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.product-card .draw-amount,
.product-card .draw-time {
  color: inherit;
}
.product-card .draw-time strong {
  color: inherit;
}

.checkout-box { margin-top: 1rem; }
.checkout-box.hidden { display: none; }
#cart-list { margin: 0.45rem 0; padding-right: 1rem; }
.empty { color: var(--muted); }
.total-line { margin: 0.8rem 0; }
.checkout { width: 100%; margin-bottom: 0.5rem; background: var(--green); color: var(--text-on-accent); }
.checkout-status { min-height: 1.2rem; color: var(--green); margin: 0.4rem 0 0; }
.price-note { color: var(--muted); font-size: 0.94rem; }
.builder-box {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}
.builder-box--physical {
  border: 1px solid #cad6ee;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 18px 38px rgba(33, 59, 106, 0.08);
}
.builder-progress {
  display: flex;
  gap: 0.32rem;
  margin-bottom: 1rem;
  align-items: center;
}
.builder-progress .progress-step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 5px;
  border-radius: 999px;
  background: #dce7f8;
  border: 1px solid #cad8ee;
  font-size: 0;
  line-height: 0;
}
.builder-progress.step-1 .progress-step:nth-child(1),
.builder-progress.step-2 .progress-step:nth-child(-n + 2),
.builder-progress.step-3 .progress-step:nth-child(-n + 3),
.builder-progress.step-4 .progress-step:nth-child(-n + 4) {
  border-color: #2f80ed;
  background: linear-gradient(180deg, #4a9af0 0%, #2f80ed 100%);
}
.builder-progress .progress-step::after {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  top: 0.55rem;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 700;
  color: #7b8da9;
  white-space: nowrap;
}
.builder-progress .progress-step:nth-child(1)::after { content: "בחירת משחק"; }
.builder-progress .progress-step:nth-child(2)::after { content: "מילוי טופס"; }
.builder-progress .progress-step:nth-child(3)::after { content: "פרטים ותשלום"; }
.builder-progress .progress-step:nth-child(4)::after { content: "אישור"; }
.builder-progress.step-1 .progress-step:nth-child(1)::after,
.builder-progress.step-2 .progress-step:nth-child(-n + 2)::after,
.builder-progress.step-3 .progress-step:nth-child(-n + 3)::after,
.builder-progress.step-4 .progress-step:nth-child(-n + 4)::after {
  color: #2b5fa8;
}
.builder-progress--compact .progress-step {
  height: 4px;
}
.page-order-fill #builder-progress.builder-progress--compact {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0 0 1rem;
  width: 100%;
}
.page-order-fill #builder-progress.builder-progress--compact .progress-step {
  flex: 1 1 0;
  min-width: 0;
  height: 4px;
  border-radius: 999px;
  border: 1px solid #c7d6ee;
  background: #dce7f8;
  font-size: 0;
  line-height: 0;
  padding: 0;
}
.page-order-fill #builder-progress.builder-progress--compact .progress-step::after {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  top: 0.52rem;
  font-size: 0.58rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  color: #7b8da9;
}
.page-order-fill #builder-progress.builder-progress--compact.step-1 .progress-step:nth-child(1),
.page-order-fill #builder-progress.builder-progress--compact.step-2 .progress-step:nth-child(-n + 2),
.page-order-fill #builder-progress.builder-progress--compact.step-3 .progress-step:nth-child(-n + 3),
.page-order-fill #builder-progress.builder-progress--compact.step-4 .progress-step:nth-child(-n + 4) {
  border-color: #2f80ed;
  background: linear-gradient(180deg, #4a9af0 0%, #2f80ed 100%);
}
.builder-progress-wrap {
  margin: 0.2rem 0 0.85rem;
}
.builder-progress-caption {
  margin: 0 0 0.38rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.builder-progress-bar {
  display: flex;
  flex-direction: row;
  gap: 3px;
  height: 5px;
  width: 100%;
  max-width: 100%;
}
.builder-progress-bar .progress-seg {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px;
  background: #dfe8f6;
  box-shadow: inset 0 0 0 1px rgba(29, 42, 68, 0.06);
  transition: background 0.22s ease, box-shadow 0.22s ease;
}
.builder-progress-bar.step-1 .progress-seg:nth-child(-n + 1),
.builder-progress-bar.step-2 .progress-seg:nth-child(-n + 2),
.builder-progress-bar.step-3 .progress-seg:nth-child(-n + 3),
.builder-progress-bar.step-4 .progress-seg:nth-child(-n + 4) {
  background: linear-gradient(180deg, #4a9af0 0%, #2f80ed 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}
.builder-box.hidden { display: none; }
.builder-workspace {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}
.numbers-panel {
  background: #f2f7ff;
  border: 1px solid #c9d9f5;
  border-radius: 12px;
  padding: 0.6rem;
}
.physical-board-head {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.78rem;
  color: #47628d;
  margin-bottom: 0.5rem;
}
.physical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
  gap: 0.36rem;
}
.physical-strong-wrap {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #c9d8ef;
}
.physical-strong-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: #2f5f9f;
  margin-bottom: 0.38rem;
}
.physical-strong-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.34rem;
}
.physical-ball {
  border: 1px solid #c7d6f1;
  background: #fff;
  color: #35527f;
  border-radius: 999px;
  min-height: 34px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.16s ease, background 0.2s ease;
}
.physical-ball:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(45, 98, 182, 0.2);
}
.physical-ball.selected {
  background: linear-gradient(180deg, #4a9af0 0%, #2f80ed 100%);
  color: #fff;
  border-color: #2f80ed;
}
.physical-ball--strong {
  border-color: #d8bedf;
  color: #7a4f8e;
}
.physical-ball--strong.selected {
  background: linear-gradient(180deg, #d64ba2 0%, #b63d87 100%);
  border-color: #b63d87;
}
.physical-slip-head {
  font-size: 0.92rem;
  font-weight: 800;
  color: #274674;
  margin-bottom: 0.2rem;
}
.physical-slip-sub {
  font-size: 0.74rem;
  color: #5f7497;
  margin-bottom: 0.45rem;
}
.physical-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.physical-chip {
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: #eef4ff;
  border: 1px solid #cbdaf7;
  color: #284a84;
  font-weight: 700;
}
.physical-chip--strong {
  margin-inline-start: 0.9rem;
  background: #f7ebff;
  border-color: #d6b0f2;
  color: #7a3bb0;
  font-weight: 800;
}
.physical-chip--strong.physical-chip--empty {
  background: #f8f0ff;
  color: #9468b8;
}
.physical-empty {
  font-size: 0.76rem;
  color: #7e8fa9;
}
.form-preview-card {
  background: linear-gradient(180deg, #fef8dd 0%, #fffdf2 100%);
  border: 1px solid #e7d58c;
  border-radius: 12px;
  padding: 0.65rem;
}
.form-preview-card h4 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: #745b20;
}
.preview-table {
  border: 1px dashed #afc5eb;
  border-radius: 8px;
  padding: 0.45rem;
  margin-bottom: 0.35rem;
  background: linear-gradient(180deg, #f2f7ff 0%, #eaf2ff 100%);
  font-size: 0.82rem;
  color: #2f4f82;
}
.preview-table.active {
  border-color: #2f80ed;
  box-shadow: 0 0 0 2px #d8e8ff inset;
}
.preview-ticket {
  border: 1px solid #a8bfe8;
  border-radius: 10px;
  padding: 0.5rem;
  margin-bottom: 0.45rem;
  background: linear-gradient(180deg, #fcfdff 0%, #f2f7ff 100%);
}
.preview-ticket {
  width: 100%;
  text-align: right;
  cursor: pointer;
}
.preview-tables-stack {
  display: grid;
  gap: 0.45rem;
}
.preview-ticket.active {
  border-color: #2f80ed;
  box-shadow: 0 0 0 2px #dbe9ff inset;
}
.preview-ticket.invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px #fee2e2 inset;
}
.preview-ticket.lotto-ticket {
  border-color: #dc9aa1;
  background: linear-gradient(180deg, #fff7f8 0%, #ffeef0 100%);
}
.preview-ticket.chance-ticket {
  border-color: #e5b9c2;
  background: linear-gradient(180deg, #fff7fb 0%, #ffeff7 100%);
}
.preview-ticket.p777-ticket {
  border-color: #c3afe7;
  background: linear-gradient(180deg, #f8f4ff 0%, #f0e9ff 100%);
}
.preview-ticket.p123-ticket {
  border-color: #f0c996;
  background: linear-gradient(180deg, #fff9ef 0%, #fff3de 100%);
}
.ticket-head {
  font-weight: 800;
  color: #284a84;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
}
.preview-ticket.lotto-ticket .ticket-head { color: #b42538; }
.preview-ticket.chance-ticket .ticket-head { color: #b03f67; }
.preview-ticket.p777-ticket .ticket-head { color: #6d39b7; }
.preview-ticket.p123-ticket .ticket-head { color: #b56a1f; }
.ticket-subhead {
  font-size: 0.7rem;
  font-weight: 700;
  color: #8f5a64;
  margin-bottom: 0.35rem;
}
.ticket-main-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.18rem;
  margin-bottom: 0.3rem;
}
.ticket-strong-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.18rem;
}
.ticket-num {
  border: 1px solid #c7d6f1;
  border-radius: 6px;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #3b5683;
  background: #fff;
  padding: 0.15rem 0;
}
.ticket-num.selected {
  background: #2f80ed;
  border-color: #2f80ed;
  color: var(--text-on-accent);
}
.lotto-ticket .ticket-num {
  border-color: #e3b5bc;
  color: #a54c5a;
}
.lotto-ticket .ticket-num.selected {
  background: #d62839;
  border-color: #d62839;
}
.ticket-num.strong {
  border-color: #e5bdd2;
}
.ticket-num.strong.selected {
  background: #eb5757;
  border-color: #eb5757;
}
.ticket-line-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.22rem;
}
.ticket-line-cell {
  border: 1px dashed #d2b8e8;
  border-radius: 6px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #69409e;
  background: #fff;
  padding: 0.25rem 0;
}
.ticket-line-cell.selected {
  background: #9b51e0;
  border-color: #9b51e0;
  color: var(--text-on-accent);
}
.ticket-digits-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.ticket-digit-col {
  border: 1px solid #efcfaa;
  border-radius: 8px;
  background: #fffdf8;
  padding: 0.3rem;
}
.ticket-digit-title {
  font-size: 0.66rem;
  text-align: center;
  color: #a86b2c;
  margin-bottom: 0.22rem;
  font-weight: 800;
}
.ticket-digit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.14rem;
}
.ticket-digit-cell {
  border: 1px solid #efd8ba;
  border-radius: 5px;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #8f6a3b;
  background: #fff;
  padding: 0.16rem 0;
}
.ticket-digit-cell.selected {
  background: #f2994a;
  border-color: #f2994a;
  color: var(--text-on-accent);
}
.preview-header {
  font-weight: 800;
  color: #274a85;
  margin-bottom: 0.3rem;
}
.preview-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  min-height: 1.8rem;
}
.preview-ball {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid #9db9ea;
  color: #2f4f82;
}
.preview-ball.strong {
  background: #eb5757;
  border-color: #eb5757;
  color: var(--text-on-accent);
}
.preview-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #9db9ea;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  background: #fff;
  color: #2f4f82;
  font-size: 0.72rem;
  font-weight: 700;
}
.preview-empty {
  color: #7083a8;
  font-size: 0.8rem;
}
.preview-strong {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}
.lotto-options.hidden { display: none; }
.lotto-options { margin-bottom: 0.8rem; }
.compact-inline-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: end;
}
.compact-field .table-count.compact {
  margin-top: 0.25rem;
}
.lotto-mode-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.lotto-mode-btn {
  border: 1px solid #c7d5ef;
  border-radius: 10px;
  background: #fff;
  color: #36517f;
  font-weight: 700;
  padding: 0.5rem;
  cursor: pointer;
}
.lotto-mode-btn.active {
  background: #2f80ed;
  border-color: #2f80ed;
  color: var(--text-on-accent);
}
.digit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}
.digit-row {
  border: 1px solid #d2def4;
  border-radius: 10px;
  padding: 0.45rem;
  background: #f9fbff;
}
.digit-row-title {
  font-size: 0.82rem;
  color: #4b628d;
  margin-bottom: 0.3rem;
  font-weight: 700;
}
.digit-buttons {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.25rem;
}
.digit-btn {
  border: 1px solid #c8d4ea;
  border-radius: 7px;
  background: #fff;
  color: #344766;
  font-weight: 700;
  padding: 0.22rem 0;
  cursor: pointer;
}
.digit-btn.selected {
  background: #2f80ed;
  border-color: #2f80ed;
  color: var(--text-on-accent);
}
.chance-suits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}
.chance-suit-row {
  border: 1px solid #d2def4;
  border-radius: 10px;
  padding: 0.45rem;
  background: #f9fbff;
}
.chance-suit-title {
  font-size: 0.82rem;
  color: #4b628d;
  margin-bottom: 0.3rem;
  font-weight: 700;
}
.chance-card-buttons {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.25rem;
}
.chance-series-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.chance-series-row {
  border: 1px solid #d2def4;
  border-radius: 10px;
  padding: 0.45rem;
  background: #f9fbff;
}
.chance-series-title {
  font-size: 0.82rem;
  color: #4b628d;
  margin-bottom: 0.3rem;
  font-weight: 700;
}
.chance-ranks-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.25rem;
}
.chance-card-btn {
  border: 1px solid #c8d4ea;
  border-radius: 7px;
  background: #fff;
  color: #344766;
  font-weight: 700;
  padding: 0.25rem 0;
  cursor: pointer;
  font-size: 0.74rem;
}
.chance-card-btn.selected {
  background: #eb5757;
  border-color: #eb5757;
  color: var(--text-on-accent);
}
.lotto-layout-tools.hidden { display: none; }
.lotto-layout-tools {
  background: #f6f9ff;
  border: 1px solid #cddaf1;
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0.8rem;
}
.lotto-layout-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}
.builder-quick-actions { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0 0 0.65rem;
}
.trust-strip span {
  border: 1px dashed #b8cae9;
  background: #f9fcff;
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  font-size: 0.78rem;
  color: #49648f;
}
.order-confirmation {
  margin-top: 0.7rem;
  border: 1px solid #b8e3c6;
  background: #f3fdf7;
  border-radius: 10px;
  padding: 0.7rem;
}
.order-confirmation.hidden { display: none; }
.order-confirmation h4 {
  margin: 0 0 0.35rem;
  color: #1f7f46;
}
.order-confirmation p {
  margin: 0 0 0.55rem;
  color: #2e6f4a;
}
.lotto-tables-preview {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}
.lotto-table-pill {
  text-align: center;
  border: 1px solid #c7d5ef;
  border-radius: 8px;
  padding: 0.35rem 0;
  font-size: 0.86rem;
  background: #fff;
  color: #3d5378;
}
.lotto-table-pill.active {
  background: #2f80ed;
  border-color: #2f80ed;
  color: var(--text-on-accent);
  font-weight: 700;
}
.lotto-table-pill.filled {
  background: #27ae60;
  color: var(--text-on-accent);
  border-color: #27ae60;
}
.lotto-table-pill.invalid {
  background: #fff1f2;
  border-color: #ef4444;
  color: #b91c1c;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.num-btn {
  width: 100%;
  border: 1px solid #c8d4ea;
  border-radius: 8px;
  padding: 0.28rem 0;
  background: #fff;
  color: #344766;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
}
.num-btn.selected {
  background: var(--blue);
  color: var(--text-on-accent);
  border-color: var(--blue);
}
.extra-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
}
.price-breakdown {
  background: #f7fbff;
  border: 1px dashed #bcd5f8;
  border-radius: 10px;
  padding: 0.7rem;
  margin-bottom: 0.8rem;
  color: #2a4770;
  min-height: 2rem;
}
.price-breakdown.hidden { display: none; }
.price-breakdown-total {
  font-size: 1rem;
  font-weight: 800;
  color: #1f4d86;
  margin-bottom: 0.25rem;
}
.price-breakdown-total strong {
  color: #12407a;
}
.price-breakdown-sub {
  font-size: 0.82rem;
  color: #5d7398;
  line-height: 1.3;
}
.personal-orders {
  margin: 0 0 1rem;
  padding-right: 1rem;
}
.personal-orders li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
}
.personal-panels {
  margin-top: 0.85rem;
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 56, 0.45);
  display: grid;
  place-items: center;
  z-index: 40;
}
.auth-modal.hidden { display: none; }
.auth-card {
  width: min(460px, 92%);
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid var(--border);
}
.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.auth-modal-header h3 {
  margin: 0;
  flex: 1 1 auto;
  font-size: 1.1rem;
}

.results-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.8rem 0 1rem;
}
.results-links a {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem;
  text-decoration: none;
  color: var(--blue);
  font-weight: 700;
  text-align: center;
}
.results-links .archive-link--lotto { color: #d62839; border-color: #f0b8bf; }
.results-links .archive-link--chance { color: #15803d; border-color: #bde7c8; }
.results-links .archive-link--777 { color: #db2777; border-color: #f2b8d6; }
.results-links .archive-link--123 { color: #ea580c; border-color: #f5c7ac; }

.site-footer { margin-top: 2rem; border-top: 1px solid var(--border); background: #fff; padding: 1.1rem 0; }
.footer-wrap { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; }
.legal { color: var(--muted); }
.footer-ass-bar {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 0 0.35rem;
  margin-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.footer-ass-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  padding: 0.48rem 1.15rem;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-on-accent);
  background: linear-gradient(180deg, #4a5568 0%, #2d3748 98%);
  border-radius: 10px;
  border: 1px solid #1a202c;
  box-shadow: 0 2px 8px rgba(26, 32, 44, 0.2);
}
.footer-ass-cta:hover {
  filter: brightness(1.07);
  color: var(--text-on-accent);
}
.footer-ass-cta--current {
  opacity: 0.88;
  cursor: default;
  pointer-events: none;
}
.footer-ass-cta--admin {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 98%);
  border-color: #1e40af;
}

.game-card-hint { font-size: 0.92rem; margin-top: 0.35rem; }
.products-grid .product-card {
  cursor: pointer;
}
.products-grid .product-card .add-to-cart {
  cursor: pointer;
}
.products-grid .product-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.game-rules-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(22, 35, 58, 0.48);
  overflow-y: auto;
}
.game-rules-modal.hidden {
  display: none;
}
.game-rules-card {
  width: min(520px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(15, 40, 70, 0.2);
}
.game-rules-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.game-rules-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
}
.game-rules-disclaimer {
  background: linear-gradient(180deg, #fff8ed 0%, #fff4e5 100%);
  border: 1px solid #ecd4a8;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #3d3318;
  margin-bottom: 0.85rem;
}
.game-rules-lead {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.game-rules-links {
  margin: 0;
  padding-right: 1.15rem;
  line-height: 1.55;
}
.game-rules-links li {
  margin-bottom: 0.55rem;
}
.game-rules-links a {
  color: var(--blue);
  font-weight: 700;
  word-break: break-word;
}
.game-rules-foot {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

/* מגירת מחשבון מחירים (נפתחת מהצד) */
.price-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 43;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.28s step-end;
}
.price-drawer-root.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s;
}
.price-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 56, 0);
  transition: background 0.28s ease;
}
.price-drawer-root.is-open .price-drawer-backdrop {
  background: rgba(20, 32, 56, 0.48);
}
.price-drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(420px, 94vw);
  max-width: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(15, 40, 70, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow: hidden;
}
.price-drawer-root.is-open .price-drawer-panel {
  transform: translateX(0);
}
.price-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.price-drawer-header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}
.price-drawer-body {
  padding: 1rem 1.1rem 1.25rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.price-drawer-body > label {
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 0.25rem;
}
.price-drawer-lead {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.price-calc-lotto-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.price-calc-double-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.45;
  cursor: pointer;
}
.price-calc-double-row input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.price-calc-output {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #f6f9ff 0%, #eef4fc 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.price-calc-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}
.price-calc-line strong {
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}
.price-calc-tier {
  margin: 0.2rem 0 0.6rem;
  min-height: 1.25rem;
}
.price-calc-total {
  margin-bottom: 0;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
  font-size: 1.05rem;
}
.price-calc-total strong {
  color: var(--blue);
  font-size: 1.15rem;
}
.checkout-status--warn { color: #b42318; font-weight: 500; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.operator-numbers-label {
  margin: 0.5rem 0 0.2rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.operator-numbers {
  margin: 0 0 0.4rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  line-height: 1.35;
  white-space: pre-wrap;
  unicode-bidi: plaintext;
}
.operator-draw-hint {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.operator-upload-row {
  align-items: center;
}
.operator-file-visually-hidden {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.operator-file-wrap {
  position: relative;
  cursor: pointer;
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.camera-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camera-modal.hidden { display: none; }
.camera-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.camera-modal-inner {
  position: relative;
  background: #111;
  border-radius: 12px;
  padding: 0.65rem;
  max-width: min(92vw, 520px);
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.camera-video {
  width: 100%;
  border-radius: 8px;
  background: #000;
  vertical-align: middle;
}
.camera-modal-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.55rem;
}

.operator-page body { padding: 1rem 0 2rem; background: var(--cream, #f7f8fa); }
.operator-card { max-width: 780px; margin: 0 auto; background: #fff; padding: 1.25rem; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }
.operator-login label { display: block; margin: 0.5rem 0 0.2rem; font-weight: 600; }
.operator-login input[type="password"] { width: 100%; max-width: 280px; }
.operator-toolbar { margin: 1rem 0; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.operator-orders { list-style: none; padding: 0; margin: 0; }
.operator-orders li { border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem; margin-bottom: 0.6rem; }
.operator-order-item--scanned {
  background: #ecfff0;
  border-color: #b9e7c3 !important;
}
.operator-orders .row { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; }
.operator-orders .meta { font-size: 0.9rem; color: var(--muted); }
.operator-demo-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: #6b7280;
  border: 1px solid #d6d9df;
  background: #f7f8fa;
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  margin-inline-start: 0.35rem;
  vertical-align: middle;
}
.operator-order-details { margin-top: 0.45rem; }
.operator-order-details summary { cursor: pointer; font-weight: 700; color: #365784; }
.operator-order-details pre {
  margin: 0.35rem 0 0;
  white-space: pre-wrap;
  background: #f8fbff;
  border: 1px solid #d4e0f2;
  border-radius: 8px;
  padding: 0.55rem;
  font-size: 0.76rem;
  max-height: 220px;
  overflow: auto;
}
.operator-scan-input { max-width: 260px; }
.operator-scan-input--hidden { display: none; }
.operator-status { font-size: 0.85rem; margin-top: 0.35rem; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-bottom: 0.75rem;
}
.footer-legal-links a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-legal-links a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
  padding: 0.5rem 0.85rem;
  background: var(--blue);
  color: var(--text-on-accent);
  font-weight: 700;
  border-radius: 8px;
  z-index: 100;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.legal-page-wrap {
  padding: 2rem 0 3rem;
  background: var(--bg);
  min-height: 55vh;
}
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  padding: 2rem 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px #1d2a4410;
}
.legal-page h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 0.5rem;
  color: var(--text);
  line-height: 1.25;
}
.legal-page h2 {
  font-size: 1.18rem;
  margin: 2rem 0 0.75rem;
  color: var(--blue);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}
.legal-page h2:first-of-type { margin-top: 1.25rem; }
.legal-page h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}
.legal-page p { margin: 0.65rem 0; }
.legal-page ul,
.legal-page ol {
  margin: 0.5rem 0;
  padding-inline-start: 1.35rem;
}
.legal-page li { margin: 0.35rem 0; }
.legal-page .legal-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.legal-page .legal-note {
  background: #fff9e6;
  border: 1px solid #f5e0a8;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.legal-page .placeholder {
  background: #eef4ff;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}
.legal-page code {
  font-size: 0.9em;
  background: #f0f4fc;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}

.reveal { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  body:not(.home-page) main {
    padding-top: 3.35rem;
  }
  .site-logo-badge.site-logo-badge--hero {
    max-width: min(480px, 98vw);
    min-height: 76px;
    max-height: none;
    padding: 14px clamp(18px, 4.5vw, 36px);
    font-size: clamp(22px, 6.2vw, 42px);
    line-height: 1.18;
    white-space: normal;
    border-radius: 12px;
    box-shadow:
      0 8px 28px rgba(8, 40, 35, 0.4),
      0 3px 14px rgba(8, 80, 65, 0.2);
  }
  .hero-logo-slot {
    margin-bottom: 1.25rem;
  }
  body.home-page .hero {
    padding-top: 6.25rem;
  }
  .nav-wrap { flex-wrap: wrap; }
  .draws-grid, .products-grid, .personal-grid, .results-links { grid-template-columns: 1fr; }
  .builder-progress {
    gap: 0.24rem;
    margin-bottom: 0.85rem;
  }
  .page-order-fill #builder-progress.builder-progress--compact .progress-step::after {
    font-size: 0.54rem;
    top: 0.48rem;
  }
  .builder-progress .progress-step::after {
    font-size: 0.56rem;
    top: 0.5rem;
  }
  .numbers-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .builder-workspace { grid-template-columns: 1fr; }
  .auth-actions { flex-direction: column; }
  .ticket-main-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .lotto-layout-buttons { flex-direction: column; }
  .builder-quick-actions { flex-direction: column; }
  .lotto-tables-preview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lotto-mode-buttons { grid-template-columns: 1fr; }
  .compact-inline-controls { grid-template-columns: 1fr; }
  .digit-buttons { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .chance-card-buttons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chance-series-wrap { grid-template-columns: 1fr; }
  .chance-series-row { width: 100%; }
  .chance-ranks-row {
    grid-template-columns: repeat(8, minmax(42px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }
  .trust-strip { grid-template-columns: 1fr; }
  .hero-ball {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-canal-shine { opacity: 0.55; filter: blur(14px); }
  .hero-ball {
    animation: none !important;
    opacity: 0 !important;
    visibility: hidden;
  }
  .hero-brand-link:hover .site-logo-badge--hero {
    transform: none;
  }
}
