/* Betting247 – Page 10 */
:root {
  --b247-header-bg: #2d2d2d;
  --b247-nav-bg: #e8a317;
  --b247-nav-text: #1a1a1a;
  --b247-nav-badge: #c0392b;
  --b247-main-bg: #e8e4dc;
  --b247-btn-yellow: #f1c40f;
  --b247-btn-yellow-hover: #f7dc6f;
  --b247-input-bg: #1a1a1a;
  --b247-input-border: #444;
  --b247-text: #fff;
  --b247-text-muted: #aaa;
  --b247-tile-radius: 8px;
}

* {
  box-sizing: border-box;
}

body.b247-page {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--b247-main-bg);
  color: #333;
  min-height: 100vh;
}

.b247-wrap {
  max-width: 1349px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0,0,0,.08);
  overflow: visible;
}

/* ----- Header bar: full width, inner 1349px x 58px with padding ----- */
.b247-header-bar {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  height: 58px;
  padding: 15px 6px;
  box-sizing: border-box;
  background: var(--b247-header-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.b247-header-inner {
  width: 100%;
  max-width: 1349px;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Left div: 280px x 27px – logo + search, content align left */
.b247-header-left {
  width: 280px;
  height: 27px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

/* Right div: 1057px x 27px – username, password, Validation, code, Login, Sign Up, content align right */
.b247-header-right {
  width: 1057px;
  height: 27px;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.b247-logo {
  display: block;
  flex-shrink: 0;
}

.b247-logo-img {
  display: block;
  height: 27px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

.b247-search-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  height: 27px;
}

.b247-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--b247-text-muted);
  font-size: 14px;
}

.b247-search-input {
  width: 100%;
  height: 27px;
  padding: 0 10px 0 28px;
  background: var(--b247-input-bg);
  border: 1px solid var(--b247-input-border);
  border-radius: 4px;
  color: var(--b247-text);
  font-size: 12px;
  line-height: 1;
  box-sizing: border-box;
}

.b247-search-input::placeholder {
  color: var(--b247-text-muted);
}

.b247-message {
  position: absolute;
  left: 0;
  right: 0;
  top: -26px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.b247-message--success {
  background: #27ae60;
  color: #fff;
}

.b247-message--error {
  background: #c0392b;
  color: #fff;
}

.b247-login-form {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  width: auto;
  flex-shrink: 0;
}

.b247-input {
  padding: 0 8px;
  background: var(--b247-input-bg);
  border: 1px solid var(--b247-input-border);
  border-radius: 4px;
  color: var(--b247-text);
  font-size: 12px;
  width: 90px;
  height: 27px;
  line-height: 1;
  box-sizing: border-box;
}

.b247-input::placeholder {
  color: var(--b247-text-muted);
}

.b247-input--user,
.b247-input--pass {
  width: 85px;
}

.b247-input--captcha {
  width: 44px;
  text-align: center;
  letter-spacing: 2px;
}

.b247-validation-label {
  color: var(--b247-text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.b247-captcha-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  height: 27px;
  background: #0d0d0d;
  border: 1px solid var(--b247-input-border);
  border-radius: 4px;
  color: #f1c40f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  min-width: 40px;
  text-align: center;
  box-sizing: border-box;
}

.b247-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  height: 27px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  box-sizing: border-box;
}

.b247-btn--login {
  background: var(--b247-btn-yellow);
  color: #1a1a1a;
}

.b247-btn--login:hover {
  background: var(--b247-btn-yellow-hover);
}

.b247-btn--signup {
  background: var(--b247-btn-yellow);
  color: #1a1a1a;
}

.b247-btn--signup:hover {
  background: var(--b247-btn-yellow-hover);
}

.b247-btn-icon {
  flex-shrink: 0;
}

/* ----- Nav bar: full width, inner 1349px x 30px, menu at very left ----- */
.b247-nav {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  height: 30px;
  background: var(--b247-nav-bg);
}

.b247-nav-inner {
  max-width: 1349px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 6px;
}

.b247-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}

.b247-nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  height: 30px;
  color: var(--b247-nav-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.b247-nav-list a:hover {
  background: rgba(0,0,0,.08);
}

.b247-nav-badge {
  display: inline-block;
  background: var(--b247-nav-badge);
  color: #fff;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 2px;
}

.b247-nav-chip {
  font-size: 14px;
}

.b247-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.b247-nav-tz {
  font-size: 13px;
  color: var(--b247-nav-text);
}

.b247-nav-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--b247-nav-text);
  cursor: pointer;
}

.b247-nav-setting {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--b247-nav-text);
  text-decoration: none;
  font-size: 14px;
}

.b247-nav-setting:hover {
  text-decoration: underline;
}

/* ----- Main ----- */
.b247-main {
  padding: 20px 16px 40px;
  background: var(--b247-main-bg);
}

/* ----- Slider: 230px height (width up to 11532px) ----- */
.b247-slider-wrap {
  width: 100%;
  max-width: 11532px;
  height: 230px;
  margin: 0 auto 24px;
  position: relative;
  border-radius: var(--b247-tile-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.b247-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 230px;
  background: #1a3a4a;
}

.b247-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.b247-slide--active {
  opacity: 1;
  z-index: 1;
}

.b247-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.b247-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.b247-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.b247-dot:hover {
  background: rgba(255,255,255,.8);
}

.b247-dot--active {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3);
}

/* ----- Game grid ----- */
/* Same width as slider so both columns match slider width */
.b247-content {
  width: 100%;
  max-width: 11532px;
  margin: 0 auto;
}

.b247-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.b247-content--four {
  margin-top: 16px;
}

.b247-grid--four {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 860px) {
  .b247-grid {
    grid-template-columns: 1fr;
  }
  .b247-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .b247-grid--four {
    grid-template-columns: 1fr;
  }
}

.b247-tile {
  position: relative;
  width: 100%;
  height: 230px;
  border-radius: var(--b247-tile-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.b247-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #2c3e50;
}

/* 1st row left: Sports banner */
.b247-tile--sports .b247-tile-bg {
  background: #2c3e50 url('https://betting247.live/img/banner_sports-1.webp') center/cover no-repeat;
}

/* 1st row right: Saba Sport Book */
.b247-tile--saba .b247-tile-bg {
  background: #1e8449 url('https://cnd.1ten365.com/casino-images/saba/saba-sportbook.webp') center/cover no-repeat;
}

/* 4-column section tile backgrounds */
.b247-tile--aviator .b247-tile-bg {
  background: #1a1a2e url('https://cnd.1ten365.com/casino-images/spribe/aviator.webp') center/cover no-repeat;
}

.b247-tile--sexy .b247-tile-bg {
  background: #2d1b2e url('https://cnd.1ten365.com/casino-images/aesexy/AESexy.webp') center/cover no-repeat;
}

.b247-tile--india .b247-tile-bg {
  background: #3d2c1f url('https://cnd.1ten365.com/casino-images/eeai/India.webp') center/cover no-repeat;
}

.b247-tile--snowfield .b247-tile-bg {
  background: #4a5d6a url('https://cnd.1ten365.com/casino-images/eeai/Snowfield.webp') center/cover no-repeat;
}

/* Second 4-column section tile backgrounds */
.b247-tile--girlgroup .b247-tile-bg {
  background: #2d2d2d url('https://cnd.1ten365.com/casino-images/eeai/GirlGroup.webp') center/cover no-repeat;
}

.b247-tile--pool .b247-tile-bg {
  background: #1a3a4a url('https://cnd.1ten365.com/casino-images/eeai/Pool.webp') center/cover no-repeat;
}

.b247-tile--sicbo .b247-tile-bg {
  background: #2c1f2e url('https://cnd.1ten365.com/casino-images/kingmaker/sicbo.webp') center/cover no-repeat;
}

.b247-tile--dragontiger2 .b247-tile-bg {
  background: #1e2a3a url('https://cnd.1ten365.com/casino-images/kingmaker/dragonTiger2.webp') center/cover no-repeat;
}

.b247-tile-label {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

.b247-tile-btn {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  background: var(--b247-btn-yellow);
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  width: fit-content;
}

.b247-tile-btn:hover {
  background: var(--b247-btn-yellow-hover);
}

.b247-tile-live {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}

.b247-tile-live span:first-child {
  font-weight: 700;
  color: #f1c40f;
}

.b247-tile-bonus {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ----- Footer ----- */
.b247-footer {
  margin-top: 32px;
  padding: 28px 16px 40px;
  text-align: center;
  background: var(--b247-main-bg);
}

.b247-footer-inner {
  max-width: 11532px;
  margin: 0 auto;
}

.b247-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: #4a4a4a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  margin-bottom: 28px;
}

.b247-load-more:hover {
  background: #5a5a5a;
}

.b247-load-more-icon {
  flex-shrink: 0;
}

.b247-powered {
  margin-bottom: 20px;
}

.b247-powered-text {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.b247-betfair-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.b247-betfair-b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #e31837;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 4px;
}

.b247-betfair-word {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.b247-betfair-bet {
  color: #333;
  font-weight: 700;
}

.b247-betfair-fair {
  color: #777;
  font-weight: 500;
}

.b247-browser-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.b247-browser-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #666;
}

.b247-icon-globe,
.b247-icon-chrome {
  flex-shrink: 0;
  color: #888;
}

.b247-browser-text {
  font-size: 12px;
  color: #888;
}

.b247-method-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 24px;
}

.b247-payment-img {
  height: 32px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
}

.b247-payment-img:hover {
  filter: grayscale(70%);
  opacity: 1;
}

.b247-footer-hr {
  border: none;
  border-top: 1px solid #d0ccc6;
  margin: 20px auto;
  max-width: 600px;
}

.b247-footer-links {
  margin-top: 20px;
}

.b247-footer-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-bottom: 8px;
}

.b247-footer-links-row--sub {
  margin-bottom: 0;
}

.b247-footer-links a {
  font-size: 12px;
  color: #888;
  text-decoration: none;
  padding: 0 6px;
}

.b247-footer-links a:hover {
  color: #555;
  text-decoration: underline;
}

.b247-footer-sep {
  font-size: 12px;
  color: #ccc;
  padding: 0 2px;
  user-select: none;
}

@media (max-width: 600px) {
  .b247-footer {
    padding: 24px 12px 32px;
  }
  .b247-method-box {
    gap: 14px;
  }
  .b247-payment-img {
    height: 28px;
  }
  .b247-footer-links-row {
    flex-direction: column;
    gap: 4px;
  }
  .b247-footer-sep {
    display: none;
  }
}

/* Responsive header */
@media (max-width: 900px) {
  .b247-header-bar {
    flex-direction: column;
    height: auto;
    min-height: 58px;
  }

  .b247-header-left,
  .b247-header-right {
    width: 100%;
    height: auto;
    min-height: 27px;
  }

  .b247-header-left {
    flex-direction: row;
  }

  .b247-search-wrap {
    flex: 1;
  }

  .b247-login-form {
    flex-wrap: wrap;
    height: auto;
  }

  .b247-nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px;
  }

  .b247-nav-list a {
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  .b247-nav {
    height: auto;
    min-height: 30px;
  }
}
