/* ===========================================================
   OKPay (okpay.homes) - Core Base Stylesheet
   Prefix: s131-
   Palette: #0000FF (royal blue) | #141414 (deep charcoal) | #F0F8FF (alice blue)
   Mobile-first HTML5 casino layout, max-width 430px
   All comments in English.
   =========================================================== */

:root {
  --s131-primary: #0000FF;
  --s131-primary-soft: #2a4cff;
  --s131-primary-deep: #0000b8;
  --s131-bg: #141414;
  --s131-bg-2: #1c1f2a;
  --s131-bg-3: #20253a;
  --s131-card: #1e2235;
  --s131-card-2: #232842;
  --s131-text: #F0F8FF;
  --s131-text-soft: #c5cee0;
  --s131-text-dim: #8b93ad;
  --s131-accent: #ffd54a;
  --s131-accent-2: #21e6c1;
  --s131-danger: #ff4d6d;
  --s131-border: rgba(240, 248, 255, 0.10);
  --s131-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --s131-radius: 14px;
  --s131-radius-sm: 10px;
  --s131-header-h: 60px;
  --s131-bottomnav-h: 62px;
  --s131-max: 430px;
  --s131-grad: linear-gradient(135deg, #0000FF 0%, #2a4cff 55%, #21e6c1 100%);
  --s131-grad-dark: linear-gradient(160deg, #0c0f1f 0%, #141414 60%, #1c1f2a 100%);
  --s131-font: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--s131-font);
  background: var(--s131-grad-dark);
  color: var(--s131-text);
  line-height: 1.5;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--s131-text); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--s131-accent); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.s131-container {
  width: 100%;
  max-width: var(--s131-max);
  margin: 0 auto;
  padding: 0 1.2rem;
}

.s131-wrapper {
  width: 100%;
  max-width: var(--s131-max);
  margin: 0 auto;
}

/* ============ Header ============ */
.s131-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--s131-border);
}
.s131-header-inner {
  max-width: var(--s131-max);
  margin: 0 auto;
  height: var(--s131-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  gap: 0.6rem;
}
.s131-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.3px;
}
.s131-logo-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--s131-grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 255, 0.45);
}
.s131-logo-text {
  background: var(--s131-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
}
.s131-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.s131-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.s131-btn:active { transform: scale(0.96); }
.s131-btn-login {
  background: transparent;
  color: var(--s131-text);
  border: 1.5px solid var(--s131-primary-soft);
}
.s131-btn-login:hover { background: rgba(42, 76, 255, 0.18); color: var(--s131-text); }
.s131-btn-register {
  background: var(--s131-grad);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 255, 0.45);
}
.s131-btn-register:hover { color: #fff; filter: brightness(1.08); }
.s131-menu-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(240, 248, 255, 0.06);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: var(--s131-text);
}

/* ============ Mobile Menu Drawer ============ */
.s131-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
.s131-menu-overlay.s131-open { opacity: 1; visibility: visible; }
.s131-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: var(--s131-bg-2);
  z-index: 9999;
  padding: 1.6rem 1.4rem;
  overflow-y: auto;
  transition: right .3s ease;
  border-left: 1px solid var(--s131-border);
}
.s131-mobile-menu.s131-open { right: 0; }
.s131-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--s131-border);
  margin-bottom: 1.2rem;
}
.s131-menu-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(240, 248, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}
.s131-menu-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.s131-menu-cta .s131-btn { padding: 0.8rem 0; font-size: 1.3rem; }
.s131-menu-section h3 {
  font-size: 1.15rem;
  color: var(--s131-text-dim);
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.s131-menu-section a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid rgba(240, 248, 255, 0.05);
  font-size: 1.3rem;
}
.s131-menu-section a i { width: 22px; color: var(--s131-primary-soft); }

/* ============ Main ============ */
.s131-main {
  padding-top: calc(var(--s131-header-h) + 6px);
  padding-bottom: 0;
}
@media (max-width: 768px) {
  .s131-main { padding-bottom: calc(var(--s131-bottomnav-h) + 18px); }
}

.s131-section {
  padding: 2rem 0;
}
.s131-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 1.2rem;
}
.s131-section-title {
  font-size: 1.55rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.s131-section-title i { color: var(--s131-accent); }
.s131-section-more {
  font-size: 1.2rem;
  color: var(--s131-accent);
  font-weight: 600;
}

/* ============ Hero / Carousel ============ */
.s131-hero {
  margin-top: 0.6rem;
  padding: 0 1.2rem;
}
.s131-carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--s131-shadow);
}
.s131-carousel-track {
  display: flex;
  transition: transform .45s ease;
}
.s131-slide {
  min-width: 100%;
  position: relative;
}
.s131-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.s131-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0) 35%, rgba(20,20,20,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
}
.s131-slide-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.s131-slide-sub {
  font-size: 1.15rem;
  color: var(--s131-text-soft);
  margin-bottom: 0.6rem;
}
.s131-slide-cta {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: var(--s131-grad);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 999px;
  width: fit-content;
}
.s131-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.s131-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(240,248,255,0.5);
  transition: background .2s ease, width .2s ease;
}
.s131-dot.s131-active {
  background: var(--s131-accent);
  width: 20px;
  border-radius: 999px;
}

/* ============ Promo Link Inline ============ */
.s131-promo-link {
  color: var(--s131-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.s131-promo-link:hover { color: var(--s131-accent-2); }

/* ============ Game Grid ============ */
.s131-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  padding: 0 1.2rem;
}
.s131-game-card {
  background: var(--s131-card);
  border-radius: var(--s131-radius-sm);
  overflow: hidden;
  border: 1px solid var(--s131-border);
  transition: transform .18s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.s131-game-card:active { transform: scale(0.97); }
.s131-game-card:hover { box-shadow: 0 8px 20px rgba(0,0,255,0.25); border-color: var(--s131-primary-soft); }
.s131-game-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0c0f1f;
  overflow: hidden;
}
.s131-game-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.s131-game-badge {
  position: absolute;
  top: 5px; left: 5px;
  background: var(--s131-grad);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
}
.s131-game-badge.s131-hot { background: linear-gradient(135deg, #ff4d6d, #ffd54a); }
.s131-game-name {
  padding: 0.45rem 0.5rem;
  font-size: 1.05rem;
  text-align: center;
  font-weight: 600;
  color: var(--s131-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Featured Block ============ */
.s131-featured {
  padding: 0 1.2rem;
  display: grid;
  gap: 1rem;
}
.s131-feature-card {
  background: var(--s131-grad);
  border-radius: var(--s131-radius);
  padding: 1.2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.s131-feature-card.s131-dark {
  background: var(--s131-card);
  border: 1px solid var(--s131-border);
  color: var(--s131-text);
}
.s131-feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.s131-feature-card p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 0.7rem;
}
.s131-feature-card.s131-dark p { color: var(--s131-text-soft); }
.s131-feature-cta {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--s131-primary);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============ SEO Content / Article ============ */
.s131-article {
  padding: 0 1.2rem;
  color: var(--s131-text-soft);
  font-size: 1.18rem;
  line-height: 1.55;
}
.s131-article h2 {
  color: var(--s131-text);
  font-size: 1.5rem;
  margin: 1.4rem 0 0.6rem;
}
.s131-article h3 {
  color: var(--s131-accent);
  font-size: 1.25rem;
  margin: 1rem 0 0.4rem;
}
.s131-article p { margin-bottom: 0.7rem; }
.s131-article ul { margin: 0.5rem 0 0.8rem 1.2rem; list-style: disc; }
.s131-article li { margin-bottom: 0.3rem; }

/* ============ FAQ ============ */
.s131-faq-item {
  background: var(--s131-card);
  border: 1px solid var(--s131-border);
  border-radius: var(--s131-radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.s131-faq-q {
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 1.18rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--s131-text);
}
.s131-faq-q .s131-icon { color: var(--s131-accent); transition: transform .2s ease; }
.s131-faq-item.s131-open .s131-faq-q .s131-icon { transform: rotate(45deg); }
.s131-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 1rem;
  color: var(--s131-text-soft);
  font-size: 1.12rem;
}
.s131-faq-item.s131-open .s131-faq-a {
  max-height: 600px;
  padding: 0 1rem 0.9rem;
}

/* ============ Testimonials ============ */
.s131-testi-grid {
  display: grid;
  gap: 0.7rem;
  padding: 0 1.2rem;
}
.s131-testi {
  background: var(--s131-card);
  border: 1px solid var(--s131-border);
  border-radius: var(--s131-radius-sm);
  padding: 1rem;
}
.s131-testi-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.s131-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--s131-grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}
.s131-testi-name { font-weight: 700; font-size: 1.15rem; }
.s131-stars { color: var(--s131-accent); font-size: 1rem; }
.s131-testi-text { font-size: 1.12rem; color: var(--s131-text-soft); }

/* ============ Payment Methods ============ */
.s131-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.2rem;
}
.s131-pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  background: var(--s131-card);
  border: 1px solid var(--s131-border);
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
}
.s131-pay-chip i { color: var(--s131-accent-2); }

/* ============ Winners ============ */
.s131-winners {
  background: var(--s131-card);
  border: 1px solid var(--s131-border);
  border-radius: var(--s131-radius);
  margin: 0 1.2rem;
  padding: 1rem;
}
.s131-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(240,248,255,0.07);
  font-size: 1.12rem;
}
.s131-winner-row:last-child { border-bottom: none; }
.s131-winner-name { color: var(--s131-text-soft); }
.s131-winner-game { color: var(--s131-text-dim); font-size: 1rem; }
.s131-winner-amount { color: var(--s131-accent); font-weight: 800; }

/* ============ App Download CTA ============ */
.s131-app-cta {
  background: var(--s131-grad);
  border-radius: var(--s131-radius);
  margin: 0 1.2rem;
  padding: 1.4rem;
  color: #fff;
  text-align: center;
}
.s131-app-cta h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.s131-app-cta p { font-size: 1.15rem; margin-bottom: 0.9rem; color: rgba(255,255,255,0.95); }
.s131-app-btns {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.s131-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: #fff;
  color: var(--s131-primary);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.15rem;
}

/* ============ Footer ============ */
.s131-footer {
  background: #0c0f1f;
  border-top: 1px solid var(--s131-border);
  padding: 2rem 1.2rem 1rem;
  margin-top: 2rem;
}
.s131-footer-brand {
  font-size: 1.15rem;
  color: var(--s131-text-soft);
  margin-bottom: 1rem;
  line-height: 1.55;
}
.s131-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 0.8rem 0 1.2rem;
}
.s131-footer-promos .s131-btn {
  background: var(--s131-grad);
  color: #fff;
  font-size: 1.1rem;
  padding: 0.7rem 0;
}
.s131-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1rem;
  margin-bottom: 1.2rem;
}
.s131-footer-links a {
  font-size: 1.12rem;
  color: var(--s131-text-soft);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.s131-footer-links a i { color: var(--s131-primary-soft); }
.s131-footer-copy {
  border-top: 1px solid var(--s131-border);
  padding-top: 1rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--s131-text-dim);
}

/* ============ Mobile Bottom Nav ============ */
.s131-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--s131-bottomnav-h);
  background: rgba(12, 15, 31, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--s131-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.s131-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1rem;
  color: var(--s131-text-dim);
  transition: color .2s ease, transform .15s ease;
}
.s131-bottomnav-btn i { font-size: 2rem; }
.s131-bottomnav-btn .material-icons-outlined,
.s131-bottomnav-btn .material-icons { font-size: 2.2rem; }
.s131-bottomnav-btn:active { transform: scale(0.92); }
.s131-bottomnav-btn.s131-active {
  color: var(--s131-accent);
}
.s131-bottomnav-btn.s131-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 36px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: var(--s131-accent);
}
.s131-bottomnav-btn { position: relative; }

@media (min-width: 769px) {
  .s131-bottomnav { display: none; }
  .s131-header-actions .s131-menu-btn { display: none; }
  body { max-width: 430px; margin: 0 auto; box-shadow: 0 0 60px rgba(0,0,0,0.6); }
}

@media (max-width: 360px) {
  .s131-game-grid { grid-template-columns: repeat(2, 1fr); }
  .s131-section-title { font-size: 1.4rem; }
}

/* ============ Misc Utility ============ */
.s131-center { text-align: center; }
.s131-mt-1 { margin-top: 0.6rem; }
.s131-mt-2 { margin-top: 1.2rem; }
.s131-hide-desktop { display: block; }
@media (min-width: 769px) { .s131-hide-desktop { display: block; } }
