/* Team Bull's phone layer. Desktop declarations remain owner-authored and intact. */
:root {
  --tb-mobile-gutter: 20px;
  --tb-mobile-panel: #0c110d;
  --tb-mobile-line: #1b221c;
  --tb-mobile-green: #00d455;
  --tb-mobile-ink: #070908;
  --tb-mobile-text: #f2efe6;
  --tb-mobile-muted: #a9b3aa;
}

.tb-public,
.tb-public body,
.tb-public #dc-root,
.tb-public #dc-root > .sc-host {
  max-width: 100%;
  overflow-x: clip;
}

.tb-public :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--tb-mobile-green) !important;
  outline-offset: 3px !important;
}

.tb-nav-toggle,
.tb-mobile-priority,
.tb-mobile-priority-dock,
.tb-desktop-priority-bar {
  display: none;
}

/* Promo-code marquees are intentionally removed at every width: comparison
   and the firm cards keep the useful destinations without promo framing. */
.tb-public .tb-ticker,
.tb-home .tb-live-ticker { display: none !important; }

/* Membership remains reachable, but never competes with YouTube or compare. */
.tb-public .tb-nav-menu a[href="/join"],
.tb-public .tb-nav-menu a[href*="whop.com"],
.tb-join header a[href*="whop.com"],
.tb-public a[href="/join"][style*="background:#00D455"],
.tb-public a[href*="whop.com"][style*="background:#00D455"],
.tb-home a[href="/join"][style*="background"],
.tb-public a[href*="whop.com"][style*="background"] {
  border: 1px solid #2a332c !important;
  background: transparent !important;
  color: var(--tb-mobile-muted) !important;
  font-weight: 600 !important;
}

.tb-home .tb-hero-membership-actions,
.tb-home .tb-hero-membership-proof { display: none !important; }

@media (min-width: 821px) {
  .tb-public .tb-nav-menu a[href="#live"],
  .tb-public .tb-nav-menu a[href="/#live"],
  .tb-public .tb-nav-menu a[href="/compare"] {
    display: inline-flex !important;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 15px !important;
    border-radius: 999px !important;
  }

  .tb-public .tb-nav-menu a[href="#live"],
  .tb-public .tb-nav-menu a[href="/#live"] {
    border: 1px solid #00d45566 !important;
    color: var(--tb-mobile-green) !important;
  }

  .tb-public .tb-nav-menu a[href="/compare"] {
    border: 1px solid var(--tb-mobile-green) !important;
    background: var(--tb-mobile-green) !important;
    color: var(--tb-mobile-ink) !important;
  }

  .tb-public.tb-static-live .tb-nav-menu a[href="#live"],
  .tb-public.tb-static-live .tb-nav-menu a[href="/#live"] {
    border-color: #ff4545 !important;
    background: #ff4545 !important;
    color: white !important;
  }

  .tb-home .tb-mobile-priority {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    grid-template-rows: auto auto auto;
    width: calc(100% - 48px);
    max-width: 1192px;
    height: 188px;
    min-height: 170px;
    gap: 12px 14px;
    margin: 28px auto 0;
    padding: 22px;
    border: 1px solid #29412f;
    border-radius: 26px;
    background:
      radial-gradient(circle at 82% 0%, rgba(0, 212, 85, .14), transparent 36%),
      linear-gradient(145deg, #101711, #080c09);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .04);
  }

  .tb-home .tb-priority-status {
    display: flex;
    min-height: 20px;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--tb-mobile-green);
    font: 700 11px/1 'Spline Sans Mono', monospace;
    letter-spacing: .12em;
  }
  .tb-home .tb-priority-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: currentColor;
  }
  .tb-home .tb-priority-status { grid-column: 1; grid-row: 1; }
  .tb-home .tb-priority-title {
    grid-column: 1;
    grid-row: 2;
    max-width: 22ch;
    margin: 0;
    color: var(--tb-mobile-text);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 750;
    line-height: 1.02;
    letter-spacing: -.025em;
    font-size: clamp(30px, 3vw, 38px) !important;
  }
  .tb-home .tb-priority-detail {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    color: var(--tb-mobile-muted);
    font: 500 13px/1.45 'Spline Sans Mono', monospace;
  }
  .tb-home .tb-priority-watch,
  .tb-home .tb-priority-compare {
    display: flex;
    align-self: stretch;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 15px;
    font-weight: 750;
    text-align: center;
  }
  .tb-home .tb-priority-watch { grid-column: 2; grid-row: 1 / 4; border: 1px solid #354039; background: #151c17; color: var(--tb-mobile-text); }
  .tb-home .tb-priority-compare { grid-column: 3; grid-row: 1 / 4; background: var(--tb-mobile-green); color: var(--tb-mobile-ink); }
  .tb-home .tb-mobile-priority[data-live-state="live"] {
    border-color: rgba(255, 69, 69, .68);
    background:
      radial-gradient(circle at 82% 0%, rgba(255, 69, 69, .14), transparent 36%),
      linear-gradient(145deg, #18100f, #080c09);
  }
  .tb-home .tb-mobile-priority[data-live-state="live"] .tb-priority-status { color: #ff4545; }
  .tb-home .tb-mobile-priority[data-live-state="live"] .tb-priority-watch { border-color: #ff4545; background: #ff4545; color: white; }

  .tb-desktop-priority-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 176px 176px;
    width: calc(100% - 48px);
    max-width: 1192px;
    min-height: 76px;
    align-items: center;
    gap: 10px;
    margin: 16px auto 0;
    padding: 10px;
    border: 1px solid #29412f;
    border-radius: 18px;
    background: linear-gradient(145deg, #101711, #080c09);
  }

  .tb-desktop-priority-summary {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 0 12px;
  }
  .tb-desktop-priority-status {
    flex: none;
    color: var(--tb-mobile-green);
    font: 700 11px/1 'Spline Sans Mono', monospace;
    letter-spacing: .12em;
  }
  .tb-desktop-priority-detail {
    overflow: hidden;
    color: var(--tb-mobile-text);
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tb-desktop-priority-watch,
  .tb-desktop-priority-compare {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 750;
  }
  .tb-desktop-priority-watch { border: 1px solid #354039; color: var(--tb-mobile-text); }
  .tb-desktop-priority-compare { background: var(--tb-mobile-green); color: var(--tb-mobile-ink); }
  .tb-desktop-priority-bar[data-live-state="live"] { border-color: rgba(255, 69, 69, .68); }
  .tb-desktop-priority-bar[data-live-state="live"] .tb-desktop-priority-status { color: #ff4545; }
  .tb-desktop-priority-bar[data-live-state="live"] .tb-desktop-priority-watch { border-color: #ff4545; background: #ff4545; color: white; }

  .tb-home .tb-hero h1[style*="font-size"] { font-size: clamp(38px, 3.5vw, 48px) !important; }
  .tb-join header h1[style*="font-size"] { font-size: clamp(40px, 4vw, 52px) !important; }
}

@media (max-width: 820px) {
  .tb-public {
    scroll-padding-top: 84px;
  }

  .tb-public body {
    min-width: 0;
    background: var(--tb-mobile-ink);
  }

  .tb-public img,
  .tb-public iframe,
  .tb-public video,
  .tb-public svg {
    max-width: 100%;
  }

  .tb-public .tb-site-nav {
    top: 0 !important;
    z-index: 80 !important;
    border-color: color-mix(in srgb, var(--tb-mobile-green) 16%, var(--tb-mobile-line)) !important;
  }

  .tb-public .tb-nav-inner {
    position: relative !important;
    min-height: 72px;
    gap: 12px !important;
    padding: 12px var(--tb-mobile-gutter) !important;
  }

  .tb-public .tb-nav-inner > a:first-child {
    min-width: 0;
    min-height: 44px;
  }

  .tb-public .tb-nav-inner > a:first-child span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tb-nav-toggle {
    position: relative;
    z-index: 2;
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    margin-left: auto;
    padding: 0;
    color: var(--tb-mobile-text);
    border: 1px solid #2a332c;
    border-radius: 50%;
    background: rgba(12, 17, 13, 0.88);
    cursor: pointer;
  }

  .tb-nav-toggle-line {
    position: absolute;
    left: 13px;
    width: 20px;
    height: 1px;
    background: currentColor;
    transform-origin: center;
    transition: top 180ms ease, transform 180ms ease, color 180ms ease;
  }

  .tb-nav-toggle-line:first-of-type { top: 18px; }
  .tb-nav-toggle-line:last-of-type { top: 27px; }
  .tb-nav-toggle[aria-expanded="true"] { color: var(--tb-mobile-green); border-color: #00d45566; }
  .tb-nav-toggle[aria-expanded="true"] .tb-nav-toggle-line:first-of-type { top: 23px; transform: rotate(45deg); }
  .tb-nav-toggle[aria-expanded="true"] .tb-nav-toggle-line:last-of-type { top: 23px; transform: rotate(-45deg); }

  .tb-public .tb-nav-menu {
    position: absolute !important;
    z-index: 1;
    top: calc(100% + 8px);
    right: var(--tb-mobile-gutter);
    left: var(--tb-mobile-gutter);
    display: none !important;
    max-height: calc(100svh - 116px);
    margin: 0 !important;
    padding: 8px !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch !important;
    gap: 2px !important;
    border: 1px solid #29412f;
    border-top-color: #00d45580;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(15, 24, 17, 0.99), rgba(5, 8, 7, 0.995));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.68), inset 0 1px rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .tb-public.tb-nav-open .tb-nav-menu,
  .tb-public .tb-nav-menu[data-open="true"] { display: flex !important; }

  .tb-public .tb-nav-menu > :where(a, span, sc-if > a) {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: var(--tb-mobile-text) !important;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 12px !important;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  .tb-public .tb-nav-menu > a[href="/compare"] {
    justify-content: center;
    margin-top: 6px;
    background: var(--tb-mobile-green) !important;
    color: var(--tb-mobile-ink) !important;
    font-weight: 700;
  }

  .tb-public .tb-nav-menu > :where(a, span):hover,
  .tb-public .tb-nav-menu > :where(a, span):focus-visible {
    background: #00d45514 !important;
    color: var(--tb-mobile-green) !important;
  }

  .tb-public .tb-ticker {
    display: none !important;
  }

  .tb-home .tb-live-ticker { display: none !important; }

  .tb-public .tb-ticker a {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding-inline: 20px !important;
  }

  /* A phone gets one complete offer, not fragments of a desktop marquee. */
  .tb-public .tb-ticker {
    min-height: 44px;
    padding-block: 0 !important;
  }

  .tb-public .tb-ticker > div {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: center;
    animation: none !important;
    transform: none !important;
  }

  .tb-public .tb-ticker > div > span { display: none; }
  .tb-public .tb-ticker > div > span:first-child { display: flex; }
  .tb-public .tb-ticker > div > span:first-child > a { display: none; }
  .tb-public .tb-ticker > div > span:first-child > a:first-child {
    display: inline-flex;
    min-height: 44px;
    padding-inline: 12px !important;
  }

  .tb-home .tb-mobile-priority {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - (var(--tb-mobile-gutter) * 2));
    max-width: 620px;
    height: 265px;
    min-height: 0;
    gap: 12px;
    margin: 16px auto 0;
    padding: 16px;
    border: 1px solid #29412f;
    border-radius: 22px;
    background:
      radial-gradient(circle at 92% 4%, rgba(0, 212, 85, .14), transparent 38%),
      linear-gradient(145deg, #101711, #080c09);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .035);
  }

  .tb-priority-status {
    grid-column: 1 / -1;
    display: flex;
    min-height: 20px;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--tb-mobile-green);
    font: 700 11px/1 'Spline Sans Mono', monospace;
    letter-spacing: .12em;
  }

  .tb-priority-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: currentColor;
  }

  .tb-priority-title {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--tb-mobile-text);
    font: 750 clamp(26px, 7.6vw, 32px)/1.06 'Bricolage Grotesque', sans-serif !important;
    letter-spacing: -.02em;
  }

  .tb-priority-detail {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    color: var(--tb-mobile-muted);
    font: 500 13px/1.45 'Spline Sans Mono', monospace;
  }

  .tb-priority-watch,
  .tb-priority-compare {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 13px;
    font-weight: 750;
    text-align: center;
  }

  .tb-priority-watch {
    border: 1px solid #354039;
    background: #151c17;
    color: var(--tb-mobile-text);
  }

  .tb-priority-compare {
    background: var(--tb-mobile-green);
    color: var(--tb-mobile-ink);
  }

  .tb-priority-arrow { font: 700 18px/1 'Spline Sans Mono', monospace; }

  .tb-mobile-priority[data-live-state="live"] {
    border-color: rgba(255, 69, 69, .68);
    background:
      radial-gradient(circle at 92% 4%, rgba(255, 69, 69, .14), transparent 38%),
      linear-gradient(145deg, #18100f, #080c09);
  }

  .tb-mobile-priority[data-live-state="live"] .tb-priority-status { color: #ff4545; }
  .tb-mobile-priority[data-live-state="live"] .tb-priority-status-dot { animation: tbprioritypulse 1.2s ease-in-out infinite; }
  .tb-mobile-priority[data-live-state="live"] .tb-priority-watch {
    border-color: #ff4545;
    background: #ff4545;
    color: white;
  }

  @keyframes tbprioritypulse { 50% { opacity: .35; transform: scale(.82); } }

  .tb-mobile-priority-dock {
    position: fixed;
    z-index: 75;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 50%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: min(calc(100vw - 24px), 460px);
    padding: 6px;
    border: 1px solid #29412f;
    border-radius: 17px;
    background: rgba(8, 13, 9, .94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateX(-50%);
  }

  .tb-mobile-priority-dock a {
    display: flex;
    min-width: 0;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
  }

  .tb-priority-dock-watch { color: var(--tb-mobile-text); }
  .tb-priority-dock-compare { background: var(--tb-mobile-green); color: var(--tb-mobile-ink); }
  .tb-mobile-priority-dock[data-live-state="live"] .tb-priority-dock-watch { background: #ff4545; color: white; }

  .tb-public footer a,
  .tb-home #live a[href*="youtube.com/@JDunTrades/live"],
  .tb-home section a[href="/matcher"],
  .tb-home section a[href="/deals#finder"],
  .tb-deals .tb-firm-card a,
  .tb-deals .tb-plan-table a {
    display: flex !important;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
  }

  .tb-deals a[href*="trustpilot.com"],
  .tb-deals a[href="/checkout"],
  .tb-deals a[href="#finder"],
  .tb-deals a[href="/#live"] {
    display: inline-flex !important;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
  }

  .tb-public :where(header, section, footer) [style*="max-width:1240px"],
  .tb-public :where(header, section, footer) [style*="max-width:1360px"],
  .tb-public :where(header, section, footer) [style*="max-width: 1240px"],
  .tb-public :where(header, section, footer) [style*="max-width: 1360px"],
  .tb-public :where(header, section, footer)[style*="max-width:1240px"],
  .tb-public :where(header, section, footer)[style*="max-width:1360px"],
  .tb-public :where(header, section, footer)[style*="max-width: 1240px"],
  .tb-public :where(header, section, footer)[style*="max-width: 1360px"],
  .tb-public [style*="max-width:900px"],
  .tb-public [style*="max-width:820px"],
  .tb-public [style*="max-width:760px"],
  .tb-public [style*="max-width: 900px"],
  .tb-public [style*="max-width: 820px"],
  .tb-public [style*="max-width: 760px"] {
    width: 100%;
    padding-right: var(--tb-mobile-gutter) !important;
    padding-left: var(--tb-mobile-gutter) !important;
  }

  .tb-public [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .tb-public [style*="grid-template-columns:repeat(4,1fr)"],
  .tb-public [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .tb-public [style*="gap:64px"],
  .tb-public [style*="gap: 64px"] { gap: 30px !important; }
  .tb-public [style*="gap:40px"],
  .tb-public [style*="gap: 40px"] { gap: 24px !important; }

  /* The desktop market tape has no honest one-line phone composition. */
  .tb-deals .tb-market-tape { display: none !important; }

  .tb-public h1[style*="font-size"] {
    font-size: clamp(2.35rem, 11vw, 3rem) !important;
    line-height: .98 !important;
    letter-spacing: -.025em !important;
  }

  .tb-public h2[style*="font-size"] {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
    line-height: 1.02 !important;
  }

  .tb-public h3[style*="font-size"] {
    line-height: 1.12 !important;
  }

  .tb-public .tb-hero {
    padding-top: 44px !important;
    padding-bottom: 52px !important;
    overflow: hidden !important;
  }

  .tb-home .tb-hero {
    padding-top: 30px !important;
    padding-bottom: 44px !important;
  }

  .tb-home .tb-hero h1[style*="font-size"] {
    max-width: 18ch;
    font-size: clamp(1.8rem, 8vw, 2rem) !important;
    line-height: 1 !important;
  }

  .tb-join header h1[style*="font-size"] {
    max-width: 18ch;
    margin-inline: auto !important;
    font-size: clamp(2rem, 8vw, 2.35rem) !important;
  }

  .tb-public .tb-hero > div[style*="position:absolute"] {
    max-width: 100%;
  }

  .tb-public .tb-hero [style*="font-size:19px"],
  .tb-public .tb-hero [style*="font-size: 19px"],
  .tb-public header [style*="font-size:18px"],
  .tb-public header [style*="font-size: 18px"] {
    font-size: 16px !important;
    line-height: 1.62 !important;
  }

  .tb-public .tb-hero [style*="display:flex"][style*="flex-wrap:wrap"]:not(.tb-hero-membership-actions),
  .tb-public .tb-hero [style*="display: flex"][style*="flex-wrap: wrap"]:not(.tb-hero-membership-actions) {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .tb-public .tb-hero [style*="display:flex"][style*="flex-wrap:wrap"] > a {
    display: flex !important;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-inline: 18px !important;
    text-align: center;
  }

  .tb-home .tb-hero > div:last-child {
    padding: 18px !important;
  }

  .tb-home .tb-hero > div:last-child [style*="grid-template-columns"] {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .tb-home .tb-hero > div:last-child [style*="grid-template-columns"] > div {
    padding: 10px 2px !important;
  }

  .tb-home .tb-hero > div:last-child [style*="font-size:30px"],
  .tb-home .tb-hero > div:last-child [style*="font-size: 30px"] {
    font-size: clamp(20px, 6.5vw, 26px) !important;
  }

  .tb-public .tb-live-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .tb-public .tb-live-layout iframe {
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
  }

  .tb-public :where(button, select, input, textarea),
  .tb-public a[style*="border-radius"] {
    min-height: 44px;
  }

  .tb-public input,
  .tb-public select,
  .tb-public textarea {
    max-width: 100%;
    font-size: 16px !important;
  }

  .tb-public [style*="padding:110px 24px"],
  .tb-public [style*="padding:96px 24px"],
  .tb-public [style*="padding:88px 24px"],
  .tb-public [style*="padding: 110px 24px"],
  .tb-public [style*="padding: 96px 24px"],
  .tb-public [style*="padding: 88px 24px"] {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .tb-public [style*="padding:64px 24px 40px"],
  .tb-public [style*="padding:64px 24px"],
  .tb-public [style*="padding: 64px 24px 40px"],
  .tb-public [style*="padding: 64px 24px"] {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
  }

  .tb-public [style*="padding:38px"],
  .tb-public [style*="padding:28px"],
  .tb-public [style*="padding:26px"],
  .tb-public [style*="padding:24px"],
  .tb-public [style*="padding: 38px"],
  .tb-public [style*="padding: 28px"],
  .tb-public [style*="padding: 26px"],
  .tb-public [style*="padding: 24px"] {
    padding: 20px !important;
  }

  /* A firm is a decision on a phone, not a row in a spreadsheet. */
  .tb-deals .tb-firm-board {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
  }

  .tb-deals .tb-firm-board-head { display: none !important; }

  .tb-deals .tb-firm-card {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 14px 12px !important;
    margin-bottom: 12px;
    padding: 18px !important;
    border: 1px solid var(--tb-mobile-line) !important;
    border-radius: 18px;
    background: linear-gradient(145deg, #101711, #090d0a) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
  }

  .tb-deals .tb-firm-card {
    grid-template-columns: 1fr !important;
  }

  .tb-deals .tb-firm-card > span {
    min-width: 0;
    text-align: left !important;
  }

  .tb-deals .tb-firm-card > span:first-child {
    grid-column: 1 / -1;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tb-mobile-line);
  }

  .tb-deals .tb-firm-card > span:nth-child(2)::before,
  .tb-deals .tb-firm-card > span:nth-child(3)::before,
  .tb-deals .tb-firm-card > span:nth-child(4)::before,
  .tb-deals .tb-firm-card > span:nth-child(5)::before {
    display: block;
    margin-bottom: 5px;
    color: #667469;
    font: 600 10px/1 'Spline Sans Mono', monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .tb-deals .tb-firm-card > span:nth-child(2)::before { content: "Rating"; }
  .tb-deals .tb-firm-card > span:nth-child(3)::before { content: "Platforms"; }
  .tb-deals .tb-firm-card > span:nth-child(4)::before { content: "Max accounts"; }
  .tb-deals .tb-firm-card > span:nth-child(5)::before { content: "Payout speed"; }

  .tb-deals .tb-firm-card > span:nth-child(3),
  .tb-deals .tb-firm-card > span:nth-child(5) {
    text-align: right;
  }

  .tb-deals .tb-firm-card > span:last-child {
    grid-column: 1 / -1;
    text-align: left !important;
  }

  .tb-deals .tb-firm-card > span:last-child a {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .tb-deals .tb-plan-table-wrap {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
  }

  .tb-deals .tb-plan-table {
    display: block;
    min-width: 0 !important;
  }

  .tb-deals .tb-plan-table thead { display: none; }
  .tb-deals .tb-plan-table tbody { display: grid; gap: 12px; }

  .tb-deals .tb-plan-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
    padding: 18px;
    border: 1px solid var(--tb-mobile-line) !important;
    border-radius: 16px;
    background: #090e0a;
  }

  .tb-deals .tb-plan-table td {
    display: block;
    min-width: 0;
    padding: 0 !important;
    text-align: left !important;
    white-space: normal !important;
  }

  .tb-deals .tb-plan-table td:first-child,
  .tb-deals .tb-plan-table td:last-child {
    grid-column: 1 / -1;
  }

  .tb-deals .tb-plan-table td:first-child {
    padding-bottom: 13px !important;
    overflow-wrap: anywhere;
    border-bottom: 1px solid var(--tb-mobile-line);
  }

  .tb-deals .tb-plan-table td:nth-child(n+2):nth-child(-n+9)::before {
    display: block;
    margin-bottom: 5px;
    color: #667469;
    font: 600 10px/1 'Spline Sans Mono', monospace;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  .tb-deals .tb-plan-table td:nth-child(2)::before { content: "Size"; }
  .tb-deals .tb-plan-table td:nth-child(3)::before { content: "Eval"; }
  .tb-deals .tb-plan-table td:nth-child(4)::before { content: "Activation"; }
  .tb-deals .tb-plan-table td:nth-child(5)::before { content: "Reset"; }
  .tb-deals .tb-plan-table td:nth-child(6)::before { content: "Drawdown"; }
  .tb-deals .tb-plan-table td:nth-child(7)::before { content: "Goal"; }
  .tb-deals .tb-plan-table td:nth-child(8)::before { content: "Discount"; }
  .tb-deals .tb-plan-table td:nth-child(9)::before { content: "True cost"; }

  .tb-deals .tb-plan-table td:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .tb-deals .tb-plan-table td:last-child :where(button, a) {
    display: flex !important;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    text-align: center;
  }

  .tb-apply [style*="grid-template-columns:1fr 1fr"],
  .tb-apply [style*="grid-template-columns: 1fr 1fr"],
  .tb-checkout [style*="grid-template-columns:1.6fr 1fr"],
  .tb-checkout [style*="grid-template-columns: 1.6fr 1fr"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .tb-checkout [style*="grid-template-columns:1.6fr 1fr"] > [style*="position:sticky"],
  .tb-checkout [style*="grid-template-columns: 1.6fr 1fr"] > [style*="position: sticky"] {
    position: static !important;
  }

  .tb-home body,
  .tb-deals body,
  .tb-join body,
  .tb-apply body,
  .tb-checkout body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  :root { --tb-mobile-gutter: 16px; }

  .tb-public .tb-nav-inner > a:first-child span { font-size: 16px !important; }
  .tb-public h1[style*="font-size"] { font-size: clamp(2.2rem, 11.5vw, 2.6rem) !important; }
  .tb-public [style*="grid-template-columns:repeat(4,1fr)"],
  .tb-public [style*="grid-template-columns: repeat(4, 1fr)"] { gap: 8px !important; }
  .tb-public [style*="grid-template-columns:repeat(4,1fr)"] > div,
  .tb-public [style*="grid-template-columns: repeat(4, 1fr)"] > div { padding: 12px 5px !important; }
  .tb-deals .tb-firm-card { grid-template-columns: 1fr !important; }
  .tb-deals .tb-firm-card > span { text-align: left !important; }
  .tb-deals .tb-plan-table tr { grid-template-columns: 1fr; }
  .tb-deals .tb-plan-table td { grid-column: 1 !important; }
  .tb-deals .tb-plan-table td:last-child { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tb-public *,
  .tb-public *::before,
  .tb-public *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .tb-public .tb-ticker {
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
  }

  .tb-public .tb-ticker > div {
    transform: none !important;
  }
}
