/* ===================================================================
   שון · Bet4U — מנוע משחקי המזל | עיצוב משותף v2
   פלטת מותג: ירוק #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;
}
body.shake { animation: bodyShake .45s cubic-bezier(.36,.07,.19,.97); }

::-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; }
.site-head .side { display: inline-flex; align-items: center; gap: 10px; }
.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; }
.snd-btn {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: rgba(16,20,19,.7); color: var(--gray-2);
  display: inline-flex; align-items: center; justify-content: center; transition: .2s;
}
.snd-btn:hover { border-color: var(--green-dark); color: #fff; }
.snd-btn.off { color: var(--gray); }
.snd-btn svg { width: 17px; height: 17px; }

/* ===== 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 {
  position: relative; overflow: hidden;
  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::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 46px;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  animation: btnShine 2.8s ease-in-out infinite;
}
.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:disabled::after { animation: none; }
.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 96px; 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; }

/* ===== מודל זכייה v2 ===== */
.modal-back {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.85); backdrop-filter: blur(7px); padding: 16px;
  animation: fadeIn .3s ease-out;
}
.modal {
  position: relative; width: 100%; max-width: 440px; text-align: center;
  border: 1px solid rgba(245,196,81,.35); border-radius: 28px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(245,196,81,.12), transparent 55%),
    linear-gradient(180deg, var(--card-2), #080a09);
  padding: 30px 26px 26px; box-shadow: 0 36px 90px rgba(0,0,0,.85), 0 0 60px rgba(245,196,81,.12);
  animation: modalIn .5s cubic-bezier(.16,1,.3,1);
}
.modal .close { position: absolute; top: 16px; left: 16px; color: var(--gray); transition: .2s; z-index: 2; }
.modal .close:hover { color: #fff; }
.modal .close svg { width: 22px; height: 22px; }
.modal .ribbon {
  width: 74px; height: 74px; margin: 0 auto; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 30%, rgba(255,216,116,.35), rgba(245,196,81,.12));
  border: 1px solid rgba(245,196,81,.45);
  display: flex; align-items: center; justify-content: center;
  animation: trophyPop .6s cubic-bezier(.34,1.56,.64,1) .1s backwards;
}
.modal .ribbon::before, .modal .ribbon::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(245,196,81,.3); animation: ringPulse 1.8s ease-out infinite;
}
.modal .ribbon::after { animation-delay: .9s; }
.modal .ribbon svg { width: 36px; height: 36px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(245,196,81,.6)); }
.modal .won { margin-top: 16px; font-size: 13px; font-weight: 900; letter-spacing: 4px; color: var(--gold-light); }
.modal .big-pct {
  font-size: 62px; font-weight: 900; line-height: 1; margin-top: 4px; letter-spacing: -1px;
  background: linear-gradient(180deg, #fff2ce, var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(245,196,81,.35));
}
.modal .big-sub { font-size: 17px; font-weight: 900; margin-top: 2px; }
.modal .desc { margin-top: 10px; font-size: 13.5px; color: var(--gray-2); line-height: 1.7; }
.modal .perks { margin-top: 16px; display: grid; gap: 7px; text-align: right; }
.modal .perk { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--gray-2); }
.modal .perk svg { width: 15px; height: 15px; color: var(--green-light); flex: none; }
.modal .fields { margin-top: 18px; display: grid; gap: 10px; }
.modal .fields-note { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.45); text-align: center; }
.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: 16.5px; padding: 16px;
  border-radius: 14px; box-shadow: 0 12px 28px rgba(37,211,102,.35); transition: .2s;
  animation: ctaPulse 2s ease-in-out infinite;
}
.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; display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--green-light); }
.modal .alt:hover { text-decoration: underline; }
.modal .reply-note { margin-top: 10px; font-size: 11.5px; color: var(--gray); display: flex; align-items: center; justify-content: center; gap: 6px; }
.modal .reply-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); animation: lamp 1.4s infinite; }

/* ===== פס בונוס צף (אחרי זכייה) ===== */
.claim-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(245,196,81,.4); border-radius: 18px;
  background: linear-gradient(100deg, rgba(22,27,25,.97), rgba(12,15,14,.97));
  padding: 10px 12px; box-shadow: 0 18px 50px rgba(0,0,0,.7), 0 0 40px rgba(245,196,81,.1);
  backdrop-filter: blur(10px);
  animation: barIn .5s cubic-bezier(.16,1,.3,1);
  max-width: 560px; margin: 0 auto;
}
.claim-bar .cb-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(245,196,81,.14); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.claim-bar .cb-ico svg { width: 21px; height: 21px; }
.claim-bar .cb-txt { flex: 1; min-width: 0; line-height: 1.3; }
.claim-bar .cb-txt b { display: block; font-size: 14px; color: #fff; }
.claim-bar .cb-txt span { font-size: 11.5px; color: var(--gray-2); }
.claim-bar .cb-wa {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  background: var(--wa); color: #04130c; font-weight: 900; font-size: 14px;
  padding: 11px 18px; border-radius: 12px; animation: ctaPulse 2s ease-in-out infinite;
}
.claim-bar .cb-wa svg { width: 16px; height: 16px; }
.claim-bar .cb-x { flex: none; color: var(--gray); padding: 4px; }
.claim-bar .cb-x svg { width: 16px; height: 16px; }

/* ===== קונפטי ומטבעות ===== */
.confetti-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.confetti-layer i { position: absolute; top: -24px; border-radius: 2px; }
.confetti-layer i.round { border-radius: 50%; }
.coin-layer { position: fixed; inset: 0; z-index: 91; pointer-events: none; overflow: hidden; }
.coin-layer b {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff2ce, var(--gold) 45%, var(--gold-deep) 80%);
  box-shadow: inset 0 0 0 2.5px rgba(160,112,20,.55), 0 4px 10px rgba(0,0,0,.45);
  animation: coinSpin .5s linear infinite;
}

/* ===== הבזק זכייה ===== */
.flash-layer { position: fixed; inset: 0; z-index: 89; pointer-events: none; background: radial-gradient(circle at 50% 45%, rgba(255,232,170,.5), rgba(245,196,81,.12) 45%, transparent 75%); animation: flashOut .65s ease-out forwards; }

/* ===== אנימציות ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.9) translateY(16px); } 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); } }
@keyframes btnShine { 0% { left: -60px; } 55%, 100% { left: calc(100% + 20px); } }
@keyframes ctaPulse { 0%,100% { box-shadow: 0 12px 28px rgba(37,211,102,.35); } 50% { box-shadow: 0 12px 38px rgba(37,211,102,.6), 0 0 0 6px rgba(37,211,102,.12); } }
@keyframes trophyPop { from { transform: scale(.3) rotate(-14deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes ringPulse { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@keyframes bodyShake {
  10%, 90% { transform: translate(-1px, 1px); }
  20%, 80% { transform: translate(2px, -1px); }
  30%, 50%, 70% { transform: translate(-4px, 2px); }
  40%, 60% { transform: translate(4px, -2px); }
}
@keyframes barIn { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: translateY(0); } }
@keyframes coinSpin { 0% { transform: scaleX(1); } 50% { transform: scaleX(.18); } 100% { transform: scaleX(1); } }
@keyframes flashOut { from { opacity: 1; } to { opacity: 0; } }
.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::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.06), transparent);
  transform: skewX(-12deg); transition: left .6s ease;
}
.game-card:hover::before { left: calc(100% + 30px); }
.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; }
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after, .modal .wa-btn, .claim-bar .cb-wa { animation: none; }
}
