.comparison-page {
    padding: 34px 0 64px;
}

.comparison-hero {
    position: relative;
    max-width: 980px;
    margin: 0 auto 28px;
    padding: 30px 32px;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(0, 207, 255, 0.22);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(0, 207, 255, 0.12), transparent 36%),
        linear-gradient(145deg, rgba(5, 19, 32, 0.96), rgba(11, 28, 43, 0.9));
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.comparison-hero::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -140px;
    left: -90px;
    border-radius: 50%;
    background: rgba(68, 212, 68, 0.11);
    filter: blur(6px);
}

.comparison-eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: #65df78;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.comparison-title {
    position: relative;
    margin: 0;
    color: #32d4ff;
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0, 204, 255, 0.28);
}

.comparison-lead {
    position: relative;
    max-width: 700px;
    margin: 14px auto 0;
    color: rgba(233, 244, 252, 0.75);
    font-size: 1rem;
    line-height: 1.65;
}

.comparison-meta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.comparison-counter,
.comparison-catalog-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
}

.comparison-counter {
    color: #dff8ff;
    border: 1px solid rgba(0, 207, 255, 0.24);
    background: rgba(0, 207, 255, 0.08);
}

.comparison-catalog-link {
    gap: 8px;
    color: #7aea8b;
    text-decoration: none;
    border: 1px solid rgba(68, 212, 68, 0.32);
    background: rgba(68, 212, 68, 0.08);
    transition: 0.2s ease;
}

.comparison-catalog-link:hover {
    color: #07130b;
    background: #65df78;
    box-shadow: 0 0 18px rgba(68, 212, 68, 0.25);
}

.comparison-status {
    max-width: 1180px;
    margin: 0 auto 14px;
    color: #ff879d;
    text-align: center;
}

.comparison-content {
    max-width: 1180px;
    margin: 0 auto;
}

.comparison-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 230px;
    color: rgba(230, 243, 250, 0.72);
    border: 1px solid rgba(0, 207, 255, 0.15);
    border-radius: 22px;
    background: rgba(4, 17, 29, 0.82);
}

.comparison-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(0, 207, 255, 0.18);
    border-top-color: #00cfff;
    border-radius: 50%;
    animation: comparison-spin 0.75s linear infinite;
}

@keyframes comparison-spin {
    to { transform: rotate(360deg); }
}

.comparison-table-shell {
    overflow: hidden;
    border: 1px solid rgba(0, 207, 255, 0.2);
    border-radius: 22px;
    background: rgba(4, 17, 29, 0.94);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.comparison-scroll-note {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    color: rgba(228, 242, 249, 0.62);
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(0, 207, 255, 0.13);
}

.comparison-table-scroll {
    overflow-x: auto;
    scrollbar-color: #17637a #071621;
    scrollbar-width: thin;
}

.comparison-table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: #e8f5fa;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    border-right: 1px solid rgba(0, 207, 255, 0.1);
    border-bottom: 1px solid rgba(0, 207, 255, 0.1);
    vertical-align: top;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
    border-bottom: 0;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
    border-right: 0;
}

.comparison-feature-heading,
.comparison-feature-cell {
    width: 190px;
    position: sticky;
    left: 0;
    z-index: 3;
    text-align: left;
    background: linear-gradient(145deg, #06243a, #082e47);
}

.comparison-feature-heading {
    color: #54dcff;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.comparison-feature-cell {
    color: #dff8ff;
    font-weight: 700;
}

.comparison-feature-cell i {
    width: 25px;
    color: #32d4ff;
}

.comparison-network-column {
    min-width: 250px;
    background: linear-gradient(180deg, rgba(9, 37, 55, 0.98), rgba(7, 27, 41, 0.98));
}

.comparison-network-header {
    position: relative;
    display: flex;
    min-height: 190px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.comparison-network-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #03161e;
    font-size: 1.35rem;
    font-weight: 900;
    border-radius: 17px;
    background: linear-gradient(135deg, #45ddff, #65df78);
    box-shadow: 0 0 20px rgba(0, 207, 255, 0.22);
}

.comparison-network-header h2 {
    max-width: 190px;
    margin: 0;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.comparison-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    color: #211600;
    font-size: 0.84rem;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(145deg, #ffe083, #ffc107);
}

.comparison-site-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #65df78;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.comparison-site-link:hover { color: #a7ffb3; }

.comparison-remove-button {
    position: absolute;
    top: -7px;
    right: -5px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #ff8095;
    border: 1px solid rgba(255, 74, 105, 0.35);
    border-radius: 10px;
    background: rgba(255, 53, 87, 0.08);
    cursor: pointer;
    transition: 0.2s ease;
}

.comparison-remove-button:hover {
    color: #ffffff;
    background: #e93f5c;
    transform: scale(1.06);
}

.comparison-table td {
    color: rgba(235, 245, 250, 0.8);
    font-size: 0.92rem;
    line-height: 1.6;
    background: rgba(8, 27, 41, 0.72);
    overflow-wrap: anywhere;
}

.comparison-table tbody tr:nth-child(even) td {
    background: rgba(11, 34, 50, 0.82);
}

.comparison-category,
.comparison-date {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.comparison-category {
    color: #5de4ff;
    background: rgba(0, 207, 255, 0.09);
    border: 1px solid rgba(0, 207, 255, 0.2);
}

.comparison-date {
    color: #9df5aa;
    background: rgba(68, 212, 68, 0.08);
    border: 1px solid rgba(68, 212, 68, 0.18);
}

.comparison-actions {
    display: flex;
    max-width: 1180px;
    margin: 22px auto 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.comparison-actions[hidden] { display: none; }

.comparison-back-button,
.comparison-clear-button,
.comparison-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.comparison-back-button {
    color: #62defc;
    border: 1px solid rgba(0, 207, 255, 0.28);
    background: rgba(0, 207, 255, 0.07);
}

.comparison-back-button:hover {
    color: #04171e;
    background: #49d9fc;
}

.comparison-clear-button {
    color: #ff8398;
    border: 1px solid rgba(255, 65, 98, 0.38);
    background: rgba(255, 65, 98, 0.07);
}

.comparison-clear-button:hover {
    color: #ffffff;
    background: #e63d5a;
}

.comparison-empty {
    display: flex;
    min-height: 340px;
    padding: 45px 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(0, 207, 255, 0.17);
    border-radius: 22px;
    background:
        radial-gradient(circle at center top, rgba(0, 207, 255, 0.1), transparent 44%),
        rgba(4, 17, 29, 0.88);
}

.comparison-empty-icon {
    display: grid;
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    place-items: center;
    color: #42d9ff;
    font-size: 1.65rem;
    border: 1px solid rgba(0, 207, 255, 0.28);
    border-radius: 22px;
    background: rgba(0, 207, 255, 0.08);
}

.comparison-empty h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.45rem;
}

.comparison-empty p {
    max-width: 540px;
    margin: 12px 0 22px;
    color: rgba(230, 242, 248, 0.68);
    line-height: 1.65;
}

.comparison-primary-button {
    color: #04140a;
    background: linear-gradient(135deg, #65df78, #43c95b);
    box-shadow: 0 10px 22px rgba(68, 212, 68, 0.17);
}

.comparison-primary-button:hover {
    color: #020b04;
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(68, 212, 68, 0.25);
}

.comparison-error {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 30px;
    color: #ffd6dd;
    border: 1px solid rgba(255, 65, 98, 0.25);
    border-radius: 20px;
    background: rgba(90, 16, 31, 0.25);
}

.comparison-error i {
    color: #ff647e;
    font-size: 1.7rem;
}

.comparison-error p {
    margin: 4px 0 0;
    color: rgba(255, 222, 228, 0.72);
}

@media (max-width: 768px) {
    .comparison-page { padding-top: 20px; }

    .comparison-hero {
        padding: 25px 18px;
        border-radius: 19px;
    }

    .comparison-lead { font-size: 0.92rem; }

    .comparison-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .comparison-counter,
    .comparison-catalog-link {
        width: 100%;
    }

    .comparison-scroll-note { display: flex; }
    .comparison-table { min-width: 720px; }

    .comparison-feature-heading,
    .comparison-feature-cell {
        width: 155px;
        min-width: 155px;
        padding: 16px 13px;
    }

    .comparison-network-column { min-width: 220px; }

    .comparison-table td,
    .comparison-table th {
        padding: 16px;
    }

    .comparison-actions {
        flex-direction: column-reverse;
    }

    .comparison-back-button,
    .comparison-clear-button {
        width: 100%;
    }
}
