/* =========================================================
   axis — عجلة الحظ | نظام تصميم
   ========================================================= */
:root {
  --teal: #25D4A8;
  --teal-deep: #14a886;
  --teal-soft: #dff7ee;
  --ink: #0d3b34;
  --bg: #f6fbf9;
  --muted: #6b7c78;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #25D4A8 0%, #14a886 100%);
  --shadow-primary: 0 18px 40px -12px rgba(20, 168, 134, .45);
  --shadow-card: 0 18px 40px -20px rgba(13, 59, 52, .18);
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.muted.small { font-size: 13px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Topbar ============ */
.topbar {
  background: var(--gradient-primary);
  color: #fff;
  position: relative;
  z-index: 20;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 20px;
  font-size: 13px; font-weight: 700; text-align: center;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

/* ============ Decorative blobs ============ */
.bg-blobs { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(6px); animation: blob 12s ease-in-out infinite; }
.blob-a { top: -120px; right: -120px; width: 500px; height: 500px;
  background: radial-gradient(closest-side, rgba(37,212,168,.35), transparent); }
.blob-b { bottom: -160px; left: -160px; width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(20,168,134,.22), transparent);
  animation-delay: 3s; }
@keyframes blob {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(20px,-30px) scale(1.05); }
}

/* ============ Brand / Nav ============ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; position: relative; z-index: 10;
}
.brand, .brand-mini {
  font-weight: 900; font-size: 28px; letter-spacing: -1px;
  color: var(--teal-deep); font-family: 'Cairo', sans-serif;
}
.brand-mini { font-size: 22px; }
.brand-dot { color: var(--teal); }

/* ============ Hero ============ */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  align-items: center; padding: 24px 20px 48px;
  position: relative;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 20px 64px; }
  .hero-text { text-align: right; }
}
.hero-text { text-align: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--teal-deep);
  padding: 7px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(13,59,52,.06);
  border: 1px solid rgba(20,168,134,.15);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal-deep);
  animation: pulse 1.4s ease-in-out infinite;
}

.hero-title {
  margin: 20px 0 0; font-weight: 900; line-height: 1.15;
  font-size: clamp(32px, 6vw, 60px); color: var(--ink);
}
.hero-desc {
  margin: 20px 0 0; color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
}
.hero-desc strong { color: var(--ink); font-weight: 800; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 26px;
}
@media (min-width: 900px) { .stats { justify-content: flex-start; } }
.stat-card {
  background: #fff; border-radius: var(--radius);
  padding: 12px 22px; text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(20,168,134,.08);
}
.stat-value {
  font-weight: 900; font-size: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 12px; color: var(--muted); }

/* ============ Wheel ============ */
.wheel-wrap { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }
.wheel-stage {
  position: relative; width: 100%; aspect-ratio: 1/1;
}
.wheel-halo {
  position: absolute; inset: -4%; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,212,168,.28), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.wheel-ring {
  position: absolute; inset: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 25px 60px -20px rgba(13,59,52,.25), inset 0 0 0 1px rgba(13,59,52,.05);
}
.wheel-bulb {
  position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal), 0 0 14px rgba(37,212,168,.6);
}
.bulb-pulse { animation: bulbBlink .7s ease-in-out infinite; }
@keyframes bulbBlink { 0%,100%{opacity:1} 50%{opacity:.35} }

#wheel-svg {
  position: absolute; inset: 7%; width: 86%; height: 86%;
  filter: drop-shadow(0 10px 30px rgba(13,59,52,.15));
}

.wheel-pointer {
  position: absolute; right: 50%; top: -8px;
  transform: translateX(50%); z-index: 20;
}
.pointer-tick { animation: pointerTick .08s linear infinite; }
@keyframes pointerTick {
  0%,100% { transform: translateX(50%) rotate(0deg); }
  50%     { transform: translateX(50%) rotate(-6deg); }
}

.spin-btn {
  position: absolute; left: 50%; top: 50%;
  width: 22%; height: 22%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff; font-weight: 900;
  font-size: clamp(15px, 2.4vw, 22px);
  border: 6px solid #fff;
  outline: 4px solid var(--teal-deep);
  box-shadow: var(--shadow-primary);
  z-index: 10;
  transition: transform .2s ease;
}
.spin-btn:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.05); }
.spin-btn:disabled { cursor: not-allowed; opacity: .8; }

.wheel-hint {
  text-align: center; margin-top: 24px; color: var(--muted); font-size: 14px;
}

/* ============ Locked wheel ============ */
.locked-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px; text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(20,168,134,.08);
  width: 100%; max-width: 600px; margin: 0 auto;
}
.lock-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.locked-card h3 { font-size: clamp(22px, 3.5vw, 28px); margin: 0; color: var(--ink); }
.locked-card .countdown {
  display: inline-block; margin-top: 20px;
  padding: 16px 28px; border-radius: var(--radius);
  background: var(--gradient-primary); color: #fff;
  font-size: 30px; font-weight: 900; letter-spacing: 4px;
  box-shadow: var(--shadow-primary);
}
.prize-summary {
  margin-top: 24px; padding: 16px;
  background: rgba(223,247,238,.5);
  border: 1px solid rgba(20,168,134,.15);
  border-radius: var(--radius);
}
.prize-summary .label { font-size: 12px; color: var(--muted); }
.prize-summary .value { font-size: 18px; font-weight: 900; color: var(--ink); margin-top: 4px; }

/* ============ Why / Features ============ */
.why { padding: 56px 20px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 {
  margin: 0; font-size: clamp(26px, 4vw, 36px); font-weight: 900; color: var(--ink);
}
.section-head p { margin-top: 10px; color: var(--muted); }

.features-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: #fff; border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-card);
  border: 1px solid rgba(20,168,134,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -20px rgba(13,59,52,.25);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--gradient-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-card h3 { margin: 0; font-size: 17px; font-weight: 900; color: var(--ink); }
.feature-card p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ============ Footer ============ */
.footer {
  margin-top: 40px; border-top: 1px solid rgba(20,168,134,.1);
  background: rgba(255,255,255,.7); backdrop-filter: blur(10px);
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 28px 20px;
}
@media (min-width: 768px) { .footer-inner { flex-direction: row; } }
.footer-copy { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }
.footer-links { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }

/* ============ Buttons ============ */
.btn-primary {
  background: var(--gradient-primary); color: #fff;
  padding: 14px 24px; border-radius: var(--radius);
  font-weight: 800; font-size: 16px;
  box-shadow: var(--shadow-primary);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 45px -10px rgba(20,168,134,.55); }
.btn-primary.block { display: block; width: 100%; margin-top: 24px; padding: 16px; font-size: 17px; }
.btn-link {
  display: block; margin: 12px auto 0; font-size: 13px; color: var(--muted);
}
.btn-link:hover { color: var(--teal-deep); }

/* ============ Modal ============ */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(13,59,52,.45); backdrop-filter: blur(8px);
  animation: floatUp .3s ease-out;
}
.modal-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 30px; max-width: 440px; width: 100%;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(13,59,52,.4);
  text-align: center;
}
.modal-close {
  position: absolute; left: 16px; top: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-deep);
  font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.modal-close:hover { background: var(--teal); color: #fff; }

.prize-star {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-primary);
}
.modal h3 { margin: 0; font-size: clamp(20px, 4vw, 26px); font-weight: 900; color: var(--ink); }
.prize-label {
  display: inline-block; margin-top: 18px;
  padding: 14px 26px; border-radius: var(--radius);
  background: var(--gradient-primary); color: #fff;
  font-size: clamp(18px, 3vw, 22px); font-weight: 900;
  box-shadow: var(--shadow-primary);
}

.redirect-box { padding: 16px 0; }
.spinner {
  width: 56px; height: 56px; border-radius: 50%;
  border: 4px solid var(--teal-soft); border-top-color: var(--teal-deep);
  margin: 0 auto; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.redirect-title { font-size: 18px; font-weight: 800; color: var(--ink); margin: 20px 0 4px; }

.animate-float-up { animation: floatUp .6s ease-out both; }
@keyframes floatUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ Small screens fine-tune ============ */
@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .stat-card { padding: 10px 16px; }
  .stat-value { font-size: 17px; }
  .modal-card { padding: 24px 20px; }
}

/* ===== Social Share ===== */
.share-section{padding:60px 0 40px;text-align:center}
.share-block{margin-top:22px;padding-top:18px;border-top:1px dashed rgba(20,168,134,.25)}
.share-title{font-weight:700;color:#0d3b34;margin:0 0 12px;font-size:15px}
.share-buttons{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:8px}
.share-buttons.big{gap:14px;margin-top:18px}
.share-btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 16px;border-radius:999px;border:0;cursor:pointer;
  font-family:inherit;font-weight:700;font-size:14px;color:#fff;
  transition:transform .15s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}
.share-buttons.big .share-btn{padding:14px 20px;font-size:15px}
.share-btn:hover{transform:translateY(-2px);filter:brightness(1.05)}
.share-btn svg{width:18px;height:18px;fill:currentColor}
.share-btn.facebook{background:#1877F2}
.share-btn.whatsapp{background:#25D366}
.share-btn.twitter{background:#000}
.share-btn.telegram{background:#229ED9}
.share-btn.messenger{background:#0084FF}
.share-btn.linkedin{background:#0A66C2}
.share-btn.copy{background:#14a886}
.share-btn.native{background:linear-gradient(135deg,#14a886,#0d3b34)}
@media (max-width:480px){
  .share-btn{padding:10px 13px;font-size:13px}
  .share-btn span.lbl{display:none}
  .share-buttons.big .share-btn span.lbl{display:inline}
}
.toast{
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%);
  background:#0d3b34;color:#fff;padding:12px 20px;border-radius:999px;
  font-weight:700;font-size:14px;box-shadow:0 8px 24px rgba(0,0,0,.25);
  z-index:9999;opacity:0;transition:opacity .25s ease, transform .25s ease;
  pointer-events:none
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(-6px)}
