/* =========================================================================
   OMAD CLUB — money page (wheel of fortune)
   Stack: HTML5 + CSS3, mobile-first.
   ========================================================================= */

:root {
  --color-bg-1: #1a0033;
  --color-bg-2: #000000;
  --color-purple: #9333ea;
  --color-pink: #ff0080;
  --color-gold: #ffd700;
  --color-gold-2: #ff6b00;
  --color-text: #ffffff;
  --color-text-dim: #c4b8d4;

  --font-head: 'Bebas Neue', 'Montserrat', Impact, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --radius: 14px;

  --shadow-glow: 0 0 30px rgba(255, 215, 0, .35);
  --shadow-pink: 0 0 24px rgba(255, 0, 128, .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background:
    radial-gradient(circle at 20% 10%, rgba(147, 51, 234, .35), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 0, 128, .25), transparent 55%),
    linear-gradient(180deg, var(--color-bg-1) 0%, var(--color-bg-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 .4em;
  line-height: 1.05;
}

p { margin: 0 0 1em; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ==== Header ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 5, 35, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 215, 0, .2);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 8px;
}
.brand img { height: 40px; width: auto; }
.brand { display: flex; align-items: center; gap: 10px; }

.flag-uz {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
}
.flag-uz__flag {
  display: inline-block;
  width: 26px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(to bottom, #1eb53a 0 33%, #ce1126 33% 36%, #fff 36% 64%, #ce1126 64% 67%, #0099b5 67% 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
}

.header-status {
  color: var(--color-gold);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}

/* ==== Hero ============================================================== */
.hero {
  padding: 28px 16px 12px;
  text-align: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-2), var(--color-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 30px rgba(255, 215, 0, .25);
}
.hero h2 {
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: .3em;
}
.hero h3 {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--color-gold);
  font-weight: 600;
}

.host-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px auto;
  max-width: 720px;
  padding: 0 6px;
}
.host-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #3a2a5e, #1a0033);
  border: 3px solid var(--color-gold);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(255, 215, 0, .4);
}
.host-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.speech-bubble {
  background: rgba(255, 255, 255, .96);
  color: #1a0033;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.4;
  position: relative;
  text-align: left;
}
.speech-bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 22px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 12px 8px 0;
  border-color: transparent rgba(255, 255, 255, .96) transparent transparent;
}
.speech-bubble strong { color: var(--color-gold-2); }

/* ==== Wheel of fortune ================================================== */
.wheel-section { padding: 6px 12px 26px; text-align: center; }

.spins-left {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--color-text);
}
.spins-left strong {
  color: var(--color-gold);
  font-size: 1.4rem;
  display: inline-block;
  margin: 0 4px;
}

.wheel-wrap {
  position: relative;
  width: min(calc(100vw - 44px), 420px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 22px;
}

/* Pointer */
.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 0; height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 32px solid var(--color-gold);
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, .8));
}
.wheel-pointer::after {
  content: "";
  position: absolute;
  top: -32px;
  left: -4px;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
}

/* Bulbs around wheel */
.wheel-bulbs {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.wheel-bulbs i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 8px var(--color-gold), 0 0 14px rgba(255, 215, 0, .6);
  top: 50%; left: 50%;
  transform-origin: 0 0;
  animation: bulb-blink 1s infinite;
}
@keyframes bulb-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* Wheel SVG container */
.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--color-gold);
  box-shadow:
    0 0 0 4px rgba(255, 215, 0, .25),
    0 0 40px rgba(255, 215, 0, .35),
    inset 0 0 30px rgba(0, 0, 0, .35);
  position: relative;
  background: #000;
  transition: transform var(--spin-duration, 4500ms) cubic-bezier(0.17, 0.67, 0.32, 1.0);
  transform: rotate(0deg);
  will-change: transform;
}

/* Center badge */
.wheel-center {
  position: absolute;
  top: 50%; left: 50%;
  width: 22%;
  height: 22%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 40%, var(--color-gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: 0 0 12px rgba(255, 215, 0, .9);
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--color-bg-1);
  text-align: center;
  font-size: clamp(.7rem, 2.4vw, 1rem);
  line-height: .95;
  padding: 4px;
}

/* ==== Main spin button ================================================== */
.btn-spin, .btn-cta {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
  padding: 16px 38px;
  font-size: clamp(1.05rem, 3.5vw, 1.4rem);
  background: linear-gradient(90deg, var(--color-gold-2), var(--color-gold));
  color: var(--color-bg-1);
  box-shadow:
    0 6px 0 #b8530a,
    0 8px 22px rgba(255, 107, 0, .45),
    0 0 28px rgba(255, 215, 0, .35);
  transition: transform .12s ease, box-shadow .12s ease;
  animation: pulse 1.6s infinite;
}
.btn-spin:hover, .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 #b8530a,
    0 12px 28px rgba(255, 107, 0, .55),
    0 0 34px rgba(255, 215, 0, .5);
}
.btn-spin:active, .btn-cta:active {
  transform: translateY(2px);
  box-shadow:
    0 3px 0 #b8530a,
    0 5px 14px rgba(255, 107, 0, .35);
}
.btn-spin:disabled {
  background: linear-gradient(90deg, #5a5a5a, #888);
  color: #cfcfcf;
  cursor: not-allowed;
  animation: none;
  box-shadow: 0 4px 0 #2a2a2a;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

.btn-cta--big {
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  padding: 20px 44px;
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 16px auto;
}

/* ==== Sections =========================================================== */
.section {
  padding: 36px 16px;
}
.section__title {
  text-align: center;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: var(--color-gold);
  margin-bottom: 22px;
  text-shadow: 0 2px 10px rgba(255, 215, 0, .3);
}

/* ==== Reviews =========================================================== */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.review {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 215, 0, .25);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review__avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--color-gold);
}
.review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review__name {
  font-weight: 700;
  color: var(--color-text);
  font-size: .98rem;
  margin: 0;
}
.review__win {
  color: var(--color-gold);
  font-weight: 700;
  font-size: .92rem;
}
.review__date {
  color: var(--color-text-dim);
  font-size: .8rem;
}
.review__stars { color: var(--color-gold); letter-spacing: 2px; font-size: .95rem; }
.review__text {
  color: var(--color-text);
  font-size: .9rem;
  margin: 0;
  line-height: 1.5;
}

/* ==== FAQ =============================================================== */
.faq { max-width: 720px; margin: 0 auto; }
.faq__item {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 215, 0, .2);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq__q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq__q::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-gold);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.faq__item.is-open .faq__q::after { transform: rotate(45deg); }
.faq__a {
  display: none;
  padding: 0 18px 16px;
  color: var(--color-text-dim);
  font-size: .94rem;
  line-height: 1.55;
}
.faq__item.is-open .faq__a { display: block; }

/* ==== Final CTA ========================================================= */
.final-cta {
  padding: 36px 16px 18px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(255, 0, 128, .18), transparent 70%),
    rgba(0, 0, 0, .25);
  border-top: 1px solid rgba(255, 215, 0, .3);
  border-bottom: 1px solid rgba(255, 215, 0, .3);
  margin-top: 30px;
}
.final-cta h2 {
  color: var(--color-gold);
  font-size: clamp(1.4rem, 5vw, 2rem);
}
.final-cta p { color: var(--color-text); margin-bottom: 14px; }
.visitor-counter { color: var(--color-text-dim); font-size: .9rem; margin-top: 10px; }
.visitor-counter strong { color: var(--color-gold); }

/* ==== Footer ============================================================ */
.site-footer {
  text-align: center;
  padding: 26px 16px 22px;
  color: var(--color-text-dim);
  font-size: .82rem;
  background: rgba(0, 0, 0, .3);
}
.site-footer .brand { justify-content: center; margin-bottom: 10px; }
.site-footer__links {
  margin: 8px 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer__links a { color: var(--color-text-dim); text-decoration: underline; opacity: .7; }
.site-footer__disclaimer { font-size: .75rem; opacity: .65; margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ==== Modals ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  animation: fade-in .25s ease;
}
.modal-backdrop.is-open { display: flex; }
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: linear-gradient(160deg, #2a0d4d 0%, #14002b 100%);
  border: 2px solid var(--color-gold);
  border-radius: 18px;
  padding: 28px 22px 24px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 215, 0, .25);
  position: relative;
  animation: pop-in .35s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: scale(1); }
}

.modal h2 {
  color: var(--color-gold);
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: .35em;
  text-shadow: 0 2px 12px rgba(255, 215, 0, .4);
}
.modal__emoji { font-size: 3.4rem; line-height: 1; margin-bottom: 6px; }
.modal p { color: var(--color-text); font-size: 1rem; margin-bottom: 16px; }
.modal__win-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  font-size: 1.05rem;
  color: var(--color-text);
}
.modal__win-list li {
  padding: 6px 0;
  font-weight: 600;
}
.modal__win-list li::before {
  content: "✅ ";
}
.modal__timer {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--color-pink);
  letter-spacing: 2px;
  margin: 14px 0 6px;
  text-shadow: 0 0 14px rgba(255, 0, 128, .6);
}
.modal__timer-label { color: var(--color-text); font-size: .92rem; margin-bottom: 12px; }
.modal__small { font-size: .82rem; color: var(--color-text-dim); margin-top: 12px; }

/* ==== Confetti canvas =================================================== */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
}

/* ==== Responsive ======================================================== */
@media (max-width: 540px) {
  .site-header__inner { padding: 8px 10px; }
  .brand img { height: 34px; }
  .flag-uz span:not(.flag-uz__flag) { display: none; }
  .wheel-wrap { width: min(calc(100vw - 64px), 420px); }
  .host-block { gap: 10px; }
  .host-photo { width: 70px; height: 70px; }
  .speech-bubble { font-size: .85rem; padding: 10px 12px; }
  .btn-spin, .btn-cta { padding: 14px 28px; }
  .btn-cta--big { padding: 16px 24px; }
}

@media (min-width: 760px) {
  .hero { padding: 40px 16px 20px; }
  .host-block { gap: 22px; }
  .host-photo { width: 130px; height: 130px; }
  .speech-bubble { font-size: 1.05rem; padding: 14px 18px; }
  .wheel-wrap { width: min(86vw, 480px); }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .btn-spin, .btn-cta { animation: none; }
  .wheel-bulbs i { animation: none; }
}
