/* Comparison Table Design */
.ranks-comparison-table {
    margin-bottom: 3rem;
}

.comparison-table-wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
}

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

/* Headers */
.comparison-table thead th {
    padding: 0;
    border: none;
    vertical-align: top;
}

.feature-column {
    width: 30%;
    background: white;
}

.logo-cell {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #495057;
    background: white;
}

.table-logo {
    max-width: 120px;
    height: auto;
    filter: brightness(0);
}

.rank-column {
    width: 23.33%;
    position: relative;
}

.rank-column.rank-1 {
    background: linear-gradient(135deg, #52b788 0%, #74c69d 100%);
}

.rank-column.rank-2 {
    background: linear-gradient(135deg, #4361ee 0%, #4895ef 100%);
}

.rank-column.rank-3 {
    background: linear-gradient(135deg, #f4a261 0%, #e9c46a 100%);
}

.rank-header {
    padding: 2rem 1.5rem;
    text-align: center;
    color: white;
    position: relative;
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd700;
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    white-space: nowrap;
}

.rank-badge {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    backdrop-filter: blur(10px);
}

.rank-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-description {
    font-size: 0.85rem;
    opacity: 0.95;
    line-height: 1.4;
    margin: 0;
}

/* Price Row */
.price-row {
    background: #fafbfc;
}

.price-row .feature-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
}

.price-row td.rank-cell.rank-1 {
    background: rgba(82, 183, 136, 0.15) !important;
}

.price-row td.rank-cell.rank-2 {
    background: rgba(67, 97, 238, 0.15) !important;
}

.price-row td.rank-cell.rank-3 {
    background: rgba(244, 162, 97, 0.15) !important;
}

.price-display {
    padding: 1.5rem 1rem;
    text-align: center;
}

.price-amount {
    font-size: 2rem;
    font-weight: 900;
    color: #212529;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.rank-1 .price-amount {
    background: linear-gradient(135deg, #52b788, #74c69d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-2 .price-amount {
    background: linear-gradient(135deg, #4361ee, #4895ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-3 .price-amount {
    background: linear-gradient(135deg, #f4a261, #e9c46a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* Benefit Rows */
.benefit-row {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

tr.benefit-row.alternate td.rank-cell.rank-1 {
    background: rgba(82, 183, 136, 0.15) !important;
}

tr.benefit-row.alternate td.rank-cell.rank-2 {
    background: rgba(67, 97, 238, 0.15) !important;
}

tr.benefit-row.alternate td.rank-cell.rank-3 {
    background: rgba(244, 162, 97, 0.15) !important;
}

.benefit-row:hover {
    background: transparent;
}

.benefit-row:hover .rank-cell {
    background: #f8f9fa !important;
}

.benefit-row:last-child {
    border-bottom: none;
}

.feature-label {
    padding: 1.5rem 2rem;
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
    line-height: 1.6;
    background: white;
    border-right: 1px solid #e9ecef;
}

.benefit-row.alternate .feature-label {
    background: #f8f9fa;
}

.price-row .feature-label {
    background: #f8f9fa;
}

.benefit-title {
    font-weight: 700 !important;
    color: #000 !important;
    font-size: 0.95rem;
    line-height: 1.4;
}

.benefit-description {
    font-size: 0.85rem;
    color: #6c757d !important;
    font-weight: 400 !important;
    font-style: italic;
    margin-top: 0.35rem;
    line-height: 1.4;
}

.feature-note {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.25rem;
    font-weight: 400;
}

.rank-cell {
    padding: 1.5rem 1rem;
    text-align: center;
    vertical-align: middle;
}

/* Check/Cross Icons */
.check-icon {
    color: #000;
    font-size: 1.2rem;
    font-weight: 900;
    background: none;
    border: none;
    box-shadow: none;
    width: auto;
    height: auto;
    border-radius: 0;
}

.cross-icon {
    color: #000;
    font-size: 1.5rem;
    font-weight: 300;
}

.check-placeholder {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border-radius: 50%;
    background: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

/* Multiplier Value Display */
.multiplier-value {
    font-size: 2rem;
    font-weight: 900;
    padding: 0.5rem;
}

.multiplier-value.rank-1 {
    background: linear-gradient(135deg, #52b788, #74c69d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.multiplier-value.rank-2 {
    background: linear-gradient(135deg, #4361ee, #4895ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.multiplier-value.rank-3 {
    background: linear-gradient(135deg, #f4a261, #e9c46a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Prefix Image in Cell */
.prefix-image-cell {
    max-width: 250px;
    margin: 0 auto;
}

.prefix-image-cell .prefix-img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Info Boxes */
.info-box {
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: none;
    border: 1px solid #d1d5db;
}

.info-box-warning {
    background: white;
}

.info-box-warning::before {
    display: none;
}

.info-box-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    border-color: #5a67d8;
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.info-box-header i {
    font-size: 0.875rem;
    color: #9ca3af;
}

.info-box-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.info-box-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    background: transparent;
    padding: 0;
    padding-left: 1rem;
    border-radius: 0;
    color: #6b7280;
    line-height: 1.5;
    border: none;
    font-size: 0.875rem;
    position: relative;
}

.info-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #9ca3af;
}

.info-item:hover {
    background: transparent;
    transform: none;
}

.info-item strong {
    font-weight: 600;
    color: #374151;
}

.info-box-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.info-box-premium h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.info-box-premium p {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1200px) {
    .feature-column {
        width: 35%;
    }
    
    .rank-column {
        width: 21.66%;
    }
    
    .rank-name {
        font-size: 1.25rem;
    }
    
    .price-amount {
        font-size: 1.75rem;
    }
}

@media (max-width: 992px) {
    .comparison-table-wrapper {
        overflow-x: auto;
    }
    
    .comparison-table {
        min-width: 800px;
    }
    
    .feature-label {
        font-size: 0.9rem;
        padding: 1.25rem 1.5rem;
    }
    
    .rank-header {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .comparison-table {
        min-width: 700px;
    }
    
    .comparison-table-wrapper {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .logo-cell {
        padding: 1.5rem;
        font-size: 1.5rem;
    }
    
    .rank-badge {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .rank-name {
        font-size: 1.1rem;
    }
    
    .rank-description {
        font-size: 0.75rem;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
    
    .feature-label {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .rank-cell {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .comparison-table {
        min-width: 600px;
    }
    
    .comparison-table-wrapper {
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }
    
    .logo-cell {
        padding: 1rem;
        font-size: 1.25rem;
    }
    
    .rank-badge {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .rank-name {
        font-size: 0.95rem;
    }
    
    .rank-description {
        font-size: 0.7rem;
    }
    
    .price-amount {
        font-size: 1.25rem;
    }
    
    .price-period {
        font-size: 0.7rem;
    }
    
    .feature-label {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .rank-cell {
        padding: 0.75rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .check-icon {
        font-size: 1rem;
    }
}
