/* ==========================================================================
   demo-ea  -  WikiFX layout clone, dark black + deep-green theme
   Single source of truth: design tokens in :root, components reference them.
   ========================================================================== */

:root {
  /* Greens (white + green theme, replaces WikiFX yellow nav) */
  --brand:        #15a356;   /* primary green - nav, buttons, accents */
  --brand-600:    #0f8a48;
  --brand-700:    #0c6f3a;   /* deep green */
  --brand-800:    #0a5e30;
  --brand-900:    #064023;
  --nav:          #12994f;   /* green nav bar */
  --brand-text:   #0c7a3f;   /* green text/links (readable on white) */
  --brand-tint:   #e7f6ee;   /* light green chip wash */
  --brand-tint-2: #cfead9;   /* light green border */

  /* Header / footer */
  --header-bg:    #ffffff;   /* white header */
  --top-bar:      #0e2a1c;   /* dark green footer */
  --top-bar-line: #234534;

  /* Semantic */
  --gold:    #f0a623;
  --danger:  #e23a52;
  --great:   #15a35a;
  --info:    #2f6fed;

  /* Neutrals - light */
  --bg:        #f1f4f2;
  --surface:   #ffffff;
  --surface-2: #f6f8f7;
  --line:      #e6eae8;
  --line-soft: #eef1ef;
  --ink:       #1a2620;
  --ink-2:     #44524b;
  --muted:     #7a877f;
  --muted-2:   #9aa39e;

  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow:    0 2px 10px rgba(18,36,27,.06);
  --shadow-md: 0 6px 16px rgba(18,36,27,.12);
  --ease:      cubic-bezier(.22,.61,.36,1);
  --t:         .2s var(--ease);

  --maxw: 1240px;
  --font: "Manrope", "PingFang SC", "Microsoft YaHei", -apple-system,
          system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
input { font: inherit; }
input::placeholder { color: var(--muted); opacity: 1; }
::selection { background: var(--brand); color: #04130a; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 16px; }
.muted { color: var(--muted); }
.section { padding: 30px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 16px; }
.section-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 5px; height: 20px; background: var(--brand); border-radius: 3px; }
.section-head .sub { color: var(--muted); font-size: 13px; }
.more-link { color: var(--brand-text); font-weight: 700; font-size: 13px; white-space: nowrap; }
.more-link:hover { color: #fff; }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.tag-reg { background: var(--brand); color: #fff; }
.tag-outline { border: 1px solid var(--line); color: var(--ink-2); }
.tag-danger { background: rgba(255,81,104,.14); color: var(--danger); }
.tag-soft { background: var(--brand-tint); color: var(--brand-text); }
.tag-gold { background: rgba(245,183,51,.15); color: var(--gold); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 8px; font-weight: 700; transition: var(--t); white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-text); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12px; border-radius: 6px; }
.btn-pill { border-radius: 999px; }

/* ==========================================================================
   HEADER (single dark bar with integrated search - WikiFX style)
   ========================================================================== */
.header { background: var(--header-bg); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 1px 4px rgba(18,36,27,.05); }
.header .wrap { display: flex; align-items: center; gap: 22px; min-height: 74px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand .mark { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-800)); box-shadow: var(--shadow); }
.brand .mark svg { width: 24px; height: 24px; color: #fff; }
.brand .bcol { display: flex; flex-direction: column; }
.brand .bname { font-weight: 900; font-size: 23px; letter-spacing: -.02em; line-height: 1; }
.brand .bname b { color: var(--brand-text); }
.brand .btag { font-size: 11px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.brand .about-pill { display: inline-flex; align-items: center; gap: 4px; background: var(--brand-tint); border-radius: 999px; padding: 2px 8px; color: var(--brand-700); font-weight: 700; }

.header-search { flex: 1; max-width: 540px; }
.header-search form { display: flex; height: 46px; background: #fff; border: 2px solid var(--brand); border-radius: 999px; overflow: hidden; }
.header-search input { flex: 1; border: 0; padding: 0 20px; outline: none; font-size: 14px; background: transparent; color: #15201a; }
.header-search input::placeholder { color: #9aa39e; }
.header-search button { padding: 0 26px; background: var(--brand); color: #fff; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.header-search button:hover { background: var(--brand-600); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { border-color: var(--brand); color: var(--brand-700); }
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.lang::after { content: "▾"; font-size: 10px; opacity: .7; }
.btn-download { background: var(--brand); color: #fff; height: 38px; padding: 0 16px; border-radius: 8px; font-weight: 800; display: inline-flex; align-items: center; gap: 7px; }
.btn-download:hover { background: var(--brand-600); }

/* primary navigation (deep green bar) */
.nav { background: var(--nav); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(10,94,52,.25); }
.nav .wrap { display: flex; align-items: center; height: 46px; }
.nav-toggle { display: none; }
.nav-list { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a { color: #d9f3e4; font-weight: 700; font-size: 13.5px; padding: 0 14px; height: 46px; display: inline-flex; align-items: center; white-space: nowrap; position: relative; transition: var(--t); }
.nav-list a:hover, .nav-list a.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-list a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--gold); border-radius: 3px 3px 0 0; }

/* broker logo banner */
.bbb { background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.bbb .wrap { padding-block: 12px; }
.bbb-track { display: flex; gap: 12px; width: max-content; animation: marquee 34s linear infinite; }
.bbb:hover .bbb-track { animation-play-state: paused; }
.bbb-card { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; min-width: 186px; position: relative; }
.bbb-card .blogo { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 14px; }
.bbb-card .bn { font-weight: 800; font-size: 13px; }
.bbb-card .bs { font-size: 11px; color: var(--brand-text); font-weight: 700; }
.bbb-card .view { margin-left: auto; font-size: 10px; font-weight: 800; color: #fff; background: var(--info); padding: 3px 8px; border-radius: 5px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--line); padding: 38px 0 26px; text-align: center; }
.hero h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 900; font-style: italic; letter-spacing: -.02em; }
.hero h1 .g { color: var(--brand-text); }
.counter { display: inline-flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: center; margin: 20px 0 4px; }
.counter .stat { display: inline-flex; align-items: baseline; gap: 8px; }
.odometer { display: inline-flex; gap: 3px; font-weight: 900; font-size: clamp(22px, 3.4vw, 30px); color: var(--gold); }
.odo-digit { width: .72em; height: 1.25em; overflow: hidden; background: rgba(245,183,51,.12); border-radius: 6px; position: relative; display: inline-block; }
.odo-reel { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; align-items: center; transition: transform 1.6s var(--ease); }
.odo-reel span { height: 1.25em; line-height: 1.25em; }
.counter .stat .lbl { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.counter .plus { font-weight: 900; font-size: clamp(22px,3.4vw,30px); color: var(--gold); }
.hero-search { max-width: 660px; margin: 22px auto 0; }
.hero-search form { display: flex; height: 56px; background: var(--surface); border: 2px solid var(--brand); border-radius: 10px; overflow: hidden; }
.hero-search input { flex: 1; border: 0; padding: 0 22px; font-size: 15px; outline: none; background: transparent; color: var(--ink); }
.hero-search button { padding: 0 34px; background: var(--brand); color: #fff; font-weight: 800; }
.hero-search button:hover { background: var(--brand-600); }
.hero-hints { margin-top: 12px; font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-hints a { color: var(--ink-2); font-weight: 600; }
.hero-hints a:hover { color: var(--brand-text); }

/* ==========================================================================
   2-COLUMN DASHBOARD (Ranking left, News/EA-VPS/Exposure right)
   ========================================================================== */
.dash { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
.dash-right { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.panel-head h3 .ic { color: var(--gold); }

/* Ranking panel (left) */
.rank-panel .rank-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); transition: var(--t); }
.rank-panel .rank-row:last-child { border-bottom: 0; }
.rank-panel .rank-row:hover { background: var(--surface-2); }
.rank-logo { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; }
.rank-main { min-width: 0; }
.rank-name { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; }
.rank-name .reg { font-size: 10px; font-weight: 700; color: var(--brand-text); border: 1px solid var(--brand-tint-2); padding: 1px 5px; border-radius: 3px; }
.rank-score { font-size: 13px; color: var(--gold); font-weight: 800; margin-top: 3px; border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: 1px; }
.rank-tags { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.rank-no { font-weight: 900; font-size: 16px; color: var(--muted-2); width: 26px; height: 26px; display: grid; place-items: center; }
.rank-row:nth-child(-n+3) .rank-no { color: #04130a; background: var(--gold); border-radius: 7px; }

/* EA-VPS strip (right top) */
.vps-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
.vps-strip::-webkit-scrollbar { height: 6px; } .vps-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.vps-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 190px; flex: none; position: relative; overflow: hidden; transition: var(--t); }
.vps-card:hover { border-color: var(--brand); }
.vps-card.featured { border-color: var(--brand); background: linear-gradient(160deg, var(--brand-tint), var(--surface)); }
.vps-card .vfree { position: absolute; top: 0; right: 0; background: var(--gold); color: #04130a; font-size: 10px; font-weight: 800; padding: 3px 18px; transform: rotate(45deg) translate(18px, -4px); }
.vps-card .vbroker { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.vps-card .vbroker .blogo { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 11px; }
.vps-card .vspecs { margin: 12px 0; font-size: 12px; color: var(--ink-2); line-height: 1.9; }
.vps-card .vtier { font-size: 12px; color: var(--brand-text); font-weight: 800; margin-bottom: 10px; }
.vps-card .v3d { position: absolute; right: -10px; bottom: 28px; font-size: 40px; opacity: .25; }

/* News (right) with tabs */
.tabs { display: flex; gap: 4px; align-items: center; border-bottom: 1px solid var(--line); padding: 0 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 12px 12px; font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; position: relative; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--ink); border-bottom-color: var(--brand); }
.tab:hover { color: var(--ink-2); }
.tabs .more-link { margin-left: auto; padding: 12px 8px; }
.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line-soft); transition: var(--t); }
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: var(--surface-2); }
.news-item .nthumb { width: 130px; aspect-ratio: 16/10; border-radius: 8px; flex: none; background: linear-gradient(135deg, var(--brand-tint), var(--surface-2)); position: relative; overflow: hidden; }
.news-item .nbody { min-width: 0; display: flex; flex-direction: column; }
.news-item h4 { font-size: 14.5px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item p { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .nmeta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.news-item .nmeta .date { margin-left: auto; }

/* Mediation banner inside right column */
.med-banner { background: linear-gradient(135deg, var(--brand-800), var(--brand)); color: #fff; border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.med-banner .big { font-size: 30px; font-weight: 900; }
.med-banner .cats { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.med-banner .cats .tag { background: rgba(255,255,255,.18); color: #fff; }

/* ==========================================================================
   FIELD SURVEY (with WikiVisit stamp + Danger/Great)
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.survey-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: var(--t); }
.survey-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.survey-card .sco { padding: 14px 14px 10px; }
.survey-card .scompany { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.survey-card .scompany .sdot { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; font-size: 9px; color: #fff; }
.survey-card h4 { font-size: 14px; font-weight: 700; line-height: 1.4; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.survey-img { aspect-ratio: 16/10; position: relative; background: linear-gradient(135deg, #14271c, #0c1812); overflow: hidden; }
.survey-img .status { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 4px; color: #fff; z-index: 2; }
.survey-img .status.danger { background: var(--danger); }
.survey-img .status.great { background: var(--great); }
.survey-img .wikivisit { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: #d6253b; color: #fff; font-size: 12px; font-weight: 800; padding: 5px 16px 5px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.4); white-space: nowrap; }
.survey-img .wikivisit.ok { background: var(--great); }
.survey-img .wikivisit::before { content: "✕"; width: 16px; height: 16px; border-radius: 50%; background: #fff; color: #d6253b; display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.survey-img .wikivisit.ok::before { content: "✓"; color: var(--great); }
.survey-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: 12px; color: var(--muted); }
.survey-foot .loc { display: flex; align-items: center; gap: 6px; }
.flag { font-size: 14px; }

/* ==========================================================================
   EA MARKETPLACE
   ========================================================================== */
.ea-tabs { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.ea-tabs::-webkit-scrollbar { display: none; }
.ea-tab { font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; padding-bottom: 6px; border-bottom: 2px solid transparent; transition: var(--t); }
.ea-tab.active { color: var(--ink); border-bottom-color: var(--brand); }
.ea-tab:hover { color: var(--ink-2); }
.ea-tabs .more-link { margin-left: auto; }
.ea-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; transition: var(--t); }
.ea-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--brand-tint-2); }
.ea-card .ea-top { display: flex; align-items: center; gap: 8px; }
.ea-card .ea-name { font-weight: 800; font-size: 16px; }
.ea-card .ea-return { margin: 14px 0 4px; font-size: 12px; color: var(--muted); }
.ea-card .ea-return b { font-size: 20px; color: var(--great); margin-left: 6px; }
.ea-card .ea-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.ea-card .ea-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 10px; }
.ea-card .ea-price { display: flex; align-items: baseline; gap: 8px; }
.ea-card .ea-price .now { font-size: 18px; font-weight: 900; color: var(--danger); }
.ea-card .ea-price .was { font-size: 12px; color: var(--muted); text-decoration: line-through; }

/* ==========================================================================
   TRADING DATA
   ========================================================================== */
.data-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.data-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.data-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.data-card h4 .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--brand); }
.data-list li { display: grid; grid-template-columns: 22px 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.data-list li:last-child { border-bottom: 0; }
.data-list .dno { color: var(--muted); font-weight: 800; text-align: center; }
.data-list .dlogo { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; }
.data-list .dname { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-list .dval { font-weight: 800; color: var(--brand-text); }

/* community */
.creator-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; transition: var(--t); }
.creator-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.creator-card .ava { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; }
.creator-card h4 { font-size: 14px; font-weight: 800; }
.creator-card .role { font-size: 12px; color: var(--muted); margin-top: 2px; }
.creator-card .followers { margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.creator-card .followers b { color: var(--brand-text); }

/* expo */
.expo-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.expo-card { border-radius: var(--radius-lg); padding: 26px; color: #fff; position: relative; overflow: hidden; min-height: 160px; display: flex; flex-direction: column; justify-content: flex-end; }
.expo-card.e1 { background: linear-gradient(135deg, var(--brand-800), var(--brand)); }
.expo-card.e2 { background: linear-gradient(135deg, var(--brand-900), var(--brand-700)); }
.expo-card .badge-expo { position: absolute; top: 20px; left: 26px; font-size: 12px; font-weight: 800; letter-spacing: .1em; opacity: .85; }
.expo-card h3 { font-size: 22px; font-weight: 900; }
.expo-card p { opacity: .9; margin-top: 4px; font-size: 13px; }

/* download */
.download { background: linear-gradient(135deg, var(--brand-900), var(--brand-700)); color: #fff; border-radius: var(--radius-lg); padding: 36px; display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.download h2 { font-size: 26px; font-weight: 900; }
.download p { opacity: .9; margin-top: 8px; max-width: 460px; }
.dl-btns { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.dl-btn { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 10px 16px; transition: var(--t); }
.dl-btn:hover { background: rgba(255,255,255,.22); }
.dl-btn .di { font-size: 22px; } .dl-btn .dt { font-size: 11px; opacity: .85; } .dl-btn .dt b { display: block; font-size: 14px; }
.dl-qr { justify-self: center; }
.dl-qr .qr { width: 150px; height: 150px; background: conic-gradient(#04130a 25%, #fff 0 50%, #04130a 0 75%, #fff 0) 0 0/24px 24px; border-radius: 14px; border: 6px solid #fff; }

/* footer */
.footer { background: var(--top-bar); color: #aebdb4; padding: 44px 0 0; margin-top: 30px; border-top: 1px solid var(--top-bar-line); }
.footer a { color: #aebdb4; } .footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
.foot-brand .brand .bname { color: #fff; }
.foot-brand .brand .bname b { color: #36c47e !important; }
.foot-brand p { font-size: 12.5px; margin-top: 14px; max-width: 320px; line-height: 1.7; }
.foot-col h5 { color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 14px; }
.foot-col li { margin-bottom: 9px; font-size: 12.5px; }
.foot-bottom { border-top: 1px solid var(--top-bar-line); padding: 18px 0; font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.disclaimer { background: #0a2016; color: #8fa295; font-size: 11.5px; line-height: 1.7; padding: 18px 0; }

/* ==========================================================================
   BROKER DETAIL PAGE
   ========================================================================== */
.crumb { font-size: 12.5px; color: var(--muted); padding: 14px 0; }
.crumb a:hover { color: var(--brand-text); }
.broker-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: grid; grid-template-columns: 1fr; gap: 20px; }
.broker-id { display: flex; align-items: center; gap: 16px; }
.broker-id .blogo-lg { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 26px; flex: none; }
.broker-id h1 { font-size: 24px; font-weight: 900; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.broker-id .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.broker-score-box { display: flex; align-items: center; gap: 22px; }
.score-big { text-align: center; }
.score-big b { display: block; font-size: 40px; font-weight: 900; color: var(--gold); line-height: 1; }
.score-big span { font-size: 12px; color: var(--muted); }
.stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; }
.broker-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.broker-stats .bstat { background: var(--surface); padding: 16px; text-align: center; }
.broker-stats .bstat b { display: block; font-size: 18px; font-weight: 900; color: var(--brand-text); }
.broker-stats .bstat span { font-size: 12px; color: var(--muted); }
.broker-cols { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel h3 .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--brand); }
.lic-table { width: 100%; border-collapse: collapse; }
.lic-table th, .lic-table td { text-align: left; padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.lic-table th { color: var(--muted); font-weight: 700; font-size: 12px; }
.lic-table tr:last-child td { border-bottom: 0; }
.spread-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.spread-list li:last-child { border-bottom: 0; }
.spread-list b { color: var(--brand-text); }
.panel:has(table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ==========================================================================
   REAL IMAGES (logos / photos / avatars / qr)
   ========================================================================== */
.logoimg { background: #fff !important; overflow: hidden; }
.logoimg img { width: 100%; height: 100%; object-fit: contain; padding: 3px; background: #fff; }
.news-item .nthumb img { width: 100%; height: 100%; object-fit: cover; }
.survey-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.creator-card .ava { overflow: hidden; background: var(--surface-2); }
.creator-card .ava img { width: 100%; height: 100%; object-fit: cover; }
.dl-qr img.qr-real { width: 150px; height: 150px; border-radius: 12px; border: 6px solid #fff; background: #fff; display: block; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .expo-grid { grid-template-columns: repeat(2, 1fr); }
  .download { grid-template-columns: 1.4fr 1fr; padding: 44px; }
  .broker-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
  .dash { grid-template-columns: 340px 1fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .data-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .broker-cols.two { grid-template-columns: 1.5fr 1fr; }
}

/* mobile header + nav drawer */
@media (max-width: 980px) {
  .header .wrap { flex-wrap: wrap; gap: 12px; min-height: auto; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .brand .btag .about-pill { display: none; }

  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 14px; }
  .nav-toggle .bars { width: 20px; height: 14px; position: relative; }
  .nav-toggle .bars span { position: absolute; left: 0; right: 0; height: 2px; background: #fff; border-radius: 2px; }
  .nav-toggle .bars span:nth-child(1){ top: 0; } .nav-toggle .bars span:nth-child(2){ top: 6px; } .nav-toggle .bars span:nth-child(3){ top: 12px; }
  .nav .wrap { justify-content: space-between; }
  .nav-list { position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px); background: var(--brand-800); flex-direction: column; align-items: stretch; padding: 12px; gap: 0; transform: translateX(100%); transition: transform .25s var(--ease); z-index: 60; overflow-y: auto; box-shadow: -8px 0 24px rgba(0,0,0,.5); }
  .nav-list.open { transform: translateX(0); }
  .nav-list a { height: 46px; padding: 0 14px; border-radius: 8px; }
  .nav-list a.active::after { display: none; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 55; opacity: 0; visibility: hidden; transition: var(--t); }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
}
@media (max-width: 560px) {
  .header-actions .lang span.lt { display: none; }
  .section-head h2 { font-size: 19px; }
  .news-item .nthumb { width: 96px; }
  .download { padding: 26px; }
  .med-banner .cats { margin-left: 0; }
}

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .bbb-track { animation: none; }
  * { scroll-behavior: auto; }
}
