main {
    padding: 50px 20px;
    max-width: 1300px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.compare-header {
    text-align: center;
    margin-bottom: 50px;
}

.compare-header h1 {
    font-size: 2.8rem;
    color: #1a202c;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.compare-header h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background:  linear-gradient(135deg, #667eea, #764ba2) ;
    border-radius: 3px;
}

.compare-header p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
}

/* Card Selector */
.card-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.select-box {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.select-box select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 1rem;
    border: 2px solid #cbd5e0;
    border-radius: 12px;
    background: white;
    color: #2d3748;
    appearance: none;
    cursor: pointer;
    transition: 0.3s;
}

.select-box select:focus {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    display: inline-block; ;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.select-box::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    pointer-events: none;
}

/* Comparison Table */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.compare-table th {
    background:  linear-gradient(135deg, #667eea, #764ba2) ;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
}

.compare-table th img {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
}

.compare-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    font-size: 1rem;
    color: #2d3748;
}

.compare-table tr:nth-child(even) {
    background: #f8fafc;
}

.compare-table .feature {
    font-weight: 600;
    color: #1a202c;
    background: #ebf8ff !important;
    width: 35%;
}

.compare-table .highlight {
    background: #d1fae5 !important;
    font-weight: 600;
    color: #065f46;
}

.compare-table .apply-btn {
    display: block;
    width: 80%;
    margin: 15px auto 0;
    padding: 12px;
    background:  linear-gradient(135deg, #667eea, #764ba2) ;
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.compare-table .apply-btn:hover {
    background: #059669;
}

.no-selection {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 40px;
    font-size: 1.1rem;
}

/* Tablet & Large Mobile */
@media (max-width: 992px) {
    .compare-table th,
    .compare-table td {
        padding: 12px 10px;
        font-size: 0.95rem;
    }
    .compare-table th img {
        width: 90px;
    }
}

@media (max-width: 768px) {
    .compare-header h1 {
        font-size: 2.2rem;
    }
    .card-selector {
        flex-direction: column;
        align-items: center;
    }
    .compare-table th img {
        width: 70px;
    }
}

/* ============================================= */
/* MOBILE + TABLET (≤799px): STACKED CARDS       */
/* ============================================= */
@media (max-width: 799px) {
    .compare-header h1 {
        font-size: 1.7rem;
    }
    .compare-header p {
        font-size: 1rem;
    }
    .card-selector {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .select-box {
        min-width: 100%;
        max-width: 350px;
    }

    /* Hide desktop table */
    .compare-table {
        display: none !important;
    }

    /* Show stacked cards */
    #mobileComparison {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 25px;
        padding: 0 12px;
    }

    .mobile-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        text-align: center;
    }

    .mobile-card-header {
        background:  linear-gradient(135deg, #667eea, #764ba2) ;
        color: white;
        padding: 16px 12px;
    }

    .mobile-card-header img {
        width: 240px;
        height: 160px;
        border-radius: 8px;
        margin: 0 auto 8px;
        display: block;
    }

    .mobile-card-header h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .mobile-card-body {
        padding: 14px;
    }

    .mobile-card-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .mobile-card-table .feature {
        background: #ebf8ff;
        font-weight: 600;
        color: #1a202c;
        width: 40%;
        padding: 9px 8px;
        text-align: left;
    }

    .mobile-card-table td {
        padding: 9px 8px;
        border-bottom: 1px solid #e2e8f0;
        text-align: left;
    }

    .mobile-card-table tr:last-child td {
        border-bottom: none;
    }

    .mobile-card .apply-btn {
        display: block;
        width: 75%;
        margin: 12px auto 0;
        padding: 11px;
        font-size: 0.95rem;
        background:  linear-gradient(135deg, #667eea, #764ba2) ;
        color: white;
        text-align: center;
        border-radius: 8px;
        text-decoration: none;
        transition: 0.3s;
    }

    .mobile-card .apply-btn:hover {
        background: #059669;
    }

    .no-selection {
        font-size: 1rem;
        padding: 30px;
    }
}

/* ============================================= */
/* DESKTOP (≥800px): SIDE-BY-SIDE TABLE          */
/* ============================================= */
@media (min-width: 800px) {
    #mobileComparison {
        display: none !important;
    }
    .compare-table {
        display: table !important;
    }
}