/* Broker Comparison Styles */

/* Hero Section */
.comparison-hero {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
    padding: var(--space-16) 0;
    position: relative;
    overflow: hidden;
    color: var(--brand-white);
    margin-top: var(--space-20);
}

.comparison-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Assests/Images/pattern-bg.png');
    opacity: 0.1;
    z-index: 1;
}

.comparison-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
}

.hero-graphic {
    flex: 1;
    position: relative;
    height: 300px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.4);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    left: 40%;
    animation-delay: 1s;
}

.card-3 {
    top: 30%;
    right: 5%;
    animation-delay: 2s;
}

.card-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
}

.card-label {
    font-weight: 600;
    font-size: 1.1rem;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    color: var(--brand-white);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text::before {
    color: #ff00ff;
    z-index: -1;
}

.glitch-text::after {
    color: #00ffff;
    z-index: -2;
}

.glitch-text.glitching::before {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    opacity: 1;
}

.glitch-text.glitching::after {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    opacity: 1;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-3px, 3px);
    }
    40% {
        transform: translate(-3px, -3px);
    }
    60% {
        transform: translate(3px, 3px);
    }
    80% {
        transform: translate(3px, -3px);
    }
    100% {
        transform: translate(0);
    }
}

/* Filters Section */
.comparison-filters {
    background-color: var(--bg-secondary);
    padding: var(--space-10) 0;
    border-bottom: 1px solid var(--border-light);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.filters-header h2 {
    margin-bottom: 0;
    font-size: 1.75rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.filter-group {
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.filter-group:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.checkbox-label:hover {
    color: var(--brand-primary);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-sm);
    margin-right: var(--space-2);
    transition: all 0.2s ease;
}

.checkbox-label:hover .checkbox-custom {
    border-color: var(--brand-primary);
}

.checkbox-label input:checked ~ .checkbox-custom {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.checkbox-custom::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
    display: block;
}

.range-slider {
    position: relative;
    padding-top: var(--space-4);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    outline: none;
    transition: background 0.2s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-primary);
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-primary);
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-sm);
    border: none;
}

.slider::-webkit-slider-thumb:hover,
.slider:active::-webkit-slider-thumb {
    transform: scale(1.2);
}

.slider::-moz-range-thumb:hover,
.slider:active::-moz-range-thumb {
    transform: scale(1.2);
}

.range-value {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filters-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-4);
}

/* Platform Options */
.platform-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.platform-option {
    position: relative;
    cursor: pointer;
}

.platform-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.platform-icon img {
    max-width: 80%;
    max-height: 80%;
}

.platform-name {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    margin-top: var(--space-1);
}

.platform-option:hover .platform-icon {
    background-color: var(--bg-primary);
    border-color: var(--brand-primary-light);
    transform: translateY(-2px);
}

.platform-option input:checked ~ .platform-icon {
    background-color: var(--brand-primary-light);
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Tag Options */
.tag-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tag-option {
    position: relative;
    cursor: pointer;
}

.tag-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tag-option:hover .tag {
    background-color: var(--bg-primary);
    border-color: var(--brand-primary-light);
}

.tag-option input:checked ~ .tag {
    background-color: var(--brand-primary-light);
    color: var(--brand-white);
    border-color: var(--brand-primary);
}

/* Comparison Table Section */
.comparison-table {
    padding: var(--space-10) 0;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.table-header h2 {
    margin-bottom: 0;
    font-size: 1.75rem;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.search-box {
    position: relative;
}

.search-box input {
    padding: var(--space-2) var(--space-4);
    padding-left: var(--space-8);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    width: 250px;
    border-color: var(--brand-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.2);
}

.search-box i {
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.view-btn {
    background: none;
    border: none;
    padding: var(--space-2) var(--space-3);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.view-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.view-btn.active {
    background-color: var(--brand-primary);
    color: var(--brand-white);
}

.comparison-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-primary);
}

.comparison-scroll {
    overflow-x: auto;
    max-width: 100%;
}

.comparison-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-grid th,
.comparison-grid td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
}

.comparison-grid th {
    position: sticky;
    top: 0;
    background-color: var(--bg-primary);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comparison-grid tr:hover td {
    background-color: var(--bg-secondary);
}

.feature-column {
    position: sticky;
    left: 0;
    background-color: var(--bg-primary);
    z-index: 5;
    min-width: 200px;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.broker-column {
    min-width: 220px;
    vertical-align: top;
}

.add-column {
    min-width: 150px;
    vertical-align: top;
}

.broker-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding-bottom: var(--space-2);
}

.broker-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-2);
}

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

.broker-header h3 {
    margin-bottom: var(--space-1);
    font-size: 1.2rem;
    text-align: center;
}

.broker-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.stars {
    color: var(--star-color);
    font-size: 0.9rem;
}

.broker-rating span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.broker-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.category-row {
    background-color: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.category-row td {
    padding: var(--space-2) var(--space-4);
}

.feature-name {
    font-weight: 500;
}

.feature-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: transform 0.2s ease;
}

.feature-label i {
    color: var(--brand-primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

tr:hover .feature-label {
    transform: translateX(5px);
    color: var(--brand-primary);
}

.feature-value {
    position: relative;
    transition: all 0.2s ease;
}

.feature-value:hover {
    transform: scale(1.05);
}

.feature-value.highlight {
    font-weight: 600;
    color: var(--brand-primary);
}

.feature-value.best {
    font-weight: 600;
    color: var(--success);
}

.feature-value.best::after {
    content: "Best";
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--success);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    transform: rotate(15deg);
}

.add-broker-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: none;
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
}

.add-broker-btn i {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.add-broker-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background-color: rgba(255, 85, 0, 0.05);
}

/* Tag List */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

/* Platform List */
.platform-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.platform-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    background-color: var(--bg-tertiary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.platform-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Country Flag */
.country-flag {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.country-flag img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: var(--shadow-sm);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.payment-methods i {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: help;
}

.payment-methods i:hover {
    transform: scale(1.2);
    color: var(--brand-primary);
}

/* Support Channels */
.support-channels {
    display: flex;
    gap: var(--space-3);
}

.support-channels i {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: help;
}

.support-channels i:hover {
    transform: scale(1.2);
    color: var(--brand-primary);
}

/* Cards View */
.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.broker-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
}

.broker-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.broker-card-header {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-secondary);
}

.broker-card-body {
    padding: var(--space-4);
}

.broker-card-body .feature-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-light);
}

.broker-card-body .feature-item:last-child {
    border-bottom: none;
}

.broker-card-body .feature-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.broker-card-body .feature-value {
    font-weight: 500;
    text-align: right;
}

.broker-card-footer {
    padding: var(--space-4);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-secondary);
}

.add-broker-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    cursor: pointer;
    background-color: transparent;
    border: 2px dashed var(--border-medium);
}

.add-broker-card:hover {
    border-color: var(--brand-primary);
    background-color: rgba(255, 85, 0, 0.05);
}

.add-broker-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.add-broker-card:hover .add-broker-content {
    color: var(--brand-primary);
}

.add-broker-content i {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.add-broker-content span {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Modal */
.broker-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.broker-selection-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin-bottom: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--error);
}

.modal-body {
    padding: var(--space-4);
    overflow-y: auto;
    flex: 1;
}

.search-container {
    position: relative;
    margin-bottom: var(--space-4);
}

.search-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    padding-left: var(--space-10);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: var(--brand-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.2);
}

.search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.broker-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
}

.broker-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.broker-list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary-light);
}

.broker-list-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: var(--space-1);
    box-shadow: var(--shadow-sm);
}

.broker-list-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.broker-list-info {
    flex: 1;
}

.broker-list-info h4 {
    margin-bottom: var(--space-1);
    font-size: 1rem;
}

.broker-list-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.broker-list-rating .stars {
    font-size: 0.8rem;
}

.broker-list-rating span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

#selected-brokers {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    min-height: 60px;
    padding: var(--space-2);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
}

.empty-selection {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
}

.selected-broker-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-2);
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.selected-broker-item .broker-logo {
    width: 30px;
    height: 30px;
    margin-bottom: 0;
}

.selected-broker-item .broker-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.remove-selected-broker {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 0.8rem;
}

.remove-selected-broker:hover {
    color: var(--error);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-left: 4px solid var(--brand-primary);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Dark Mode Adjustments */
.dark .broker-card,
.dark .broker-list-item,
.dark .selected-broker-item {
    background-color: var(--bg-secondary);
}

.dark .broker-card-header,
.dark .broker-card-footer {
    background-color: var(--bg-tertiary);
}

.dark .platform-icon {
    background-color: var(--bg-primary);
}

.dark .platform-option input:checked ~ .platform-icon {
    background-color: var(--brand-primary-dark);
}

.dark .tag-option input:checked ~ .tag {
    background-color: var(--brand-primary-dark);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .comparison-hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-graphic {
        display: none;
    }
    
    .filters-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
    
    .table-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .search-box input:focus {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .filters-actions {
        flex-direction: column;
    }
    
    .filters-actions button {
        width: 100%;
    }
    
    .broker-list {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
    }
}