/* ============================================================
 * okbet free spin - layout stylesheet (layout-180d.css)
 * Every custom class uses the pg18- prefix.
 * Palette: #6A5ACD / #7B68EE / #CC99FF / #333333
 * Mobile-first (max 430px), scales up to desktop.
 * ============================================================ */

:root {
  --pg18-primary: #6A5ACD;
  --pg18-secondary: #7B68EE;
  --pg18-accent: #CC99FF;
  --pg18-bg: #1a1730;
  --pg18-bg-2: #221d40;
  --pg18-surface: #2a2455;
  --pg18-text: #f3f0ff;
  --pg18-text-dim: #b9aede;
  --pg18-dark: #333333;
  --pg18-gold: #ffcf5c;
  --pg18-radius: 14px;
  --pg18-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #3a2f7a 0%, var(--pg18-bg) 55%, #110e22 100%);
  color: var(--pg18-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--pg18-accent); text-decoration: none; }
a:hover { color: var(--pg18-gold); }

/* ---------- Layout containers ---------- */
.pg18-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
.pg18-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.pg18-main {
  flex: 1;
  padding-top: 64px;
  padding-bottom: 96px;
}

/* ---------- Header ---------- */
.pg18-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 1000;
  background: linear-gradient(90deg, var(--pg18-primary), var(--pg18-secondary));
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.pg18-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.pg18-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1.7rem;
}
.pg18-brand img { width: 30px; height: 30px; border-radius: 8px; }
.pg18-brand span { line-height: 1.1rem; }
.pg18-brand small { display: block; font-size: 1.05rem; color: var(--pg18-accent); font-weight: 500; }

.pg18-actions { display: flex; align-items: center; gap: 6px; }
.pg18-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 1.35rem;
  font-weight: 700;
  transition: transform .15s ease, filter .15s ease;
}
.pg18-btn:active { transform: scale(0.95); }
.pg18-btn:hover { filter: brightness(1.08); }
.pg18-btn-register {
  background: linear-gradient(180deg, var(--pg18-gold), #e6a83a);
  color: #3a2a05;
  box-shadow: 0 3px 10px rgba(255,207,92,0.35);
}
.pg18-btn-login {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.pg18-icon-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.8rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Mobile slide-down menu ---------- */
.pg18-mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--pg18-bg-2);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px 14px;
  transform: translateY(-130%);
  transition: transform .28s ease;
  z-index: 9999;
  max-height: 70vh;
  overflow-y: auto;
}
.pg18-menu-open { transform: translateY(0); }
.pg18-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  color: var(--pg18-text);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1.45rem;
}
.pg18-mobile-menu a i.material-icons,
.pg18-mobile-menu a i.fas,
.pg18-mobile-menu a i.bi { color: var(--pg18-accent); font-size: 1.8rem; }

/* ---------- Hero / Slider ---------- */
.pg18-hero {
  margin: 14px 0 6px;
  border-radius: var(--pg18-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--pg18-shadow);
}
.pg18-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.pg18-slide img { width: 100%; height: 200px; object-fit: cover; }
.pg18-slide-active { opacity: 1; position: relative; }
.pg18-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.72), transparent);
  padding: 26px 14px 12px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}
.pg18-dots {
  position: absolute; bottom: 8px; right: 12px;
  display: flex; gap: 6px; z-index: 3;
}
.pg18-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
}
.pg18-dot-active { background: var(--pg18-gold); }

/* ---------- Section title ---------- */
.pg18-section { margin: 22px 0 6px; }
.pg18-section-head {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px;
  font-size: 1.7rem; font-weight: 700;
}
.pg18-section-head .pg18-bar {
  width: 5px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, var(--pg18-accent), var(--pg18-primary));
}
.pg18-section-head .pg18-link { margin-left: auto; font-size: 1.25rem; font-weight: 600; }

/* ---------- Game grid ---------- */
.pg18-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pg18-card {
  background: var(--pg18-surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(204,153,255,0.15);
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
  color: var(--pg18-text);
  cursor: pointer;
}
.pg18-card:hover { transform: translateY(-2px); box-shadow: var(--pg18-shadow); color: var(--pg18-text); }
.pg18-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #0f0c22; }
.pg18-card-name {
  padding: 6px 8px;
  font-size: 1.2rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg18-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: linear-gradient(180deg, var(--pg18-gold), #e6a83a);
  color: #3a2a05;
  font-size: 1rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

/* ---------- Info / feature blocks ---------- */
.pg18-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(204,153,255,0.15);
  border-radius: var(--pg18-radius);
  padding: 14px;
  margin: 10px 0;
}
.pg18-panel h2 { font-size: 1.6rem; margin: 4px 0 8px; color: var(--pg18-accent); }
.pg18-panel h3 { font-size: 1.45rem; margin: 10px 0 6px; color: var(--pg18-gold); }
.pg18-panel p { margin: 0 0 8px; color: var(--pg18-text-dim); font-size: 1.35rem; }
.pg18-list { margin: 6px 0 0; padding-left: 20px; }
.pg18-list li { margin-bottom: 6px; color: var(--pg18-text-dim); font-size: 1.35rem; }

/* Inline promotional text link */
.pg18-play-link {
  color: var(--pg18-gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* CTA strip */
.pg18-cta {
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(135deg, var(--pg18-primary), var(--pg18-secondary));
  border-radius: var(--pg18-radius);
  padding: 18px;
  color: #fff;
  margin: 14px 0;
}
.pg18-cta h2 { margin: 0; font-size: 1.8rem; color: #fff; }
.pg18-cta p { margin: 4px 0 8px; color: rgba(255,255,255,0.85); }
.pg18-cta .pg18-btn { align-self: flex-start; }

/* Feature list (icon + text rows) */
.pg18-features { display: grid; gap: 10px; }
.pg18-feature {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border-radius: 12px; padding: 12px;
  border: 1px solid rgba(204,153,255,0.1);
}
.pg18-feature i { font-size: 2.4rem; color: var(--pg18-gold); flex-shrink: 0; }
.pg18-feature strong { color: var(--pg18-accent); display: block; margin-bottom: 2px; font-size: 1.4rem; }
.pg18-feature span { color: var(--pg18-text-dim); font-size: 1.3rem; }

/* Winner list / testimonials */
.pg18-winners { display: grid; gap: 8px; }
.pg18-winner {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px; padding: 8px 10px;
  border-left: 3px solid var(--pg18-gold);
}
.pg18-winner .pg18-amt { margin-left: auto; color: var(--pg18-gold); font-weight: 700; }

/* Payment chips */
.pg18-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg18-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(204,153,255,0.2);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 1.25rem;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--pg18-text-dim);
}

/* RTP mini bars */
.pg18-rtp-row { margin-bottom: 10px; }
.pg18-rtp-top { display: flex; justify-content: space-between; font-size: 1.25rem; margin-bottom: 4px; }
.pg18-rtp-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; }
.pg18-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--pg18-accent), var(--pg18-gold)); }

/* ---------- Footer ---------- */
.pg18-footer {
  background: #110e22;
  border-top: 1px solid rgba(204,153,255,0.15);
  padding: 22px 14px 80px;
  margin-top: 24px;
}
.pg18-footer-inner { max-width: 430px; margin: 0 auto; }
.pg18-footer h3 { font-size: 1.4rem; color: var(--pg18-accent); margin: 14px 0 8px; }
.pg18-footer p { color: var(--pg18-text-dim); font-size: 1.3rem; }
.pg18-footer-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin: 10px 0;
}
.pg18-footer-links a { color: var(--pg18-text-dim); font-size: 1.25rem; }
.pg18-footer-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pg18-copy { font-size: 1.15rem; color: #6c6092; text-align: center; margin-top: 14px; }

/* ---------- Mobile bottom nav ---------- */
.pg18-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  z-index: 1000;
  background: linear-gradient(180deg, #2a2455, #110e22);
  border-top: 1px solid rgba(204,153,255,0.25);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 4px 0;
}
.pg18-bottom-nav button {
  flex: 1; min-width: 60px; min-height: 54px;
  background: transparent;
  border: 0;
  color: var(--pg18-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: color .15s ease, transform .15s ease;
  position: relative;
}
.pg18-bottom-nav button .material-icons,
.pg18-bottom-nav button .fas,
.pg18-bottom-nav button .far,
.pg18-bottom-nav button .bi,
.pg18-bottom-nav button .ion {
  font-size: 22px;
}
.pg18-bottom-nav button.pg18-active { color: var(--pg18-gold); }
.pg18-bottom-nav button:active { transform: scale(0.92); }
.pg18-bottom-nav button.pg18-promo { color: var(--pg18-accent); }
.pg18-nav-badge {
  position: absolute;
  top: 4px; right: 22%;
  background: #ff4d6d;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

/* ---------- Toast ---------- */
.pg18-toast {
  position: fixed;
  left: 50%; bottom: 80px;
  transform: translate(-50%, 20px);
  background: rgba(20,16,40,0.95);
  color: var(--pg18-gold);
  border: 1px solid rgba(204,153,255,0.4);
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1500;
  font-size: 1.3rem;
}
.pg18-toast-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .pg18-bottom-nav { display: none; }
  .pg18-header-inner,
  .pg18-footer-inner,
  .pg18-container { max-width: 720px; }
  .pg18-grid { grid-template-columns: repeat(6, 1fr); }
  .pg18-main { padding-bottom: 40px; }
}

/* Larger phones */
@media (min-width: 431px) and (max-width: 768px) {
  .pg18-container,
  .pg18-header-inner,
  .pg18-footer-inner { max-width: 480px; }
}
