/* Better Traders visual refresh. Loaded after the original stylesheets. */
@font-face { font-family: Satoshi; src: url('/static/fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Satoshi; src: url('/static/fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Satoshi; src: url('/static/fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Satoshi; src: url('/static/fonts/satoshi-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --tbt-night: #081629;
  --tbt-green: #00cc00;
  --tbt-mint: #78dcc2;
  --tbt-forest: #007326;
}
body {
  --page: #f3f6f8;
  --surface: #ffffff;
  --surface-soft: #f3f7f8;
  --ink: #15263a;
  --muted: #506175;
  --line: #dce5e9;
  --link: #007326;
  padding-top: 0;
  font-family: Satoshi, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
body.dark {
  --page: #081629;
  --surface: #102238;
  --surface-soft: #152b43;
  --ink: #f2f7fc;
  --muted: #b4c4d6;
  --line: #2a4057;
  --link: #78dcc2;
  background: var(--page);
  color-scheme: dark;
}
body.scanner { background: var(--page); }
body .container { max-width: 1240px; width: calc(100% - 64px); padding: 0; }
body a { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
body a:focus-visible, body button:focus-visible, body select:focus-visible {
  outline: 3px solid #1073c4 !important;
  outline-offset: 4px;
}
body.dark a:focus-visible, body.dark button:focus-visible, body.dark select:focus-visible,
body .navbar a:focus-visible, body .navbar button:focus-visible, body footer a:focus-visible {
  outline-color: var(--tbt-mint) !important;
}

/* Shared navy header, real logo and an explicit selected theme. */
:is(body, body.dark) .navbar {
  background: var(--tbt-night) !important;
  border-bottom: 1px solid #24364b;
  padding: 18px 0;
}
body .navbar-brand { margin: 0; padding: 0; display: flex; align-items: center; }
body .navbar-brand img { width: 196px; height: auto; max-height: 48px; object-fit: contain; }
/* Preserve the header's existing layout while matching the main-site stacked mark.
   The source image includes transparent padding around the visible lettering. */
body .navbar-brand.tbt-stacked-brand { position: relative; width: 196px; height: 40px; flex-shrink: 0; }
body .navbar-brand.tbt-stacked-brand img { position: absolute; left: -10px; top: 50%; width: 118px; height: auto; max-height: none; transform: translateY(-50%); }
body .navbar > .container > div { align-items: center; }
:is(body, body.dark) .navbar .navbar-nav .nav-link {
  color: #c8d5e3;
  font-size: 15px;
  font-weight: 500;
  margin-right: 36px;
  line-height: 24px;
}
:is(body, body.dark) .navbar .navbar-nav .nav-link:hover { color: #fff; }
:is(body, body.dark) .navbar .toggle-mode { gap: 5px; }
:is(body, body.dark) .navbar .toggle-mode :is(.btn-toggle, .btn-toggle-active) {
  width: 40px;
  height: 40px;
  padding: 9px;
  margin: 0;
  border: 1px solid #3d5067;
  border-radius: 50%;
  background: #14283d;
  justify-content: center;
}
:is(body, body.dark) .navbar .toggle-mode .btn-toggle-active {
  border: 2px solid var(--tbt-mint);
  background: #21463f;
}
body .toggle-mode img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
:is(body, body.dark) .navbar .navbar-toggler { width: 44px; height: 44px; background: #14283d; border: 1px solid #3d5067; border-radius: 12px; }
:is(body, body.dark) .navbar .navbar-toggler span { background: #fff; width: 18px; }

/* Landing page: the main site's navy, grid and green call to action. */
body .hero {
  padding: 68px 0 76px;
  background-color: var(--tbt-night);
  background-image: linear-gradient(rgba(123,173,223,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,173,223,.055) 1px, transparent 1px),
    radial-gradient(ellipse at 82% 35%, #174250 0, transparent 48%),
    linear-gradient(160deg, #14355f 0, #081629 72%);
  background-size: 64px 64px, 64px 64px, auto, auto;
}
body .hero .row { align-items: center; }
body .hero .hero-left { padding: 28px 12px 28px 0; }
body .hero .hero-left :is(.absolute-1, .absolute-2, .absolute-3) { display: none; }
:is(body, body.dark) .hero .hero-left h1 {
  color: #fff;
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 900;
  max-width: 620px;
  margin: 0;
}
:is(body, body.dark) .hero .hero-left p { color: #c1cede; font-size: 19px; line-height: 1.65; margin: 28px 0 32px; max-width: 490px; }
:is(body, body.dark) .hero .hero-left .btn-hero {
  width: max-content;
  min-width: 176px;
  height: 56px;
  padding: 0 30px;
  border-radius: 100px;
  background: var(--tbt-green);
  color: #232323;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 8px 32px #00cc001c;
}
body .hero .hero-left .btn-hero::after { display: none; }
:is(body, body.dark) .hero .hero-left .btn-hero:hover { background: #55df35; }
body .hero .hero-right { padding: 0 15px 0 24px; }
body .hero .hero-banner { max-width: 560px; margin: auto; }
body .hero .hero-banner img { display: block; }
body .benefits { padding: 0; }
:is(body, body.dark) .bg-benefits { background: var(--page); padding: 88px 0; }
body .benefits .contents { width: calc(100% - 64px); max-width: 1120px; }
:is(body, body.dark) .benefits h2 { color: var(--ink); font-size: 44px; line-height: 1.1; letter-spacing: -.04em; font-weight: 900; margin-bottom: 20px; }
:is(body, body.dark) .benefits p { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 900px; margin-bottom: 48px; }
body .benefits .benefits-item {
  max-width: none;
  padding: 40px 48px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  margin-bottom: 20px;
  gap: 32px;
}
body .benefits .benefits-items .text { max-width: 590px; flex: 1; }
:is(body, body.dark) .benefits .benefits-items .text h3 { color: var(--ink); font-size: 27px; line-height: 1.3; font-weight: 700; letter-spacing: -.025em; margin-bottom: 14px; }
:is(body, body.dark) .benefits .benefits-items .text p { color: var(--muted); font-size: 17px; line-height: 1.7; margin-bottom: 0; }
body .benefits .benefits-items .image { max-width: 230px; flex: 0 0 25%; }
body .benefits .benefits-items .image img { display: block; margin: 0; }

/* Scanner surfaces and data. Bootstrap still controls table/accordion display. */
body section.scanner { padding: 48px 0 72px; }
:is(body, body.dark) .scanner h1 { color: var(--ink); font-size: 44px; line-height: 1.12; font-weight: 900; letter-spacing: -.045em; text-align: left; margin: 0 0 10px; }
:is(body, body.dark) .scanner h6 { color: var(--muted); font-size: 14px; line-height: 1.6; text-align: left; margin: 0 0 28px; font-variant-numeric: tabular-nums; }
:is(body, body.dark) .scanner-card { max-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 12px 36px #07111f06; }
body .scanner-card .filters-group { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin-bottom: 20px; align-items: center; }
:is(body, body.dark) .scanner-card .filters-group :is(.filter, .limitfilter) { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; height: 46px; padding: 0; margin: 0; }
body .scanner-card .filters-group .filter { flex: 1 1 140px; width: auto; }
body .scanner-card .filters-group .limitfilter { flex: 0 0 82px; width: 82px; }
:is(body, body.dark) .scanner-card .filters-group :is(.filter, .limitfilter) select { height: 100%; padding: 0 30px 0 13px; color: var(--ink); font: 500 14px Satoshi, Arial, sans-serif; border-radius: 9px; }
:is(body, body.dark) .scanner-card .filters-group :is(.filter, .limitfilter) option { color: var(--ink); background: var(--surface); }
body .scanner-card .filters-group :is(.filter, .limitfilter) img { pointer-events: none; width: 11px; }
body.dark .scanner-card .filters-group :is(.filter, .limitfilter) img { filter: brightness(0) invert(1); }
:is(body, body.dark) .scanner-card .filters-group :is(.btn-reset, .btn-create) { width: auto; flex: 0 0 auto; padding: 0 19px; height: 46px; border-radius: 100px; font-weight: 700; font-size: 14px; margin: 0; text-decoration: none; }
:is(body, body.dark) .scanner-card .filters-group .btn-reset { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
:is(body, body.dark) .scanner-card .filters-group .btn-create { background: var(--tbt-green); color: #232323; border: 1px solid var(--tbt-green); }
:is(body, body.dark) .scanner-card .filters-group .btn-create:hover { background: #55df35; }
:is(body, body.dark) .scanner-card .filters-group .btn-reset:hover { background: var(--surface-soft); }
body .scanner .table { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
:is(body, body.dark) .scanner .table thead th { padding: 15px 12px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: 12px; line-height: 1.35; font-weight: 700; letter-spacing: .015em; vertical-align: middle; }
:is(body, body.dark) .scanner .table td { padding: 14px 12px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
:is(body, body.dark) .scanner .table-striped tbody tr:nth-of-type(odd) { background: var(--surface); }
:is(body, body.dark) .scanner .table-striped tbody tr:nth-of-type(even) { background: var(--surface-soft); }
:is(body, body.dark) .scanner .table-striped tbody tr td:first-child,
:is(body, body.dark) .scanner .table-striped tbody tr td:last-child { border-left: 0; border-right: 0; }
body .scanner .table td:nth-child(n+3), body .scanner .table th:nth-child(n+3) { text-align: right; }
body .scanner-card a:not(.btn-create):not(.btn-reset) { color: var(--link); font-weight: 700; }
body .scanner-card a:not(.btn-create):not(.btn-reset):hover { text-decoration: underline; }
:is(body, body.dark) .accordion { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
:is(body, body.dark) .accordion .card { background: var(--surface); }
:is(body, body.dark) .accordion :is(.card-header, .card-body) { background: var(--surface); }
:is(body, body.dark) .accordion .card:nth-of-type(odd) :is(.card-header, .card-body) { background: var(--surface-soft); }
body .accordion .card-header { padding: 18px 12px; }
body .accordion .acc-header { gap: 12px; flex-wrap: wrap; }
:is(body, body.dark) .accordion .acc-header h5 { color: var(--ink); margin: 0; font-size: 14px; font-weight: 700; }
:is(body, body.dark) .accordion .acc-header p { color: var(--muted); margin: 0; font-size: 13px; }
body .accordion .acc-header p:last-child { margin-left: auto; }
body.dark .accordion .acc-header > img { filter: brightness(0) invert(1); }
body .accordion .card-body { padding: 8px 18px 20px; }
:is(body, body.dark) .accordion .card-body .details { border-color: var(--line); padding-left: 16px; }
body .accordion table { width: 100%; font-variant-numeric: tabular-nums; }
:is(body, body.dark) .accordion .card-body .details table tr td { color: var(--muted); font-size: 13px; }
:is(body, body.dark) .accordion .card-body .details table tr td[align='right'] { color: var(--ink); }

/* Footer shared by all four routes. */
:is(body, body.dark) footer { background: #07111f; border-top: 1px solid #24364b; padding: 56px 0; color: #b4c4d6 !important; }
body footer .footer-row { gap: 48px; flex-wrap: nowrap; }
body footer .footer-left { max-width: 420px; margin-right: 0; flex: 1; }
body footer .footer-left img { width: 196px; height: auto; margin-bottom: 28px; }
body footer .footer-left .links-group { gap: 24px; }
body footer .footer-left .footer-link { margin: 0; color: #d8e3ee !important; font-size: 15px; }
body footer .footer-left .copy { font-size: 12px; line-height: 1.7; margin: 32px 0 0; }
body footer .footer-right { max-width: 520px; flex: 1; }
body footer .footer-right h5 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
body footer .footer-right p { font-size: 14px; line-height: 1.7; margin: 0; }

@media (max-width: 1199px) {
  body .scanner-card .filters-group .filter { flex-basis: calc(25% - 12px); }
  body .scanner .table { font-size: 12px; }
  :is(body, body.dark) .scanner .table :is(td, thead th) { padding: 12px 8px; }
}
@media (max-width: 991px) {
  body .navbar > .container, body .navbar > .container > div { display: block; }
  body .navbar-nav { padding: 18px 0 6px; gap: 12px; }
  :is(body, body.dark) .navbar .navbar-nav .nav-link { margin-right: 0; }
  :is(body, body.dark) .navbar .navbar-nav .toggle-mode :is(.btn-toggle, .btn-toggle-active) { background: #14283d; margin: 0; }
  :is(body, body.dark) .navbar .navbar-nav .toggle-mode .btn-toggle-active { background: #21463f; }
  body .hero .row { flex-direction: column; }
  body .hero { padding: 40px 0 56px; }
  body .hero .hero-left { padding: 12px 0 24px; }
  :is(body, body.dark) .hero .hero-left h1 { max-width: 680px; font-size: 64px; }
  :is(body, body.dark) .hero .hero-left p { max-width: 570px; }
  body .hero .hero-right { padding: 20px 15px 0; }
  body .hero .hero-banner { max-width: 400px; }
  body .benefits .benefits-item { padding: 28px; }
  :is(body, body.dark) .scanner-card { padding: 16px; }
  body footer .footer-row { flex-wrap: wrap; gap: 32px; }
  body footer .footer-left, body footer .footer-right { max-width: none; flex-basis: 100%; margin-bottom: 0; }
  body footer .footer-right p.copy { margin-top: 24px; font-size: 12px; }
}
@media (max-width: 767px) {
  body .container, body .benefits .contents { width: calc(100% - 40px); }
  body .navbar-brand img, body footer .footer-left img { width: 172px; }
  body .navbar-brand.tbt-stacked-brand { width: 172px; }
  :is(body, body.dark) .hero .hero-left h1 { font-size: 52px; }
  :is(body, body.dark) .hero .hero-left p { font-size: 17px; }
  body .hero .hero-banner { max-width: 330px; }
  :is(body, body.dark) .bg-benefits { padding: 56px 0; }
  body .benefits .contents { padding: 0; }
  :is(body, body.dark) .benefits h2 { font-size: 36px; }
  :is(body, body.dark) .benefits p { font-size: 17px; margin-bottom: 32px; }
  body .benefits .benefits-item { margin-bottom: 16px !important; padding: 28px 24px; gap: 24px; flex-direction: column; }
  body .benefits .benefits-item:nth-child(even) { flex-direction: column-reverse; }
  body .benefits .benefits-items .image { max-width: 176px; margin: 0 auto; flex-basis: auto; }
  :is(body, body.dark) .benefits .benefits-items .text h3 { font-size: 23px; }
  body section.scanner { padding: 32px 0 44px; }
  :is(body, body.dark) .scanner h1 { font-size: 34px; }
  :is(body, body.dark) .scanner h6 { font-size: 12px; margin-bottom: 22px; }
  :is(body, body.dark) .scanner-card { padding: 14px; border-radius: 16px; }
  body .scanner-card .filters-group { gap: 10px; margin-bottom: 16px; }
  body .scanner-card .filters-group .filter { flex-basis: calc(50% - 5px); min-width: 0; }
  :is(body, body.dark) .scanner-card .filters-group :is(.btn-reset, .btn-create) { flex: 1 1 calc(50% - 5px); padding: 0 10px; }
  :is(body, body.dark) footer { padding: 44px 0; }
  body footer .footer-left .links-group { flex-direction: row; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { body a { transition: none; } }

/* Home graphics: bespoke brand SVGs and the heading accent. Home-only selectors. */
body .hero .hero-banner img,
body .benefits .benefits-items .image img { width: 100%; height: auto; }
body .hero .hero-left h1 .tbt-accent { color: #3fd6b5; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  body .hero .hero-left h1 .tbt-accent {
    background: linear-gradient(90deg, #0dcab1, #00cc00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
@media (forced-colors: active) {
  body .hero .hero-left h1 .tbt-accent {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}

/* Main-site footer (.tbt-site-footer), identical on all four routes. Footer-scoped only;
   explicit defaults stop older global footer, p, h2, ul and link rules leaking in. */
:is(body, body.dark) footer.tbt-site-footer {
  box-sizing: border-box;
  margin: 0;
  padding: 72px 0 36px;
  background: #07111f;
  border-top: 1px solid rgba(255,255,255,.09);
  color: #fff !important;
  font-family: Satoshi, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}
.tbt-site-footer .tbt-wrap { box-sizing: border-box; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.tbt-site-footer :is(p, h2, ul, li) { margin: 0; padding: 0; }
.tbt-site-footer ul { list-style: none; }
.tbt-site-footer a, .tbt-site-footer a:hover { text-decoration: none; }
.tbt-site-footer .tbt-footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.tbt-site-footer .tbt-footer__brand img { display: block; width: auto; height: 32px; max-width: 100%; }
.tbt-site-footer .tbt-footer__brand p { margin-top: 20px; font-size: 14.72px; line-height: 1.6; color: rgba(231,231,231,.56); }
.tbt-site-footer .tbt-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tbt-site-footer .tbt-social a { display: inline-flex; padding: 8px 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; font-size: 14.08px; line-height: 1.6; color: rgba(231,231,231,.74); }
.tbt-site-footer .tbt-footer__h { margin: 0 0 14px; font-size: 12px; font-weight: 600; line-height: normal; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.tbt-site-footer .tbt-footer__col a { display: inline-block; padding: 6px 0; font-size: 14.88px; line-height: 1.6; color: rgba(231,231,231,.74); }
.tbt-site-footer .tbt-footer__disc { max-width: 90ch; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.09); font-size: 12.8px; line-height: 1.6; color: rgba(231,231,231,.56); }
.tbt-site-footer .tbt-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; font-size: 13.12px; line-height: 1.6; color: rgba(231,231,231,.56); }
.tbt-site-footer .tbt-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.tbt-site-footer .tbt-footer__bottom a { display: inline-block; padding: 6px 0; color: rgba(231,231,231,.56); }
.tbt-site-footer :is(.tbt-social, .tbt-footer__col, .tbt-footer__bottom) a:hover { color: var(--tbt-mint); }
.tbt-site-footer .tbt-social a:hover { border-color: rgba(120,220,194,.4); }
@media (max-width: 1000px) {
  .tbt-site-footer .tbt-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbt-site-footer .tbt-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .tbt-site-footer .tbt-wrap { padding: 0 16px; }
  .tbt-site-footer .tbt-footer__bottom { flex-direction: column; align-items: flex-start; }
}
