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

:root {
    --bg-dark: #09090b; 
    --bg-card: #121214;
    --bg-light: #18181b;
    --bg-gray: #000000;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #ef4444; 
    --primary-hover: #dc2626; 
    --border-color: #27272a;
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Manrope', sans-serif; }
body { background-color: var(--bg-gray); color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; border-radius: 8px;}

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.fade-up { animation: fadeUp 0.6s ease-out forwards; opacity: 0; transform: translateY(20px); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* HEADER */
.header { background: var(--bg-dark); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 20px; max-width: 1280px; margin: 0 auto;}
.logo { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px;}
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 35px; align-items: center;}
.nav-links a { font-weight: 600; font-size: 15px; color: #d4d4d8; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff !important; padding: 12px 28px; border-radius: 50px; font-weight: 700; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); text-transform: uppercase; font-size: 13px; letter-spacing: 1px;}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);}

/* HERO SECTION WITH BACKGROUND */
.hero { 
    position: relative;
    background: linear-gradient(to bottom, rgba(9, 9, 11, 0.8), rgba(0, 0, 0, 1)), url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?auto=format&fit=crop&w=1920&q=80') center/cover;
    color: #fff; padding: 100px 20px 60px; text-align: center; 
}
.hero h1 { font-size: 54px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.5);}
.hero p { font-size: 18px; color: #a1a1aa; max-width: 700px; margin: 0 auto 40px; }

/* INFOGRAPHICS SECTION */
.stats-section { padding: 60px 20px; background: var(--bg-gray); }
.section-title { text-align: center; font-size: 36px; font-weight: 800; margin-bottom: 50px; color: #fff;}
.section-title span { color: var(--primary); }

.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px;}
.chart-card { background: var(--bg-card); border-radius: var(--radius); padding: 30px; border: 1px solid var(--border-color); }
.chart-card h3 { margin-bottom: 20px; font-size: 22px; color: #fff;}
.chart-card img { width: 100%; height: 300px; object-fit: cover; border-radius: 12px; opacity: 0.9;}

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px;}
.metric-box { background: var(--bg-card); border: 1px solid var(--border-color); color: #fff; padding: 30px 20px; border-radius: var(--radius); text-align: center; position: relative; overflow: hidden;}
.metric-box::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--primary); }
.metric-box h4 { font-size: 42px; font-weight: 800; margin-bottom: 5px; color: #fff;}
.metric-box p { color: #a1a1aa; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;}

/* TEAM / EXPERTS SECTION */
.team-section { padding: 80px 20px; background: var(--bg-dark); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);}
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;}
.expert-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-color); transition: var(--transition);}
.expert-card:hover { transform: translateY(-5px); border-color: var(--primary);}
.expert-photo { width: 100%; height: 350px; object-fit: cover; border-radius: 0; filter: grayscale(20%);}
.expert-info { padding: 25px; text-align: center;}
.expert-info h4 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 5px;}
.expert-info .role { color: var(--primary); font-weight: 700; font-size: 14px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px;}
.expert-info p { color: #a1a1aa; font-size: 15px; line-height: 1.6;}

/* OFFICE SECTION */
.office-section { padding: 80px 20px; background: var(--bg-gray); }
.office-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.office-img-main { width: 100%; height: 500px; object-fit: cover; border-radius: var(--radius); filter: brightness(0.85); }
.office-img-side { display: flex; flex-direction: column; gap: 20px; }
.office-img-side img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); filter: brightness(0.85);}

/* BROKER LIST RANKING */
.list-section { padding: 60px 20px 100px; background: var(--bg-dark); }
.table-header {
    display: grid;
    grid-template-columns: 60px 250px 1.5fr 1fr 1fr 1fr 1fr 180px;
    gap: 15px;
    padding: 15px 20px;
    background: var(--bg-card);
    color: #a1a1aa;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.broker-list { 
    display: flex; flex-direction: column; 
    background: var(--bg-card); 
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius) var(--radius);
}
.list-item { 
    display: grid;
    grid-template-columns: 60px 250px 1.5fr 1fr 1fr 1fr 1fr 180px;
    gap: 15px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--bg-light); }

.rank-number { font-size: 20px; font-weight: 800; color: #52525b; text-align: center;}
.list-item:hover .rank-number { color: var(--primary); }
.li-brand { display: flex; align-items: center; gap: 15px; }
.li-logo { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; padding: 5px;}
.li-logo img { max-height: 100%; border-radius: 4px; }
.li-brand strong { font-size: 16px; color: #fff; font-weight: 700;}

.data-cell { display: flex; flex-direction: column; font-size: 14px;}
.data-cell span { color: #71717a; font-size: 11px; text-transform: uppercase; margin-bottom: 4px; display: none; }
.data-cell strong { color: #e4e4e7; font-weight: 600;}

.rating-badge { background: rgba(239, 68, 68, 0.1); color: var(--primary); border: 1px solid rgba(239, 68, 68, 0.3); padding: 4px 10px; border-radius: 50px; font-weight: 700; font-size: 13px; display: inline-block; text-align: center;}

.li-actions { display: flex; gap: 10px; }
.btn-outline { 
    border: 1px solid #3f3f46; color: #d4d4d8; 
    text-align: center; padding: 10px; border-radius: 6px; font-weight: 600; font-size: 13px; width: 50%;
}
.btn-outline:hover { background: #3f3f46; color: #fff; border-color: #52525b; }
.btn-solid { 
    background: var(--primary); color: #fff; 
    text-align: center; padding: 10px; border-radius: 6px; font-weight: 700; font-size: 13px; width: 50%;
}
.btn-solid:hover { background: var(--primary-hover); }

/* BROKER DETAIL PAGE */
.detail-header { background: var(--bg-card); padding: 50px 20px; border-bottom: 1px solid var(--border-color); margin-bottom: 40px;}
.dh-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 30px;}
.dh-logo { width: 110px; height: 110px; background: #fff; padding: 10px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.5);}
.dh-info h1 { font-size: 40px; font-weight: 800; margin-bottom: 10px; color: #fff;}
.dh-info .badges { display: flex; gap: 10px;}
.dh-info .badge { background: rgba(255,255,255,0.05); border: 1px solid #3f3f46; color: #e4e4e7; padding: 6px 15px; border-radius: 50px; font-size: 13px; font-weight: 600;}
.dh-action { margin-left: auto; }
.dh-action .btn-solid { width: 220px; padding: 16px; font-size: 16px; border-radius: 50px;}

.detail-layout { display: grid; grid-template-columns: 1fr 350px; gap: 40px; margin-bottom: 80px; align-items: start;}

/* MAIN CONTENT */
.content-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 40px; margin-bottom: 30px;}
.content-section h2 { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 25px; display: flex; align-items: center; gap: 10px;}
.content-section h2::before { content: ''; display: block; width: 12px; height: 12px; background: var(--primary); border-radius: 50%;}
.content-section p { margin-bottom: 15px; color: #a1a1aa; font-size: 16px; line-height: 1.8;}

/* INFO TABLE */
.info-table { width: 100%; border-collapse: collapse; margin: 20px 0;}
.info-table th, .info-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 15px;}
.info-table th { color: #71717a; font-weight: 600; width: 40%;}
.info-table td { color: #f4f4f5; font-weight: 500;}

/* REVIEWS */
.rev-box { background: var(--bg-dark); border: 1px solid var(--border-color); padding: 25px; border-radius: var(--radius); margin-bottom: 15px;}
.rev-top { display: flex; justify-content: space-between; margin-bottom: 15px; align-items: center;}
.rev-user { display: flex; align-items: center; gap: 15px;}
.avt { width: 40px; height: 40px; border-radius: 50%; background: #27272a; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;}
.rev-user-info strong { display: block; font-size: 16px; color: #fff;}
.rev-user-info span { font-size: 12px; color: #71717a;}
.stars { color: var(--primary); font-size: 16px; letter-spacing: 2px;}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border-color); padding: 20px 0;}
.faq-item h4 { font-size: 18px; color: #e4e4e7; margin-bottom: 10px;}
.faq-item p { color: #a1a1aa; font-size: 15px; margin: 0;}

/* SIDEBAR */
.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 30px;}

.side-widget { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 30px;}
.side-widget h3 { font-size: 18px; margin-bottom: 20px; color: #fff; border-bottom: 1px solid var(--border-color); padding-bottom: 10px;}

/* PROS CONS */
.pc-list { list-style: none; margin-bottom: 20px;}
.pc-list li { position: relative; padding-left: 30px; margin-bottom: 15px; font-size: 14px; color: #d4d4d8;}
.pc-list.pros li::before { content: '✔'; position: absolute; left: 0; color: #10b981; font-weight: bold; background: rgba(16, 185, 129, 0.1); width: 22px; height: 22px; border-radius: 50%; text-align: center; line-height: 22px; font-size: 12px;}
.pc-list.cons li::before { content: '✖'; position: absolute; left: 0; color: #ef4444; font-weight: bold; background: rgba(239, 68, 68, 0.1); width: 22px; height: 22px; border-radius: 50%; text-align: center; line-height: 22px; font-size: 12px;}

/* FOOTER */
.footer { background: #000; color: #fff; padding: 80px 20px 30px; border-top: 1px solid #18181b;}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1280px; margin: 0 auto; border-bottom: 1px solid #27272a; padding-bottom: 40px; margin-bottom: 20px;}
.footer h4 { font-size: 16px; margin-bottom: 20px; color: #fff; text-transform: uppercase; letter-spacing: 1px;}
.footer p, .footer ul a { color: #a1a1aa; font-size: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a:hover { color: var(--primary); }
.f-bottom { text-align: center; color: #71717a; font-size: 13px;}

@media (max-width: 1200px) {
    .table-header { display: none; }
    .list-item { 
        grid-template-columns: 1fr; 
        gap: 10px;
        padding: 25px;
        position: relative;
        border-bottom: 1px solid var(--border-color);
    }
    .broker-list { background: transparent; border: none; }
    .list-item { background: var(--bg-card); margin-bottom: 15px; border: 1px solid var(--border-color); border-radius: var(--radius); }
    .rank-number { position: absolute; top: -15px; left: 20px; background: var(--bg-dark); border: 1px solid var(--border-color); color: #fff; width: 40px; height: 40px; border-radius: 50%; line-height: 38px; font-size: 14px;}
    .li-brand { margin-bottom: 15px; padding-top: 10px;}
    .data-cell { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0; border-bottom: 1px dashed #27272a;}
    .data-cell span { display: block; margin: 0;}
    .data-cell strong { text-align: right; }
    .li-actions { flex-direction: row; margin-top: 15px;}
}

@media (max-width: 992px) {
    .charts-grid, .office-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .detail-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px;}
    .dh-inner { flex-direction: column; text-align: center; }
    .dh-action { margin-left: 0; margin-top: 20px; width: 100%;}
    .dh-info .badges { justify-content: center; flex-wrap: wrap;}
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 36px; }
    .sidebar { grid-template-columns: 1fr; }
    .team-grid, .metrics-grid, .footer-inner { grid-template-columns: 1fr; }
}
