/* Cricplus+ — site stylesheet (home + event + casino + racing + sportsbook + modals + footer)
   Desktop values measured from the live https://cricplus.red/home (computed styles at 1440 / 1920). */

:root {
  --black: #000;
  --purple: #7f00ff;
  --purple-dark: #5a00b5;
  --chip-date: #167122;
  --back: #72bbef;
  --lay: #faa9ba;
  --back-dim: #b9dcf6;
  --lay-dim: #fbd3dc;
  --odd-text: #273a47;
  --side-bg: #cccccc;
  --side-item: #bbbbbb;
  --side-line: #9e9e9e;
  --row-line: #dee2e6;
  --text: #212529;
  --title: #343a40;
  --muted: #6c757d;
  --green: #28a745;
  --navy: #1d3b72;
  --flash-up: #ffd84d;
  --flash-down: #ff9a5c;
  --side-w: 15%;         /* live: col-md-2 overridden to 15% of the viewport */
  --oc: 6.167%;          /* each odds column = 6.167% of the table width (75px at 1440, 100px at 1920) */
  --nav-h: 39px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  color: #000;
  background: #fff;
  font-size: 16px;
  line-height: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; line-height: inherit; cursor: pointer; color: inherit; }
img { border: 0; }
svg { display: block; flex: 0 0 auto; }
[hidden] { display: none !important; }

/* ---------- Header (top row: y 10–70; purple nav y 80–119) ---------- */
.topbar {
  background: var(--black);
  height: 80px;
  display: flex;
  align-items: flex-start;
  padding: 10px 15px 0;
  position: relative;
  z-index: 30;
  color: #fff;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { height: 65px; width: auto; display: block; }
.top-actions { margin-left: auto; padding-top: 10px; display: flex; align-items: center; color: #fff; height: 48px; padding-right: 5px; }
.icon-btn { background: none; border: 0; color: #fff; padding: 0; display: grid; place-items: center; }
.menu-toggle { display: none; }
.search { position: relative; display: flex; align-items: flex-start; margin-right: 20px; padding: 5px 0 0 10px; height: 38px; }
#searchBtn svg { width: 24px; height: 24px; }
.link-btn { background: none; border: 0; color: #fff; font-weight: 700; font-size: 16px; line-height: 19px; padding: 0; margin-right: 5px; }
.link-btn:hover { color: #ddd; }
.login-btn {
  background: #fff; color: #000; border: 0; font-weight: 700; font-size: 16px; line-height: 19px;
  height: 29px; padding: 5px 10px; margin-left: 16px; display: inline-flex; align-items: center;
}
.login-btn:hover { background: #eee; }
.user-chip { color: #fff; font-weight: 700; font-size: 16px; margin-left: 16px; }

.search input {
  width: 0; opacity: 0; border: 0; padding: 0; height: 28px; font: inherit; font-size: 14px;
  transition: width .2s, opacity .2s, padding .2s;
  background: #fff; color: #000; border-radius: 2px; outline: none;
}
.search.open input { width: 220px; opacity: 1; padding: 0 8px; margin-right: 8px; }
.search-results {
  position: absolute; top: 40px; right: 0; width: 340px; max-height: 420px; overflow: auto;
  background: #fff; color: #000; box-shadow: 0 8px 24px rgba(0,0,0,.35); z-index: 50; line-height: 1.25;
}
.search-results a { display: block; padding: 7px 10px; border-bottom: 1px solid var(--row-line); font-size: 14px; }
.search-results a:hover { background: #f2e6ff; }
.search-results small { color: var(--muted); display: block; font-size: 12px; }
.search-results .live { color: var(--green); font-weight: 700; }
.search-results .empty { padding: 10px; color: var(--muted); font-size: 14px; }

/* ---------- Main nav (purple bar, padding 9px 0, items 14px bold, 3px 15px) ---------- */
.mainnav {
  background: var(--purple);
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  white-space: nowrap;
  height: var(--nav-h);
  align-items: center;
  padding: 0 16px 0 0;
  position: relative; z-index: 25; /* scrolls away with the page, like the live site */
}
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  color: #fff; font-weight: 700; text-transform: uppercase; font-size: 14px; line-height: 15px;
  padding: 3px 15px; height: 21px; display: inline-flex; align-items: center; flex: 0 0 auto;
}
.mainnav a:hover { background: rgba(255,255,255,.12); }
.mainnav a.highlight { background: #ffff00; color: #000; animation: tagmenu 2s ease-out infinite; }
@keyframes tagmenu {
  0% { background: red; color: #fff; }
  50% { background: #fff; color: red; }
  100% { background: #ffff00; color: #000; }
}

.ticker { background: #000; color: #fff; overflow: hidden; white-space: nowrap; font-size: 13px; font-weight: 500; line-height: 15px; padding: 3px 0; }
.ticker span { display: inline-block; padding-left: 100%; animation: tick 28s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- Layout ---------- */
.layout {
  display: flex; align-items: stretch; min-height: calc(100vh - 119px);
  /* sidebar column colour runs all the way down to the footer, like the live site */
  background: linear-gradient(to right, var(--side-bg) var(--side-w), transparent var(--side-w));
}
.sidebar {
  width: var(--side-w); flex: 0 0 var(--side-w); background: var(--side-bg);
  align-self: flex-start; /* not sticky: scrolls with the page, like the live site */
}
.content { flex: 1; min-width: 0; padding: 5px 5px 30px; outline: none; }
.page-home .content { padding-bottom: 0; }
.page-home .content > .grid:last-child { margin-bottom: 30px; }
.scrim { display: none; }

/* Sidebar */
.side-head {
  background: var(--black); color: #fff; font-size: 18px; font-weight: 500; line-height: 21.6px;
  margin-top: 1px; padding: 4px 6px; height: 29.6px;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; border: 0; text-align: left;
}
.side-head svg { width: 14px; height: 14px; margin-right: 3px; transition: transform .2s; }
.side-head[aria-expanded="false"] svg { transform: rotate(-90deg); }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list > li > a {
  display: block; padding: 4.8px 16px; font-size: 14px; line-height: 15px; height: 25.6px;
  text-transform: uppercase; color: #000; background: var(--side-item);
  border-bottom: 1px solid var(--side-line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-list > li > a:hover { background: #adadad; }
.tree { list-style: none; margin: 0; padding: 5px 10px; background: var(--side-bg); }
.tree .tree-node, .tree li { padding: 2px 0; }
.tree-btn {
  background: none; border: 0; display: flex; align-items: center; gap: 4px; width: 100%;
  font-size: 16px; line-height: 16px; padding: 0; text-align: left; color: #343a40; font-weight: 400;
}
.tree-btn:hover { color: var(--purple); }
.tree .box {
  width: 13px; height: 13px; border: 1.5px solid #343a40; border-radius: 2px; display: inline-grid; place-items: center;
  font-size: 12px; line-height: 1; flex: 0 0 13px; font-weight: 400; margin-right: 1px;
}
.tree-children { list-style: none; margin: 0; padding: 2px 0 0 14px; }
.tree-children .tree-btn { font-size: 14px; line-height: 16px; }
.tree-children .box { width: 11px; height: 11px; flex-basis: 11px; font-size: 10px; }
.tree-children a { display: block; font-size: 13px; padding: 0 4px 0 2px; color: #343a40; line-height: 16px; }
.tree-children a:hover { color: var(--purple); text-decoration: underline; }

/* ---------- Featured chips ---------- */
.chips {
  display: flex; flex-wrap: nowrap; overflow: hidden; padding: 0 0 12px; height: 62.6px;
}
.chip {
  background: var(--purple); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 6px; margin: 0 5px 5px 0; flex: 0 0 auto; height: 45.6px; border-radius: 4px;
  font-size: 14px; font-weight: 700; text-transform: capitalize;
}
.chip:hover { background: #6d00db; }
.chip-ico { width: 16px; height: 16px; flex: 0 0 16px; margin-right: 2px; display: block; }
.chip-body { display: block; text-align: center; }
.chip-name {
  display: block; margin-left: 5px; padding-top: 1px; line-height: 16.5px; white-space: nowrap;
  max-width: 260px; overflow: hidden; text-overflow: ellipsis;
}
.chip-date {
  display: block; width: 110px; background: var(--chip-date); color: #fff; font-weight: 900; font-size: 12px;
  line-height: 14px; padding: 2px; border-radius: 5px; white-space: nowrap; text-align: center;
}

/* ---------- Sport tabs ---------- */
.tabs { display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: 0 0 auto; padding: 8px 16px; height: 31px; display: block;
  font-size: 16px; line-height: 15px; text-transform: uppercase; color: #000; background: var(--side-bg);
  border-right: 1px solid var(--purple);
}
.tabs a:hover { background: #bfbfbf; }
.tabs a.active { background: var(--purple); color: #fff; }

/* ---------- Toolbar (pills + view by) ---------- */
.toolbar { display: flex; justify-content: flex-end; align-items: center; margin: 4px 0 3px; min-height: 26px; flex-wrap: wrap; }
.pill {
  border: 1px solid #000; border-radius: 25px; background: #fff; font-size: 12px; line-height: 24px;
  height: 26px; padding: 0 10px; margin: 0 1px; display: inline-block;
  text-transform: uppercase; color: #000; white-space: nowrap;
}
.pill:hover { background: #f1f1f1; }
.pill.on { background: #00ad6f; border-color: #00ad6f; color: #fff; }
.viewby { margin-left: max(6px, calc(13% - 147px)); display: flex; align-items: center; font-weight: 600; font-size: 12px; line-height: 15px; white-space: nowrap; }
.viewby select {
  margin-left: 3px;
  background-color: #000; color: #fff; border: 1px solid var(--purple); font: inherit; font-weight: 500; font-size: 13px;
  text-transform: uppercase; height: 23px; width: 103.5px; padding: 2px 16px 2px 2px; border-radius: 2px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 5px center;
}
.viewby select option { background: #fff; color: #000; }

/* ---------- Event table ---------- */
.grid { border-top: 1px solid var(--row-line); }
.g-row {
  display: grid; grid-template-columns: minmax(0,1fr) repeat(6, var(--oc));
  border-top: 1px solid var(--row-line); height: 26px; position: relative; color: var(--text);
}
.g-row.g-head {
  font-weight: 700; font-size: 12px; line-height: 15px; color: #303030; height: 28px;
  border-top: 0; border-bottom: 2px solid var(--row-line);
}
.g-head > div { display: flex; align-items: center; }
.g-head .h-game { padding-left: 15px; }
.g-head .h-col { grid-column: span 2; justify-content: center; }
.g-group {
  background: #eee5fb; font-weight: 700; padding: 5px 15px; font-size: 13px; line-height: 15px; color: var(--purple-dark);
  border-top: 1px solid var(--row-line);
}
.g-game { display: flex; align-items: center; padding: 0 15px; min-width: 0; }
.sport-ico { width: 14px; height: 14px; flex: 0 0 14px; margin-right: 5px; display: block; object-fit: contain; color: #000; }
img.sport-ico { filter: invert(1); } /* the sport PNGs are white (made for the purple chips) */
.g-title {
  flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 16.5px; color: var(--title);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; top: -1px;
}
.g-title:hover { color: var(--purple); }
.click-here {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 5px;
  margin: 0 8px; background: #fff; border: 1px solid var(--navy); border-radius: 3px;
  color: var(--navy); font-weight: 700; font-size: 12px; line-height: 1; white-space: nowrap;
}
.click-here svg { width: 13px; height: 13px; }
.click-here:hover { background: #eef3fb; }
.g-flags {
  display: flex; align-items: center; justify-content: flex-end; flex: 0 0 20%; width: 20%; margin-top: 3px;
  font-weight: 700; font-size: 13px; line-height: 15px; color: #212529;
}
.g-flags > * { width: 25px; height: 15px; display: flex; justify-content: center; align-items: center; flex: 0 0 auto; }
.g-flags > .dot { width: 12px; height: 12px; margin: 0 6.5px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); display: inline-block; flex: 0 0 auto; }
.fl-tv svg { width: 14px; height: 12px; }
.fl-f img, .fl-bm img { width: 18px; height: 12px; display: block; }
.fl-game img { width: 16px; height: 16px; display: block; }
.fl-p img { width: 15px; height: 15px; display: block; }
.fl-txt { font-weight: 700; }
.pin { background: none; border: 0; padding: 0; color: #000; }
.g-flags > .pin { width: 14px; }
.pin img { width: 14px; height: 14px; display: block; }
.pin.on img { filter: invert(14%) sepia(98%) saturate(7400%) hue-rotate(272deg) brightness(95%); }
.pin:hover img { opacity: .7; }

.o {
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; line-height: 15px;
  color: var(--odd-text); transition: background-color .5s; height: 25px;
}
.o.b { background-color: var(--back); }
.o.l { background-color: var(--lay); }
.o.flash-up { background-color: var(--flash-up) !important; transition: none; }
.o.flash-down { background-color: var(--flash-down) !important; transition: none; }
.empty-state { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.4; }
.loading { padding: 30px; text-align: center; color: var(--muted); font-size: 15px; }

/* ---------- Home casino dashboard ---------- */
.home-casino { margin-top: 40px; }
.hc-strip { display: flex; flex-wrap: wrap; margin: 0 0 2px; }
.hc-tile { flex: 0 0 12.5%; max-width: 12.5%; padding: 0 1px; display: block; }
.hc-tile img { width: 100%; height: auto; display: block; aspect-ratio: 150 / 115; object-fit: cover; }
.newheading {
  display: block; width: 100%; margin: 0 0 2px; padding: 5px 10px; background: var(--purple);
  font-size: 16px; font-weight: 600; line-height: 19.2px; text-transform: uppercase; color: #d0ffd0;
}
.newheading span { display: inline-block; animation: hzoom 2s ease infinite; }
@keyframes hzoom { 50% { transform: scale(1.06); } }
.hc-strip + .newheading { margin-top: 4px; }
.nl-grid { display: flex; flex-wrap: wrap; margin-bottom: 3px; }
.nl-tile {
  flex: 0 0 25%; max-width: 25%; padding: 0 1px; margin: 0 0 2px; border: 0; background: none; display: block;
  text-align: center;
}
.nl-tile img { width: 100%; height: 160px; object-fit: cover; display: block; }
.nl-name {
  display: block; background-image: linear-gradient(#000, var(--purple)); color: #fff; padding: 5px;
  font-size: 11px; font-weight: 700; line-height: 15px; text-transform: uppercase; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prov-grid { display: flex; flex-wrap: wrap; }
.prov-tile { width: calc(25% - 2px); margin: 1px; display: block; }
.prov-tile img { width: 100%; height: auto; display: block; aspect-ratio: 302 / 180; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #fff; border-top: 2px solid var(--purple); position: relative; z-index: 1; }
.footer-other { display: flex; align-items: center; min-height: 130px; padding: 0 15px; }
.fo-left { flex: 1 1 50%; padding: 0 4px; line-height: 15px; }
.fo-left .ssl { width: 202px; height: 100px; display: block; }
.safe { line-height: 15px; }
.fo-right { flex: 1 1 50%; text-align: right; font-size: 0; }
.fo-right a, .fo-right .age { display: inline-block; vertical-align: middle; }
.fo-right img { width: 50px; height: 50px; display: block; }
.copyright { margin: 0; text-align: center; font-size: 16px; line-height: 15px; }

/* ---------- Event detail ---------- */
.ev-crumb { font-size: 13px; line-height: 15px; color: var(--muted); padding: 6px 2px; }
.ev-crumb a:hover { color: var(--purple); }
.ev-head {
  background: var(--purple); color: #fff; padding: 8px 10px; min-height: 36px; display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap; line-height: 1.2;
}
.ev-head h1 { margin: 0; font-size: 16px; font-weight: 700; text-transform: uppercase; }
.ev-head .meta { margin-left: auto; font-size: 16px; display: flex; gap: 10px; align-items: center; }
.ev-head .badge { background: #fff; color: var(--purple); font-weight: 700; padding: 2px 6px; font-size: 12px; }

.market { margin-top: 6px; border: 1px solid #ddd; }
.market-title {
  background: #000; color: #fff; padding: 6px 10px; font-weight: 700; font-size: 14px; line-height: 17px;
  display: flex; align-items: center; gap: 10px; text-transform: uppercase;
}
.market-title .mx { margin-left: auto; font-weight: 400; font-size: 12px; color: #ccc; text-transform: none; }
.market-msg { background: #fff7d6; color: #6b4b00; font-size: 12px; line-height: 15px; padding: 3px 10px; overflow-wrap: anywhere; }
.m-row {
  --mc: 84px;
  display: grid; grid-template-columns: minmax(0,1fr) repeat(6, var(--mc)); border-bottom: 1px solid var(--row-line);
  min-height: 42px; position: relative;
}
.m-row.two { --mc: 90px; grid-template-columns: minmax(0,1fr) repeat(2, var(--mc)); }
.m-row.head { min-height: 26px; font-weight: 700; font-size: 16px; color: #000; text-transform: uppercase; }
.m-row.head > div { display: flex; align-items: center; justify-content: center; }
.m-row.head .back-h { grid-column: span 3; background: var(--back); }
.m-row.head .lay-h { grid-column: span 3; background: var(--lay); }
.m-row.two.head .back-h, .m-row.two.head .lay-h { grid-column: span 1; }
.m-name { display: flex; flex-direction: column; justify-content: center; padding: 3px 10px; font-weight: 700; font-size: 14px; line-height: 16px; color: var(--title); min-width: 0; }
.m-name small { font-weight: 400; color: var(--muted); font-size: 11px; line-height: 13px; }
.mo { display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid #fff; transition: background-color .5s; cursor: pointer; line-height: 15px; }
.mo b { font-size: 16px; line-height: 18px; color: var(--odd-text); }
.mo span { font-size: 10px; line-height: 12px; color: #333; }
.mo.b { background: var(--back); }
.mo.l { background: var(--lay); }
.mo.b.dim { background: var(--back-dim); }
.mo.l.dim { background: var(--lay-dim); }
.mo.flash-up { background: var(--flash-up) !important; transition: none; }
.mo.flash-down { background: var(--flash-down) !important; transition: none; }
.m-row.susp .mo > *, .m-row.ball .mo > * { visibility: hidden; }
.m-row.susp::after, .m-row.ball::after {
  content: 'SUSPENDED'; position: absolute; top: 0; bottom: 0; right: 0; width: calc(var(--mc) * 6);
  display: grid; place-items: center; background: rgba(30,30,30,.72); color: #ff5a5a; font-weight: 700; font-size: 13px; letter-spacing: 1px;
}
.m-row.ball::after { content: 'BALL RUNNING'; }
.m-row.two.susp::after, .m-row.two.ball::after { width: calc(var(--mc) * 2); }
.m-row.head::after { display: none; }

/* ---------- Casino / racing / sportsbook ---------- */
.subtabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px 0; }
.subtabs a, .subtabs button {
  border: 1px solid var(--purple); background: #fff; color: var(--purple); padding: 4px 10px;
  text-transform: uppercase; font-size: 13px; line-height: 15px;
}
.subtabs a:hover, .subtabs button:hover { background: #f2e6ff; }
.subtabs a.on, .subtabs button.on { background: var(--purple); color: #fff; }
.casino-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px; }
.tile { position: relative; background: #111; aspect-ratio: 1 / 1; overflow: hidden; border: 0; padding: 0; color: #fff; display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.tile:hover img { transform: scale(1.05); }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 0; background-image: linear-gradient(#000, var(--purple));
  padding: 5px; font-size: 11px; font-weight: 700; line-height: 15px; text-transform: uppercase; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.section-title {
  margin: 6px 0 2px; padding: 5px 10px; background: var(--purple); color: #fff;
  font-size: 16px; font-weight: 600; line-height: 19.2px; text-transform: uppercase;
}
.race-venue { border-bottom: 1px solid var(--row-line); padding: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.race-venue h3 { margin: 0; font-size: 14px; line-height: 17px; min-width: 220px; display: flex; gap: 6px; align-items: center; color: var(--title); }
.race-venue h3 .sport-ico { margin-right: 0; }
.race-venue h3 small { font-weight: 400; color: var(--muted); }
.race-time { background: var(--purple); color: #fff; border: 0; padding: 4px 8px; font-size: 13px; line-height: 15px; font-weight: 700; }
.race-time:hover { background: var(--purple-dark); }
.page-sportsbook .empty-state .btn-primary { margin-top: 4px; }

/* ---------- Modals ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); line-height: 1.35; }
.modal::backdrop { background: rgba(0,0,0,.6); }
.modal-card { background: #fff; width: 360px; max-width: 100%; padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; background: #000; margin: -16px -18px 6px; padding: 8px 12px; color: #fff; }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-logo { height: 38px; }
.modal-x { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; padding: 0 4px; }
.modal label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 14px; }
.modal input { font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid #bbb; font-size: 14px; }
.modal input:focus { outline: 2px solid var(--purple); border-color: var(--purple); }
.btn-primary { background: var(--purple); color: #fff; border: 0; padding: 8px 16px; font-size: 15px; line-height: 18px; font-weight: 700; text-transform: uppercase; }
.btn-primary:hover { background: #6d00db; }
.btn-primary:disabled { opacity: .6; }
.form-error { color: #c0102b; margin: 0; font-size: 13px; }

/* ---------- Connection indicator ---------- */
.conn {
  position: fixed; left: 10px; bottom: 10px; background: rgba(0,0,0,.82); color: #fff; font-size: 12px; line-height: 15px;
  padding: 4px 9px; border-radius: 14px; display: flex; align-items: center; gap: 6px; z-index: 40;
}
.conn i { width: 8px; height: 8px; border-radius: 50%; background: #f0ad4e; }
.conn.ok i { background: #3ccf4e; animation: pulse 1.6s infinite; }
.conn.bad i { background: #e74c3c; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(40,167,69,.25); } }

/* ---------- Responsive ---------- */
/* live: the featured chips row is d-xl-flex (only >= 1200px) */
@media (min-width: 961px) and (max-width: 1199px) {
  .chips { display: none; }
}
@media (max-width: 1100px) {
  .g-title { white-space: normal; }
  .g-row { height: auto; min-height: 26px; }
  .g-row > .o { height: auto; min-height: 25px; }
}
@media (max-width: 960px) {
  :root { --side-w: 260px; }
  .layout { background: none; }
  .menu-toggle { display: grid; margin-right: 8px; align-self: center; }
  .topbar { padding-left: 10px; align-items: flex-start; }
  .menu-toggle { margin-top: 20px; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; max-height: none; height: 100%; align-self: stretch; z-index: 60;
    transform: translateX(-100%); transition: transform .25s; visibility: hidden;
  }
  body.side-open { overflow: hidden; }
  body.side-open .sidebar { transform: none; visibility: visible; }
  body.side-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; }
  .content { padding: 5px 0 30px; }
  .chips, .toolbar { padding-left: 5px; padding-right: 5px; }
  .chips { overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .home-casino { margin-top: 24px; }
  .hc-tile { flex-basis: 25%; max-width: 25%; }
  .nl-tile { flex-basis: 50%; max-width: 50%; }
  .nl-tile img { height: auto; aspect-ratio: 302 / 160; }
  .prov-tile { width: calc(50% - 2px); }
  .footer-other { flex-wrap: wrap; padding: 8px 10px; min-height: 0; gap: 8px; }
}
@media (max-width: 640px) {
  :root { --oc: 38px; }
  .topbar { height: 56px; padding: 8px 10px 0; }
  .menu-toggle { margin-top: 7px; }
  .brand img { height: 40px; }
  .top-actions { padding-top: 4px; height: 36px; padding-right: 0; }
  .search { margin-right: 10px; padding-left: 0; }
  #searchBtn svg { width: 22px; height: 22px; }
  .link-btn { font-size: 14px; }
  .login-btn { font-size: 14px; height: 26px; padding: 4px 8px; margin-left: 8px; }
  .search.open { position: absolute; left: 10px; right: 10px; top: 6px; background: #000; z-index: 5; margin: 0; }
  .search.open input { flex: 1; width: auto; }
  .search-results { width: 100%; top: 40px; }
  .mainnav { --nav-h: 36px; }
  .mainnav a { padding: 3px 10px; }
  .layout { min-height: 0; }
  .chip-name { max-width: 170px; }
  .tabs a { font-size: 14px; padding: 8px 12px; }
  .toolbar { row-gap: 4px; margin: 4px 0; }
  .viewby { margin-left: 6px; }
  .g-row { height: auto; min-height: 40px; }
  .g-row.g-head { min-height: 27.5px; }
  .g-head .h-game { padding-left: 6px; }
  .g-head .h-col { font-size: 11px; }
  .g-game { padding: 4px 4px 4px 6px; flex-wrap: wrap; align-content: center; }
  .sport-ico { display: none; }
  .g-title { white-space: normal; font-size: 13px; line-height: 15px; top: 0; flex-basis: 100%; }
  .g-title .when { display: block; font-size: 11px; color: var(--muted); }
  .g-title .sep { display: none; }
  .click-here { margin: 2px 4px 0 0; font-size: 11px; height: 18px; padding: 0 4px; }
  .click-here svg { display: none; }
  .g-flags { flex: 0 0 auto; width: auto; margin-top: 2px; justify-content: flex-start; }
  .g-flags > * { width: 20px; }
  .g-flags > .fl-tv, .g-flags > .fl-p, .g-flags > .fl-game { display: none; }
  .g-flags > .dot { width: 9px; height: 9px; margin: 0 5px 0 0; }
  .g-flags > .pin { width: 14px; }
  .o { font-size: 12px; }
  .g-row > .o { min-height: 39px; height: auto; }
  .m-row, .m-row.two { --mc: 60px; grid-template-columns: minmax(0,1fr) repeat(2, var(--mc)); }
  .m-row .mo.x, .m-row.head .x { display: none; }
  .m-row.head .back-h, .m-row.head .lay-h { grid-column: span 1; }
  .m-name { font-size: 13px; }
  .m-row.susp::after, .m-row.ball::after { width: calc(var(--mc) * 2); font-size: 11px; letter-spacing: 0; }
  .ev-head h1 { font-size: 16px; }
  .ev-head .meta { margin-left: 0; }
  .ev-crumb { padding-left: 6px; padding-right: 6px; }
  .race-venue h3 { min-width: 0; width: 100%; }
  .casino-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); padding: 0 4px; }
  .subtabs, .section-title { margin-left: 4px; margin-right: 4px; }
  .subtabs { padding-left: 0; padding-right: 0; }
  .market { margin-left: 4px; margin-right: 4px; }
  .hc-tile { flex-basis: 33.333%; max-width: 33.333%; }
  .nl-name { font-size: 10px; }
  .fo-left, .fo-right { flex-basis: 100%; text-align: center; font-size: 11px; }
  .fo-left .ssl { width: 100px; height: auto; margin: 0 auto 4px; }
  .fo-right { font-size: 0; }
  .fo-right img { width: 35px; height: 35px; margin: 0 5px; }
  .copyright { font-size: 12px; padding: 0 8px 8px; }
}

/* ---------- Help articles & trust pages (content/*.md) ---------- */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 10px 15px 8px; border-top: 1px solid #222; }
.footer-links a { color: #fff; font-size: 14px; line-height: 18px; }
.footer-links a:hover { color: #ffffad; text-decoration: underline; }
.responsible { margin: 0; padding: 0 15px 8px; text-align: center; font-size: 12px; line-height: 16px; color: #bbb; }

.doc-crumb { font-size: 13px; line-height: 18px; color: var(--muted); padding: 8px 2px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.doc-crumb a { color: var(--purple); }
.doc-crumb a:hover { text-decoration: underline; }
.doc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding-bottom: 24px; }
.doc { max-width: 820px; font-size: 17px; line-height: 1.65; color: var(--text); }
.doc h1 { font-size: 34px; line-height: 1.2; margin: 0 0 10px; color: #000; }
.doc h2 { font-size: 25px; line-height: 1.3; margin: 34px 0 10px; color: #000; padding-top: 4px; }
.doc h3 { font-size: 20px; line-height: 1.35; margin: 24px 0 8px; color: #000; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 24px; }
.doc li { margin: 0 0 6px; }
.doc a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--purple-dark); }
.doc strong { color: #000; }
.doc .byline { font-size: 14px; line-height: 1.5; color: var(--muted); border-bottom: 1px solid var(--row-line); padding-bottom: 12px; margin-bottom: 18px; }
.doc .byline a { color: var(--muted); }
.doc blockquote { margin: 18px 0; padding: 14px 18px; background: #f5efff; border-left: 4px solid var(--purple); border-radius: 0 4px 4px 0; }
.doc blockquote p:last-child, .doc blockquote ul:last-child { margin-bottom: 0; }
.doc .table-wrap { overflow-x: auto; margin: 0 0 16px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.doc th, .doc td { border: 1px solid var(--row-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--purple); color: #fff; font-weight: 700; }
.doc tr:nth-child(even) td { background: #faf8fe; }
.doc code { background: #f1f1f4; padding: 1px 5px; border-radius: 3px; font-size: 0.92em; }
.doc hr { border: 0; border-top: 1px solid var(--row-line); margin: 28px 0; }
.doc figure.shot { margin: 16px 0 20px; }
.doc img { max-width: 100%; height: auto; border: 1px solid var(--row-line); border-radius: 4px; display: block; }
.doc li > p > img, .doc li > img { margin: 10px 0; }
.doc-side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 14px; }
.doc-cta { background: #000; color: #fff; padding: 16px; border-radius: 4px; border-top: 3px solid var(--purple); }
.doc-cta h2 { font-size: 19px; line-height: 1.25; margin: 0 0 8px; }
.doc-cta p { font-size: 14px; line-height: 1.45; margin: 0 0 12px; color: #ddd; }
.doc-cta .doc-note { font-size: 12px; margin: 10px 0 0; color: #aaa; }
.doc-cta .doc-note a { color: #ffffad; }
.doc-wa { display: block; text-align: center; background: #25d366; color: #000; font-weight: 700; font-size: 15px; line-height: 20px; padding: 10px; border-radius: 4px; }
.doc-wa:hover { background: #1ebe5a; }
.doc-related { border: 1px solid var(--row-line); border-radius: 4px; padding: 14px 16px; }
.doc-related h2 { font-size: 17px; margin: 0 0 8px; color: #000; }
.doc-related ul { list-style: none; margin: 0; padding: 0; }
.doc-related li { border-top: 1px solid var(--row-line); }
.doc-related li:first-child { border-top: 0; }
.doc-related a { display: block; padding: 8px 0; font-size: 14px; line-height: 1.35; color: var(--purple); }
.doc-related a:hover { text-decoration: underline; }
@media (max-width: 1100px) {
  .doc-wrap { grid-template-columns: minmax(0, 1fr); }
  .doc-side { position: static; }
}
@media (max-width: 640px) {
  .doc-crumb, .doc-wrap { padding-left: 10px; padding-right: 10px; }
  .doc { font-size: 16px; }
  .doc h1 { font-size: 26px; }
  .doc h2 { font-size: 21px; margin-top: 28px; }
  .doc h3 { font-size: 18px; }
  .doc table { font-size: 14px; }
  .footer-links { gap: 6px 14px; }
  .footer-links a { font-size: 13px; }
}

/* Rules page (matches cricplus.red/rules) */
.rules-page { margin: 5px 6px 10px 5px; }
.rules-head { display: flex; align-items: center; justify-content: space-between; background: var(--purple); color: #fff; padding: 6px 16px 6px 20px; }
.rules-head h1 { margin: 0; font-size: 24px; line-height: 28px; font-weight: 400; }
.rules-x { color: #000; font-size: 26px; line-height: 1; text-decoration: none; opacity: .55; }
.rules-x:hover { opacity: 1; }
.rules-body { padding: 20px 5px 5px; background: #fff; }
.rules-sec { margin-bottom: 5px; }
.rules-sec > summary { list-style: none; cursor: pointer; background: var(--purple); color: #e9dcff; font-size: 17px; line-height: 20px; padding: 13px 33px; }
.rules-sec > summary::-webkit-details-marker { display: none; }
.rules-sec > summary:hover { color: #fff; }
.rules-sec[open] > summary { margin-bottom: 0; }
.rules-table { width: calc(100% - 40px); margin: 25px 20px 20px; border-collapse: collapse; font-size: 16px; line-height: 15px; }
.rules-table td { border: 1px solid #dee2e6; padding: 12px; color: #212529; line-height: 1.15; }
.rules-table .text-danger { color: #dc3545; }

/* WhatsApp: login dialog button and floating 24x7 support badge */
.login-note { margin: 2px 0 0; color: #555; font-size: 13px; line-height: 1.4; text-align: center; }
.btn-whatsapp { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 16px;
  background: linear-gradient(180deg, #2fd46b 0%, #1fae55 100%); color: #fff; border-radius: 6px; font-size: 16px; line-height: 20px;
  font-weight: 700; letter-spacing: .3px; text-transform: uppercase; text-decoration: none; box-shadow: 0 3px 10px rgba(31,174,85,.35); transition: filter .15s, transform .15s; }
.btn-whatsapp .wa-ico { width: 24px; height: 24px; flex: none; }
.btn-whatsapp:hover { color: #fff; filter: brightness(.95); transform: translateY(-1px); }
.btn-whatsapp:focus-visible { outline: 3px solid #128c3f; outline-offset: 2px; }
.wa-float { position: fixed; right: 14px; bottom: 14px; z-index: 60; display: block; width: 112px; height: 112px; line-height: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); transition: transform .15s; }
.wa-float svg { width: 100%; height: 100%; }
.wa-float:hover { transform: scale(1.05); }
.wa-float:focus-visible { outline: 3px solid #3a9b3e; outline-offset: 2px; border-radius: 50%; }
@media (max-width: 767px) {
  .wa-float { width: 84px; height: 84px; right: 10px; bottom: 10px; }
  .rules-table { width: calc(100% - 16px); margin: 12px 8px; font-size: 15px; }
  .rules-sec > summary { padding: 12px 16px; }
}

/* Official domains: backup-domain bar, homepage intro, footer list */
.mainsite-bar { background: #1a1a1a; color: #ddd; font-size: 14px; line-height: 18px; padding: 7px 12px; text-align: center; }
.mainsite-bar b { color: #fff; }
.mainsite-bar a { color: #fff; font-weight: 700; text-decoration: underline; }
.site-intro { margin: 14px 6px 8px 5px; padding: 16px 18px; background: #fff; border-left: 4px solid var(--purple); color: #333; }
.site-intro h1 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; color: #111; }
.site-intro p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.site-intro-main { margin-bottom: 0 !important; font-weight: 700; }
.site-intro a { color: var(--purple); }
.footer-domains { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 8px 16px 0; font-size: 13px; color: #aaa; }
.footer-domains span { color: #ccc; }
.footer-domains a { color: #ddd; text-decoration: none; }
.footer-domains a:hover, .footer-domains a[aria-current] { color: #fff; text-decoration: underline; }
.site-intro-guides { margin: 4px 0 10px; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.site-intro-guides a { font-weight: 700; }
