:root {
    --bg: #0b0d12;
    --bg-alt: #0f131a;
    --surface: #151a23;
    --surface-2: #1c2230;
    --border: #232a39;
    --text: #e6ebf2;
    --text-muted: #8a93a6;
    --accent: #4f7cff;
    --accent-2: #6e92ff;
    --success: #28c896;
    --warning: #f5b033;
    --danger: #ff5b6a;
    --star: #ffc83d;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 13, 18, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 10px;
    font-size: 14px;
    color: #fff;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color .15s;
}
.main-nav a:hover { color: var(--text); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform .1s, background .15s, border-color .15s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); }
.btn-block { width: 100%; padding: 14px; }

/* Hero */
.hero {
    padding: 96px 0 80px;
    background:
        radial-gradient(ellipse at top, rgba(79, 124, 255, 0.18), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(40, 200, 150, 0.08), transparent 60%);
    text-align: center;
}
.hero-content { max-width: 820px; margin: 0 auto; }
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.hero-sub {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 36px;
}
.hero-search {
    display: flex;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    max-width: 600px;
    margin: 0 auto 40px;
    box-shadow: var(--shadow);
}
.hero-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}
.hero-stats > div { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stats span { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.section-head p { color: var(--text-muted); font-size: 16px; }

/* Broker grid */
.broker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.broker-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    cursor: pointer;
    transition: border-color .15s, transform .15s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.broker-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.broker-card.active {
    border-color: var(--accent);
    background: var(--surface-2);
    box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.12);
}
.broker-logo {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 18px;
}
.broker-card h3 { font-size: 16px; font-weight: 700; }
.broker-card .broker-cat { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.broker-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border); }
.broker-meta strong { color: var(--text); }

/* Filter bar */
.filter-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 24px;
    align-items: end;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.filter-group select,
.filter-group input {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--accent); }

.result-info { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }

/* Reviews */
.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    transition: border-color .15s;
}
.review:hover { border-color: var(--surface-2); }
.review-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.review-body { min-width: 0; }
.review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}
.review-name { font-weight: 700; font-size: 15px; }
.review-email { color: var(--text-muted); font-size: 13px; }
.review-verified {
    background: rgba(40, 200, 150, 0.15);
    color: var(--success);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.review-broker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
}
.stars { color: var(--star); letter-spacing: 2px; font-size: 15px; }
.stars .empty { color: #3a4153; }
.review-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.review-text { color: var(--text-muted); font-size: 14.5px; line-height: 1.65; }
.review-actions {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
}
.review-action { cursor: pointer; user-select: none; transition: color .1s; }
.review-action:hover { color: var(--text); }
.review-action.active { color: var(--accent); }

.pagination { display: flex; justify-content: center; margin-top: 32px; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stat-value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-grid h2 { font-size: 32px; margin-bottom: 16px; }
.about-grid p { color: var(--text-muted); margin-bottom: 22px; font-size: 16px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
    color: var(--text-muted);
    padding-left: 28px;
    position: relative;
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    width: 20px; height: 20px;
    background: rgba(40, 200, 150, 0.15);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    top: 2px;
}
.cta-card {
    background: linear-gradient(135deg, rgba(79, 124, 255, 0.12), rgba(40, 200, 150, 0.08));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}
.cta-card h3 { font-size: 22px; margin-bottom: 10px; }
.cta-card p { color: var(--text-muted); margin-bottom: 20px; }

/* Footer */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-tag { color: var(--text-muted); margin-top: 12px; font-size: 14px; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.footer-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--text); padding: 4px 0; font-size: 14px; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
    padding: 24px;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: center;
}
.modal.open { display: flex; }
.modal-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    max-width: 500px;
    width: 100%;
    margin: 60px auto;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}
.modal h2 { margin-bottom: 6px; }
.modal-sub { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }
#reviewForm { display: flex; flex-direction: column; gap: 14px; }
#reviewForm label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}
#reviewForm input,
#reviewForm select,
#reviewForm textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
}
#reviewForm input:focus,
#reviewForm select:focus,
#reviewForm textarea:focus { border-color: var(--accent); }
.star-input { display: flex; gap: 4px; font-size: 28px; cursor: pointer; color: #3a4153; }
.star-input span { transition: color .1s; }
.star-input span.active,
.star-input span.hover { color: var(--star); }
.form-disclaimer { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 8px; }

/* SEO block (TradingOwn spotlight) */
.seo-block { max-width: 980px; margin: 0 auto; }
.seo-block h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 14px 0 14px;
}
.seo-block h3 {
    font-size: 18px;
    margin: 24px 0 12px;
    font-weight: 700;
}
.seo-lead { font-size: 17px; color: var(--text); margin-bottom: 28px; line-height: 1.65; }
.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}
.rating-breakdown {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}
.rating-big { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; align-items: flex-start; }
.rating-number {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rating-stars { color: var(--star); font-size: 22px; letter-spacing: 3px; }
.rating-meta { color: var(--text-muted); font-size: 13px; }
.rating-bars { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rating-bars li {
    display: grid;
    grid-template-columns: 36px 1fr 32px;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}
.rating-bars div {
    background: var(--bg);
    height: 8px;
    border-radius: 100px;
    overflow: hidden;
}
.rating-bars i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 100px;
}
.seo-block details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 8px;
}
.seo-block details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.seo-block details summary::-webkit-details-marker { display: none; }
.seo-block details summary::after {
    content: '+';
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
}
.seo-block details[open] summary::after { content: '−'; }
.seo-block details p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.65;
}
.seo-keywords {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
    opacity: 0.7;
}
@media (max-width: 800px) {
    .seo-grid { grid-template-columns: 1fr; }
}

/* Moderation popup */
.moderation-inner { text-align: center; }
.moderation-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, rgba(79, 124, 255, 0.18), rgba(40, 200, 150, 0.18));
    border: 1px solid var(--border);
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--success);
    color: #fff;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 200;
    transition: transform .3s;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hero { padding: 60px 0 50px; }
    .hero-stats { gap: 32px; }
    .hero-search { flex-direction: column; }
    .hero-search button { width: 100%; }
    .filter-bar { grid-template-columns: 1fr; }
    .review { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .modal-inner { padding: 24px; margin: 20px auto; }
}
