/* ======================================================
   rank.css -- Ranking site styles for /rank/ pages
   Mobile-first, dark theme, bonus-focused design
====================================================== */

/* -- HERO -------------------------------------------- */
.rk-hero {
  background: #081122;
  padding: 72px 16px 48px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.rk-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,165,0,.1);
  border: 1px solid rgba(240,165,0,.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: #f0a500;
  margin-bottom: 20px;
}
.rk-hero__title {
  font-family: var(--font-head, 'Syne', sans-serif);
  font-size: clamp(26px, 6vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 16px;
}
.rk-hero__accent { color: #f0a500; }
.rk-hero__sub {
  font-size: 15px;
  color: #6a88a8;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.rk-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.06);
}
.rk-hero__stat {
  background: #0c1930;
  padding: 14px 10px;
  text-align: center;
}
.rk-hero__stat-num {
  font-family: var(--font-head, 'Syne', sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: #f0a500;
}
.rk-hero__stat-label { font-size: 11px; color: #3a5070; margin-top: 2px; }

/* -- RANKING LIST ------------------------------------ */
.rk-list {
  padding: 40px 0 60px;
  background: #050c1a;
}
.rk-list .container { max-width: 720px; margin: 0 auto; padding: 0 16px; }

.rk-section-head {
  text-align: center;
  margin-bottom: 32px;
}
.rk-section-head h2 {
  font-family: var(--font-head, 'Syne', sans-serif);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}
.rk-section-head p { font-size: 14px; color: #6a88a8; margin: 0; }

/* -- BROKER CARD ------------------------------------- */
.rk-card {
  background: #0c1930;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}
.rk-card--winner { border-color: rgba(240,165,0,.35); }
.rk-card--2nd    { border-color: rgba(230,57,70,.25); }
.rk-card--3rd    { border-color: rgba(0,200,255,.2); }

.rk-card__rank-bar {
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rk-card__rank-bar--1 { background: rgba(240,165,0,.15); color: #f0a500; }
.rk-card__rank-bar--2 { background: rgba(230,57,70,.12); color: #e63946; }
.rk-card__rank-bar--3 { background: rgba(0,200,255,.1);  color: #00c8ff; }
.rk-card__rank-bar--4 { background: rgba(255,255,255,.05); color: #a0b4c8; }
.rk-card__rank-bar--5 { background: rgba(255,255,255,.05); color: #a0b4c8; }

.rk-card__body { padding: 16px; }

.rk-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.rk-card__left { display: flex; align-items: center; gap: 12px; }
.rk-card__logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head, 'Syne', sans-serif);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.rk-card__logo--hfm     { background: #f0a500; color: #000; }
.rk-card__logo--xm      { background: #e63946; color: #fff; }
.rk-card__logo--vantage { background: #00c8ff; color: #050c1a; }
.rk-card__logo--exness  { background: #00bfff; color: #050c1a; font-size: 12px; }
.rk-card__logo--icm     { background: #1d3557; color: #fff; font-size: 11px; }

.rk-card__name { font-size: 16px; font-weight: 700; color: #fff; }
.rk-card__reg  { font-size: 11px; color: #3a5070; margin-top: 2px; }

.rk-card__score {
  font-family: var(--font-head, 'Syne', sans-serif);
  font-size: 24px;
  font-weight: 800;
  color: #f0a500;
  text-align: right;
}
.rk-card__score span { font-size: 13px; color: #3a5070; }

/* -- BONUS HIGHLIGHT --------------------------------- */
.rk-bonus-row {
  background: rgba(240,165,0,.08);
  border: 1px solid rgba(240,165,0,.2);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.rk-bonus-row--xm   { background: rgba(230,57,70,.08);  border-color: rgba(230,57,70,.2); }
.rk-bonus-row--vtg  { background: rgba(0,200,255,.08);  border-color: rgba(0,200,255,.2); }
.rk-bonus-row--exn  { background: rgba(0,191,255,.08);  border-color: rgba(0,191,255,.2); }
.rk-bonus-row--icm  { background: rgba(29,53,87,.25);   border-color: rgba(100,150,200,.2); }

.rk-bonus-row__label { font-size: 11px; color: #6a88a8; margin-bottom: 4px; }
.rk-bonus-row__main  { font-size: 20px; font-weight: 800; color: #f0a500; line-height: 1.2; }
.rk-bonus-row__main--xm  { color: #e63946; }
.rk-bonus-row__main--vtg { color: #00c8ff; }
.rk-bonus-row__main--exn { color: #00bfff; }
.rk-bonus-row__main--icm { color: #a0c4e0; }
.rk-bonus-row__sub   { font-size: 12px; color: #6a88a8; margin-top: 4px; }

/* -- SPECS GRID -------------------------------------- */
.rk-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.rk-spec { text-align: center; }
.rk-spec__val { font-size: 14px; font-weight: 700; color: #d8e8f8; }
.rk-spec__val--green { color: #00e676; }
.rk-spec__lab { font-size: 10px; color: #3a5070; margin-top: 2px; }

/* -- FEATURES LIST ----------------------------------- */
.rk-features {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.rk-features li {
  font-size: 13px;
  color: #a0b4c8;
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.rk-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0a500;
  opacity: 0.7;
}
.rk-features li strong { color: #d8e8f8; }

/* -- CTA BUTTONS ------------------------------------- */
.rk-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
  min-height: 48px;
  border: none;
  cursor: pointer;
}
.rk-btn:hover { opacity: .88; text-decoration: none; }
.rk-btn--hfm     { background: #f0a500; color: #000; }
.rk-btn--xm      { background: #e63946; color: #fff; }
.rk-btn--vantage { background: #00c8ff; color: #050c1a; }
.rk-btn--exness  { background: #00bfff; color: #050c1a; }
.rk-btn--icm     { background: #1d3557; color: #fff; border: 1px solid rgba(100,150,200,.4); }
.rk-btn--outline {
  background: transparent;
  color: #d8e8f8;
  border: 1px solid rgba(255,255,255,.15);
  font-size: 13px;
}
@media (min-width: 480px) {
  .rk-ctas { flex-direction: row; }
  .rk-ctas .rk-btn--outline { flex: 0 0 auto; }
  .rk-ctas .rk-btn:first-child { flex: 1; }
}

/* -- COMPARISON TABLE -------------------------------- */
.rk-compare { padding: 40px 0; background: #081122; }
.rk-compare .container { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.rk-compare-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.07); -webkit-overflow-scrolling: touch; }
.rk-compare-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 540px; }
.rk-compare-table thead th {
  background: #0c1930;
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  color: #6a88a8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  white-space: nowrap;
}
.rk-compare-table thead th:first-child { width: 140px; }
.rk-compare-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: #a0b4c8;
  vertical-align: middle;
}
.rk-compare-table tbody tr:last-child td { border-bottom: none; }
.rk-compare-table tbody td:first-child { color: #d8e8f8; font-weight: 500; }
.rk-compare-table td.best { color: #f0a500; font-weight: 700; }
.rk-compare-table td.good { color: #00e676; }
.rk-compare-table td.none { color: #3a5070; }
.rk-compare-table thead th.col-hfm { color: #f0a500; }
.rk-compare-table thead th.col-xm  { color: #e63946; }
.rk-compare-table thead th.col-vtg { color: #00c8ff; }
.rk-compare-table thead th.col-exn { color: #00bfff; }
.rk-compare-table thead th.col-icm { color: #a0c4e0; }

/* -- FAQ --------------------------------------------- */
.rk-faq { padding: 40px 0 48px; background: #050c1a; }
.rk-faq .container { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.rk-faq-item {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.rk-faq-q {
  padding: 15px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #d8e8f8;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  min-height: 48px;
}
.rk-faq-q:hover { background: rgba(255,255,255,.03); }
.rk-faq-icon { font-size: 18px; color: #3a5070; flex-shrink: 0; transition: transform .3s; }
.rk-faq-item.is-open .rk-faq-icon { transform: rotate(45deg); }
.rk-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: #0c1930;
}
.rk-faq-item.is-open .rk-faq-a { max-height: 300px; }
.rk-faq-a__inner {
  padding: 14px 16px 18px;
  font-size: 13px;
  color: #6a88a8;
  line-height: 1.8;
  border-top: 1px solid rgba(255,255,255,.05);
}
.rk-faq-a__inner strong { color: #d8e8f8; }
.rk-faq-a__inner a { color: #00c8ff; }

/* -- DISCLAIMER -------------------------------------- */
.rk-disclaimer {
  background: #081122;
  padding: 24px 16px;
  font-size: 11px;
  color: #3a5070;
  line-height: 1.7;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.05);
}

/* -- NAV LINKS --------------------------------------- */
.rk-nav-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 16px;
  background: #050c1a;
  border-top: 1px solid rgba(255,255,255,.05);
}
.rk-nav-links a {
  font-size: 12px;
  color: #6a88a8;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
}
.rk-nav-links a:hover { color: #d8e8f8; border-color: rgba(255,255,255,.25); }

/* -- SCROLL HINT ------------------------------------- */
.rk-scroll-hint {
  font-size: 12px;
  color: #3a5070;
  text-align: center;
  margin-bottom: 10px;
}

/* -- SECTION TITLE ----------------------------------- */
.rk-section-title {
  font-family: var(--font-head, 'Syne', sans-serif);
  font-size: clamp(18px, 3.5vw, 24px);
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin: 0 0 8px;
}
.rk-section-sub { font-size: 13px; color: #6a88a8; text-align: center; margin: 0 0 28px; }

/* -- DESKTOP ----------------------------------------- */
@media (min-width: 768px) {
  .rk-hero { padding: 96px 16px 60px; }
  .rk-hero__stats { grid-template-columns: repeat(4, 1fr); }
  .rk-specs { grid-template-columns: repeat(4, 1fr); }
}

/* Strip already added globally in main.css */
/* Ensure rank pages have enough top offset for sticky strip */
@media (max-width: 1023px) {
  .rk-hero { padding-top: 40px; }
}
