/* ==========================================================================
   20Bet CL — layout: header, mobile drawer, rails, shell, footer
   ========================================================================== */

/* ==========================================================================
   Header
   ========================================================================== */

.tb-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: var(--tb-head-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: var(--tb-chrome-800);
  border-bottom: 1px solid var(--tb-line-dark);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

.tb-head__burger {
  display: none;
  width: 34px;
  height: 34px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--tb-r-sm);
  color: var(--tb-on-dark);
  transition: background .2s var(--tb-ease);
}
.tb-head__burger:hover { background: var(--tb-chrome-600); }
.tb-head__burger svg { width: 22px; height: 22px; }

/* logo */
.tb-logo {
  display: flex;
  align-items: center;
  flex: none;
  transition: transform .25s var(--tb-ease);
}
.tb-logo:hover { transform: scale(1.04); }
.tb-logo svg { height: 34px; width: auto; }
.tb-logo img { height: 34px; width: auto; }
/* The inline SVG is only a fallback: main.js strips any <img> that fails to
   load, so if an <img> survived we hide the SVG to avoid a doubled logo. */
.tb-logo:has(img) svg { display: none; }
/* reserve the logo box so decoding the bitmap never reflows the header row */
.tb-logo { min-width: 92px; }

/* app pill */
.tb-head__app {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  height: 40px;
  padding: 0 20px 0 16px;
  border-radius: var(--tb-r-sm);
  background: linear-gradient(180deg, #2464cf, #1a4aa5);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: filter .2s var(--tb-ease), transform .2s var(--tb-ease);
}
.tb-head__app:hover { filter: brightness(1.12); transform: translateY(-1px); }
.tb-head__app.is-on { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4), 0 0 16px rgba(42, 106, 216, .5); }
.tb-head__app-ico { display: flex; gap: 5px; }
.tb-head__app-ico svg { width: 15px; height: 15px; }

/* nav */
.tb-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  margin-left: 6px;
}

.tb-nav__i {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: var(--tb-head-h);
  padding: 0 11px;
  color: var(--tb-on-dark-dim);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s var(--tb-ease);
}

.tb-nav__i svg { width: 17px; height: 17px; flex: none; opacity: .78; transition: opacity .2s var(--tb-ease), transform .3s var(--tb-ease); }

.tb-nav__i::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 0;
  height: 3px;
  background: var(--tb-orange);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--tb-ease);
}

.tb-nav__i:hover { color: #fff; }
.tb-nav__i:hover svg { opacity: 1; transform: translateY(-2px); }
.tb-nav__i:hover::after { transform: scaleX(1); }

.tb-nav__i.is-on { color: #fff; }
.tb-nav__i.is-on::after { transform: scaleX(1); }
.tb-nav__i.is-on svg { opacity: 1; color: var(--tb-orange); }

.tb-nav__dots {
  display: inline-flex;
  gap: 4px;
  padding: 0 10px;
  align-items: center;
  height: var(--tb-head-h);
  color: var(--tb-on-dark-dim);
}
.tb-nav__dots i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  display: block;
}
.tb-nav__dots:hover { color: #fff; }

/* right cluster */
.tb-head__end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
}

.tb-geo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--tb-on-dark-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.tb-geo__flag {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}

.tb-head__login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--tb-r-sm);
  background: linear-gradient(180deg, var(--tb-green-l), var(--tb-green-d));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  transition: filter .2s var(--tb-ease), transform .2s var(--tb-ease);
}
.tb-head__login:hover { filter: brightness(1.1); transform: translateY(-1px); }
.tb-head__login svg { width: 16px; height: 16px; }

/* ==========================================================================
   Mobile drawer
   ========================================================================== */

.tb-scrim {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(6, 11, 20, .66);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--tb-ease), visibility .3s;
}
.tb-scrim.is-on { opacity: 1; visibility: visible; }

.tb-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 140;
  width: min(320px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--tb-chrome-850);
  border-right: 1px solid var(--tb-line-dark);
  transform: translateX(-102%);
  transition: transform .34s var(--tb-ease-out);
  overflow-y: auto;
}
.tb-drawer.is-on { transform: none; }

.tb-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--tb-line-dark);
  position: sticky;
  top: 0;
  background: var(--tb-chrome-850);
  z-index: 2;
}

.tb-drawer__x {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--tb-r-sm);
  color: var(--tb-on-dark-2);
  transition: background .2s var(--tb-ease), color .2s var(--tb-ease);
}
.tb-drawer__x:hover { background: var(--tb-chrome-600); color: #fff; }
.tb-drawer__x svg { width: 18px; height: 18px; }

.tb-drawer__body { padding: 14px 12px 30px; }

.tb-drawer__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
/* same squeeze as the promo cards: "Iniciar sesión" does not fit 20px padding
   in half of a 320px drawer */
.tb-drawer__cta .tb-btn {
  min-width: 0;
  padding: 0 8px;
  font-size: 11.5px;
  letter-spacing: .015em;
}

/* ==========================================================================
   Rail blocks (shared by left rail + drawer)
   ========================================================================== */

.tb-rail-grp { margin-bottom: 14px; }

.tb-rail-grp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--tb-on-dark-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  border-radius: var(--tb-r-sm);
  transition: color .2s var(--tb-ease);
}
.tb-rail-grp__head:hover { color: var(--tb-on-dark); }
.tb-rail-grp__head svg {
  width: 14px; height: 14px;
  transition: transform .3s var(--tb-ease);
}
.tb-rail-grp.is-closed .tb-rail-grp__head svg { transform: rotate(180deg); }

.tb-rail-grp__body {
  overflow: hidden;
  transition: max-height .34s var(--tb-ease), opacity .26s var(--tb-ease);
  max-height: 1400px;
  opacity: 1;
}
.tb-rail-grp.is-closed .tb-rail-grp__body { max-height: 0; opacity: 0; }

.tb-rail-i {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--tb-r-sm);
  color: var(--tb-on-dark-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: background .2s var(--tb-ease), color .2s var(--tb-ease), padding-left .2s var(--tb-ease);
}
.tb-rail-i + .tb-rail-i { border-top: 1px solid rgba(255, 255, 255, .045); }
.tb-rail-i > svg,
.tb-rail-i .tb-rail-i__ico {
  width: 19px; height: 19px;
  flex: none;
  opacity: .8;
  transition: opacity .2s var(--tb-ease), transform .28s var(--tb-ease);
}
.tb-rail-i__ico { display: grid; place-items: center; }
.tb-rail-i__ico img { width: 100%; height: 100%; object-fit: contain; border-radius: 2px; }

.tb-rail-i__t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tb-rail-i:hover {
  background: var(--tb-chrome-600);
  color: #fff;
  padding-left: 15px;
}
.tb-rail-i:hover > svg,
.tb-rail-i:hover .tb-rail-i__ico { opacity: 1; transform: scale(1.1); }

.tb-rail-i.is-on {
  background: var(--tb-chrome-600);
  color: #fff;
}
.tb-rail-i.is-on::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--tb-green-l);
}
.tb-rail-i.is-on > svg { opacity: 1; color: var(--tb-green-l); }

/* search */
.tb-rsearch {
  position: relative;
  margin: 0 0 14px;
}
.tb-rsearch input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 14px;
  border-radius: var(--tb-r-sm);
  border: 1px solid rgba(255, 255, 255, .1);
  background: var(--tb-chrome-700);
  color: var(--tb-on-dark);
  font-size: 13.5px;
  transition: border-color .2s var(--tb-ease), background .2s var(--tb-ease);
}
.tb-rsearch input::placeholder { color: var(--tb-on-dark-dim); }
.tb-rsearch input:focus {
  outline: none;
  border-color: var(--tb-green);
  background: var(--tb-chrome-600);
}
.tb-rsearch__btn {
  position: absolute;
  right: 4px; top: 4px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--tb-r-sm);
  color: var(--tb-on-dark-dim);
  transition: color .2s var(--tb-ease);
}
.tb-rsearch__btn:hover { color: var(--tb-green-l); }
.tb-rsearch__btn svg { width: 17px; height: 17px; }

/* ---------- promo widgets in rail ---------- */

.tb-wheel-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: var(--tb-r);
  background: linear-gradient(120deg, #16305c, #1c4b95 55%, #123a7a);
  overflow: hidden;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: transform .25s var(--tb-ease), box-shadow .25s var(--tb-ease);
}
.tb-wheel-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 8px 22px rgba(28, 80, 176, .45);
}
.tb-wheel-card::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 219, 59, .35), transparent 70%);
  animation: tb-glow 3.4s var(--tb-ease) infinite;
}
.tb-wheel-card__t {
  position: relative;
  z-index: 1;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1.25;
}

/* the spinning fortune wheel */
.tb-wheel {
  position: relative;
  z-index: 1;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      #f6b323 0deg 45deg, #e0392b 45deg 90deg, #4ca929 90deg 135deg,
      #2a6ad8 135deg 180deg, #f6b323 180deg 225deg, #e0392b 225deg 270deg,
      #4ca929 270deg 315deg, #2a6ad8 315deg 360deg);
  box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(246, 179, 35, .55);
  animation: tb-spin 9s linear infinite;
}
.tb-wheel::after {
  content: "";
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: #fff;
}

.tb-prize-card {
  position: relative;
  display: block;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: var(--tb-r);
  background: linear-gradient(120deg, #0f3d17, #1e7a2a 50%, #0f3d17);
  overflow: hidden;
  text-align: center;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(130, 219, 59, .3);
  transition: transform .25s var(--tb-ease), box-shadow .25s var(--tb-ease);
}
.tb-prize-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(130, 219, 59, .55), 0 8px 22px rgba(30, 122, 42, .5);
}
.tb-prize-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .18), transparent 55%);
}
.tb-prize-card__sum {
  position: relative;
  display: block;
  font-family: var(--tb-font-cond);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--tb-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  line-height: 1.1;
}
.tb-prize-card__lb {
  position: relative;
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  margin-top: 3px;
}

/* ==========================================================================
   Shell / grid
   ========================================================================== */

.tb-shell {
  display: grid;
  grid-template-columns: var(--tb-rail-l) minmax(0, 1fr) var(--tb-rail-r);
  gap: 14px;
  padding: calc(var(--tb-head-h) + 14px) 14px 0;
  align-items: start;
}

.tb-shell--wide { grid-template-columns: var(--tb-rail-l) minmax(0, 1fr); }

/* left rail */
.tb-rail-l {
  position: sticky;
  top: calc(var(--tb-head-h) + 14px);
  max-height: calc(100vh - var(--tb-head-h) - 28px);
  overflow-y: auto;
  padding: 12px 8px 20px;
  border-radius: var(--tb-r);
  background: var(--tb-chrome-800);
  box-shadow: var(--tb-sh-2);
}

/* main column */
.tb-main { min-width: 0; padding-bottom: 40px; }

/* right rail */
.tb-rail-r {
  position: sticky;
  top: calc(var(--tb-head-h) + 14px);
  max-height: calc(100vh - var(--tb-head-h) - 28px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tb-rpanel {
  border-radius: var(--tb-r);
  background: var(--tb-chrome-800);
  box-shadow: var(--tb-sh-2);
  overflow: hidden;
}

.tb-rpanel__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  color: var(--tb-on-dark-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--tb-line-dark);
}
.tb-rpanel__head svg { width: 15px; height: 15px; opacity: .8; }
.tb-rpanel__head .tb-rpanel__trash { margin-left: auto; transition: color .2s var(--tb-ease); }
.tb-rpanel__head .tb-rpanel__trash:hover { color: var(--tb-red); }

.tb-rpanel__bar {
  height: 3px;
  background: linear-gradient(90deg, var(--tb-green-l) 0 38%, rgba(255, 255, 255, .08) 38%);
}

/* betslip */
.tb-slip__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--tb-line-dark);
}
.tb-slip__tab {
  position: relative;
  padding: 13px 8px;
  color: var(--tb-on-dark-dim);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  transition: color .2s var(--tb-ease);
}
.tb-slip__tab::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--tb-green-l);
  transform: scaleX(0);
  transition: transform .28s var(--tb-ease);
}
.tb-slip__tab:hover { color: var(--tb-on-dark); }
.tb-slip__tab.is-on { color: #fff; }
.tb-slip__tab.is-on::after { transform: scaleX(1); }

.tb-slip__body { padding: 22px 18px; text-align: center; }

.tb-slip__art {
  width: 96px;
  margin: 0 auto 16px;
  opacity: .9;
  animation: tb-float 5s var(--tb-ease) infinite;
}

.tb-slip__hint {
  color: var(--tb-on-dark-2);
  font-size: 12.5px;
  line-height: 1.55;
  margin-bottom: 12px;
}
.tb-slip__hint--sm { color: var(--tb-on-dark-dim); font-size: 12px; }

.tb-slip__code {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--tb-r-sm);
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--tb-chrome-700);
  color: var(--tb-on-dark);
  font-size: 13px;
  text-align: center;
  transition: border-color .2s var(--tb-ease);
}
.tb-slip__code::placeholder { color: var(--tb-on-dark-dim); }
.tb-slip__code:focus { outline: none; border-color: var(--tb-green); }

.tb-slip__foot {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 10px;
  padding: 14px;
  background: var(--tb-chrome-850);
  border-top: 1px solid var(--tb-line-dark);
  align-items: center;
}
.tb-slip__foot .tb-btn {
  padding: 0 10px;
  font-size: 11px;
  letter-spacing: .02em;
  min-width: 0;
}
.tb-slip__amount {
  height: 42px;
  padding: 0 12px;
  border-radius: var(--tb-r-sm);
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--tb-chrome-700);
  color: var(--tb-on-dark);
  font-size: 14px;
  font-weight: 700;
}
.tb-slip__amount:focus { outline: none; border-color: var(--tb-green); }

/* casino mini widget in right rail */
.tb-mini__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--tb-line-dark);
}
.tb-mini__tab {
  position: relative;
  padding: 12px 14px;
  color: var(--tb-on-dark-dim);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s var(--tb-ease);
}
.tb-mini__tab::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--tb-green-l);
  transform: scaleX(0);
  transition: transform .28s var(--tb-ease);
}
.tb-mini__tab.is-on { color: #fff; }
.tb-mini__tab.is-on::after { transform: scaleX(1); }
.tb-mini__tab:hover { color: var(--tb-on-dark); }

.tb-mini__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}

.tb-mini__cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--tb-r-sm);
  overflow: hidden;
  transition: transform .25s var(--tb-ease);
}
.tb-mini__cell:hover { transform: scale(1.05); }
.tb-mini__cell img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Footer
   ========================================================================== */

.tb-foot {
  margin-top: 30px;
  background: var(--tb-card);
  border-top: 1px solid var(--tb-line-light);
}

.tb-foot__wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 22px 26px;
}

.tb-foot__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.tb-foot__h {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--tb-ink);
}

.tb-foot__li a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  color: var(--tb-ink-dim);
  font-size: 13.5px;
  transition: color .2s var(--tb-ease), transform .2s var(--tb-ease);
}
.tb-foot__li a:hover { color: var(--tb-green); transform: translateX(3px); }
.tb-foot__li svg { width: 15px; height: 15px; flex: none; }

.tb-foot__mid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--tb-line-light);
}

.tb-foot__pays {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
}
.tb-foot__pay {
  display: grid;
  place-items: center;
  height: 32px;
  min-width: 56px;
  padding: 0 10px;
  border-radius: var(--tb-r-sm);
  background: var(--tb-canvas);
  border: 1px solid var(--tb-line-light);
  color: var(--tb-ink-dim);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: border-color .2s var(--tb-ease), color .2s var(--tb-ease), transform .2s var(--tb-ease);
}
.tb-foot__pay:hover { border-color: var(--tb-green); color: var(--tb-green); transform: translateY(-2px); }

.tb-age {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--tb-red);
  color: var(--tb-red);
  font-size: 14px;
  font-weight: 800;
}

.tb-foot__legal {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--tb-line-light);
  color: var(--tb-ink-dim);
  font-size: 12.5px;
  line-height: 1.7;
}
.tb-foot__legal p { margin-bottom: 10px; }
.tb-foot__legal a { color: var(--tb-green); }
.tb-foot__legal a:hover { text-decoration: underline; }

.tb-foot__copy {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--tb-line-light);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: var(--tb-ink-dim);
  font-size: 12.5px;
}

.tb-social { display: flex; gap: 8px; }
.tb-social a {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tb-canvas);
  border: 1px solid var(--tb-line-light);
  color: var(--tb-ink-2);
  transition: background .2s var(--tb-ease), color .2s var(--tb-ease), transform .25s var(--tb-ease);
}
.tb-social a:hover {
  background: var(--tb-chrome-800);
  border-color: var(--tb-chrome-800);
  color: #fff;
  transform: translateY(-3px) rotate(-6deg);
}
.tb-social svg { width: 16px; height: 16px; }

/* ==========================================================================
   Floating helpers
   ========================================================================== */

.tb-top {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 100;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tb-chrome-800);
  color: #fff;
  box-shadow: var(--tb-sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--tb-ease), transform .3s var(--tb-ease), visibility .3s, background .2s;
}
.tb-top.is-on { opacity: 1; visibility: visible; transform: none; }
.tb-top:hover { background: var(--tb-green); }
.tb-top svg { width: 20px; height: 20px; }

.tb-chat {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 100;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--tb-green-l), var(--tb-green-d));
  color: #fff;
  box-shadow: 0 8px 26px rgba(76, 169, 41, .5);
  transition: transform .25s var(--tb-ease);
}
.tb-chat:hover { transform: scale(1.09) rotate(-6deg); }
.tb-chat svg { width: 26px; height: 26px; }
.tb-chat::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(76, 169, 41, .5);
  animation: tb-ring 2.4s var(--tb-ease) infinite;
}
@keyframes tb-ring {
  0% { transform: scale(.85); opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* reading progress */
.tb-prog {
  position: fixed;
  top: var(--tb-head-h);
  left: 0;
  z-index: 119;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--tb-green-l), var(--tb-gold), var(--tb-orange));
  transition: width .1s linear;
}

/* mobile sticky CTA */
.tb-mcta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 110;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(16, 28, 49, .97);
  border-top: 1px solid var(--tb-line-dark);
  backdrop-filter: blur(8px);
  transform: translateY(110%);
  transition: transform .34s var(--tb-ease-out);
}
.tb-mcta.is-on { transform: none; }
.tb-mcta__txt {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}
.tb-mcta__txt b { color: var(--tb-green-bright); display: block; font-size: 14px; }
/* the copy must yield to the CTA, not squeeze it until the label clips */
.tb-mcta .tb-btn { flex: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* The nav is only 4 links + the "..." overflow link now, so nothing needs to
   be shed — just tighten the spacing as the viewport narrows. */
@media (max-width: 1460px) {
  .tb-nav__i { padding: 0 9px; font-size: 11px; }
  .tb-nav__i svg { width: 16px; height: 16px; }
}

@media (max-width: 1340px) {
  :root { --tb-rail-r: 300px; }
  .tb-head__app { padding: 0 14px 0 12px; font-size: 11px; }
}

@media (max-width: 1200px) {
  .tb-shell,
  .tb-shell--wide { grid-template-columns: var(--tb-rail-l) minmax(0, 1fr); }
  .tb-rail-r { display: none; }
}

@media (max-width: 1080px) {
  .tb-nav { display: none; }
  .tb-head__burger { display: flex; }
}

@media (max-width: 960px) {
  .tb-shell,
  .tb-shell--wide {
    grid-template-columns: minmax(0, 1fr);
    padding: calc(var(--tb-head-h) + 12px) 12px 0;
    gap: 0;
  }
  .tb-rail-l { display: none; }
  .tb-head__burger { display: flex; }
  .tb-nav { display: none; }
  .tb-hide-desk { display: block; }
  .tb-mcta { display: flex; }
  .tb-chat { bottom: 84px; width: 46px; height: 46px; }
  .tb-chat svg { width: 22px; height: 22px; }
  .tb-top { bottom: 140px; }
  .tb-foot__cols { grid-template-columns: 1fr 1fr; gap: 22px; }
}

@media (max-width: 760px) {
  :root { --tb-head-h: 60px; }
  .tb-head { padding: 0 10px; gap: 8px; }
  .tb-head__app { display: none; }
  .tb-logo svg,
  .tb-logo img { height: 28px; }
  .tb-geo { display: none; }
  .tb-head__login span { display: none; }
  .tb-head__login { padding: 0 12px; }
  .tb-head__end .tb-btn { padding: 0 14px; font-size: 11px; }
  .tb-foot__wrap { padding: 26px 16px 22px; }
}

@media (max-width: 480px) {
  .tb-foot__cols { grid-template-columns: 1fr; gap: 18px; }
  .tb-shell,
  .tb-shell--wide { padding-left: 10px; padding-right: 10px; }
}
