/* ============================================================
   styles.css — bestpropfirms.io
   ============================================================ */

/* ── Reset & tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0c0e13;
  --bg2:        #12151d;
  --bg3:        #181c27;
  --bg4:        #1e2230;
  --border:     #242838;
  --border2:    #2e3347;
  --accent:     #e8c44a;
  --text:       #cdd2e8;
  --text-muted: #6b7394;
  --text-dim:   #404660;
  --green:      #3dd68c;
  --red:        #f05c5c;
  --blue:       #5b90f0;
  --radius:     5px;
  --font-ui:    'Plus Jakarta Sans', sans-serif;
  --font-data:  'Inter', sans-serif;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-data);
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
strong.text-bright { color: var(--text); }

/* ── Site header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  background: rgba(12,14,19,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}
.logo { font-family: var(--font-ui); font-weight: 800; font-size: 0.95rem; color: var(--accent); letter-spacing: -0.01em; }
.logo span { color: var(--text-muted); font-weight: 400; }
.nav { display: flex; gap: 1.75rem; }
.nav a {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 60% 0%, rgba(232,196,74,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--font-ui);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero p { color: var(--text-muted); font-size: 0.9rem; max-width: 520px; margin: 0 auto; line-height: 1.8; }

/* ── Container & section headings ── */
.container { max-width: 1600px; margin: 0 auto; padding: 2rem 1.5rem; }
.section-title {
  font-family: var(--font-ui);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.section-lead { color: var(--text-muted); font-size: 0.82rem; max-width: 760px; line-height: 1.85; margin-bottom: 1.75rem; }
.section-intro { padding: 2rem 0 0.5rem; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

/* ── Collapsible definitions ── */
.definitions { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.def-block { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.def-toggle {
  width: 100%;
  background: var(--bg2);
  border: none;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s;
}
.def-toggle:hover { background: var(--bg3); }
.def-toggle .chevron {
  width: 11px; height: 11px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.def-toggle.open .chevron { transform: rotate(-135deg); }
.def-body { display: none; background: var(--bg); padding: 1rem 1.25rem; border-top: 1px solid var(--border); overflow-x: auto; }
.def-body.open { display: block; }

.def-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.def-table thead th {
  position: static; cursor: default; background: transparent;
  text-align: left; color: var(--accent); font-family: var(--font-ui);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4rem 1.5rem 0.4rem 0; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.def-table td {
  padding: 0.55rem 1.5rem 0.55rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text); vertical-align: top; line-height: 1.7;
}
.def-table tr:last-child td { border-bottom: none; }
.def-table td:first-child { color: var(--accent); font-weight: 500; white-space: nowrap; }
.def-footnote { color: var(--text-muted); font-size: 0.76rem; padding-top: 0.75rem; }
.value-adds-img { width: 100%; max-width: 1100px; border-radius: var(--radius); display: block; margin: 0 auto; }

/* ── Filter bar ── */
.filter-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.filter-section-title {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.85rem;
}
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 0.3rem; min-width: 155px; flex: 1; }
.filter-group label {
  font-size: 0.7rem; font-family: var(--font-ui); font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted);
}
.filter-group select {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-data);
  font-size: 0.8rem;
  padding: 0.45rem 1.8rem 0.45rem 0.7rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7394'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.filter-group select:focus { outline: none; border-color: var(--accent); }
.filter-group input[type="text"] {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-data);
  font-size: 0.8rem;
  padding: 0.45rem 0.7rem;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.filter-group input[type="text"]:focus { outline: none; border-color: var(--accent); }
.filter-group input[type="text"]::placeholder { color: var(--text-muted); opacity: 0.7; }
.btn-clear {
  background: transparent; border: 1px solid var(--border2); border-radius: var(--radius);
  color: var(--text-muted); font-family: var(--font-ui); font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 0.45rem 1rem; cursor: pointer;
  transition: border-color 0.15s, color 0.15s; align-self: flex-end; white-space: nowrap;
}
.btn-clear:hover { border-color: var(--red); color: var(--red); }
.filter-group--checkbox { flex: 0 0 auto; min-width: auto; }
.chk-label {
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 0.45rem 0.75rem; color: var(--text-muted); font-size: 0.83rem;
  transition: border-color 0.15s;
}
.chk-label:hover { border-color: var(--accent); }
.chk-label input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; cursor: pointer; }

/* ── Results bar ── */
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; flex-wrap: wrap; gap: 0.4rem; }
.results-count { font-size: 0.78rem; color: var(--text-muted); }
.results-count strong { color: var(--accent); }

/* ── Main data table ── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
}
table { width: 100%; border-collapse: collapse; font-size: 0.78rem; white-space: nowrap; }

thead th {
  background: var(--bg3);
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border2);
  text-align: left;
  position: sticky;
  top: 0;           /* sticky within .table-wrap (overflow-x:auto makes it the scroll container) */
  z-index: 2;
  cursor: pointer;
  user-select: none;
}
thead th:hover { color: #fff; }
thead th .sort-icon { margin-left: 3px; opacity: 0.35; font-style: normal; font-size: 0.75em; }
thead th.sort-asc .sort-icon,
thead th.sort-desc .sort-icon { opacity: 1; }

tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg3); }
tbody td { padding: 0.55rem 0.75rem; color: var(--text); vertical-align: middle; }
td.col-plan   { font-weight: 500; color: #fff; }
td.col-money,
td.col-pct    { font-variant-numeric: tabular-nums; }
td.col-center { text-align: center; }
#main-table.hide-col-size th.col-size,
#main-table.hide-col-size td.col-size { display: none; }
thead th[title] { cursor: help; }

/* ── Tags ── */
.tag          { display: inline-block; padding: 0.15rem 0.45rem; border-radius: 3px; font-size: 0.7rem; font-weight: 500; white-space: nowrap; }
.tag-intraday { background: rgba(91,144,240,0.15); color: var(--blue); }
.tag-eod      { background: rgba(61,214,140,0.12); color: var(--green); }
.tag-static   { background: rgba(232,196,74,0.12); color: var(--accent); }
.tag-perf     { background: rgba(91,144,240,0.1);  color: var(--blue); }
.tag-s2f      { background: rgba(232,196,74,0.1);  color: var(--accent); }

/* ── Buttons ── */
.btn-get {
  display: inline-block; background: var(--accent); color: #0c0e13;
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.28rem 0.7rem;
  border-radius: 3px; transition: opacity 0.15s;
}
.btn-get:hover { opacity: 0.82; }
.btn-partner {
  display: inline-block; background: transparent; border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 3px; align-self: flex-start;
  transition: background 0.15s, color 0.15s;
}
.btn-partner:hover { background: var(--accent); color: #0c0e13; }
.btn-go {
  display: inline-block; background: var(--bg4); border: 1px solid var(--green); color: var(--green);
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.6rem;
  border-radius: 3px; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.btn-go:hover { background: var(--green); color: #0c0e13; }

/* ── Highlights ── */
.highlight-green  { color: var(--green); font-weight: 500; }
.highlight-red    { color: var(--red); }
.highlight-yellow { color: var(--accent); }

/* ── Loading / error / empty states ── */
.loading { text-align: center; padding: 3rem; color: var(--text-muted); font-size: 0.85rem; }
.loading::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 0.5rem;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-msg {
  display: none; background: rgba(240,92,92,0.1); border: 1px solid rgba(240,92,92,0.3);
  border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--red); font-size: 0.82rem; margin-bottom: 1rem;
}
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }

/* ── Quantower feature card ── */
.quantower-card {
  margin: 0 auto 2.5rem; max-width: 65%;
  background: linear-gradient(135deg, #e8f0fe 0%, #dce8fb 100%);
  border-radius: 12px; overflow: hidden; display: flex; align-items: center; min-height: 180px;
}
.quantower-card__text {
  flex: 0 0 42%; padding: 2.5rem 2rem 2.5rem 2.5rem;
  display: flex; flex-direction: column; gap: 0.75rem; justify-content: center;
}
.quantower-card__rating { display: flex; align-items: center; gap: 0.4rem; }
.quantower-card__stars  { color: #f5a623; font-size: 1rem; }
.quantower-card__rating-label { font-size: 0.72rem; font-family: var(--font-ui); font-weight: 600; color: #555; letter-spacing: 0.04em; }
.quantower-card__title { font-family: var(--font-ui); font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 800; color: #0d1b2e; line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
.quantower-card__desc  { color: #4a5568; font-size: 0.85rem; line-height: 1.7; margin: 0; }
.quantower-card__btn {
  display: inline-block; background: #e85d5d; color: #fff;
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 0.6rem 1.4rem; border-radius: 6px; transition: opacity 0.15s;
}
.quantower-card__btn:hover { opacity: 0.85; }
.quantower-card__image { flex: 1; align-self: stretch; overflow: hidden; min-width: 0; }
.quantower-card__image a { display: block; height: 100%; }
.quantower-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; border-radius: 0 12px 12px 0; }

/* ── Partner promo cards ── */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.promo-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; transition: border-color 0.2s;
}
.promo-card:hover { border-color: var(--border2); }
.promo-card-title { font-family: var(--font-ui); font-size: 0.95rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.promo-card-desc  { color: var(--text-muted); font-size: 0.8rem; line-height: 1.7; flex: 1; }
.promo-card img   { width: 100%; max-height: 90px; object-fit: contain; }
.logo-badge       { background: #fff; border-radius: 6px; padding: 0.6rem 1rem; display: inline-block; }
.logo-badge img   { max-height: 60px; width: auto; display: block; }

/* ── QuantVPS banner ── */
.banner-link { display: block; margin: 0 auto 2rem; max-width: 900px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: opacity 0.2s; }
.banner-link:hover { opacity: 0.88; }
.banner-link img   { width: 100%; height: auto; display: block; }

/* ── Socials ── */
.socials-section { text-align: center; padding: 2rem 0; }
.socials-section .section-title { margin-bottom: 1.25rem; }
.social-links { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.5rem 1rem; color: var(--text); font-family: var(--font-ui);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  transition: border-color 0.15s, color 0.15s;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }
.social-btn svg   { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* ── Platform logos ── */
.platforms-section { padding: 2rem 0 1rem; }
.platforms-section .section-title { margin-bottom: 1.25rem; text-align: center; }
.platform-logos { display: flex; gap: 1.5rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.platform-logos a {
  display: flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color 0.2s, opacity 0.2s;
}
.platform-logos a:hover { border-color: var(--border2); opacity: 0.85; }
.platform-logos img { height: 36px; width: auto; object-fit: contain; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg2); padding: 2.5rem 2rem 1.5rem; }
.footer-grid { max-width: 1200px; margin: 0 auto 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .logo { display: block; margin-bottom: 0.6rem; }
.footer-brand p { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.78rem; line-height: 1.8; max-width: 260px; }
.footer-col h4 {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col ul li a { color: var(--text-dim); font-size: 0.8rem; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 1.25rem;
  display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
}
.footer-bottom p { color: var(--text-dim); font-size: 0.73rem; line-height: 1.8; }

/* ── Responsive ── */
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .quantower-card { flex-direction: column; max-width: 100%; }
  .quantower-card__image img { border-radius: 0 0 12px 12px; }
  .quantower-card__image { height: 220px; }
}
@media (max-width: 640px) {
  .filters      { flex-direction: column; }
  .filter-group { min-width: 100%; }
  .nav          { display: none; }
  .footer-grid  { grid-template-columns: 1fr; }
  .hero         { padding: 2rem 1.25rem; }
}
