/* ═══════════════════════════════════════════════════════
   BrokerHub — Microsoft Fluent Design System
   Clean, spacious, depth-driven, light
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --ink: #1a1a1a; --ink-soft: #424242; --ink-muted: #8a8a8a;
    --bg: #f5f5f5; --bg-card: #fff; --bg-hover: #fafafa; --bg-alt: #f0f0f0;
    --border: #e5e5e5; --border-soft: #f0f0f0;
    --accent: #0078d4; --accent-hover: #006cbd; --accent-light: #e8f4fd; --accent-glow: rgba(0,120,212,0.08);
    --green: #0e7a0d; --green-bg: #e8f5e9;
    --red: #d13438; --red-bg: #fef0f0;
    --gold: #c19c00; --gold-bg: #fdf8ec;
    --purple: #7c3aed; --purple-bg: #f3eeff;
    --font: 'Plus Jakarta Sans', 'Segoe UI', -apple-system, sans-serif;
    --gap: 24px; --radius: 8px; --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --max-w: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: clamp(1.8rem,4vw,2.6rem); }
h2 { font-size: clamp(1.3rem,3vw,1.7rem); }
h3 { font-size: 1.1rem; }
p { margin-bottom: 0.75rem; color: var(--ink-soft); }
.text-muted{color:var(--ink-muted)}.text-sm{font-size:.85rem}.text-xs{font-size:.75rem}.text-center{text-align:center}

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap); }
.grid-main { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media(min-width:960px){.grid-main{grid-template-columns:1fr 380px;align-items:start;}}
.flex { display: flex; align-items: center; gap: .75rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ─── Header ──────────────────────────────────── */
.site-header { background: rgba(255,255,255,0.88); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; height: 56px; }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }

/* ─── Animated Logo ───────────────────────────── */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { position: relative; width: 36px; height: 36px; }
.logo-icon svg { width: 36px; height: 36px; }
.logo-ring { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 95; stroke-dashoffset: 95; animation: ringDraw 1.5s ease forwards .3s; transform-origin: center; }
.logo-ring-outer { fill: none; stroke: var(--accent); stroke-width: 1; opacity: .2; stroke-dasharray: 4 4; animation: spin 20s linear infinite; transform-origin: center; }
.logo-txt { fill: var(--accent); font-weight: 800; font-size: 11px; opacity: 0; animation: fadeIn .5s ease forwards 1s; }
.logo-pulse-circle { fill: var(--accent); opacity: 0; animation: pulseDot 2.5s ease-in-out infinite 1.5s; }
.logo:hover .logo-ring { stroke: var(--accent-hover); }
.logo:hover .logo-icon { transform: scale(1.08); transition: transform .3s; }
@keyframes ringDraw{to{stroke-dashoffset:0}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadeIn{to{opacity:1}}
@keyframes pulseDot{0%,100%{opacity:0;r:2}50%{opacity:.25;r:15}}

.logo-label { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.logo-label span { font-weight: 400; color: var(--ink-muted); }

.nav-desktop { display: none; gap: 2px; }
.nav-desktop a { padding: 6px 14px; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); transition: all .15s; }
.nav-desktop a:hover { background: var(--bg-alt); color: var(--accent); }
.nav-desktop a.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }
@media(min-width:768px){.nav-desktop{display:flex;}}

.nav-toggle { display: flex; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); border-radius: 6px; }
.nav-toggle svg { width: 22px; height: 22px; }
@media(min-width:768px){.nav-toggle{display:none;}}
.nav-mobile { display: none; position: fixed; inset: 56px 0 0 0; background: #fff; z-index: 99; padding: var(--gap); flex-direction: column; gap: 4px; }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 16px; border-radius: var(--radius); font-size: 15px; font-weight: 500; color: var(--ink); }
.nav-mobile a:hover { background: var(--bg-alt); }

/* ─── Hero ────────────────────────────────────── */
.hero { padding: 48px 0 40px; background: linear-gradient(180deg,#fff 0%,var(--bg) 100%); border-bottom: 1px solid var(--border); }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.hero-stat-value { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1; }
.hero-stat-label { font-size: 11px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* ─── Ticker ──────────────────────────────────── */
.news-ticker { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 20px; margin-bottom: var(--gap); display: flex; align-items: center; gap: 16px; overflow: hidden; }
.ticker-live { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red); white-space: nowrap; }
.ticker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}
.ticker-items { display: flex; gap: 20px; overflow-x: auto; flex: 1; }
.ticker-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; color: var(--ink-soft); }

/* ─── Badges ──────────────────────────────────── */
.badge { display: inline-block; padding: 2px 10px; font-size: 11px; font-weight: 600; border-radius: 4px; letter-spacing: .02em; }
.badge-gold { background: var(--gold-bg); color: var(--gold); }
.badge-blue { background: var(--accent-light); color: var(--accent); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-red { background: var(--red-bg); color: var(--red); font-size: 10px; font-weight: 700; }
.badge-green { background: var(--green-bg); color: var(--green); }
.type-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 11px; font-weight: 600; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.type-forex { background: var(--accent-light); color: var(--accent); }
.type-crypto { background: var(--purple-bg); color: var(--purple); }

/* ─── Filter Tabs ─────────────────────────────── */
.filter-tabs { display: inline-flex; gap: 3px; background: var(--bg-alt); border-radius: var(--radius); padding: 3px; }
.filter-tab { padding: 5px 16px; font-size: 13px; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; background: transparent; color: var(--ink-muted); transition: all .15s; text-decoration: none; }
.filter-tab:hover { color: var(--ink-soft); }
.filter-tab.active { background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }

/* ─── Broker Card ─────────────────────────────── */
.broker-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 12px; transition: all .2s ease; }
.broker-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,120,212,.1); transform: translateY(-1px); }
.broker-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.broker-card-info { flex: 1; }
.broker-card-cta { display: flex; flex-direction: column; gap: 6px; min-width: 130px; }
.broker-rank { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.broker-name-link { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.broker-name-link:hover { color: var(--accent); }
.broker-desc { font-size: 13.5px; color: var(--ink-soft); margin: 6px 0 12px; line-height: 1.5; }
.broker-specs { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 14px; }
@media(min-width:640px){.broker-specs{grid-template-columns:repeat(4,1fr);}}
.broker-spec { padding: 8px 12px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border-soft); }
.broker-spec-label { font-size: 11px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .05em; }
.broker-spec-value { font-size: 14px; font-weight: 600; margin-top: 2px; }
.broker-bottom { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ─── Stars ───────────────────────────────────── */
.stars { display: inline-flex; align-items: center; gap: 1px; }
.star { font-style: normal; font-size: 14px; line-height: 1; }
.star.full { color: var(--gold); }
.star.half { color: var(--gold); opacity: .5; }
.star.empty { color: #ddd; }
.rating-num { margin-left: 6px; font-weight: 700; font-size: 13px; }

/* ─── Trust ───────────────────────────────────── */
.trust-wrap { display: flex; align-items: center; gap: 8px; min-width: 160px; }
.trust-bar { flex: 1; height: 6px; background: var(--bg-alt); border-radius: 3px; overflow: hidden; }
.trust-fill { height: 100%; border-radius: 3px; transition: width .8s ease; }
.trust-high { background: var(--green); } .trust-mid { background: var(--gold); } .trust-low { background: var(--red); }
.trust-pct { font-size: 13px; font-weight: 600; min-width: 36px; }

/* ─── Buttons ─────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius); font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all .15s; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 4px 12px rgba(0,120,212,.25); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); padding: 8px 20px; font-size: 13px; }
.btn-outline:hover { background: var(--accent-light); color: var(--accent); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.vote-btn { padding: 4px 10px; font-size: 13px; border-radius: 6px; cursor: pointer; font-weight: 600; border: 1px solid; transition: all .15s; }
.vote-up { background: var(--green-bg); color: var(--green); border-color: #d4ecd4; }
.vote-down { background: var(--red-bg); color: var(--red); border-color: #f0d4d4; }

/* ─── Sidebar ─────────────────────────────────── */
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.sidebar-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sidebar-card-header h3 { font-size: 16px; margin: 0; }
.sidebar-item { display: block; padding: 10px 0; border-top: 1px solid var(--border-soft); text-decoration: none; color: inherit; }
.sidebar-item:first-child { border-top: none; }
.sidebar-item-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.sidebar-item-meta { font-size: 12px; color: var(--ink-muted); margin-top: 4px; display: flex; gap: 12px; }

/* ─── Comments ────────────────────────────────── */
.comment { padding: 10px 0; border-top: 1px solid var(--border-soft); }
.comment:first-child { border-top: none; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.comment-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }

/* ─── Newsletter ──────────────────────────────── */
.newsletter-box { background: linear-gradient(135deg,var(--accent) 0%,#00a6ed 100%); border-radius: var(--radius-lg); padding: 24px; color: #fff; }
.newsletter-box h3 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.newsletter-box p { color: rgba(255,255,255,.8); font-size: 13px; margin-bottom: 16px; }
.newsletter-input { width: 100%; padding: 10px 14px; font-size: 13px; font-family: var(--font); border: 2px solid rgba(255,255,255,.3); border-radius: var(--radius); background: rgba(255,255,255,.12); color: #fff; outline: none; margin-bottom: 8px; }
.newsletter-input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-submit { width: 100%; padding: 10px; font-size: 14px; font-weight: 700; font-family: var(--font); background: #fff; color: var(--accent); border: none; border-radius: var(--radius); cursor: pointer; }

/* ─── Risk Box ────────────────────────────────── */
.risk-box { background: var(--red-bg); border: 1px solid #f0d4d4; border-radius: 10px; padding: 14px 20px; font-size: 12.5px; color: #8a3434; line-height: 1.5; }

/* ─── Table ───────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 700px; }
.data-table thead { background: var(--bg); }
.data-table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); border-bottom: 2px solid var(--border); }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--accent-glow); }
.data-table .highlight { font-weight: 700; color: var(--green); }

/* ─── Pros/Cons ───────────────────────────────── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; font-size: 13.5px; }
@media(max-width:480px){.pros-cons{grid-template-columns:1fr;}}
.pros-title,.cons-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.pros-title { color: var(--green); } .cons-title { color: var(--red); }
.pros-list li,.cons-list li { list-style: none; margin-bottom: 5px; line-height: 1.4; color: var(--ink-soft); }
.pros-list li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.cons-list li::before { content: '✗ '; color: var(--red); font-weight: 700; }

/* ─── Meta Grid (broker detail) ───────────────── */
.meta-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 12px; margin: 20px 0; }
.meta-item { background: var(--bg); border-radius: var(--radius); padding: 12px; border: 1px solid var(--border-soft); }
.meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }
.meta-val { font-size: 15px; font-weight: 600; margin-top: 2px; }

/* ─── Breadcrumb ──────────────────────────────── */
.breadcrumb { font-size: 13px; color: var(--ink-muted); margin-bottom: 16px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
.breadcrumb li::after { content: ' / '; margin: 0 4px; opacity: .4; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li.active { color: var(--ink); font-weight: 500; }

/* ─── Tag ─────────────────────────────────────── */
.tag { display: inline-block; padding: 3px 8px; border-radius: 4px; background: var(--bg-alt); color: var(--ink-muted); font-size: 12px; font-weight: 500; }

/* ─── Footer ──────────────────────────────────── */
.site-footer { margin-top: auto; background: #fff; border-top: 1px solid var(--border); padding: 32px 0 24px; font-size: 13px; color: var(--ink-muted); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
@media(min-width:640px){.footer-grid{grid-template-columns:2fr 1fr 1fr 1fr;}}
.footer-brand p { font-size: 13px; color: var(--ink-muted); margin-top: 8px; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); margin-bottom: 10px; }
.footer-col a { display: block; color: var(--ink-muted); padding: 3px 0; font-size: 13px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding-top: 16px; border-top: 1px solid var(--border-soft); font-size: 12px; line-height: 1.6; }

/* ─── Utility & Animation ─────────────────────── */
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.sep { width: 1px; height: 20px; background: var(--border); }
@keyframes fadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
.fade-up { animation: fadeUp .5s ease forwards; opacity: 0; }

::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-thumb{background:#d1d1d1;border-radius:3px}
