/* ===================================================================
   שון · Bet4U — מנוע משחקי המזל | עיצוב משותף
   פלטת מותג: ירוק #00c574 על שחור, נגיעות זהב לפרסי פרימיום
   =================================================================== */

:root {
  --green: #00c574;
  --green-light: #00e88b;
  --green-dark: #00a35f;
  --green-glow: rgba(0, 197, 116, 0.45);
  --gold: #f5c451;
  --gold-light: #ffd874;
  --gold-deep: #c9952a;
  --black: #000000;
  --bg: #060807;
  --bg-2: #0c0f0e;
  --card: #101413;
  --card-2: #161b19;
  --border: #20292600;
  --border-soft: #1d2421;
  --line: #232b28;
  --white: #ffffff;
  --gray: #8a948f;
  --gray-2: #aeb6b2;
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 22px;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Heebo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--white);
  direction: rtl;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1d2421; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dark); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ===== רקע אווירה ===== */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx::before, .bg-fx::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(130px);
}
.bg-fx::before {
  top: -180px; left: 50%; transform: translateX(-50%);
  width: 560px; height: 560px; background: rgba(0, 197, 116, 0.16);
}
.bg-fx::after {
  bottom: -160px; right: -120px;
  width: 420px; height: 420px; background: rgba(245, 196, 81, 0.08);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ===== מבנה ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 20px;
}
.site-head .logo { display: flex; align-items: center; gap: 10px; }
.site-head .logo img { height: 34px; width: auto; }
.head-wa {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(37, 211, 102, 0.4); background: rgba(37, 211, 102, 0.1);
  color: var(--wa); font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; transition: .2s;
}
.head-wa:hover { background: rgba(37, 211, 102, 0.2); }
.head-wa svg { width: 16px; height: 16px; }

/* ===== Hero / כותרות ===== */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(0, 197, 116, 0.32); background: rgba(0, 197, 116, 0.1);
  color: var(--green-light); font-weight: 800; font-size: 13.5px;
  padding: 7px 16px; border-radius: 999px;
}
.badge svg { width: 15px; height: 15px; }

h1.game-title {
  font-size: clamp(34px, 6vw, 60px); font-weight: 900; line-height: 1.05;
  margin-top: 18px; letter-spacing: -0.5px;
}
.grad { background: linear-gradient(90deg, var(--green-light), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-gold { background: linear-gradient(90deg, var(--gold-light), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { color: var(--gray-2); font-size: clamp(15px, 2.2vw, 18px); margin-top: 18px; max-width: 480px; line-height: 1.7; }

/* ===== Trust badges ===== */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; max-width: 460px; }
@media (min-width: 560px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust > div { border: 1px solid var(--line); background: rgba(16,20,19,.6); border-radius: 14px; padding: 12px 8px; text-align: center; backdrop-filter: blur(6px); }
.trust .v { font-size: 19px; font-weight: 900; color: var(--green-light); }
.trust .l { font-size: 11.5px; color: var(--gray); margin-top: 2px; }

/* ===== כפתור ראשי ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(100deg, var(--green-dark), var(--green) 55%, var(--green-light));
  color: #04130c; font-weight: 900; font-size: 18px;
  padding: 16px 44px; border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 197, 116, 0.4);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn-primary:hover { box-shadow: 0 18px 46px rgba(0, 197, 116, 0.6); filter: brightness(1.06); }
.btn-primary:active { transform: scale(.96); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.3); }
.btn-primary svg { width: 22px; height: 22px; }
.cta-note { font-size: 12px; color: var(--gray); margin-top: 12px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: rgba(16,20,19,.6);
  color: var(--gray-2); font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 999px; transition: .2s;
}
.btn-ghost:hover { border-color: var(--green-dark); color: #fff; }

/* ===== פריסת משחק (hero) ===== */
.game-hero { display: grid; gap: 40px; align-items: center; padding: 8px 0 56px; }
@media (min-width: 940px) { .game-hero { grid-template-columns: 1fr 1fr; } }
.game-hero .copy { text-align: center; }
@media (min-width: 940px) { .game-hero .copy { text-align: right; } }
.game-hero .stage { display: flex; flex-direction: column; align-items: center; }

/* ===== סקשנים ===== */
.section-title { font-size: clamp(24px, 4vw, 32px); font-weight: 900; text-align: center; margin-bottom: 30px; }
.steps { display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border: 1px solid var(--line); background: rgba(16,20,19,.6); border-radius: var(--radius); padding: 26px 22px; text-align: center; transition: .25s; }
.step:hover { transform: translateY(-4px); border-color: rgba(0,197,116,.4); }
.step .n { width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; background: rgba(0,197,116,.14); color: var(--green-light); font-weight: 900; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.step h3 { margin-top: 16px; font-size: 18px; font-weight: 800; }
.step p { margin-top: 8px; font-size: 14px; color: var(--gray); line-height: 1.65; }

.prizes-box { border: 1px solid rgba(0,197,116,.2); background: linear-gradient(280deg, rgba(0,197,116,.09), rgba(0,197,116,.02) 60%, transparent); border-radius: 28px; padding: 34px; }
.prizes-box h2 { font-size: clamp(22px, 4vw, 30px); font-weight: 900; }
.prizes-box p.lead { color: var(--gray-2); margin-top: 8px; }
.prize-grid { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 560px) { .prize-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .prize-grid { grid-template-columns: repeat(4, 1fr); } }
.prize-item { border: 1px solid var(--line); background: rgba(12,15,14,.7); border-radius: 14px; padding: 16px; }
.prize-item .ph { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.prize-item .ph svg { width: 16px; height: 16px; color: var(--green-light); flex: none; }
.prize-item.hl .ph svg { color: var(--gold); }
.prize-item.hl { border-color: rgba(245,196,81,.35); background: linear-gradient(160deg, rgba(245,196,81,.08), rgba(12,15,14,.7)); }
.prize-item p { font-size: 13px; color: var(--gray); margin-top: 6px; line-height: 1.6; }

/* ===== Footer ===== */
.site-foot { border-top: 1px solid var(--line); background: var(--black); padding: 30px 20px; margin-top: 30px; }
.site-foot .inner { max-width: var(--maxw); margin: 0 auto; text-align: center; color: var(--gray); }
.site-foot .ages { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.site-foot .ages .a18 { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gray); color: var(--gray-2); font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.site-foot p { font-size: 12px; line-height: 1.7; max-width: 640px; margin: 0 auto; }
.site-foot .cp { margin-top: 10px; font-size: 12px; color: #555; }

/* ===== מודל זכייה ===== */
.modal-back {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.82); backdrop-filter: blur(6px); padding: 16px;
  animation: fadeIn .3s ease-out;
}
.modal {
  position: relative; width: 100%; max-width: 430px; text-align: center;
  border: 1px solid rgba(0,197,116,.3); border-radius: 28px;
  background: linear-gradient(180deg, var(--card-2), #080a09);
  padding: 30px 26px; box-shadow: 0 36px 90px rgba(0,0,0,.85);
  animation: modalIn .42s cubic-bezier(.16,1,.3,1);
}
.modal .close { position: absolute; top: 16px; left: 16px; color: var(--gray); transition: .2s; }
.modal .close:hover { color: #fff; }
.modal .close svg { width: 22px; height: 22px; }
.modal .ribbon { width: 66px; height: 66px; margin: 0 auto; border-radius: 50%; background: rgba(245,196,81,.14); display: flex; align-items: center; justify-content: center; }
.modal .ribbon svg { width: 34px; height: 34px; color: var(--gold); }
.modal .won { margin-top: 16px; font-size: 13px; font-weight: 900; letter-spacing: 3px; color: var(--gold-light); }
.modal h3 { margin-top: 4px; font-size: 27px; font-weight: 900; }
.modal .desc { margin-top: 12px; font-size: 14px; color: var(--gray-2); line-height: 1.7; }
.modal .fields { margin-top: 22px; display: grid; gap: 10px; }
.modal input { width: 100%; border: 1px solid var(--line); background: #060807; color: #fff; padding: 13px 16px; border-radius: 13px; font-size: 15px; outline: none; transition: .2s; }
.modal input::placeholder { color: #5b635f; }
.modal input:focus { border-color: rgba(0,197,116,.6); }
.modal .wa-btn { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: var(--wa); color: #04130c; font-weight: 900; font-size: 16px; padding: 15px; border-radius: 14px; box-shadow: 0 12px 28px rgba(37,211,102,.35); transition: .2s; }
.modal .wa-btn:hover { background: #2fe070; }
.modal .wa-btn:active { transform: scale(.97); }
.modal .wa-btn svg { width: 20px; height: 20px; }
.modal .alt { margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--green-light); }
.modal .alt:hover { text-decoration: underline; }

/* ===== קונפטי ===== */
.confetti-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.confetti-layer i { position: absolute; top: -24px; border-radius: 2px; }

/* ===== אנימציות ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes confettiFall { 0% { transform: translateY(-24px) rotate(0); opacity: 1; } 100% { transform: translateY(106vh) rotate(740deg); opacity: 0; } }
@keyframes lamp { 0%,100% { opacity: .35; box-shadow: 0 0 4px 1px var(--green-glow); } 50% { opacity: 1; box-shadow: 0 0 12px 4px var(--green-glow); } }
@keyframes winGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(0,197,116,0); } 50% { box-shadow: 0 0 30px 6px rgba(0,197,116,.55); } }
@keyframes reelBlur { from { filter: blur(0); } 50% { filter: blur(3px); } to { filter: blur(0); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes spinPulse { to { transform: rotate(360deg); } }
.spin { animation: spinPulse .9s linear infinite; }

/* ===== HUB ===== */
.hub-hero { text-align: center; padding: 26px 0 14px; }
.hub-grid { display: grid; gap: 18px; padding: 22px 0 60px; }
@media (min-width: 600px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .hub-grid { grid-template-columns: repeat(3, 1fr); } }
.game-card {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  background: rgba(16,20,19,.6); border-radius: 22px; padding: 26px;
  transition: transform .25s, border-color .25s, box-shadow .25s; backdrop-filter: blur(6px);
}
.game-card:hover { transform: translateY(-6px); border-color: rgba(0,197,116,.45); box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.game-card .tag { position: absolute; top: 16px; left: 16px; font-size: 11.5px; font-weight: 800; color: var(--green-light); border: 1px solid rgba(0,197,116,.3); background: rgba(0,197,116,.1); padding: 4px 11px; border-radius: 999px; }
.game-card .tag.gold { color: var(--gold); border-color: rgba(245,196,81,.35); background: rgba(245,196,81,.1); }
.game-card .ico { width: 58px; height: 58px; border-radius: 18px; background: rgba(0,197,116,.13); color: var(--green-light); display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.game-card:hover .ico { transform: scale(1.1) rotate(-4deg); }
.game-card .ico.gold { background: rgba(245,196,81,.13); color: var(--gold); }
.game-card .ico svg { width: 32px; height: 32px; }
.game-card h2 { margin-top: 18px; font-size: 23px; font-weight: 900; }
.game-card p { margin-top: 8px; font-size: 13.5px; color: var(--gray); line-height: 1.65; }
.game-card .go { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--green-light); }
.game-card .go svg { width: 16px; height: 16px; transition: transform .2s; }
.game-card:hover .go svg { transform: translateX(-5px); }

/* כלי עזר */
.center { text-align: center; }
.mt-stage { margin-top: 30px; }
.hidden { display: none !important; }
