/* ========================================================================== */
/* Brokerage Hub Page Styles                                                  */
/* ========================================================================== */

/* ---------- Hero Section ---------- */
.broker-hero {
    position: relative;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.2), transparent),
        linear-gradient(135deg, #0f172a 0%, #312e81 100%);
    color: white;
    padding: 3.5rem 0 3rem;
    text-align: center;
    overflow: hidden;
}

.broker-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, -5%) scale(1.2);
    }
}

.broker-hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #a5b4fc;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.broker-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    z-index: 1;
}

.broker-hero h1 span {
    background: linear-gradient(90deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.broker-hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 1.75rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ---------- Search Bar ---------- */
.broker-search-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto 2rem;
    z-index: 10;
}

.broker-search-wrap i.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #818cf8;
    font-size: 1.1rem;
    pointer-events: none;
}

.broker-search-wrap input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.25rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    color: white;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.35s ease;
}

.broker-search-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.broker-search-wrap input:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: #818cf8;
    outline: none;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
}

/* ---------- Info Stats Strip ---------- */
.broker-info-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: -1.5rem auto 2.5rem;
    padding: 0 var(--spacing-6);
    position: relative;
    z-index: 5;
}

.broker-info-strip .info-item {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.broker-info-strip .info-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.broker-info-strip .info-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.broker-info-strip .info-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

/* ---------- Filter Buttons ---------- */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-main);
    background: var(--bg-card);
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ---------- Brokerage Grid ---------- */
.broker-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ---------- Broker Card ---------- */
.broker-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    padding: 1.25rem 2rem;
    display: grid;
    grid-template-columns: 280px 150px 1fr 200px;
    align-items: center;
    gap: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.broker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #818cf8, #6366f1, #4f46e5);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.broker-card:hover {
    transform: translateY(-8px);
    border-color: #818cf8;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.08);
}

.broker-card:hover::before {
    opacity: 1;
}

/* Animate-in */
.broker-card.animate-in {
    animation: cardSlideIn 0.45s ease both;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Header */
.broker-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.broker-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.broker-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.broker-card:hover .broker-icon {
    transform: scale(1.05);
}

.broker-title h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.broker-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6366f1;
    background: #eef2ff;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
}

.broker-segments {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.seg-tag {
    font-size: 10px;
    background: #f8fafc;
    color: #64748b;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    text-transform: capitalize;
}

.seg-more {
    font-size: 10px;
    color: #6366f1;
    font-weight: 700;
}

/* Stats Row */
.broker-stats {
    display: flex;
    gap: 2rem;
}

.broker-stats .stat-item {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.broker-stats .stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.broker-stats .stat-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-heading);
}

.broker-stats .stat-value.text-green {
    color: #10b981;
}

.broker-stats .stat-value i {
    font-size: 0.7rem;
    margin-right: 0.15rem;
}

/* Fees Section */
.broker-fees {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.fee-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: var(--font-size-sm);
}

.fee-row span:first-child {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 700;
}

.fee-val {
    font-weight: 700;
    color: var(--text-heading);
}

/* Card Footer */
.broker-footer {
    display: flex;
    gap: 0.75rem;
}

.broker-footer .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.broker-footer .btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
}

.broker-footer .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.broker-footer .btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-main);
    color: var(--text-muted);
}

.broker-footer .btn-outline:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #eef2ff;
}

.btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
}

/* ---------- Section Heading ---------- */
.broker-section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.broker-section-title h2 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.broker-section-title p {
    color: var(--text-muted);
    font-size: var(--font-size-base);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Why Choose Section ---------- */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #818cf8;
}

.why-card i {
    font-size: 2rem;
    background: linear-gradient(135deg, #6366f1, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

.why-card h4 {
    font-size: 1.1rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ---------- Dark Mode Overrides ---------- */
body.dark-mode .broker-card {
    background: var(--bg-card);
    border-color: var(--border-main);
}

body.dark-mode .broker-card:hover {
    border-color: #818cf8;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12);
}

body.dark-mode .broker-icon {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
}

body.dark-mode .broker-card:hover .broker-icon {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
}

body.dark-mode .broker-type {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
}

body.dark-mode .broker-title h3 {
    color: #f1f5f9;
}

body.dark-mode .broker-stats .stat-value {
    color: #f1f5f9;
}

body.dark-mode .fee-val {
    color: #f1f5f9;
}

body.dark-mode .broker-footer .btn-outline {
    border-color: var(--border-main);
    color: var(--text-muted);
}

body.dark-mode .broker-footer .btn-outline:hover {
    border-color: #818cf8;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.1);
}

body.dark-mode .why-card {
    background: var(--bg-card);
    border-color: var(--border-main);
}

body.dark-mode .why-card:hover {
    border-color: #818cf8;
}

body.dark-mode .filter-btn {
    background: var(--bg-card);
    border-color: var(--border-main);
    color: var(--text-muted);
}

body.dark-mode .filter-btn:hover {
    border-color: #818cf8;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.08);
}

body.dark-mode .filter-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

body.dark-mode .broker-info-strip .info-item {
    background: var(--bg-card);
    border-color: var(--border-main);
}

body.dark-mode .broker-info-strip .info-val {
    color: #a5b4fc;
}

/* ---------- Responsive ---------- */
/* ======== Comparison System ======== */

/* Checkbox Style */
.compare-checkbox-label {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    padding: 0;
    transition: transform 0.2s;
}

.compare-checkbox-label:hover {
    transform: scale(1.1);
}

.compare-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-main);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.compare-checkbox-label:hover .custom-checkbox {
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.compare-checkbox:checked + .custom-checkbox {
    background: #6366f1;
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.custom-checkbox::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.compare-checkbox:checked + .custom-checkbox::after {
    display: block;
    animation: checkPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPop {
    from { transform: rotate(45deg) scale(0); }
    to   { transform: rotate(45deg) scale(1); }
}

/* ---- Compare Bar ---- */
.compare-bar {
    position: fixed;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 94vw;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 99999;
    padding: 0.875rem 1.5rem;
    transition: bottom 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.compare-bar.active {
    bottom: 24px;
}

@media (max-width: 1024px) {
    .compare-bar.active {
        bottom: 80px;
    }
}

.compare-bar .container-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.compare-selected-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 55vw;
}

.compare-selected-list::-webkit-scrollbar {
    display: none;
}

.mini-broker-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #eef2ff;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(99, 102, 241, 0.15);
    font-size: 0.8rem;
    font-weight: 600;
    color: #6366f1;
    white-space: nowrap;
    animation: brokerPillIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes brokerPillIn {
    from { opacity: 0; transform: translateY(8px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

body.dark-mode .mini-broker-badge {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.mini-broker-badge img,
.mini-broker-badge i {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.remove-mini {
    color: #6366f1;
    cursor: pointer;
    margin-left: 0.15rem;
    font-size: 0.7rem;
    transition: color 0.2s;
    opacity: 0.5;
}

.remove-mini:hover {
    color: #ef4444;
    opacity: 1;
}

.compare-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.compare-actions .btn-primary {
    background: #6366f1 !important;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full) !important;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    transition: all 0.3s;
}

.compare-actions .btn-primary:hover:not(:disabled) {
    background: #4f46e5 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.compare-actions .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.compare-actions .btn-outline {
    background: none;
    border: none !important;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.compare-actions .btn-outline:hover {
    color: #ef4444;
    background: none;
}

/* ---- Modal System ---- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-card);
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.35rem;
    margin: 0;
    color: var(--text-heading);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-main);
    background: var(--bg-body);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: auto;
    flex: 1;
}

.compare-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-main);
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px;
    font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-main);
    text-align: center;
    color: var(--text-main);
    vertical-align: middle;
}

.compare-table th {
    background: var(--bg-body);
    font-weight: 700;
    color: var(--text-heading);
    position: sticky;
    top: 0;
    z-index: 2;
}

.compare-table tbody tr {
    transition: background 0.2s;
}

.compare-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
}

.compare-table td:first-child,
.compare-table th:first-child {
    text-align: left;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: 180px;
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--bg-card);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}

.table-broker-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.table-broker-head img,
.table-broker-head i {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.val-highlight {
    font-weight: 700;
    color: var(--text-heading);
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--border-main);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive adjustment for Cards to show checkbox */
.broker-header {
    display: flex;
    align-items: center;
}

@media (max-width: 992px) {
    .broker-card {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .broker-fees {
        grid-template-columns: repeat(2, 1fr);
    }

    .broker-footer {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .broker-hero {
        padding: 2.5rem 0 2rem;
    }

    .broker-hero h1 {
        font-size: 2rem;
    }

    .broker-info-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: -1rem;
    }

    .broker-info-strip .info-val {
        font-size: 1.2rem;
    }

    /* Stack cards on mobile */
    .broker-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .broker-stats {
        border-top: 1px solid var(--border-main);
        padding-top: 1rem;
    }

    .broker-fees {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-bar {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .broker-footer .btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.5rem;
    }

    /* Comparison Bar Mobile */
    .compare-bar .container-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .compare-selected-list {
        justify-content: center;
    }

    .mini-broker-badge span {
        display: none;
        /* Hide names on mobile to save space */
    }

    .modal-container {
        width: 95%;
    }

    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .broker-info-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}