/* Prop Firm Comparison Tool Styles */

/* Hero Section */
.hero-section {
    position: relative;
    padding: 60px 0;
    background: var(--bg-secondary);
    overflow: hidden;
    margin-top: var(--space-20);
    z-index: 1;
    }
    
    .hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    }
    
    .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    }
    
    .hero-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    }
    
    .hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-8);
    }
    
    .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    }
    
    .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary);
    }
    
    .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    }
    
    .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    }
    
    .hero-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--brand-primary);
    opacity: 0.1;
    }
    
    .hero-shape.shape-1 {
    width: 200px;
    height: 200px;
    top: -80px;
    left: -80px;
    }
    
    .hero-shape.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -40px;
    right: 10%;
    background: var(--brand-secondary);
    }
    
    .hero-shape.shape-3 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: -40px;
    }
    
    /* Comparison Tool Section */
    .comparison-tool {
    position: relative;
    padding: var(--space-12) 0;
    z-index: 1;
    }
    
    .section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    }
    
    .section-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    }
    
    .section-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    background: var(--brand-primary);
    }
    
    .section-shape.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -100px;
    background: var(--brand-secondary);
    }
    
    .section-shape.shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 10%;
    background: var(--brand-primary);
    }
    
    .section-shape.shape-4 {
    width: 100px;
    height: 100px;
    bottom: -30px;
    right: 30%;
    background: var(--brand-secondary);
    }
    
    .comparison-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-4);
    }
    
    /* Filter Sidebar */
    .filter-sidebar {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-4);
    height: fit-content;
    position: sticky;
    top: 80px;
    }
    
    .filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-light);
    }
    
    .filter-header h3 {
    margin: 0;
    font-size: 1rem;
    }
    
    .reset-filters {
    background: none;
    border: none;
    color: var(--brand-primary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: color var(--transition-normal);
    }
    
    .reset-filters:hover {
    color: var(--brand-primary-dark);
    }
    
    .filter-group {
    margin-bottom: var(--space-4);
    }
    
    .filter-group h4 {
    font-size: 0.875rem;
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    }
    
    .filter-tabs {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-3);
    }
    
    .filter-tab {
    background: var(--bg-tertiary);
    border: none;
    width: var(--space-16);
    border-radius: var(--radius-md);
    padding: var(--space-1) var(--space-3);
    font-size: var(--space-2);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    }
    
    .filter-tab:hover {
    background: var(--border-light);
    }
    
    .filter-tab.active {
    background: var(--brand-primary);
    color: white;
    }
    
    .filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    }
    
    .filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-secondary);
    }
    
    .filter-option input[type="checkbox"] {
    display: none;
    }
    
    .checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-sm);
    margin-right: var(--space-2);
    position: relative;
    transition: all var(--transition-normal);
    flex-shrink: 0;
    }
    
    .filter-option input[type="checkbox"]:checked + .checkmark {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    }
    
    .filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 3px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    }
    
    .badge {
    margin-left: auto;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: var(--radius-full);
    padding: 1px 6px;
    font-size: 0.7rem;
    }
    
    .range-slider {
    margin-top: var(--space-3);
    }
    
    .range-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-1);
    font-size: 0.75rem;
    color: var(--text-secondary);
    }
    
    .range-container {
    position: relative;
    height: 4px;
    margin-bottom: var(--space-3);
    }
    
    .range-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    }
    
    .range-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--brand-primary);
    border-radius: var(--radius-full);
    }
    
    .range-input {
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 14px;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    }
    
    .filter-actions {
    margin-top: var(--space-6);
    }
    
    .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    }
    
    .btn-primary {
    background: var(--gradient-primary);
    color: white;
    }
    
    .btn-primary:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    }
    
    .btn-outline-sm {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-3);
    font-size: 0.75rem;
    }
    
    .btn-outline-sm:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    }
    
    .btn-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    }
    
    .btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    }
    
    .apply-filters {
    width: 100%;
    }
    
    /* Comparison Results */
    .comparison-results {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    }
    
    .search-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    }
    
    .search-box {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-1);
    overflow: hidden;
    }
    
    .search-box input {
    flex: 1;
    border: none;
    padding: var(--space-2) var(--space-3);
    font-size: 0.875rem;
    background: transparent;
    color: var(--text-primary);
    }
    
    .search-box input:focus {
    outline: none;
    }
    
    .searchs-btn {
    background: var(--brand-primary);
    border: none;
    border-radius: var(--radius-md);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-normal);
    }
    
    .searchs-btn svg {
    width: 16px;
    height: 16px;
    color: white;
    }
    
    .searchs-btn:hover {
    background: var(--brand-primary-dark);
    }
    
    .search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-1);
    }
    
    .search-results-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    }
    
    .sort-options {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.75rem;
    color: var(--text-secondary);
    }
    
    .sort-options select {
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-1) var(--space-3);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.75rem;
    }
    
    .sort-options select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--brand-primary-light);
    }
    
    /* Comparison Table */
    .comparison-table {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    }
    
    .table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 0.8fr 0.8fr 1fr 1.5fr 1fr 0.8fr 1fr;
    background: var(--bg-secondary);
    padding: var(--space-3) var(--space-1);
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.75rem;
    }
    
    .table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 0.8fr 0.8fr 1fr 1.5fr 1fr 0.8fr 1fr;
    padding: var(--space-3) var(--space-1);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-normal);
    }
    
    .table-row:hover {
    background: var(--bg-secondary);
    }
    
    .table-cell {
    display: flex;
    align-items: center;
    padding: 0 var(--space-1);
    font-size: 0.75rem;
    }
    
    .firm-cell {
    display: flex;
    gap: var(--space-2);
    }
    
    .firm-logo {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    }
    
    .firm-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    }
    
    .firm-info h4 {
    margin: 0 0 var(--space-1);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    }
    
    .firm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    }
    
    .tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 500;
    white-space: nowrap;
    }
    
    .tag.bestseller {
    background: #FFD700;
    color: #000;
    }
    
    .tag.instant-funding {
    background: #4CAF50;
    color: white;
    }
    
    .tag.one-step {
    background: #2196F3;
    color: white;
    }
    
    .tag.two-step {
    background: #9C27B0;
    color: white;
    }
    
    .tag.three-step {
    background: #FF9800;
    color: white;
    }
    
    .tag.high-payout {
    background: #F44336;
    color: white;
    }
    
    .tag.new {
    background: #00BCD4;
    color: white;
    }
    
    .rating-cell {
    flex-direction: column;
    align-items: flex-start;
    }
    
    .stars {
    display: flex;
    color: var(--star-color);
    margin-bottom: var(--space-1);
    }
    
    .stars svg {
    width: 14px;
    height: 14px;
    }
    
    .rating-value {
    font-weight: 600;
    }
    
    .reviews-count {
    font-size: 0.65rem;
    color: var(--text-muted);
    }
    
    .country-cell {
    gap: var(--space-1);
    }
    
    .country-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    }
    
    .years-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    }
    
    .years-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    }
    
    .years-progress {
    height: 100%;
    background: var(--brand-primary);
    border-radius: var(--radius-full);
    }
    
    .years-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    }
    
    .platform-cell {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    }
    
    .platform-item {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg-tertiary);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    white-space: nowrap;
    }
    
    .platform-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
    }
    
    .promo-cell {
    justify-content: center;
    }
    
    .promo-tag {
    background: var(--brand-primary);
    color: white;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    }
    
    .actions-cell {
    justify-content: flex-end;
    }
    
    .compare-btn {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    }
    
    .compare-btn svg {
    width: 14px;
    height: 14px;
    }
    
    /* Pagination */
    .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-4);
    }
    
    .pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    }
    
    .pagination-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    }
    
    .pagination-btn:hover:not(:disabled) {
    border-color: var(--brand-primary);
    }
    
    .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    }
    
    .pagination-numbers {
    display: flex;
    align-items: center;
    margin: 0 var(--space-1);
    }
    
    .pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    }
    
    .pagination-number:hover:not(.active) {
    background: var(--bg-tertiary);
    }
    
    .pagination-number.active {
    background: var(--brand-primary);
    color: white;
    }
    
    .pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    }
    
    /* Comparison Modal */
    .comparison-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    }
    
    .comparison-modal.active {
    opacity: 1;
    visibility: visible;
    }
    
    .modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    top: var(--space-12);
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    }
    
    .comparison-modal.active .modal-content {
    transform: translateY(0);
    }
    
    .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
    }
    
    .modal-header h3 {
    margin: 0;
    font-size: 1rem;
    }
    
    .close-modal {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--transition-normal);
    }
    
    .close-modal svg {
    width: 20px;
    height: 20px;
    }
    
    .close-modal:hover {
    color: var(--brand-primary);
    }
    
    .modal-body {
    padding: var(--space-4);
    overflow-y: auto;
    }
    
    .selected-firms {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    }
    
    .selected-firm {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100px;
    }
    
    .selected-firm .firm-logo {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-1);
    }
    
    .selected-firm h4 {
    font-size: 0.75rem;
    text-align: center;
    margin: 0;
    }
    
    .remove-firm {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--error);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background var(--transition-normal);
    }
    
    .remove-firm svg {
    width: 12px;
    height: 12px;
    }
    
    .remove-firm:hover {
    background: #b91c1c;
    }
    
    .add-firm-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-md);
    }
    
    .add-firm-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-normal);
    }
    
    .add-firm-btn svg {
    width: 20px;
    height: 20px;
    }
    
    .add-firm-btn:hover {
    color: var(--brand-primary);
    }
    
    .comparison-details {
    margin-top: var(--space-4);
    overflow-x: auto;
    }
    
    .comparison-table-detailed {
    width: 100%;
    border-collapse: collapse;
    }
    
    .comparison-table-detailed th,
    .comparison-table-detailed td {
    padding: var(--space-2) var(--space-3);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.75rem;
    }
    
    .comparison-table-detailed th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    }
    
    .comparison-table-detailed tr:nth-child(even) {
    background: var(--bg-secondary);
    }
    
    .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-4);
    border-top: 1px solid var(--border-light);
    }
    
    .firm-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    }
    
    .firm-selector-modal.active {
    opacity: 1;
    visibility: visible;
    }
    
    .firm-selector-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    }
    
    .firm-selector-modal.active .firm-selector-content {
    transform: translateY(0);
    }
    
    .firm-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
    }
    
    .firm-selector-header h3 {
    margin: 0;
    font-size: 1rem;
    }
    
    .firm-selector-body {
    padding: var(--space-4);
    overflow-y: auto;
    max-height: 400px;
    }
    
    .firm-selector-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-3);
    }
    
    .firm-selector-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    }
    
    .firm-selector-item:hover {
    background: var(--bg-secondary);
    }
    
    .firm-selector-item .firm-logo {
    width: 50px;
    height: 50px;
    margin-bottom: var(--space-1);
    }
    
    .firm-selector-item h4 {
    font-size: 0.75rem;
    text-align: center;
    margin: 0;
    }
    
    .firm-selector-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-4);
    border-top: 1px solid var(--border-light);
    }
    
    /* Responsive Styles */
    @media (max-width: 1024px) {
    .comparison-container {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: var(--space-4);
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 2fr 1fr 0.8fr 0.8fr 1fr 1fr 0.8fr 1fr;
    }
    
    .platform-cell {
        display: none;
    }
    }
    
    @media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 2fr 1fr 0.8fr 1fr 0.8fr 1fr;
    }
    
    .country-cell,
    .years-cell {
        display: none;
    }
    
    .selected-firms {
        flex-wrap: wrap;
        justify-content: center;
    }
    }
    
    @media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .promo-cell {
        display: none;
    }
    
    .search-results-info {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }
    }
    
    .notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--brand-primary);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-size: 0.75rem;
    }
    
    .notification.show {
    opacity: 1;
    transform: translateY(0);
    }