
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #f4f7fb;
    --text-dark: #1e2022;
    --text-light: #6c757d;
    --brand-primary: #1a365d;
    --brand-secondary: #219ebc;
    --brand-accent: #02c39a;
    --card-bg: #ffffff;
    --success: #2a9d8f;
    --warning: #f4a261;
    --danger: #e76f51;
    --border-color: #e9ecef;
    --radius: 18px;
    --shadow: 0 10px 40px rgba(26, 54, 93, 0.05);
    --shadow-hover: 0 15px 50px rgba(26, 54, 93, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-dark); line-height: 1.7; font-size: 15px; overflow-x: hidden;}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* LAYOUT & UTILS */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.fade-up { animation: fadeUp 0.8s ease forwards; opacity: 0; transform: translateY(20px); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* HEADER */
.top-nav { background: var(--card-bg); padding: 18px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.04);}
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.brand-logo { font-size: 24px; font-weight: 800; color: var(--brand-primary); display: flex; align-items: center; gap: 8px;}
.brand-logo span { color: var(--brand-accent); }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-weight: 600; font-size: 14px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px;}
.nav-menu a:hover { color: var(--brand-secondary); }

/* HERO SECTION */
.hero-header { padding: 80px 20px; text-align: center; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231a365d" fill-opacity="0.03" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') no-repeat top center; background-size: cover; margin-bottom: 20px;}
.hero-header h1 { font-size: 46px; margin-bottom: 20px; font-weight: 800; line-height: 1.2; color: var(--brand-primary); letter-spacing: -1px;}
.hero-header p { font-size: 18px; max-width: 700px; margin: 0 auto; color: var(--text-light); }

/* SEO CONTENT SECTION (Home) */
.seo-block { background: var(--card-bg); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border-color); margin-bottom: 40px; }
.seo-block h2 { color: var(--brand-primary); font-size: 24px; margin-bottom: 20px; }
.seo-block p { color: var(--text-light); margin-bottom: 15px; text-align: justify; }

/* BROKER LIST (Modern Row Based) */
.brokers-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 60px;}
.broker-row { background: var(--card-bg); border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; gap: 25px; transition: var(--transition); }
.broker-row:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--shadow-hover); border-color: var(--brand-secondary); }

.br-left { display: flex; align-items: center; gap: 20px; flex: 1.5; }
.br-rank { font-size: 20px; font-weight: 800; color: #ced4da; width: 40px; text-align: center; }
.br-logo { width: 70px; height: 70px; background: #fff; border-radius: 14px; padding: 6px; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.03);}
.br-logo img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain;}
.br-title { display: flex; flex-direction: column; }
.br-title h3 { font-size: 19px; font-weight: 700; color: var(--brand-primary); margin-bottom: 3px; }
.br-title span { font-size: 13px; color: var(--brand-secondary); font-weight: 600; background: rgba(33, 158, 188, 0.1); padding: 4px 10px; border-radius: 6px; display: inline-block; width: max-content;}

.br-stats { display: flex; flex: 2; justify-content: space-between; background: var(--bg-color); padding: 15px 25px; border-radius: 14px; }
.br-stat { text-align: left; }
.br-stat span { display: block; font-size: 11px; color: var(--text-light); text-transform: uppercase; margin-bottom: 5px; font-weight: 600; letter-spacing: 0.5px;}
.br-stat strong { font-size: 16px; color: var(--text-dark); font-weight: 700;}
.br-rating strong { color: var(--warning); display: flex; align-items: center; gap: 5px;}

.br-actions { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.btn { width: 100%; text-align: center; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 14px; cursor: pointer; transition: var(--transition); border: none; display: inline-flex; align-items: center; justify-content: center;}
.btn-primary { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); color: #fff; box-shadow: 0 4px 15px rgba(33, 158, 188, 0.3); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(33, 158, 188, 0.4); transform: translateY(-2px); }
.btn-secondary { background: #fff; color: var(--brand-primary); border: 2px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--brand-primary); background: var(--bg-color); }

/* FAQ SECTION */
.faq-section { margin: 60px 0; }
.faq-section h2 { text-align: center; margin-bottom: 40px; font-size: 32px; color: var(--brand-primary); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-card { background: var(--card-bg); padding: 30px; border-radius: var(--radius); border: 1px solid var(--border-color); box-shadow: var(--shadow); }
.faq-card h3 { font-size: 18px; margin-bottom: 15px; color: var(--brand-secondary); }
.faq-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* BROKER DETAIL PAGE */
.detail-header { background: var(--card-bg); border-radius: var(--radius); padding: 40px; display: flex; align-items: center; gap: 30px; box-shadow: var(--shadow); margin: 40px 0; border: 1px solid var(--border-color);}
.dh-logo { width: 120px; height: 120px; padding: 15px; border-radius: 20px; border: 1px solid var(--border-color); box-shadow: 0 5px 15px rgba(0,0,0,0.03); object-fit: contain; }
.dh-content h1 { font-size: 36px; color: var(--brand-primary); margin-bottom: 15px; font-weight: 800; letter-spacing: -1px;}
.dh-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px;}
.badge { background: var(--bg-color); color: var(--text-dark); padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; border: 1px solid var(--border-color);}
.badge.rating { background: rgba(244, 162, 97, 0.1); color: #e76f51; border-color: rgba(244, 162, 97, 0.3);}

.page-layout { display: grid; grid-template-columns: 2.8fr 1.2fr; gap: 40px; margin-bottom: 60px; }
.main-content { background: var(--card-bg); padding: 45px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border-color);}

.main-content h2 { color: var(--brand-primary); font-size: 26px; margin: 45px 0 20px; position: relative; padding-bottom: 15px; font-weight: 700;}
.main-content h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 60px; height: 4px; background: var(--brand-accent); border-radius: 4px;}
.main-content h2:first-child { margin-top: 0; }
.main-content p { margin-bottom: 20px; font-size: 16px; line-height: 1.8; color: #495057; text-align: justify;}
.main-content blockquote { background: var(--bg-color); border-left: 6px solid var(--brand-secondary); padding: 25px 30px; font-size: 17px; font-style: italic; margin: 35px 0; border-radius: 0 16px 16px 0; color: var(--brand-primary); font-weight: 500;}

.side-panel { display: flex; flex-direction: column; gap: 30px; position: sticky; top: 100px; height: max-content;}
.info-widget { background: var(--card-bg); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.info-widget h3 { font-size: 20px; margin-bottom: 25px; color: var(--brand-primary); font-weight: 700; text-align: center;}
.iw-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 14px; border-bottom: 1px dashed var(--border-color); padding-bottom: 12px;}
.iw-row:last-child { border: none; margin-bottom: 0; padding: 0;}
.iw-label { color: var(--text-light); font-weight: 500; }
.iw-val { font-weight: 700; color: var(--brand-primary); }

/* PROS CONS */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin: 50px 0; }
.feat-box { padding: 30px; border-radius: 16px; border: 1px solid var(--border-color); }
.feat-box.good { background: rgba(42, 157, 143, 0.05); border-color: rgba(42, 157, 143, 0.2); }
.feat-box.bad { background: rgba(231, 111, 81, 0.05); border-color: rgba(231, 111, 81, 0.2); }
.feat-box h4 { font-size: 20px; margin-bottom: 25px; font-weight: 700;}
.feat-box.good h4 { color: var(--success); }
.feat-box.bad h4 { color: var(--danger); }
.feat-box ul { list-style: none; }
.feat-box li { margin-bottom: 15px; font-size: 15px; padding-left: 30px; position: relative; color: #495057; font-weight: 500;}
.feat-box.good li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 800; font-size: 18px;}
.feat-box.bad li::before { content: '✕'; position: absolute; left: 0; color: var(--danger); font-weight: 800; font-size: 18px;}

/* REVIEWS - NEW STYLE */
.review-section { margin-top: 60px; }
.review-section h2 { margin-bottom: 30px; font-size: 28px; }
.review-container { display: flex; flex-direction: column; gap: 20px; }
.review-item { background: var(--bg-color); padding: 30px; border-radius: var(--radius); border: 1px solid var(--border-color); transition: var(--transition);}
.review-item:hover { background: #fff; box-shadow: var(--shadow); }
.ri-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.ri-user { display: flex; align-items: center; gap: 15px; }
.ri-avatar { width: 55px; height: 55px; border-radius: 16px; background: var(--brand-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; text-transform: uppercase;}
.ri-meta h5 { font-size: 17px; margin: 0 0 4px; font-weight: 700; color: var(--brand-primary);}
.ri-meta span { font-size: 13px; color: var(--text-light); font-weight: 500;}
.ri-rating { color: #f4a261; font-size: 18px; letter-spacing: 2px;}
.ri-text { font-size: 15px; color: #495057; line-height: 1.7; font-style: italic;}

/* FOOTER */
.site-footer { background: var(--card-bg); color: var(--text-dark); padding: 80px 20px 30px; border-top: 1px solid var(--border-color);}
.footer-wrapper { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px;}
.footer-col h4 { font-size: 18px; margin-bottom: 25px; color: var(--brand-primary); font-weight: 700;}
.footer-col p { color: var(--text-light); font-size: 14px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 15px; }
.footer-col a { color: var(--text-light); font-size: 14px; font-weight: 500;}
.footer-col a:hover { color: var(--brand-accent); padding-left: 5px;}
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 25px; text-align: center; font-size: 14px; color: var(--text-light); font-weight: 500; }

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .page-layout { grid-template-columns: 1fr; }
    .side-panel { position: static; }
    .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; } 
    .hero-header { padding: 40px 20px 60px; }
    .hero-header h1 { font-size: 32px; }
    
    .broker-row { flex-direction: column; align-items: stretch; padding: 20px;}
    .br-left { flex-direction: column; text-align: center; gap: 10px;}
    .br-rank { width: auto; margin-bottom: 5px; }
    .br-title span { margin: 5px auto 0; }
    .br-stats { flex-direction: column; gap: 15px; text-align: center; }
    .br-stat { text-align: center; }
    .br-actions { flex-direction: row; }
    
    .detail-header { flex-direction: column; text-align: center; padding: 30px 20px;}
    .dh-badges { justify-content: center; }
    .dh-right { width: 100%; margin-top: 20px;}
    .dh-right .btn { display: block; width: 100%; }
    
    .main-content { padding: 25px 20px; }
    .features-grid { grid-template-columns: 1fr; }
    
    .footer-wrapper { grid-template-columns: 1fr; text-align: center; gap: 40px;}
    .brand-logo { justify-content: center; }
}
