/* ===========================================================================
   cbtfvip.com home page — mobile clone
   Dark theme, 375px-first. All measurements taken from the live site at 375w.
   =========================================================================== */

:root {
  --bg-page: #000000;
  --bg-header: #0d0d0d;
  --bg-panel: #121417;
  --bg-card: #21262a;
  --bg-tile: #0f172a;

  --text: #ffffff;
  --text-muted: #dadada;
  --text-dim: #636e78;
  --text-copy: #636f79;
  --text-tile-title: #fecaca;
  --text-link: #93c5fd;

  --edge: rgba(59, 130, 246, 0.4);

  /* signature red → blue sweep used on borders, pills and section frames */
  --grad-frame: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #2563eb 100%);
  --grad-tile: linear-gradient(135deg, #fca5a5 0%, #f87171 50%, #3b82f6 100%);
  --grad-pill: linear-gradient(90deg, #f87171 0%, #ef4444 50%, #2563eb 100%);
  --grad-panel: linear-gradient(135deg, #b91c1c 0%, #991b1b 50%, #1e40af 100%);
  --grad-signup: linear-gradient(135deg, #ef4444, #2563eb);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; border: 0; }
a { text-decoration: none; color: inherit; }

/* hide scrollbars on the horizontal rails, keep them swipeable */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ── header ──────────────────────────────────────────────────────────── */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 55px;
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 0 10px;
  background: var(--bg-header);
  box-shadow: rgba(248, 113, 113, 0.12) 0 2px 2px 0, rgba(59, 130, 246, 0.08) 0 2px 2px 0;
}

.header-inner {
  width: 100%;
  max-width: 1365px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { max-height: 42px; cursor: pointer; }

.header-actions { display: flex; align-items: center; }

.btn-signup,
.btn-login {
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  padding: 10px 15px;
  margin-left: 15px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn-signup {
  color: #ffffff;
  border: 0;
  background: var(--grad-signup);
  filter: drop-shadow(0 0 8px rgba(248, 113, 113, 0.4)) drop-shadow(0 0 12px rgba(59, 130, 246, 0.35));
}

.btn-login {
  color: #ffffff;
  background: transparent;
  border: 2px solid #3b82f6;
}

/* ── page shell ──────────────────────────────────────────────────────── */
.page {
  padding-top: 55px;
  padding-bottom: 75px;
}

/* ── sport shortcuts ─────────────────────────────────────────────────── */
.quick-nav {
  padding: 5px 10px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 8px;
}

.qn-item {
  height: 77px;
  margin: 4px auto;
  width: 100%;
  border-radius: 6px;
  background: var(--bg-header);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qn-item img { height: 58px; width: 58px; margin-top: -10px; }
.qn-label { font-size: 12px; font-weight: 500; margin-top: -10px; }

/* the "Show More" tile uses a small glyph rather than a sport illustration */
.qn-item.is-more img { height: 24px; width: 24px; margin-top: 5px; }
.qn-item.is-more .qn-label { margin-top: 8px; }

/* ── banner carousel ─────────────────────────────────────────────────── */
.banner-wrap { padding: 0 10px 10px; }

.banner {
  height: 100px;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 500ms ease;
}

.banner-track img {
  height: 100px;
  width: 100%;
  flex: 0 0 100%;
  object-fit: fill;
  object-position: center;
}

/* ── shared section chrome ───────────────────────────────────────────── */
.content { padding: 0 10px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.section-title {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  color: var(--text);
}

.tile-title {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-tile-title);
  letter-spacing: 0.025em;
}

.see-all {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.see-all span {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-link);
}

.see-all img { height: 16px; width: 16px; }

/* ── popular / casino tile rails ─────────────────────────────────────── */
.tile-section {
  border-radius: 10px;
  padding: 16px 19px;
  background: var(--grad-panel);
  border: 1px solid rgba(254, 202, 202, 0.5);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

#sec-casino { margin-top: 23px; margin-bottom: 20px; }

.tile-scroller {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tile-scroller::-webkit-scrollbar { display: none; }

/* 1px gradient frame around each game tile */
.tile {
  flex: 0 0 auto;
  border-radius: 12px;
  padding: 1px;
  background: var(--grad-tile);
  box-shadow: 0 8px 24px rgba(252, 165, 165, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.35);
  cursor: pointer;
}

.tile-inner {
  position: relative;
  height: 180px;
  width: 120px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-tile);
}

.tile-inner img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

/* provider label + play affordance, revealed on press/hover like the original */
.tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 8px;
  text-align: center;
  opacity: 0;
  transition: opacity 300ms;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(15, 23, 42, 0.88) 100%);
}

.tile:hover .tile-overlay,
.tile:active .tile-overlay { opacity: 1; }

.tile-provider {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.tile-play {
  height: 52px;
  width: 52px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px #fca5a5) drop-shadow(0 0 24px #3b82f6);
}

.tile-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* ── sports rails ────────────────────────────────────────────────────── */
.sport-section {
  padding: 1px;
  border-radius: 10px;
  margin-top: 16px;
  background: var(--grad-frame);
}

.sport-inner {
  border-radius: 9px;
  background: var(--bg-panel);
  padding: 19px 13px 0;
}

.sport-head-right { display: flex; align-items: center; }

.live-group {
  display: flex;
  align-items: center;
  padding-right: 11px;
  border-right: 1px solid rgba(59, 130, 246, 0.5);
}

.live-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 7px;
}

.see-all-wrap {
  padding-left: 11px;
  border-left: 1px solid rgba(59, 130, 246, 0.5);
  display: flex;
  align-items: center;
}

/* the trending rail sits on the panel gradient with no 1px frame,
   uses darker cards, and pads top and bottom equally */
.sport-section.is-trending {
  padding: 19px 13px;
  background: var(--grad-panel);
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.sport-section.is-trending .sport-inner {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.sport-section.is-trending .match-card { background: var(--bg-header); }

/* live toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
  cursor: pointer;
}

.switch input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  margin: 0;
  border-radius: 9999px;
  background: #718b9c;
  cursor: pointer;
  transition: background-color 300ms;
}

.switch input:checked { background: #3b82f6; }

.switch-knob {
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  border-radius: 9999px;
  background: #191f23;
  border: 1px solid rgba(176, 190, 197, 0.4);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  transition: transform 300ms, background-color 300ms;
  pointer-events: none;
}

.switch input:checked ~ .switch-knob {
  transform: translateY(-50%) translateX(100%);
  background: #ffffff;
}

.match-scroller {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.match-scroller::-webkit-scrollbar { display: none; }

/* ── match card ──────────────────────────────────────────────────────── */
.match-card {
  flex: 0 0 auto;
  min-width: 300px;
  background: var(--bg-card);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 19px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.mc-league { display: flex; align-items: center; min-height: 18px; }
.mc-league > img { height: 17px; width: 17px; }

.mc-league-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  padding-left: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 210px;
}

.mc-cup { margin-left: 11px; }

.mc-time {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text);
  margin-top: 3px;
}

.mc-divider { margin-top: 6px; }

.mc-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  width: 100%;
}

.mc-teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mc-teams-row.is-outright { justify-content: center; }

.mc-team-icon { height: 35px; width: 35px; border-radius: 9999px; }

.mc-teams-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
  min-width: 0;
}

.mc-event,
.mc-matched {
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  color: var(--text);
  margin-right: 10px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-matched { margin-top: 4px; }

.mc-odds {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 15px;
  margin-top: 18px;
}

.odd {
  width: 105px;
  padding: 1px;
  border-radius: 6px;
  background: var(--grad-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}

.odd + .odd { margin-left: 9px; }

.odd-inner {
  width: 100%;
  height: 21px;
  border-radius: 6px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* ── legends ─────────────────────────────────────────────────────────── */
.legends {
  margin-top: 14px;
  margin-bottom: 20px;
}

/* the grid row the desktop layout uses for its wide panel collapses to
   an empty band above the card on mobile */
.legends-spacer { height: 20px; margin-bottom: 8px; }

.legends-card {
  border-radius: 8px;
  padding: 20px 23px;
  background: var(--grad-panel);
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.legends-brand { display: flex; align-items: center; flex: 0 0 auto; }
.legends-brand img { height: 44px; width: 44px; }

.legends-brand-text {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  line-height: 21px;
  color: var(--text);
  margin-left: 5px;
}

.legends-rule {
  width: 1px;
  margin: 0 13px;
  background: rgba(59, 130, 246, 0.6);
  flex: 0 0 auto;
}

.legends-list {
  width: 100%;
  min-width: 0;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: 75px;
  height: 40px;
  overflow: hidden;
}

.legends-track { transition: transform 500ms ease; }

.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20px;
  gap: 8px;
}

.legend-row > div { color: var(--text); white-space: nowrap; }
.legend-row .amount { font-weight: 700; }

/* ── footer ──────────────────────────────────────────────────────────── */
.app-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--edge);
}

.footer-logo-wrap { padding: 16px 0; }
.footer-logo { width: 123px; height: 25px; margin-left: 14px; }

.footer-secure {
  display: flex;
  justify-content: space-between;
  padding: 25px 14px;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.footer-secure-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.secure-badge { height: 52px; width: 129px; }

.secure-copy {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 15px;
}

.secure-title {
  font-weight: 700;
  font-size: 14px;
  color: #f5f5f5;
}

.footer-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.footer-marks img { height: 47px; width: 47px; margin-left: 7px; }

.footer-links {
  display: flex;
  justify-content: space-between;
  padding: 31px 14px 0;
}

.footer-links-col {
  font-size: 13px;
  font-weight: 500;
  line-height: 30px;
  color: var(--text);
  flex: 1;
}

.footer-links-col:last-child { text-align: left; flex: 0 0 auto; }
.footer-links a { text-decoration: underline; }

.footer-copy {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-copy);
  padding: 23px 14px 37px;
}

/* ── bottom nav ──────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75px;
  display: flex;
  align-items: center;
  z-index: 99;
  background: #000000;
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 55px;
  cursor: pointer;
}

.bn-item img { height: 37px; width: 38px; }
.bn-item .bn-profile { height: 30px; width: 30px; margin-bottom: 5px; }

.bn-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
}

.bn-home {
  height: 65px;
  width: 65px;
  border-radius: 9999px;
  background: #525253;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bn-home-inner {
  height: 55px;
  width: 55px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bn-home-inner img { height: 30px; width: 30px; }

/* ===========================================================================
   /login — full-screen sign-in form
   =========================================================================== */

.login-screen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  overflow-y: auto;
}

.login-card {
  position: relative;
  width: 100%;
  padding: 29px 10px 43px;
  background: linear-gradient(#0f1316 21.68%, #1f4159 100%);
}

.login-close {
  position: absolute;
  right: 10px;
  top: 10px;
  height: 30px;
  width: 30px;
  cursor: pointer;
}

.login-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 19px;
}

.login-logo { height: 70px; }

/* "LOGIN NOW" flanked by hairlines */
.login-divider-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
}

.login-divider-row .rule {
  width: 100%;
  height: 1px;
  background: #335264;
}

.login-now {
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  color: #f1e05a;
  margin: 0 8px;
  white-space: nowrap;
  text-transform: uppercase;
}

.login-form-wrap { margin-top: 28px; }

.field-label {
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  color: #f5f5f5;
  margin-top: 10px;
}

.field { position: relative; }

.field input {
  margin-top: 3px;
  width: 100%;
  height: 45px;
  padding: 0 16px;
  border-radius: 6px;
  border: 0.8px solid transparent;
  background: #f5f5f5;
  color: #404040;
  font-size: 16px;
  font-weight: 400;
  font-family: inherit;
  outline: none;
}

.field input::placeholder { color: #666666; }

.eye {
  position: absolute;
  right: 19px;
  bottom: 11px;
  height: 24px;
  width: 24px;
  color: #4b4b4b;
  cursor: pointer;
}

/* reserved space for validation copy, collapsed until it has something to say */
/* stays zero-height so its margins collapse through, matching the original's
   spacing; hidden by opacity rather than overflow for the same reason */
.field-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 1px;
  opacity: 0;
  max-height: 0;
  transition: all 500ms ease-in-out;
}

.field-error.is-shown { opacity: 1; max-height: 40px; }

.remember {
  margin-top: 20px;
  display: flex;
  align-items: center;
}

.remember input {
  margin: 0 13px 0 0;
  height: 24px;
  width: 24px;
  border-radius: 4px;
}

.remember label {
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  color: #ffffff;
}

.helper-links {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.helper-links div {
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
}

.btn-login-submit {
  margin-top: 30px;
  width: 100%;
  height: 55px;
  border: 0;
  border-radius: 6px;
  background: #335265;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: rgba(33, 33, 33, 0.1) 0 4px 6px -1px, rgba(33, 33, 33, 0.1) 0 2px 4px -2px;
}

.demo-id {
  margin-top: 17px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: underline;
  text-align: center;
  cursor: pointer;
}
