/* ============================================================
 * abcwin.css - Mobile-first casino styling for abcwin.click
 * All custom classes use the "s5bc-" prefix.
 * Palette: #34495E #6C757D #8FBC8F #F5F5F5 #00FF7F #3CB371
 * ============================================================ */

:root {
  --s5bc-primary: #34495E;
  --s5bc-secondary: #6C757D;
  --s5bc-accent: #00FF7F;
  --s5bc-accent-deep: #3CB371;
  --s5bc-soft: #8FBC8F;
  --s5bc-bg: #0f1c2b;
  --s5bc-bg-alt: #182a3e;
  --s5bc-card: #1e3450;
  --s5bc-text: #F5F5F5;
  --s5bc-text-muted: #b9c6d4;
  --s5bc-border: rgba(255, 255, 255, 0.08);
  --s5bc-radius: 12px;
  --s5bc-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --s5bc-header-h: 56px;
  --s5bc-nav-h: 62px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Be Vietnam Pro", sans-serif;
  background: linear-gradient(180deg, #0f1c2b 0%, #142538 100%);
  color: var(--s5bc-text);
  line-height: 1.55;
  font-size: 15px;
}

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

/* ---------- Layout ---------- */
.s5bc-wrapper { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }
.s5bc-container { padding: 0 14px; }
main.s5bc-main { padding-bottom: calc(var(--s5bc-nav-h) + 24px); padding-top: 64px; }

/* ---------- Header ---------- */
.s5bc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--s5bc-header-h);
  background: linear-gradient(90deg, #1c3553 0%, #2c5778 100%);
  border-bottom: 2px solid var(--s5bc-accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.s5bc-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.s5bc-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; font-size: 18px; letter-spacing: 0.5px; }
.s5bc-logo img { width: 30px; height: 30px; border-radius: 6px; }
.s5bc-logo span b { color: var(--s5bc-accent); }
.s5bc-header-actions { display: flex; align-items: center; gap: 6px; }
.s5bc-hamburger {
  background: transparent; border: 0; color: #fff; font-size: 22px;
  width: 38px; height: 38px; cursor: pointer; border-radius: 8px;
}
.s5bc-hamburger:hover { background: rgba(255,255,255,0.1); }

/* ---------- Auth Buttons ---------- */
.s5bc-btn {
  border: 0; border-radius: 20px; padding: 8px 14px; font-weight: 700;
  font-size: 13px; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
  font-family: inherit;
}
.s5bc-btn:active { transform: scale(0.95); }
.s5bc-btn-login { background: transparent; color: #fff; border: 1px solid var(--s5bc-accent); }
.s5bc-btn-register {
  background: linear-gradient(90deg, var(--s5bc-accent-deep), var(--s5bc-accent));
  color: #0f1c2b; box-shadow: 0 4px 10px rgba(0,255,127,0.3);
}
.s5bc-btn-promo {
  display: inline-block; background: linear-gradient(90deg, #f5a623, #ff6b35);
  color: #1a1a1a; padding: 10px 22px; border-radius: 24px; font-weight: 800;
  text-align: center; box-shadow: 0 6px 14px rgba(245,166,35,0.4);
}
.s5bc-btn-promo:hover { filter: brightness(1.08); }
.s5bc-btn-outline {
  background: transparent; color: var(--s5bc-accent); border: 1px solid var(--s5bc-accent);
  padding: 8px 16px; border-radius: 18px; font-weight: 700;
}

/* ---------- Mobile drawer ---------- */
.s5bc-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 9998; opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.s5bc-overlay-show { opacity: 1; visibility: visible; }
.s5bc-mobile-menu {
  position: fixed; top: 0; right: -78%; width: 78%; height: 100vh;
  background: var(--s5bc-bg-alt); z-index: 9999;
  transition: right .3s ease; padding: 80px 18px 24px;
  overflow-y: auto;
}
.s5bc-menu-open { right: 0; }
.s5bc-mobile-menu a {
  display: block; padding: 12px 10px; color: var(--s5bc-text);
  border-bottom: 1px solid var(--s5bc-border); font-size: 15px;
}
.s5bc-mobile-menu a:hover { background: rgba(0,255,127,0.08); color: var(--s5bc-accent); }
.s5bc-mobile-menu .s5bc-menu-cta { margin-top: 16px; }

/* ---------- Hero carousel ---------- */
.s5bc-hero { margin: 14px 0 4px; border-radius: var(--s5bc-radius); overflow: hidden; box-shadow: var(--s5bc-shadow); }
.s5bc-slides { position: relative; aspect-ratio: 16/8; }
.s5bc-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; cursor: pointer;
}
.s5bc-slide img { width: 100%; height: 100%; object-fit: cover; }
.s5bc-slide-active { opacity: 1; }
.s5bc-slide-cap {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  padding: 28px 12px 8px; color: #fff; font-size: 13px;
}
.s5bc-slide-cap b { color: var(--s5bc-accent); font-size: 16px; display: block; }
.s5bc-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 4px; }
.s5bc-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.35); border: 0; cursor: pointer; }
.s5bc-dot-active { background: var(--s5bc-accent); width: 22px; border-radius: 6px; }

/* ---------- Section headings ---------- */
.s5bc-section { margin: 22px 0; }
.s5bc-section-title {
  display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800;
  margin: 0 0 12px; padding-left: 10px; border-left: 4px solid var(--s5bc-accent);
  color: #fff;
}
.s5bc-section-title i { color: var(--s5bc-accent); }
.s5bc-section-sub { color: var(--s5bc-text-muted); font-size: 13px; margin: -6px 0 12px 14px; }

/* ---------- Category chip bar ---------- */
.s5bc-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.s5bc-chips::-webkit-scrollbar { display: none; }
.s5bc-chip {
  flex: 0 0 auto; background: var(--s5bc-card); color: var(--s5bc-text);
  border: 1px solid var(--s5bc-border); padding: 6px 14px; border-radius: 16px;
  font-size: 12px; cursor: pointer; white-space: nowrap;
}
.s5bc-chip:hover { border-color: var(--s5bc-accent); color: var(--s5bc-accent); }

/* ---------- Game grid ---------- */
.s5bc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.s5bc-card {
  background: var(--s5bc-card); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--s5bc-border); cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
}
.s5bc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,255,127,0.18); border-color: var(--s5bc-accent); }
.s5bc-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.s5bc-card-name {
  font-size: 11px; text-align: center; padding: 6px 4px; color: var(--s5bc-text);
  background: #14233a; min-height: 32px; display: flex; align-items: center; justify-content: center;
  line-height: 1.25;
}

/* ---------- Featured / promo ---------- */
.s5bc-feature {
  background: linear-gradient(135deg, #1e3450, #2c5778); border-radius: var(--s5bc-radius);
  padding: 16px; margin: 16px 0; border: 1px solid var(--s5bc-border);
}
.s5bc-feature h3 { margin: 0 0 8px; color: var(--s5bc-accent); font-size: 17px; }
.s5bc-feature p { margin: 0 0 12px; color: var(--s5bc-text-muted); font-size: 13px; }
.s5bc-feat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.s5bc-feat-item { background: rgba(0,0,0,0.25); border-radius: 10px; padding: 12px; text-align: center; }
.s5bc-feat-item i { color: var(--s5bc-accent); font-size: 24px; }
.s5bc-feat-item b { display: block; margin-top: 6px; font-size: 13px; }
.s5bc-feat-item span { font-size: 11px; color: var(--s5bc-text-muted); }

/* ---------- Winners / RTP bars ---------- */
.s5bc-list { list-style: none; padding: 0; margin: 0; }
.s5bc-list li { background: var(--s5bc-card); border: 1px solid var(--s5bc-border); padding: 10px 12px; margin-bottom: 8px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.s5bc-list li .s5bc-win-game { color: var(--s5bc-accent); font-weight: 700; }
.s5bc-list li .s5bc-win-amt { color: #ffd34d; font-weight: 800; }
.s5bc-rtp-row { margin-bottom: 10px; }
.s5bc-rtp-row .s5bc-rtp-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.s5bc-rtp-bar { height: 8px; background: rgba(0,0,0,0.4); border-radius: 4px; overflow: hidden; }
.s5bc-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--s5bc-accent-deep), var(--s5bc-accent)); border-radius: 4px; }

/* ---------- Testimonials ---------- */
.s5bc-testi { background: var(--s5bc-card); border-radius: 10px; padding: 14px; margin-bottom: 10px; border-left: 3px solid var(--s5bc-accent); }
.s5bc-testi p { margin: 0 0 8px; font-size: 13px; color: var(--s5bc-text); }
.s5bc-testi b { color: var(--s5bc-accent); font-size: 13px; }
.s5bc-stars { color: #ffd34d; font-size: 12px; }

/* ---------- Payment icons ---------- */
.s5bc-pay { display: flex; flex-wrap: wrap; gap: 10px; }
.s5bc-pay span { background: #fff; color: #1c3553; border-radius: 6px; padding: 8px 12px; font-weight: 700; font-size: 12px; }

/* ---------- FAQ ---------- */
.s5bc-faq-item { background: var(--s5bc-card); border: 1px solid var(--s5bc-border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.s5bc-faq-q { padding: 12px 14px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.s5bc-faq-q i { color: var(--s5bc-accent); transition: transform .2s ease; }
.s5bc-faq-item.s5bc-faq-open .s5bc-faq-q i { transform: rotate(45deg); }
.s5bc-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 14px; color: var(--s5bc-text-muted); font-size: 13px; }
.s5bc-faq-item.s5bc-faq-open .s5bc-faq-a { max-height: 320px; padding: 0 14px 12px; }

/* ---------- SEO article ---------- */
.s5bc-article { color: var(--s5bc-text-muted); font-size: 14px; line-height: 1.7; }
.s5bc-article h2 { color: #fff; font-size: 17px; margin: 18px 0 8px; }
.s5bc-article h3 { color: var(--s5bc-accent); font-size: 15px; margin: 14px 0 6px; }
.s5bc-article p { margin: 0 0 10px; }
.s5bc-article a { color: var(--s5bc-accent); font-weight: 600; border-bottom: 1px dashed currentColor; }
.s5bc-article ul { padding-left: 20px; margin: 0 0 12px; }
.s5bc-article li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.s5bc-footer {
  background: #0a1421; border-top: 2px solid var(--s5bc-accent);
  padding: 22px 14px calc(var(--s5bc-nav-h) + 18px); color: var(--s5bc-text-muted); font-size: 12px;
}
.s5bc-footer-brand { margin-bottom: 14px; }
.s5bc-footer-brand b { color: var(--s5bc-accent); font-size: 16px; }
.s5bc-footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0; }
.s5bc-footer-links a { color: var(--s5bc-text-muted); font-size: 12px; }
.s5bc-footer-links a:hover { color: var(--s5bc-accent); }
.s5bc-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.s5bc-footer-promos button, .s5bc-footer-promos a {
  flex: 1 1 45%; text-align: center; padding: 8px 10px; font-size: 12px;
  border-radius: 8px; border: 1px solid var(--s5bc-accent); color: var(--s5bc-accent);
  background: transparent; cursor: pointer; font-weight: 600;
}
.s5bc-footer-promos .s5bc-btn-promo { color: #1a1a1a; border: 0; flex: 1 1 100%; }
.s5bc-footer-copy { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--s5bc-border); text-align: center; }

/* ---------- Mobile bottom nav ---------- */
.s5bc-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--s5bc-nav-h); background: linear-gradient(180deg, #1c3553, #0f1c2b);
  border-top: 1px solid var(--s5bc-border);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.4);
}
.s5bc-bottomnav .s5bc-wrapper-nav { width: 100%; max-width: 430px; margin: 0 auto; display: flex; justify-content: space-around; }
.s5bc-navbtn {
  flex: 1; background: transparent; border: 0; color: var(--s5bc-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10px; cursor: pointer; padding: 6px 2px; min-width: 60px; min-height: 56px;
  transition: color .2s ease, transform .15s ease; font-family: inherit;
  text-decoration: none; position: relative;
}
.s5bc-navbtn i, .s5bc-navbtn .material-symbols-outlined, .s5bc-navbtn ion-icon {
  font-size: 24px;
}
.s5bc-navbtn:hover { color: var(--s5bc-accent); transform: translateY(-2px); }
.s5bc-navbtn:active { transform: scale(0.92); }
.s5bc-navbtn-active { color: var(--s5bc-accent); }
.s5bc-navbtn-active::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 2px; background: var(--s5bc-accent);
}

/* ---------- Back to top ---------- */
.s5bc-totop {
  position: fixed; bottom: calc(var(--s5bc-nav-h) + 14px); right: 14px; z-index: 900;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--s5bc-accent-deep); color: #fff; font-size: 18px; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.s5bc-totop-show { opacity: 1; visibility: visible; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .s5bc-bottomnav { display: none; }
  .s5bc-hamburger { display: none; }
  .s5bc-wrapper { max-width: 960px; }
  .s5bc-grid { grid-template-columns: repeat(6, 1fr); }
  .s5bc-feat-grid { grid-template-columns: repeat(4,1fr); }
  main.s5bc-main { padding-bottom: 30px; }
  .s5bc-footer { padding-bottom: 22px; }
}
