/* ==========================================================================
   INDEX OPTIMIZED CSS
   Sections:
   1.  Root Variables & Keyframes
   2.  Base & Reset
   3.  Header & Navbar
   4.  Common Layout
   5.  Typography
   6.  Search Box & Buttons
   7.  Broker Slider
   8.  Broker List
   9.  Broker Cards & Rankings
   10. Side Rankings Section
   11. EA Tools (Expert Advisors)
   12. VPS Container
   13. Wiki Navigation
   14. News, Scam & Disclosure
   15. Search Dealer
   16. Protection Section
   17. Footer
   18. Modal
   19. Search Suggestions
   20. Utilities
   21. Responsive Media Queries (Consolidated)
   ========================================================================== */


/* ==========================================================================
   1. ROOT VARIABLES & KEYFRAMES
   ========================================================================== */

:root {
    --site-header-height: 116px;

    /* Hero */
    --shared-hero-bg: linear-gradient(120deg, rgba(4, 23, 43, 0.72), rgba(11, 58, 96, 0.48)),
        url('../images/herobg.jpg'),
        url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1600&q=80');

    /* Colors */
    --page-bg:       #f4f7fb;
    --surface:       rgba(255, 255, 255, 0.84);
    --surface-strong:#ffffff;
    --text-main:     #172033;
    --text-muted:    #667085;
    --brand:         #f1b84b;
    --brand-deep:    #c98d1b;
    --accent:        #0ea5e9;
    --border:        rgba(15, 23, 42, 0.08);

    /* Shadows */
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-md: 0 14px 30px rgba(15, 23, 42, 0.08);

    /* Radii */
    --radius-xl: 28px;
    --radius-lg: 22px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ticker-scroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes adBadgeGlow {
    0%, 100% { box-shadow: 0 8px 18px rgba(245, 158, 11, 0.24); }
    50%       { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12), 0 10px 20px rgba(194, 65, 12, 0.32); }
}


/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */

*,
html,
body {
    margin: 0;
    box-sizing: border-box;
}

html,
body {
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    background:
        radial-gradient(circle at top left, rgba(241, 184, 75, 0.16), transparent 30%),
        radial-gradient(circle at right top, rgba(14, 165, 233, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, var(--page-bg) 40%, #f6f8fc 100%);
    color: var(--text-main);
}

.body,
.container,
.navbar {
    left: 0;
    right: 0;
}

.container {
    max-width: 1400px !important;
    width: min(1400px, 100%);
    padding: 0;
    margin: 0 auto;
}

#div1 { width: 100%; }
#dr    { display: block; }


/* ==========================================================================
   3. HEADER & NAVBAR
   ========================================================================== */

.sticky-top,
header#siteHeader.sticky-top {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
}

body {
    padding-top: var(--site-header-height, 116px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 10px 20px;
    flex-wrap: wrap;
    background-color: #f5663b;
}

#nav {
    left: 0;
    right: 0;
    width: auto;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-item {
    margin: 0;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.toggle-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.regulators-dropdown {
    margin-left: 100px;
}

/* Logo wrappers in navbar context */
.logo-overlay-wrapper {
    width: 100%;
    height: 100px;
    background: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-overlay-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/logo_bg.png') center center / 78% no-repeat;
    opacity: 0.3;
    pointer-events: none;
}

.logo-foreground {
    width: 200px;
    height: 200px;
    object-fit: contain;
    z-index: 2;
    position: relative;
}


/* ==========================================================================
   4. COMMON LAYOUT
   ========================================================================== */

/* ==========================================================================
     USER-ADDED: Header / Navbar / Search / Drawer styles
     Source: user-provided <style> block (inserted 2026-05-27)
     NOTE: These are site-specific overrides and responsive tweaks.
========================================================================== */

/* =====================================================
     BASE RESET (user)
===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: var(--site-header-height, 116px);
    background-color: transparent;
}

/* =====================================================
     TOP NAVBAR (user)
===================================================== */
.navbar-dark.bg-dark {
    background-color: rgba(0, 7, 26, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0;
}

.navbar-dark.bg-dark .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Logo */
.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.fx-logo {
    width: 150px;
    height: auto;
    transition: transform 0.3s;
}

.fx-logo:hover { transform: scale(1.05); }

.sub-title {
    font-size: 13px;
    color: #b0b0b0;
    font-style: italic;
    white-space: nowrap;
}

/* Search */
form.form-inline {
    flex: 1 1 300px;
    display: block;
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.search-box {
    background-color: #f0f2f5;
    border-radius: 50px;
    padding: 4px 6px 4px 15px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 440px;
    height: auto;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.08),
        inset -3px -3px 6px rgba(255, 255, 255, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.custom-search-input {
    background: transparent !important;
    border: none !important;
    outline: none;
    box-shadow: none !important;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    padding: 5px 0;
    color: #333;
}

.custom-search-input::placeholder {
    color: #888;
    font-style: italic;
}

.search-results-box {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 380px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 99999999 !important;
    visibility: visible !important;
    margin-top: 5px !important;
    padding: 5px 0 !important;
    box-sizing: border-box !important;
}

.search-btn {
    background: linear-gradient(145deg, #ffd580, #f59e0b);
    border: none;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    color: #2e3440;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 2px 2px 6px rgba(194, 65, 12, 0.14),
        0 0 10px rgba(245, 158, 11, 0.32);
}

.search-btn:hover { transform: translateY(-2px); box-shadow: 0 0 18px rgba(245, 158, 11, 0.6); }
.search-btn:active { transform: translateY(0); box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2); }

/* Right actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }

.login-icon a,
.login-icon h3 { margin: 0; font-size: 24px; display: flex; align-items: center; transition: color 0.3s; }
.login-icon a:hover { color: #f59e0b !important; }

.download-btn {
    background: linear-gradient(145deg, #ffd580, #f59e0b) !important;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 2px 2px 8px rgba(194, 65, 12, 0.16);
}

.download-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(194, 65, 12, 0.28); }

.dropdown-menu-end { border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); border: none; }

/* =====================================================
     BOTTOM NAVBAR (user)
===================================================== */
.navbar-expand-lg:not(.bg-dark) {
    background-color: rgba(245, 158, 11, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0;
}

.navbar-expand-lg:not(.bg-dark) .container { padding-left: 15px; padding-right: 15px; }

.navbar-expand-lg:not(.bg-dark) .nav-link {
    color: #1e222d !important;
    font-weight: 700;
    padding: 12px 20px;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s;
    white-space: nowrap;
}

.navbar-expand-lg:not(.bg-dark) .nav-link:hover { background-color: rgba(0, 0, 0, 0.08); }

.navbar-toggler { border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: none !important; }

/* =====================================================
     MEGA MENUS (user)
===================================================== */
.dropdown-hover { position: static; }

.dropdown-content {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 10001;
    border-top: 2px solid #2e3440;
}

.nav-item.dropdown-hover:hover .dropdown-content {
    display: block !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    animation: fadeIn 0.25s ease;
}

/* Bootstrap navbar must stay visible (Tailwind .collapse conflicts) */
#siteHeader .navbar-collapse.collapse {
    visibility: visible !important;
}

@media (min-width: 992px) {
    #siteHeader .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        visibility: visible !important;
        flex-basis: auto !important;
        height: auto !important;
    }
}

.dropdown-content .container { display: flex; padding: 25px 15px; gap: 15px; }

.broker-section,
.rankings-section,
.rankings-sections,
.regulators-section {
    flex: 1;
    padding: 0 12px;
    border-right: 1px solid #f0f0f0;
    min-width: 0;
}

.regulators-section { border-right: none; }

.section-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #2e3440;
    border-bottom: 2px solid #f59e0b;
    padding-bottom: 8px;
    margin-bottom: 12px;
    display: inline-block;
}

.more-link { float: right; font-size: 12px; color: #666; margin-top: 4px; text-decoration: none; }
.more-link:hover { color: #f59e0b; }

.product-item {
    display: flex; align-items: center; padding: 10px; border-radius: 8px; background: #f8f9fa; margin-bottom: 8px; text-decoration: none; border: 1px solid transparent; transition: 0.3s;
}
.product-item:hover { background: #fff; border-color: #f59e0b; box-shadow: 0 4px 12px rgba(194, 65, 12, 0.08); transform: translateX(4px); }
.product-icon img { width: 38px; margin-right: 12px; }
.product-info h4 { margin: 0; font-size: 13px; font-weight: 600; color: #2e3440; }
.product-info p { margin: 0; font-size: 11px; color: #777; }

.ranking-item,
.regulator-item { display: block; padding: 7px 0; color: #555; text-decoration: none; font-size: 13px; transition: 0.3s; border-bottom: 1px solid #f8f8f8; }
.ranking-item:last-child,
.regulator-item:last-child { border-bottom: none; }
.ranking-item:hover { color: #f59e0b; padding-left: 5px; }

.regulators-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.regulator-item { background: #f8f9fa; text-align: center; padding: 7px 4px; border-radius: 6px; border: 1px solid #eee; font-size: 12px; font-weight: 600; }
.regulator-item:hover { border-color: #f59e0b; background: #fff; color: #c97d10; }

/* VPS Dropdown (user) */
.vps-dropdown-hover { position: relative; }
.vps-dropdown-content {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    top: 100%;
    left: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    z-index: 10001;
}
.vps-dropdown-hover:hover .vps-dropdown-content {
    display: block !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    animation: fadeIn 0.2s ease;
}
.vps-dropdown-content a { display: block; padding: 11px 18px; color: #444; text-decoration: none; font-size: 13px; border-bottom: 1px solid #f5f5f5; transition: all 0.2s; }
.vps-dropdown-content a:last-child { border-bottom: none; }
.vps-dropdown-content a:hover { background: #f8f9fa; color: #f59e0b; padding-left: 24px; }

/* =====================================================
     FLOATING ENQUIRY BUTTON (user)
===================================================== */
.enquiry-float {
    position: fixed !important;
    right: 16px !important;
    left: auto !important;
    bottom: calc(16px + 1in);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; z-index: 11000; cursor: pointer;
    background: linear-gradient(145deg, #ffd580, #f59e0b 60%);
    box-shadow: 0 10px 30px rgba(6, 10, 22, 0.42), 0 0 30px rgba(245, 158, 11, 0.14) inset;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform .18s ease, box-shadow .18s ease; animation: enquiryFloatY 4s ease-in-out infinite;
}
.enquiry-float::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 120%; height: 120%; border-radius: 50%; pointer-events: none; box-shadow: 0 0 18px rgba(245, 158, 11, 0.52), 0 0 32px rgba(245, 158, 11, 0.28); animation: enquiryPulse 2.4s infinite ease-in-out; }
.enquiry-float:hover { transform: translateY(-6px) scale(1.03); }
.enquiry-float i { font-size: 18px; color: #08121a; }

@keyframes enquiryPulse {
    0%,100% { transform: translate(-50%, -50%) scale(0.98); opacity: .85; }
    50% { transform: translate(-50%, -50%) scale(1.06); opacity: .45; }
}
@keyframes enquiryFloatY {
    0%,100% { transform: translateY(0); }
    25% { transform: translateY(-6px); }
    75% { transform: translateY(6px); }
}

/* =====================================================
     MOBILE DRAWER (user)
===================================================== */
.mob-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 9000; backdrop-filter: blur(3px); }
.mob-overlay.open { display: block; animation: fadeIn 0.2s ease; }
.mob-drawer { position: fixed; top: 0; left: 0; width: 300px; max-width: 88vw; height: 100%; background: #06090f; z-index: 9100; overflow-y: auto; transform: translateX(-100%); transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.mob-drawer.open { transform: translateX(0); }
.mob-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mob-drawer__logo { height: 30px; }
.mob-drawer__close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.7); display: grid; place-items: center; font-size: 14px; cursor: pointer; transition: all 0.2s; position: relative; z-index: 2; pointer-events: auto; }
.mob-drawer__close:hover { border-color: #f59e0b; color: #f59e0b; }
.mob-drawer__search { padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.mob-drawer__search form { display: flex; align-items: center; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 40px; padding: 5px 5px 5px 14px; }
.mob-drawer__search input { flex: 1; background: transparent; border: none; outline: none; color: #fff; font-size: 13px; }
.mob-drawer__search input::placeholder { color: rgba(255, 255, 255, 0.3); font-style: italic; }
.mob-drawer__search button { width: 32px; height: 32px; border-radius: 50%; border: none; background: linear-gradient(135deg, #ffd580, #f59e0b); color: #1e222d; display: grid; place-items: center; font-size: 12px; cursor: pointer; }
.mob-drawer__nav { flex: 1; }
.mob-nav-item { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.mob-nav-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: rgba(255, 255, 255, 0.78); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; cursor: pointer; transition: all 0.2s; }
.mob-nav-link:hover, .mob-nav-link.active-parent { color: #f59e0b; background: rgba(245, 158, 11, 0.05); }
.mob-nav-link i { font-size: 10px; transition: transform 0.2s; }
.mob-nav-item.open>.mob-nav-link i { transform: rotate(180deg); color: #f59e0b; }
.mob-sub { display: none; background: rgba(255, 255, 255, 0.03); border-top: 1px solid rgba(255, 255, 255, 0.05); }
.mob-nav-item.open>.mob-sub { display: block; }
.mob-sub a { display: block; padding: 10px 18px 10px 32px; color: rgba(255, 255, 255, 0.52); font-size: 13px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.04); transition: all 0.18s; }
.mob-sub a:last-child { border-bottom: none; }
.mob-sub a:hover { color: #f59e0b; background: rgba(245, 158, 11, 0.05); padding-left: 38px; }
.mob-drawer__foot { margin-bottom: 40px; padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, 0.07); display: flex; gap: 10px; align-items: center; justify-content: space-between; flex: 0 0 auto; position: relative; margin-top: 0; background: transparent; z-index: 1000001; }
.mob-drawer__foot .download-btn { flex: 1; text-align: center; color: #1e222d; font-size: 13px; }
.mob-drawer__foot .login-icon a { font-size: 22px; }
.mob-drawer { display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding-bottom: 0; }
.mob-drawer__nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.mob-burger { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 6px; cursor: pointer; flex-shrink: 0; position: relative; z-index: 10001; pointer-events: auto; }
.mob-burger span { display: block; width: 20px; height: 2px; background: rgba(255, 255, 255, 0.75); border-radius: 2px; transition: all 0.22s ease; }
.mob-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mob-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mob-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
     TABLET & MOBILE QUERIES (user)
===================================================== */
@media (max-width: 768px) {
    body {
        padding-top: var(--site-header-height, 62px);
    }
}

@media (max-width: 1100px) {
    .fx-logo { width: 130px; }
    .sub-title { display: none; }
    .navbar-dark.bg-dark .container { gap: 8px; }
    .search-box { max-width: 340px; }
    .navbar-expand-lg:not(.bg-dark) .nav-link { padding: 12px 14px; font-size: 13px; }
    .download-btn { padding: 7px 14px; font-size: 13px; }
    .login-icon a, .login-icon h3 { font-size: 20px; }
    .regulators-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .mob-burger { display: flex; margin-left: 8px; }
    .navbar-expand-lg:not(.bg-dark) { display: none; }
    .navbar-dark.bg-dark .container { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; padding: 0 12px; }
    .fx-logo { width: 110px; }
    form.form-inline { display: none; }
    .header-actions { gap: 6px; }
    .header-actions .download-btn { display: none; }
    .login-icon a, .login-icon h3 { font-size: 20px; }
    .dropdown-menu-end { right: 0 !important; left: auto !important; }
    .enquiry-float { right: 12px !important; bottom: calc(12px + 0.75in); width: 46px; height: 46px; }
    .enquiry-float i { font-size: 16px; }
}

@media (max-width: 480px) {
    .navbar-dark.bg-dark { padding: 5px 0; }
    .fx-logo { width: 90px; }
    .login-icon a, .login-icon h3 { font-size: 17px; margin: 0 3px; }
    #selectedLangFlag { width: 22px !important; height: 22px !important; }
    .enquiry-float { right: 10px !important; bottom: calc(10px + 0.6in); width: 42px; height: 42px; }
    .enquiry-float i { font-size: 15px; }
}

/* Quick global fixes to prevent horizontal overflow (user)
     These ensure the header additions don't introduce horizontal scroll */
html, body { max-width: 100%; overflow-x: hidden; }
.container, .container-fluid { box-sizing: border-box; padding-left: 12px; padding-right: 12px; max-width: 100%; }
img, svg, iframe, .broker-list, .home-down, .side-rankings-section { max-width: 100%; height: auto; }
.broker-slider { max-width: 100%; }
/* End user-added section */


.broker-slider,
.broker-search,
.side-rankings-section,
.home-down,
.wiki-nav-list,
.ea-list-l,
.ranking,
.ranking-carousel-wrapper,
.spread-comparison,
.expo-section,
.sentiments-section,
.survey-section,
.protection-section,
.tear-section {
    position: relative;
    padding-top: 22px;
    padding-bottom: 67px;
}

/* Broker slider padding override */
.broker-slider {
    padding-top: 20px !important;
    padding-bottom: 44px !important;
    /* height: 550px; */
}

.side-rankings-section,
.broker-slider,
.broker-list,
.home-down.home-down-v2 {
    width: 100%;
}

/* Container glass styles */
.broker-search .container,
.side-rankings-section .container,
.home-down .container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 28px;
}

.broker-search .container {
    overflow: hidden;
}

.broker-search .container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(241, 184, 75, 0.22);
}

.home-down .container {
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 248, 255, 0.88));
}

/* Card base */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}


/* ==========================================================================
   5. TYPOGRAPHY
   ========================================================================== */

.main-title,
.rankings-title {
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.main-title {
    font-size: clamp(2rem, 3.6vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 18px;
    max-width: 14ch;
    animation: fadeUp 0.8s ease both;
}

.rankings-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 2rem);
    font-weight: 800;
}

.text-1,
.text-2,
.text-3 {
    margin-bottom: 0;
}

.text-2 {
    font-size: clamp(1.5rem, 2.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.text-3 {
    color: var(--text-muted);
    font-size: 1.05rem;
}


/* ==========================================================================
   6. SEARCH BOX & BUTTONS
   ========================================================================== */

/* Generic search container */
.search-container {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: visible;
    position: relative;
}

.search-box {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    overflow: hidden;
    padding: 5px 10px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.custom-search-input {
    border: none;
    outline: none;
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 14px;
}

.custom-search-input::placeholder {
    color: #888;
}

.search-input {
    border: 0;
    box-shadow: none !important;
    font-size: 1rem;
    padding: 0.95rem 1rem;
}

.search-input:focus {
    box-shadow: none !important;
}

.search-btn {
    background-color: #b8860b;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn i {
    color: white;
    font-size: 16px;
}

.search-button {
    background: linear-gradient(135deg, var(--brand), #ffd56b);
    color: #1f2937;
    border: none;
    border-radius: 999px;
    font-weight: 800;
    padding: 0.9rem 1.35rem;
    box-shadow: 0 10px 24px rgba(241, 184, 75, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(241, 184, 75, 0.38);
    filter: saturate(1.05);
}


/* ==========================================================================
   7. BROKER SLIDER (Hero)
   ========================================================================== */

.broker-slider {
    width: 100%;
    max-width: 100vw;
    border-radius: 0;
    overflow: hidden;
    background-image: var(--shared-hero-bg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 20px 0 44px;
    margin: 0;
    position: relative;
    isolation: isolate;
}

.broker-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 15, 30, 0.2) 0%, rgba(4, 15, 30, 0.62) 100%);
    pointer-events: none;
    z-index: 0;
}

.broker-slider > .container {
    position: relative;
    z-index: 1;
    width: min(1400px, calc(100% - 28px));
    max-width: 1400px;
    margin-inline: auto;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.broker-slider .container:not(.broker-slider-content) {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
}

.broker-slider .broker-slider-content {
    margin-top: 50px;
    padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 32px) clamp(24px, 3.5vw, 40px);
    border-radius: 0 0 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.broker-slider .container::before {
    display: none;
}

/* Logo items */
.broker-slider .logo-item {
    position: relative;
}

.broker-slider .logo-item.card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.15);
}

.broker-slider .brokerSwiper {
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.broker-slider .brokerSwiper .swiper-wrapper {
    align-items: stretch;
    transition-timing-function: linear !important;
}

.broker-slider .brokerSwiper .swiper-slide {
    height: auto;
    display: flex;
}

.broker-slider .brokerSwiper .swiper-slide .logo-item {
    width: 100%;
}

.broker-slider .logo-overlay-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    height: 90px;
}

.broker-slider .logo-overlay-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/logo_bg.png') center center / 45% no-repeat;
    opacity: 0.3;
    pointer-events: none;
}

.broker-slider .logo-foreground {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100px;
    height: auto;
}

.broker-logo-wrapper {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.broker-logo-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/logo_bg.png') center center / 78% no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

.broker-logo {
    position: relative;
    z-index: 1;
}

/* Title */
.broker-slider .main-title {
    background: linear-gradient(135deg, #ffe082 0%, #c39a37 50%, #ae862d 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 100%;
    width: 100%;
    text-align: center;
    font-size: clamp(1.75rem, 3.2vw, 3.25rem);
    line-height: 1.12;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.03em;
    text-shadow: none;
    margin: 0 0 12px;
    animation: none;
}

/* Stats row */
.broker-slider .stats {
    gap: 14px 22px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.broker-slider .stat-item {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 10px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.broker-slider .number,
.broker-slider .label,
.broker-slider .search-icon {
    color: #9aa4b0;
}

.broker-slider .number {
    color: #b58c30;
    font-size: 1.5rem;
    font-weight: 600;
}

.broker-slider .search-container,
.broker-slider .hero-search-form {
    position: relative;
    overflow: visible;
    width: min(100%, 820px);
    margin: 0 auto;
}

/* Search box (merged) */
.broker-slider .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    min-height: 58px;
    height: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.broker-slider .search-box:focus-within {
    border-color: rgba(245, 158, 11, 0.9);
}

.broker-slider .search-icon {
    flex: 0 0 auto;
    margin-left: 4px;
    font-size: 1rem;
}

/* Search input (merged) */
.broker-slider .search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding-left: 0;
    color: #ffffff;
    font-size: 1.05rem;
    background: transparent;
    border: none;
    outline: none;
}

.broker-slider .search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.broker-slider .search-button {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #f59e0b 0%, #c2410c 100%);
    color: #ffffff;
    border: none;
    border-radius: 0 14px 14px 0;
    height: 100%;
    min-width: 120px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: auto;
    transition: all 0.3s ease;
}

.broker-slider .search-button:hover {
    background: linear-gradient(135deg, #c2410c 0%, #7a2c06 100%);
    box-shadow: 0 0 18px rgba(194, 65, 12, 0.36);
}

/* Ad Badge */
.broker-slider .ad-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 3;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 34px;
    max-width: max-content;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd580 0%, #f59e0b 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    animation: adBadgeGlow 2.2s ease-in-out infinite;
}

.broker-slider .broker-item-link:hover .ad-badge {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12), 0 12px 26px rgba(194, 65, 12, 0.32);
    transition: all 0.22s ease;
}


/* ==========================================================================
   8. BROKER LIST
   ========================================================================== */

.broker-list {
    padding-top: 25px;
    padding-bottom: 25px;
    background: transparent;
}

.broker-list .container {
    background: #092036 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 8px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}


/* Buttons */
.broker-list .btn {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    background: #f59e0b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.broker-list .btn:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.broker-list .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(194, 65, 12, 0.95));
    z-index: -1;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.broker-list .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    z-index: 2;
    transition: none;
}

.broker-list .btn:hover {
    color: #ffffff;
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 10px 28px rgba(194, 65, 12, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.broker-list .btn:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.broker-list .btn:hover::after {
    left: 150%;
    transition: all 0.75s ease-in-out;
}

.broker-list .btn:active {
    transform: translateY(-1px) scale(0.98);
}

.broker-list .btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b 0%, #c2410c 100%);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 28px rgba(194, 65, 12, 0.22);
}

.broker-list .separator {
    display: none;
}


/* ==========================================================================
   9. BROKER CARDS & RANKINGS
   ========================================================================== */

/* Stats */
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.stat-item {
    flex: 1 1 220px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.12);
}

.number {
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    font-weight: 800;
    display: block;
    letter-spacing: -0.04em;
}

.label {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-top: 4px;
    display: inline-block;
}

/* Broker item */
.broker-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.broker-item-link {
    text-decoration: none;
    color: inherit;
}


/* Logo wrapper */
.broker-logo-wrapper {
    position: relative;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(241, 184, 75, 0.18), rgba(14, 165, 233, 0.12));
    display: grid;
    place-items: center;
    margin-right: 15px;
    overflow: hidden;
}

.broker-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.regulated-badge {
    position: absolute;
    top: -10px;
    left: 12px;
    background: #16a34a;
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.22);
}

.com-img {
    max-width: 70px;
    width: 70px;
    height: 70px !important;
    object-fit: contain;
    border-radius: 18px;
}

.com-img3 {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Broker info */
.broker-info {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}

.broker-info img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.broker-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.broker-years {
    color: #6c757d;
    font-size: 12px;
    display: block;
}

/* Score */
.score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 76px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
    font-weight: 800;
}

.score::after {
    content: 'Score';
    color: #666;
    font-weight: normal;
}

/* Rank number badge */
.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), #ffd56b);
    color: #1f2937;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(241, 184, 75, 0.3);
    flex-shrink: 0;
    margin-left: 8px;
}

/* Content section */
.content-section {
    display: none;
    padding: 0 0 24px;
}

.content-section.active {
    display: block;
}

.content-section .rankings-list {
    background: var(--surface-strong);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 18px;
}

/* Rankings list */
.rankings-list {
    padding: 15px;
}

/* Header icons */
.header-icons {
    display: flex;
    gap: 12px;
}

.header-icons i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-muted);
    margin-left: 6px;
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.header-icons i.active,
.header-icons i.fa-trophy,
.header-icons i:hover {
    background: linear-gradient(135deg, var(--brand), #ffd56b);
    color: #1f2937;
    transform: translateY(-2px);
}


/* ==========================================================================
   10. SIDE RANKINGS SECTION
   ========================================================================== */

.side-rankings-section {
    background: #fafafa;
    margin-top: 0;
}

.side-rankings-section .container {
    max-width: 100%;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    background: #fafafa;
}


/* ==========================================================================
   11. EA TOOLS (Expert Advisors / Robots)
   ========================================================================== */

.ea-list-l {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 18px;
    padding: 14px 4px 20px;
    margin: 16px auto 0;
    width: 100%;
    max-width: 1400px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.ea-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #ffffff 0%, #fffaf0 64%, #fff4d7 100%);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 22px;
    padding: 18px 18px 16px;
    box-shadow: 0 18px 35px rgba(130, 94, 18, 0.16);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    width: calc((100% - 54px) / 4);
    max-width: calc((100% - 54px) / 4);
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.ea-card::before {
    content: "";
    position: absolute;
    top: -65px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 166, 40, 0.26) 0%, rgba(217, 166, 40, 0) 72%);
    pointer-events: none;
}

.ea-card:hover {
    transform: translateY(-8px);
    border-color: rgba(184, 134, 11, 0.42);
    box-shadow: 0 24px 38px rgba(130, 94, 18, 0.22);
}

.ea-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ea-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #d8a129, #b8860b);
    color: white;
    font-weight: 700;
    font-size: 11px;
    padding: 6px 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    box-shadow: 0 8px 16px rgba(184, 134, 11, 0.3);
}

.income-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(184, 134, 11, 0.14);
    color: #8b6508;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
}

.ea-title {
    flex: 1;
    min-width: 100%;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.22;
    color: #2f2413;
}

.ea-card-income {
    font-size: 13px;
    margin-bottom: 12px;
    color: #6f5a2f;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(184, 134, 11, 0.18);
}

.ea-income {
    font-weight: 800;
    color: #b27a08;
}

.ea-card-desc {
    font-size: 14px;
    flex-grow: 1;
    color: #4a3d27;
    margin-bottom: 16px;
    line-height: 1.6;
}

.ea-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(184, 134, 11, 0.3);
}

.ea-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.ea-price {
    font-weight: 800;
    font-size: 18px;
    color: #8b6508;
}

.ea-old-price {
    font-size: 13px;
    color: #8b94a6;
    text-decoration: line-through;
}

.ea-btn {
    background: linear-gradient(135deg, #d8a129 0%, #b8860b 100%);
    border: none;
    color: white;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 11px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    box-shadow: 0 10px 18px rgba(184, 134, 11, 0.3);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.ea-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 22px rgba(184, 134, 11, 0.36);
    filter: brightness(1.06);
}


/* ==========================================================================
   12. VPS CONTAINER
   ========================================================================== */

.ea-vps-container {
    display: flex;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
    overflow-x: visible;
    position: relative;
}

.ea-card-wrapper {
    position: relative;
    flex: 0 0 auto;
    width: 200px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-left: -48px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, margin-left 0.3s ease;
    z-index: 0;
    cursor: pointer;
    overflow: visible;
}

.ea-card-wrapper:first-child { margin-left: 0; }

.ea-card-wrapper:hover {
    z-index: 10;
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-left: 0;
}

.ea-card-tag {
    width: 50px;
    position: absolute;
    top: 0;
    left: 0;
    background: #c49b5f;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-bottom-right-radius: 8px;
    z-index: 1;
}

.ea-card-content {
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.ea-card-logo {
    width: 68px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 12px;
}

.ea-card-title {
    font-size: 14px;
    font-weight: bold;
    color: #1d2129;
    margin-bottom: 8px;
    text-align: center;
}

.ea-card-specs {
    font-size: 12px;
    color: #86909c;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 14px;
}

.ea-card-btn {
    display: inline-block;
    padding: 5px 6px;
    border-radius: 4px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    width: 70%;
}

.free-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.vps-card:hover .free-tag {
    transform: scale(1.1) rotate(5deg);
}

.vps-name {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
    color: #333;
    transition: color 0.3s ease;
}

.vps-card:hover .vps-name { color: #007bff; }

.vps-specs {
    margin: 12px 0;
    font-size: 13px;
    color: #666;
}

.specs { line-height: 1.5; }

.vps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}


/* ==========================================================================
   13. WIKI NAVIGATION
   ========================================================================== */

.wiki-nav-list {
    max-width: 1400px;
    width: min(1400px, calc(100% - 24px));
    margin: 0 auto 18px;
    padding: 0 40px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow-x: auto;
    align-items: center;
}

.wiki-nav-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    color: #232323;
    font-weight: 600;
    font-size: 20px;
    user-select: none;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.3s;
    position: relative;
    padding-bottom: 2px;
}

.wiki-nav-item.active,
.wiki-nav-item.rpc-active,
.wiki-nav-item:hover {
    color: red;
    background: linear-gradient(135deg, var(--brand), #ffd56b);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    font-weight: 600;
}

/* Wiki nav inside protection/jaf context */
.title-tab.jaf-2 .wiki-nav-list {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.title-tab.jaf-2 .wiki-nav-item {
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 20px;
    color: #aaa;
    font-weight: 400;
    padding: 0;
    padding-bottom: 2px;
}

.title-tab.jaf-2 .wiki-nav-item.active,
.title-tab.jaf-2 .wiki-nav-item.rpc-active,
.title-tab.jaf-2 .wiki-nav-item:hover {
    color: #232323;
    font-weight: 600;
    background: transparent;
    box-shadow: none;
    transform: none;
}

/* Right tab controls */
.right-tab {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 32px;
}

.right-tab-1,
.right-tab-2 {
    font-size: 22px;
    color: #4169e1;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.right-tab-1.hover-active,
.right-tab-2.hover-active {
    color: #232323;
}


/* ==========================================================================
   14. HOME DOWN V2 SECTION
   ========================================================================== */

.home-down.home-down-v2 {
    position: relative;
    padding: 72px 0;
    overflow: hidden;
}

.home-down.home-down-v2::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -140px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0) 68%);
    pointer-events: none;
}

.home-down-v2 .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr);
    align-items: center;
    gap: 30px;
}

.home-down-v2 .down-l { max-width: 620px; }

.home-down-v2 .text-1 { color: #1c2430; }

.home-down-v2 .text-2 {
    margin: 0 0 10px;
    font-size: clamp(1.9rem, 4.1vw, 3.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: #f59e0b;
}

.home-down-v2 .text-3 {
    margin: 0;
    font-size: clamp(1rem, 1.4vw, 1.4rem);
    color: #505a68;
    font-weight: 500;
}

.home-down-v2 .app-highlight {
    display: inline-flex;
    align-items: center;
    margin-top: 22px;
    padding: 14px 18px;
    border-radius: 12px;
    background: linear-gradient(140deg, #ffd580 0%, #f59e0b 100%);
    color: #0f1724;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 16px 36px rgba(194, 65, 12, 0.14);
}

.home-down-v2 .download-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px;
}

.home-down-v2 .store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #dfe4ed;
    color: #2b3441;
    box-shadow: 0 10px 22px rgba(19, 33, 58, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-down-v2 .store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(19, 33, 58, 0.12);
}

.home-down-v2 .store-btn i:first-child {
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
    color: #2c3746;
}

.home-down-v2 .store-btn i:last-child {
    margin-left: auto;
    color: #687286;
    font-size: 0.95rem;
}

.home-down-v2 .store-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.home-down-v2 .store-btn small {
    font-size: 0.72rem;
    color: #778195;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-down-v2 .store-btn strong {
    font-size: 1rem;
    font-weight: 700;
    color: #212935;
}

.home-down-v2 .social-row {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-down-v2 .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #d6dce7;
    color: #283345;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.home-down-v2 .social-icon:hover {
    transform: translateY(-2px);
    color: #f59e0b;
}

.home-down-v2 .down-r {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-down-v2 .down-r::before {
    content: "";
    position: absolute;
    width: 82%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 70%);
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.home-down-v2 .down-r img {
    position: relative;
    z-index: 2;
    width: min(96%, 480px);
    height: auto;
    max-height: 560px;
    object-fit: contain;
    filter: drop-shadow(0 28px 30px rgba(0, 0, 0, 0.18));
    margin-bottom: -50px;
}


/* ==========================================================================
   15. SOCIAL ICONS
   ========================================================================== */

.social-icon.facebook {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1877f2, #0ea5e9);
    color: #fff;
    box-shadow: 0 12px 24px rgba(24, 119, 242, 0.26);
}

.social-icon.facebook:hover {
    transform: translateY(-2px);
}


/* ==========================================================================
   16. NEWS, SCAM & DISCLOSURE
   ========================================================================== */

.nav-tabs {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    margin: 20px 0;
    border-bottom: 1px solid #eee;
}

.nav-tabs a {
    color: #6c757d;
    text-decoration: none;
    padding: 10px 0;
    font-size: 14px;
    position: relative;
}

.nav-tabs a.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.news-section {
    padding: 0 20px 20px;
}

.news-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.news-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px;
}

.news-image {
    width: 100%;
    height: 120px;
}

.news-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
}

.news-text {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-warning { background: #ffc107; color: white; }
.badge-danger  { background: #dc3545; color: white; }

.news-date {
    color: #6c757d;
    font-size: 12px;
}

.scam-card  { padding: 15px; }
.scam-title { font-size: 16px; font-weight: 600; margin: 10px 0; }
.scam-text  { color: #6c757d; font-size: 14px; margin: 0; }

.gold-chart {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #1a237e, #000051);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gold-chart::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(45deg, #FFD700, #FFA000);
    clip-path: polygon(0 100%, 20% 60%, 40% 80%, 60% 40%, 80% 60%, 100% 20%, 100% 100%);
}

.gold-chart::after {
    content: '📈';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
}

/* Disclosure */
.disclosure-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.disclosure-tab-btn {
    padding: 8px 24px;
    border: none;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.disclosure-tab-btn.active {
    background: #fcd734;
    color: #333;
}

.tab-content        { display: none; }
.tab-content.active { display: block; }

.disclosure-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.disclosure-item {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.disclosure-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.disclosure-item.danger  { background: #fff5f5; border-color: #ffebeb; }
.disclosure-item.warning { background: #fff9e6; border-color: #fff3cc; }

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.tag.danger  { background-color: #da541e; }
.tag.warning { background-color: #eda40a; }

.item-content { padding-right: 0; }

.item-content .title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}

.warning-icon {
    top: 16px;
    transform: none;
}

.disclosure-item.danger .warning-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23da541e"><path d="M12 2L1 21h22L12 2zm0 3.45l8.4 14.55H3.6L12 5.45zm-1 4v6h2V9.45h-2zm1 9a1 1 0 100-2 1 1 0 000 2z"/></svg>');
}

.disclosure-item.warning .warning-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23eda40a"><path d="M12 2L1 21h22L12 2zm0 3.45l8.4 14.55H3.6L12 5.45zm-1 4v6h2V9.45h-2zm1 9a1 1 0 100-2 1 1 0 000 2z"/></svg>');
}

.download-app {
    margin-top: 24px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.download-link img { width: 40px; height: 40px; }

.download-text p { margin: 0; }
.download-text p:first-child { font-size: 16px; font-weight: 500; color: #333; }
.download-text p:last-child  { font-size: 14px; color: #666; margin-top: 4px; }

/* News List */
.news-list-section { margin-top: 24px; }

.newss-list {
    display: flex;
    flex-direction: column;
}

.home-list:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.home-list .l {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #f7f7f7;
}

.home-list .l img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.home-list .r {
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
}

.r-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
    line-height: 1.3;
}

.r-p {
    color: #666;
    font-size: 15px;
    margin: 0 0 8px;
    line-height: 1.5;
}

.r-img { margin: 8px 0; display: none; }

.r-tool {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.r-tool-label {
    display: inline-block;
    border: 1px solid;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 500;
    margin-right: 8px;
    background: #fff;
}

.r-tool-r {
    color: #bbb;
    font-size: 13px;
}


/* ==========================================================================
   17. SEARCH DEALER (Broker Search Results)
   ========================================================================== */

.search-delear {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e6e8eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: flex-start;
    padding: 28px 32px;
    margin-bottom: 24px;
    width: 100%;
    position: relative;
    transition: box-shadow 0.2s;
}

.search-delear:hover {
    box-shadow: 0 8px 24px rgba(178, 137, 54, 0.08);
}

.search-delear-l {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 32px;
    min-width: 140px;
}

.search-delear-tag {
    background: #2CB250;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    padding: 4px 16px;
    margin-bottom: 10px;
    display: inline-block;
}

.search-delear-logo {
    width: 120px;
    height: 80px;
    object-fit: contain;
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    margin-top: 4px;
}

.search-delear-r { flex: 1; min-width: 0; }

.search-delear-title {
    font-size: 28px;
    font-weight: 700;
    color: #232323;
    margin: 0 0 12px;
}

.search-delear-line1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: #232323;
    margin-bottom: 8px;
}

.line1-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 4px;
}

.line1-country { font-weight: 500; margin-right: 8px; }

.line1-year,
.line1-year.rate {
    background: #f5f6fa;
    color: #232323;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 15px;
    font-weight: 500;
    margin-right: 8px;
}

.line1-year.rate {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-delear-line2 {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.line2-p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.line2-p-l {
    display: flex;
    align-items: center;
    gap: 6px;
}

.line2-p-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.line2-p-span { font-size: 16px; color: #232323; }

.line2-p-tag {
    font-size: 15px;
    color: #338066;
    background: #e6f4ef;
    border-radius: 4px;
    padding: 2px 10px;
    margin-left: 6px;
    font-weight: 500;
    border: 1px solid rgba(51, 128, 102, 0.1);
    display: inline-block;
}

.line2-p-tag[style*="background: rgba(51, 128, 102, 0.1)"] { background: #e6f4ef !important; color: #338066 !important; }
.line2-p-tag[style*="background: rgb(237, 242, 247)"]       { background: #edf2f7 !important; color: #477DB2 !important; }
.line2-p-tag[style*="background: rgb(59, 111, 151)"]        { background: #e6f4ef !important; color: #3B6F97 !important; }

.trader-list-add {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
}

.list-add-label {
    background: #f5f6fa;
    color: #86909C;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
}

.list-add-label[style*="background: rgb(237, 242, 247)"] { background: #edf2f7 !important; color: #477DB2 !important; }

.search-delear-bt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    margin-left: 32px;
}

.r-score-star {
    display: flex;
    align-items: flex-end;
    gap: 0;
}

.r-score-star-num {
    font-size: 38px;
    font-weight: 700;
    color: #232323;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.r-score-star-num::after {
    content: '';
    display: block;
    width: 100%;
    height: 6px;
    background: #ffe066;
    border-radius: 3px;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: -1;
}

.score-txt {
    font-size: 18px;
    color: #86909C;
    margin-top: 2px;
    font-weight: 500;
}

/* Main broker page layout */
.main-broker-page {
    display: flex;
    align-items: flex-start;
}

.broker-sidebar {
    width: 280px;
    min-width: 260px;
    margin-right: 0;
}

.broker-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.search-choose {
    display: flex;
    align-items: center;
    gap: 200px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.search-choose-label      { color: #666; font-size: 14px; }
.search-choose-remove     { color: #666; cursor: pointer; font-size: 14px; }

.search-choose-ultext.all {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
}

/* Tabs */
#jgtab.jgtab {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #eee;
    margin: 0 400px 20px 10px;
}

.jgtab-list {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    cursor: pointer;
    color: #666;
}

.jgtab-list-active {
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #333;
}

.jgtab-list .iconfont { font-size: 18px; }
.jgtab-list-text       { font-size: 16px; }
.jgtab-list-num        { font-size: 12px; color: #999; }

/* Line utilities */
.line2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-items: center;
    min-height: 32px;
}

.line2 .top {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
    font-weight: 600;
    color: #232323;
}

.jys {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jys img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 4px;
}

.jysname {
    font-size: 15px;
    color: #4a4a4a;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line1 {
    display: flex;
    gap: 50px;
    margin-bottom: 8px;
}

.line1 .left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.line1 .date {
    color: #999;
    font-size: 13px;
    margin-top: 2px;
    display: block;
}


/* ==========================================================================
   19. PROTECTION / SPREAD TABLE
   ========================================================================== */

.title-tab.jaf-2 {
    background: #fafafa;
    padding: 24px 0 0;
    margin-bottom: 0;
    border-bottom: 2px solid #f0f0f0;
}

.title-tab.jaf-2 .title-l {
    display: flex;
    align-items: center;
    gap: 32px;
}

.title-tab.jaf-2 .title-l-t-text {
    font-weight: 600;
    font-size: 24px;
    color: #232323;
    margin-right: 32px;
    white-space: nowrap;
}

.protection {
    background: #fafafa;
    margin-top: 0;
}

.protection-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e2e5ea;
    border: 1.5px solid #bababb;
    border-radius: 6px;
    padding: 18px 28px;
    margin: 24px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.protection-title .l {
    display: flex;
    gap: 48px;
}

.protection-title .l-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #888;
}

.protection-title .l-list b {
    color: #232323;
    font-size: 22px;
    font-weight: 700;
    margin-left: 6px;
}

.protection-title .r {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #4169e1;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 32px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
}

.protection-title .r:hover {
    background: #274bb6;
    box-shadow: 0 4px 16px rgba(65, 105, 225, 0.12);
}

.protection-title .r i {
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
}

.protection-list {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-top: 24px;
}

.protection-ul {
    display: flex;
    gap: 24px;
    min-width: 900px;
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
}

.protection-colm {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 280px;
}

.protection-colm-small,
.protection-colm-long {
    display: block;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 18px 18px 14px;
    text-decoration: none;
    color: #232323;
    border: 1px solid #ececec;
    margin-bottom: 8px;
    min-width: 260px;
    max-width: 340px;
    transition: box-shadow 0.2s, border 0.2s;
}

.protection-colm-small:hover,
.protection-colm-long:hover {
    box-shadow: 0 8px 24px rgba(65, 105, 225, 0.08);
    border: 1.5px solid #4169e1;
}

.protection-colm-long { max-width: 420px; }

.protection-colm-small .w-full,
.protection-colm-long .w-full {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.protection-colm-small img,
.protection-colm-long img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    background: #f7f7f7;
}

.protection-colm-small .title,
.protection-colm-long .title {
    font-size: 16px;
    font-weight: 600;
    color: #232323;
    margin: 0 0 4px;
}

.protection-colm-small .des,
.protection-colm-long .des {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-height: 2.9em;
}

.protection-colm-small .time,
.protection-colm-long .time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #bbb;
    font-size: 13px;
    margin-top: 8px;
}


/* ==========================================================================
   20. FOOTER
   ========================================================================== */

.foot1-wiki-foot {
    background: #2e3440;
    color: #a3a8b4;
    padding: 40px 0 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
}

.foot1-page-width {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.foot1-country-group {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.foot1-choice-txt {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.foot1-current-country {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #3b4252;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    border: 1px solid #4c566a;
    transition: background 0.3s;
}

.foot1-current-country:hover { background: #434c5e; }

.foot1-current-flag {
    width: 24px;
    height: auto;
    border-radius: 2px;
}

.foot1-arrow-up {
    width: 12px;
    filter: brightness(0) invert(1);
    margin-left: auto;
}

.foot1-obey-txt {
    font-size: 12px;
    line-height: 1.5;
    color: #8892b0;
    margin-top: 10px;
}

.foot1-information-group {
    flex: 1;
    min-width: 300px;
}

.foot1-bottom-logo {
    width: 180px;
    margin-bottom: 20px;
}

.foot1-links-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.foot1-single-link {
    color: #eceff4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.foot1-single-link:hover { color: #fcd734; }

.foot1-segment {
    color: #4c566a;
    margin: 0 12px;
    font-style: normal;
}

.foot1-website-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #8892b0;
    line-height: 1.6;
}


/* ==========================================================================
   21. RISK WARNING MODAL
   ========================================================================== */

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: #fff;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    color: #333;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.close-btn:hover { color: #d9534f; }

.modal-box h2 {
    margin-top: 0;
    color: #222;
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-box p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #555;
}


.suggestion-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 16px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: background-color 0.15s ease-in-out !important;
    background: #ffffff !important;
}

.suggestion-item:hover { background-color: #f7f9fa !important; }

.suggestion-logo {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    margin-right: 12px !important;
    border-radius: 4px !important;
    border: 1px solid #eef0f2 !important;
    flex-shrink: 0 !important;
}

.suggestion-name {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #222222 !important;
    text-align: left !important;
    flex-grow: 1 !important;
}

.status-badge {
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    text-transform: capitalize !important;
    border: 1px solid !important;
}

.status-badge.regulated    { background-color: #e6f7ed !important; color: #28a745 !important; border-color: #a3e1bc !important; }
.status-badge.not-regulated{ background-color: #fff0f0 !important; color: #dc3545 !important; border-color: #f5c2c6 !important; }
.status-badge.scam         { background-color: #fff3cd !important; color: #856404 !important; border-color: #ffeeba !important; }
.status-badge.unverified   { background-color: #f8f9fa !important; color: #6c757d !important; border-color: #dee2e6 !important; }


/* ==========================================================================
   23. RESPONSIVE MEDIA QUERIES (Consolidated)
   ========================================================================== */

/* --- ≤ 1200px (Large Tablets / Small Laptops) --- */
@media (max-width: 1200px) {
    .disclosure-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-pl {
        grid-template-columns: repeat(2, 1fr);
    }

    .protection-ul {
        min-width: 600px;
        gap: 12px;
    }

    .protection-colm {
        min-width: 180px;
    }
}

/* --- ≤ 1024px (Tablets landscape) --- */
@media (max-width: 1024px) {
    .ea-list-l {
        gap: 14px;
    }

    .ea-card {
        width: calc((100% - 28px) / 3);
        max-width: calc((100% - 28px) / 3);
    }

    .home-down-v2 .container {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .home-down.home-down-v2 {
        padding: 52px 0 46px;
    }

    .home-down-v2 .down-r {
        min-height: 360px;
    }
}

/* --- ≤ 991px (Tablets portrait) --- */
@media (max-width: 991px) {
    .broker-slider {
        padding-bottom: 36px !important;
    }

    .broker-slider > .container {
        width: min(1400px, calc(100% - 20px));
    }

    .broker-slider .stats {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .broker-slider .search-box {
        width: 100%;
        min-height: 54px;
    }

    .broker-slider .search-button {
        min-width: 100px;
        font-size: 0.85rem;
    }

    .broker-slider + .rankings-card-container {
        margin-top: 24px;
        width: min(1480px, calc(100% - 20px));
    }

    .ea-list-l {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .side-rankings-section .container {
        grid-template-columns: 1fr;
    }
}

/* --- ≥ 992px (Desktop hero) --- */
@media (min-width: 992px) {
    .broker-slider {
        padding-top: 24px !important;
        padding-bottom: 52px !important;
    }

    .broker-slider .logo-overlay-wrapper {
        height: 82px;
    }

    .broker-slider + .rankings-card-container {
        margin-top: 36px;
    }
}

/* --- ≤ 768px (Mobile landscape / small tablets) --- */
@media (max-width: 768px) {
    .broker-slider {
        background-image: none;
        background: var(--page-bg);
        padding-top: 12px !important;
        padding-bottom: 16px !important;
    }

    .broker-slider::before {
        display: none;
    }

    .broker-slider .broker-slider-content {
        display: none !important;
    }

    .broker-slider > .container {
        width: min(1400px, calc(100% - 16px));
    }

    .broker-slider .container:not(.broker-slider-content) {
        background: #ffffff !important;
        border: 1px solid var(--border) !important;
        border-radius: 16px;
        border-bottom: 1px solid var(--border) !important;
        box-shadow: var(--shadow-md) !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        margin-top: 0;
        padding: 12px;
    }

    .broker-slider .logo-item.card {
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    }

    .broker-slider + .rankings-card-container {
        margin-top: 16px;
        width: min(1480px, calc(100% - 16px));
        margin-bottom: 24px;
        border-radius: 14px;
        padding: 16px;
    }

    .broker-list .container,
    .home-down-v2 .container,
    .side-rankings-section .container {
        padding: 16px;
    }

    .broker-list .container {
        border-radius: 16px;
        padding: 6px 10px;
    }

    .broker-list .btn {
        font-size: 11px;
        padding: 10px 18px;
        letter-spacing: 0.08em;
        border-radius: 8px;
    }

    .rankings-header {
        gap: 12px;
        align-items: flex-start;
    }

    .header-icons {
        flex-wrap: wrap;
    }

    .ea-list-l {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .ea-card {
        padding: 16px;
    }

    .ea-card-footer {
        align-items: flex-start;
    }

    .ea-btn {
        width: 100%;
        justify-content: center;
    }

    .home-down-v2 .down-r {
        min-height: 320px;
    }

    .home-down-v2 .down-r img {
        width: min(100%, 380px);
        margin-bottom: -24px;
    }

    .disclosure-items {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ≤ 700px (Mobile) --- */
@media (max-width: 700px) {
    .home-list {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .home-list .l {
        width: 100%;
        height: 160px;
    }

    .protection-title {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 8px;
        gap: 12px;
    }

    .protection-title .l {
        flex-direction: column;
        gap: 8px;
    }

    .protection-title .r {
        width: 100%;
        justify-content: center;
        padding: 10px 0;
    }

    .protection-list {
        padding-bottom: 0;
    }

    .protection-ul {
        min-width: 400px;
        gap: 8px;
    }

    .protection-colm-small,
    .protection-colm-long {
        min-width: 140px;
        max-width: 100vw;
        padding: 10px 8px 8px;
    }

    .search-delear {
        flex-direction: column;
        padding: 16px;
    }

    .search-delear-l {
        margin-right: 0;
        margin-bottom: 16px;
        min-width: auto;
        width: 100%;
    }

    .search-delear-bt {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }

    .content-pl {
        grid-template-columns: 1fr;
    }

    .content-pl .item {
        width: 100%;
        height: auto;
    }

    #jgtab.jgtab {
        margin: 0 0 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-choose {
        gap: 20px;
        flex-wrap: wrap;
    }
}

/* --- ≤ 640px (Small mobiles) --- */
@media (max-width: 640px) {
    .home-down-v2 .download-grid {
        grid-template-columns: 1fr;
    }

    .home-down-v2 .text-1,
    .home-down-v2 .text-2 {
        letter-spacing: -0.02em;
    }

    .ea-list-l {
        gap: 12px;
        padding: 12px 8px 18px;
        max-width: 100%;
        margin-left: 15px;
    }

    .ea-card {
        width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
    }

    .wiki-nav-list {
        padding: 0 16px;
    }

    .search-delear-title {
        font-size: 20px;
    }
}

/* --- ≤ 576px (Extra small) --- */
@media (max-width: 576px) {
    .broker-slider .ad-badge {
        top: 8px;
        right: 8px;
        min-width: 30px;
        height: 20px;
        font-size: 10px;
        padding: 0 7px;
    }

    .broker-contents {
        width: 100%;
        padding: 14px;
        gap: 10px;
    }

    .broker-logo-wrapper {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
    }

    .foot1-page-width {
        flex-direction: column;
        gap: 24px;
    }

    .foot1-country-group {
        flex: none;
        width: 100%;
    }
}

/* --- ≤ 480px (Small phones) --- */
@media (max-width: 480px) {
    .broker-slider .main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .broker-slider .stat-item {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .broker-tags-grid {
        gap: 6px;
    }

    .broker-tag {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    .rankings-card-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .rankings-tabs {
        width: 100%;
        justify-content: center;
    }

    .ea-card-header {
        gap: 8px;
    }

    .ea-title  { font-size: 17px; }
    .ea-price  { font-size: 16px; }

    .home-down-v2 .store-btn {
        width: 100%;
    }

    .vps-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        flex: 1 1 100%;
    }

    .nav-item {
        padding: 0 10px;
    }

    .navbar {
        padding: 8px 12px;
    }

    .protection-title .l-list b {
        font-size: 18px;
    }

    .r-title  { font-size: 16px; }
    .r-p      { font-size: 13px; }
}

/* --- ≤ 375px (Very small phones) --- */
@media (max-width: 375px) {
    .broker-slider .container:not(.broker-slider-content) {
        padding: 12px;
        border-radius: 14px;
    }

    .broker-list .container {
        padding: 4px 8px;
    }

    .broker-list .btn {
        font-size: 10px;
        padding: 8px 12px;
    }

    .broker-contents {
        padding: 10px;
        gap: 8px;
    }

    .broker-logo-wrapper {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
    }

    .broker-name {
        font-size: 0.95rem;
    }

    .modal-box {
        padding: 20px 16px;
    }
}


/* Center small site-specific utility */
.ts-center { text-align: center; }

/* Minimal spacing helpers (avoid duplicating index.css utilities) */
.ts-mt-8 { margin-top: 8px; }
.ts-mb-8 { margin-bottom: 8px; }

/* Keep any component-specific tweaks here (if required),
   otherwise prefer adding to assets/css/index.css */

.free-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.vps-card:hover .free-tag {
    transform: scale(1.1) rotate(5deg);
}

.vps-name {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
    color: #333;
    transition: color 0.3s ease;
}

.vps-card:hover .vps-name {
    color: #007bff;
}

.vps-specs {
    margin: 12px 0;
    font-size: 13px;
    color: #666;
}

.specs {
    line-height: 1.5;
}

.btn {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-ultra {
    background: #ffc107;
    color: #000;
    position: relative;
    overflow: hidden;
}

.btn-ultra:hover {
    background: #ffca2c;
}

.btn-ultra::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    transition: right 0.3s ease;
}

.btn-ultra:hover::after {
    right: 10px;
}


/* -------------------------------------------
   9. RIGHTS PROTECTION, SPREAD TABLE
------------------------------------------- */

.title-tab.jaf-2 {
    background: #fafafa;
    padding: 24px 0 0 0;
    margin-bottom: 0;
    border-bottom: 2px solid #f0f0f0;
}

.title-tab.jaf-2 .title-l {
    display: flex;
    align-items: center;
    gap: 32px;
}

.title-tab.jaf-2 .title-l-t-text {
    font-weight: 600;
    font-size: 24px;
    color: #232323;
    margin-right: 32px;
    white-space: nowrap;
}

.wiki-nav-list {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.wiki-nav-item {
    font-size: 20px;
    color: #aaa;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s, font-weight 0.2s;
    position: relative;
    padding-bottom: 2px;
}

.wiki-nav-item.rpc-active,
.wiki-nav-item:hover {
    color: #232323;
    font-weight: 600;
}

.right-tab {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 32px;
}

.right-tab-1,
.right-tab-2 {
    font-size: 22px;
    color: #4169e1;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.right-tab-1.hover-active,
.right-tab-2.hover-active {
    color: #232323;
}

.protection {
    background: #fafafa;
    margin-top: 0px;
}

.protection-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e2e5ea;
    border: 1.5px solid #bababb;
    border-radius: 6px;
    padding: 18px 28px;
    margin: 24px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.protection-title .l {
    display: flex;
    gap: 48px;
}

.protection-title .l-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #888;
}

.protection-title .l-list b {
    color: #232323;
    font-size: 22px;
    font-weight: 700;
    margin-left: 6px;
}

.protection-title .r {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #4169e1;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 32px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
}

.protection-title .r:hover {
    background: #274bb6;
    box-shadow: 0 4px 16px rgba(65, 105, 225, 0.12);
}

.protection-title .r i {
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
}

.protection-list {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-top: 24px;
}

.protection-ul {
    display: flex;
    gap: 24px;
    min-width: 900px;
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
}

.protection-colm {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 280px;
}

.protection-colm-small,
.protection-colm-long {
    display: block;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 18px 18px 14px 18px;
    text-decoration: none;
    color: #232323;
    border: 1px solid #ececec;
    margin-bottom: 8px;
    min-width: 260px;
    max-width: 340px;
    transition: box-shadow 0.2s, border 0.2s;
}

.protection-colm-small:hover,
.protection-colm-long:hover {
    box-shadow: 0 8px 24px rgba(65, 105, 225, 0.08);
    border: 1.5px solid #4169e1;
}

.protection-colm-long {
    max-width: 420px;
}

.protection-colm-small .w-full,
.protection-colm-long .w-full {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.protection-colm-small img,
.protection-colm-long img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    background: #f7f7f7;
}

.protection-colm-small .title,
.protection-colm-long .title {
    font-size: 16px;
    font-weight: 600;
    color: #232323;
    margin: 0 0 4px 0;
}

.protection-colm-small .des,
.protection-colm-long .des {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-height: 2.9em;
}

.protection-colm-small .time,
.protection-colm-long .time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #bbb;
    font-size: 13px;
    margin-top: 8px;
}


/* -------------------------------------------
   10. MERGED RESPONSIVE MEDIA QUERIES
------------------------------------------- */

@media (max-width: 1200px) {
    .disclosure-items {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-pl {
        grid-template-columns: repeat(2, 1fr);
    }
    .protection-ul {
        min-width: 600px;
        gap: 12px;
    }
    .protection-colm {
        min-width: 180px;
    }
}

@media (max-width: 700px) {
    .home-list {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    .home-list .l {
        width: 100%;
        height: 160px;
    }
    .protection-title {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 8px;
        gap: 12px;
    }
    .protection-title .l {
        flex-direction: column;
        gap: 8px;
    }
    .protection-title .r {
        width: 100%;
        justify-content: center;
        padding: 10px 0;
    }
    .protection-list {
        padding-bottom: 0;
    }
    .protection-ul {
        min-width: 400px;
        gap: 8px;
    }
    .protection-colm-small,
    .protection-colm-long {
        min-width: 140px;
        max-width: 100vw;
        padding: 10px 8px 8px 8px;
    }
}

@media (max-width: 480px) {
    .vps-grid {
        grid-template-columns: 1fr;
    }
}


  .foot1-volume-strip {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 170px;
    background: #f5f8fc;
    /* border-top: 1px dashed rgba(0, 0, 0, 0.28);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); */
    display: flex;
    align-items: flex-end;
    gap: 2px;
    /* padding: 0 0 1px; */
    overflow: hidden;
  }

  .foot1-volume-strip .bar {
    flex: 1 1 auto;
    min-width: 2px;
    max-width: 10px;
    height: var(--h, 28px);
    opacity: 0.85;
  }

  .foot1-volume-strip .bar.green {
    background: #2e3440;
  }

  .foot1-volume-strip .bar.red {
    background: #f59e0b;
    /* border: 1px solid #6a6858; */
  }

  .foot1-brand-banner {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0 6px;
    text-align: center;
  }

  .foot1-brand-banner span {
    display: block;
    width: 100%;
    font-size: clamp(42px, 10vw, 170px);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
  }

  .foot1-wiki-foot {
    overflow-x: clip;
  }

  .modal-overlay {
    padding: 16px;
  }

  .modal-box {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }

  .foot1-market-ticker-item {
    gap: 6px;
  }

  .foot1-selection-box {
    position: relative;
  }

  .foot1-current-country {
    appearance: none;
    font: inherit;
  }

  .foot1-country-dropdown {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 14px);
    width: min(760px, calc(100vw - 24px));
    max-height: min(58vh, 560px);
    overflow: auto;
    z-index: 50;
    background: #ffffff;
    color: #1f2937;
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 18px;
  }

  .foot1-country-dropdown.is-open {
    display: block;
  }

  .foot1-country-dropdown-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .foot1-country-dropdown-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
  }

  .foot1-country-search {
    width: min(300px, 100%);
    border: 1px solid #d5dae2;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    color: #111827;
    background: #f8fafc;
  }

  .foot1-country-search:focus {
    border-color: #9aa4b2;
    background: #fff;
  }

  .foot1-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px 14px;
  }

  .foot1-country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 8px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .foot1-country-item:hover {
    background: #f3f6fb;
    transform: translateY(-1px);
  }

  .foot1-country-item.is-hidden {
    display: none;
  }

  .foot1-country-item-flag {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
  }

  .foot1-country-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .foot1-country-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
  }

  .foot1-country-item-domain {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
    word-break: break-word;
  }

  .foot1-country-item.is-active {
    background: #eef3ff;
  }

  @media (max-width: 1100px) {
    .foot1-page-width {
      flex-direction: column;
      gap: 28px;
    }

    .foot1-country-group {
      flex: 1 1 auto;
      max-width: 100%;
    }

    .foot1-information-group {
      min-width: 0;
      width: 100%;
    }

    .foot1-website-box {
      font-size: 12px;
    }
  }

  @media (max-width: 768px) {
    .foot1-wiki-foot {
      padding: 32px 0 54px;
    }

    .foot1-volume-strip {
      height: 110px;
      gap: 1px;
      width: 100%;
      left: 0;
      right: 0;
      margin: 0;
    }

    .foot1-brand-banner {
      padding: 10px 0 4px;
    }

    .foot1-brand-banner span {
      letter-spacing: 0.03em;
      font-size: clamp(34px, 12vw, 88px);
    }

    .foot1-page-width {
      padding: 0 14px;
      gap: 22px;
    }

    .foot1-country-group {
      gap: 12px;
    }

    .foot1-bottom-logo {
      width: 150px;
      margin-bottom: 12px;
    }

    .foot1-choice-txt {
      font-size: 13px;
    }

    .foot1-current-country {
      width: 100%;
      justify-content: flex-start;
    }

    .foot1-country-dropdown {
      display: none;
      position: absolute;
      left: 0;
      bottom: calc(100% + 14px);
      width: min(760px, calc(100vw - 24px));
      max-height: min(58vh, 560px);
      overflow: auto;
      z-index: 50;
      background: #ffffff;
      color: #1f2937;
      border-radius: 18px;
      box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
      border: 1px solid rgba(15, 23, 42, 0.08);
      padding: 18px;
    }

    .foot1-country-dropdown.is-open {
      display: block;
    }

    .foot1-country-dropdown-head {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }

    .foot1-country-dropdown-title {
      font-size: 18px;
      font-weight: 700;
      color: #111827;
    }

    .foot1-country-search {
      width: min(300px, 100%);
      border: 1px solid #d5dae2;
      border-radius: 999px;
      padding: 10px 14px;
      font-size: 14px;
      outline: none;
      color: #111827;
      background: #f8fafc;
    }

    .foot1-country-search:focus {
      border-color: #9aa4b2;
      background: #fff;
    }

    .foot1-country-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 10px 14px;
    }

    .foot1-country-item {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      border: 0;
      background: transparent;
      padding: 10px 8px;
      border-radius: 12px;
      cursor: pointer;
      text-align: left;
      transition: background 0.2s ease, transform 0.2s ease;
    }

    .foot1-country-item:hover {
      background: #f3f6fb;
      transform: translateY(-1px);
    }

    .foot1-country-item.is-hidden {
      display: none;
    }

    .foot1-country-item-flag {
      width: 28px;
      height: 20px;
      border-radius: 3px;
      object-fit: cover;
      flex: 0 0 auto;
      box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
    }

    .foot1-country-item-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .foot1-country-item-name {
      font-size: 14px;
      font-weight: 600;
      color: #111827;
      line-height: 1.2;
    }

    .foot1-country-item-domain {
      font-size: 12px;
      color: #6b7280;
      line-height: 1.2;
      word-break: break-word;
    }

    .foot1-country-item.is-active {
      background: #eef3ff;
    }

    .foot1-information-group {
      min-width: 0;
    }

    .foot1-links-box {
      gap: 8px;
    }

    .foot1-segment {
      display: none;
    }

    .foot1-single-link {
      font-size: 13px;
    }

    .foot1-website-box {
      font-size: 11px;
      line-height: 1.55;
    }

    .foot1-market-ticker-item {
      font-size: 12px;
      padding: 0 10px;
    }
  }

  @media (max-width: 480px) {
    .foot1-wiki-foot {
      padding: 26px 0 48px;
    }

    .modal-overlay {
      padding: 12px;
    }

    .modal-box {
      width: 100%;
      max-width: none;
      padding: 18px 16px;
      border-radius: 10px;
    }

    .close-btn {
      top: 10px;
      right: 12px;
      font-size: 22px;
    }

    .modal-box h2 {
      font-size: 1.1rem;
      margin-bottom: 14px;
    }

    .modal-box p {
      font-size: 13px;
      line-height: 1.55;
    }

    .foot1-brand-banner span {
      font-size: clamp(28px, 14vw, 68px);
      letter-spacing: 0.02em;
    }

    .foot1-volume-strip {
      height: 92px;
    }

    .foot1-page-width {
      padding: 0 12px;
      gap: 18px;
    }

    .foot1-current-country {
      padding: 7px 12px;
    }

    .foot1-country-dropdown {
      padding: 14px;
      border-radius: 14px;
      width: calc(100vw - 24px);
      bottom: calc(100% + 10px);
    }

    .foot1-country-dropdown-title {
      font-size: 16px;
    }

    .foot1-country-grid {
      grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    }

    .foot1-country-item-name {
      font-size: 13px;
    }

    .foot1-country-item-domain {
      font-size: 11px;
    }

    .foot1-obey-txt {
      font-size: 11px;
    }

    .foot1-bottom-logo {
      width: 132px;
    }

    .foot1-website-box {
      font-size: 10.5px;
    }
  }

*:not(html):not(body), *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { box-sizing: border-box; margin: 0; }

:root {
    --ivory:       #F9F7F3;
    --cream:       #F2EFE9;
    --paper:       #FFFFFF;
    --border:      #E4DFDA;
    --border-soft: #EDE9E4;
    --navy:        #1C2B4A;
    --navy-mid:    #2E4270;
    --slate:       #5C6B82;
    --muted:       #8E99A9;
    --gold:        #B8892A;
    --gold-light:  #D4A84B;
    --gold-pale:   #F5EDD8;
    --green:       #2E7D5A;
    --green-pale:  #E6F4EE;
    --shadow-card: 0 2px 16px rgba(28,43,74,0.07);
    --shadow-lift: 0 8px 32px rgba(28,43,74,0.12);
    --radius:      12px;
    --radius-sm:   8px;
}

/* Ranking sidebar theme — scoped, not global body */
.ranking-page {
    background: var(--ivory);
    color: var(--navy);
    font-family: 'DM Sans', sans-serif;
}

/* ── PAGE WRAPPER ── */
.ranking-page {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    padding: 32px 24px;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--ivory);
}

/* ══════════════════════════════════════
   LEFT SIDEBAR — BROKER RANKINGS
══════════════════════════════════════ */
.sidebar-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
    padding-left: 2px;
}

.brokers-container {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    max-height: 1510px;
    overflow-y: auto;
}

.brokers-container::-webkit-scrollbar { width: 6px; }
.brokers-container::-webkit-scrollbar-track { background: var(--cream); }
.brokers-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.brokers-container::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.broker-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.18s ease;
}

.broker-item:last-child .broker-item-link { border-bottom: none; }
.broker-item-link:hover { background: var(--gold-pale); }
.broker-item-link:hover .broker-name { color: var(--gold); }

.broker-contents {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
}

/* Logo */
.broker-logo-wrapper {
    position: relative;
    width: 108px;
    height: 56px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding-top: 14px;
}

.regulated-badge-broker {
    position: absolute;
    top: -12px;
    right: 7px;
    left: auto;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: calc(100% - 12px);
    min-height: 18px;
    padding: 2px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(34, 139, 69, 0.98), rgba(18, 102, 54, 0.98));
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 6px 16px rgba(18, 102, 54, 0.28), 0 0 18px rgba(46, 125, 90, 0.42), 0 0 28px rgba(46, 125, 90, 0.18);
    overflow: hidden;
    white-space: nowrap;
}

.regulated-badge-broker-text {
    display: inline-block;
    min-width: 100%;
}

.regulated-badge-broker.is-marquee .regulated-badge-broker-text {
    padding-left: 100%;
    animation: regulated-badge-broker-marquee 7s linear infinite;
}

@keyframes regulated-badge-broker-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.broker-logo-wrapper::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: url('../images/logo_bg.png') center center no-repeat;
    background-size: 95%;
    opacity: 0.15;
    pointer-events: none;
}

.com-img1 {
    max-width: 88%;
    max-height: 76%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Info */
.broker-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.broker-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    transition: color 0.18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.score-val {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.score-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-top: 1px;
}

.info-tag {
    font-size: 11px;
    font-weight: 400;
    color: var(--slate);
    background: var(--cream);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    padding: 1px 7px;
}

.info-tag.tag-type {
    background: transparent;
    border: none;
    color: var(--navy-mid);
    font-weight: 500;
    padding: 0;
}

/* Rank Shields */
.rank-container { width: 30px; display: flex; justify-content: center; flex-shrink: 0; }

.rank-shield {
    width: 24px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
    font-family: 'DM Sans', sans-serif;
}

.rank-gold   { background: linear-gradient(160deg, #ECC94B, #B8892A); }
.rank-silver { background: linear-gradient(160deg, #C8D0D8, #8A96A0); }
.rank-bronze { background: linear-gradient(160deg, #D4935A, #A0632E); }

.rank-plain {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--cream);
    border: 1px solid var(--border);
    color: var(--slate);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ══════════════════════════════════════
   RIGHT CONTENT
══════════════════════════════════════ */
.right-column { display: flex; flex-direction: column; gap: 28px; min-width: 0; }

.section-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* VPS CARDS */
.ea-vps-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ea-vps-container::-webkit-scrollbar { display: none; }

.ea-card-wrapper {
    flex: 0 0 155px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ea-card-wrapper:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

.ea-card-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), #E8C97A);
}

.ea-card-inner { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }

.ea-card-tag {
    align-self: flex-start;
    background: var(--gold-pale);
    color: var(--gold);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    border: 1px solid #E8D5A8;
}

.ea-card-tag.tag-ea { background: var(--navy); color: #fff; border-color: var(--navy); }

.ea-card-logo { width: 100%; height: 38px; object-fit: contain; margin-bottom: 10px; }

.ea-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.25;
}

.ea-card-specs {
    font-size: 10.5px;
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 14px;
    flex: 1;
}

.ea-card-specs span { display: flex; align-items: center; gap: 5px; }

.spec-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-light);
    flex-shrink: 0;
}

.ea-card-btn {
    display: block;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
    margin-top: auto;
}

.btn-free { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-free:hover { background: var(--navy-mid); }
.btn-ultra { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-ultra:hover { background: var(--gold); color: #fff; }
.btn-pro { background: transparent; color: var(--slate); border: 1px solid var(--border); }
.btn-pro:hover { background: var(--cream); color: var(--navy); }

/* Articles wrapper */
.articles-wrapper {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 24px 28px;
    max-height: 1170px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--cream);
}
.articles-wrapper::-webkit-scrollbar { width: 8px; }
.articles-wrapper::-webkit-scrollbar-track { background: var(--cream); border-radius: 999px; }
.articles-wrapper::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.articles-wrapper::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Divider */
.elegant-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.elegant-divider::before, .elegant-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider-gem { width: 6px; height: 6px; background: var(--gold-light); transform: rotate(45deg); border-radius: 1px; }

/* ══════════════════════════════════════
   RESPONSIVE MEDIA QUERIES
══════════════════════════════════════ */

/* Tablet & Smaller Desktop */
@media (max-width: 1100px) {
    .ranking-page {
        grid-template-columns: 1fr;
    }
    .rankings-sidebar { order: 1; }
    .right-column { order: 2; }
    
    .brokers-container {
        /* Prevents the sidebar from pushing articles too far down on mobile */
        max-height: 60vh; 
    }
    .articles-wrapper {
        max-height: none; /* Let articles expand naturally inside 1-column layout */
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .ranking-page { padding: 20px 16px 20px 16px; gap: 24px; }
    
    .sidebar-label, .section-title { font-size: 10px; letter-spacing: 0.16em; }
    
    .broker-contents { padding: 12px; gap: 10px; }
    .broker-logo-wrapper { width: 88px; height: 48px; }
    .broker-name { font-size: 15px; }
    
    .score-row { flex-wrap: wrap; gap: 2px 6px; }
    .score-val { font-size: 22px; }
    .score-label { font-size: 10px; }
    
    .rank-container { width: 26px; }
    .rank-shield { width: 22px; height: 26px; line-height: 26px; font-size: 10px; }
    .rank-plain { width: 24px; height: 24px; font-size: 11px; }

    .ea-vps-container { gap: 12px; padding-bottom: 6px; }
    .ea-card-wrapper { flex: 0 0 140px; }
    .articles-wrapper { padding: 18px 16px; }
}

/* Mobile */
@media (max-width: 480px) {
    .ranking-page { padding: 16px 12px; gap: 20px; }
    
    .broker-contents { padding: 10px; }
    .broker-logo-wrapper { width: 78px; height: 44px; }
    .broker-name { font-size: 14px; }
    
    .score-val { font-size: 20px; }
    .info-tag { font-size: 10px; padding: 1px 6px; }
    
    .section-header { gap: 6px; margin-bottom: 12px; }
    .ea-card-wrapper { flex: 0 0 135px; }
    .articles-wrapper { padding: 16px 14px; }
}


/* --- Main Container Layout --- */
/* Site page content sits below fixed header */
.site-page-content,
.broker-page-wrap,
.ranking-list {
    position: relative;
    z-index: 1;
}

.broker-page-wrap {
    padding: clamp(16px, 2.5vw, 24px) 0 clamp(32px, 4vw, 48px);
}

.broker-slider + .rankings-card-container {
    margin-top: 32px;
}

.rankings-card-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: clamp(16px, 2.5vw, 24px);
    width: min(1480px, calc(100% - 28px));
    max-width: 1480px;
    margin: 0 auto 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    font-family: 'Inter', system-ui, sans-serif;
    position: relative;
    z-index: 2;
}

/* --- Top Broker Tags --- */
.broker-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.broker-tag {
    background: #f1f5f9; /* Light grey background */
    color: #475569;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.broker-tag:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-1px);
}

/* --- Divider Line --- */
.card-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 16px 0;
    width: 100%;
}

/* --- Card Header Setup --- */
.rankings-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.rankings-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-gold {
    color: #eab308; /* Premium Gold color matching your theme */
}

/* --- Header Tabs/Icons --- */
.rankings-tabs {
    display: flex;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px;
    border-radius: 8px;
    gap: 2px;
}

.tab-btn {
    color: #64748b;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #1e293b;
    background: #edf2f7;
}

.tab-btn.active {
    color: #ffffff;
    background: #2563eb; /* Royal blue accents matching your bottom UI */
}

/* --- Inner Feature Box --- */
.rankings-content-block {
    margin-top: 12px;
}

.inner-feature-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1; /* Clean blueprint type layout */
    border-radius: 10px;
    padding: 16px;
    text-align: left;
}

.feature-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.feature-text {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* --- Niche Wali Filter Buttons (Second Section) --- */
.category-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 10px;
}

.filter-chip {
    background: #ffffff;
    color: #475569;
    text-decoration: none;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: #94a3b8;
    color: #1e293b;
}

.filter-chip.active-filter {
    background: #2563eb; /* Matching the exposure button color */
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* ===== CRITICAL HEADER FIXES (load last — overrides Tailwind/Bootstrap conflicts) ===== */
header#siteHeader .navbar-collapse.collapse {
    visibility: visible !important;
}

@media (min-width: 992px) {
    header#siteHeader .navbar-expand-lg .navbar-collapse.collapse {
        display: flex !important;
        visibility: visible !important;
    }
}