/* =====================================================
   ExtraTV Package Details – compare.css  v4.0.0
   VS layout matching Image 2.
   ===================================================== */

/* ── Compare section wrapper ──────────────────────── */
.extratv-compare-section {
    background: #07071a;
    padding: 50px 16px 90px;
}

.extratv-compare-inner {
    max-width: 900px;
    margin: 0 auto;
}

.extratv-compare-header {
    text-align: center;
    margin-bottom: 30px;
    direction: rtl;
}

.extratv-compare-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}

.extratv-compare-title::before {
    content: '⚖';
    color: #ff00b4;
}

.extratv-compare-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.extratv-compare-reset-btn {
    background: transparent;
    border: 1px solid rgba(255, 0, 180, 0.3);
    color: #ff00b4;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}

.extratv-compare-reset-btn:hover {
    background: rgba(255, 0, 180, 0.1);
}

/* ══════════════════════════════════════════════════
   VS Layout – two package cards + center "VS"
   ══════════════════════════════════════════════════ */
.etpd-vs-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 24px;
}

.etpd-vs-card {
    position: relative;
    background: #12122a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 22px 16px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.etpd-vs-card--first {
    background: linear-gradient(180deg, rgba(255, 0, 180, 0.18) 0%, #12122a 60%);
    border-color: rgba(255, 0, 180, 0.4);
    box-shadow: 0 0 28px rgba(255, 0, 180, 0.12);
}

.etpd-vs-card--first .etpd-vs-order-pill {
    background: linear-gradient(135deg, #ff00b4, #cc00ff);
    color: #fff;
}

.etpd-vs-card--first .etpd-vs-price {
    color: #ff3da6;
}

.etpd-vs-crown {
    position: absolute;
    top: -6px;
    left: -6px;
    background: linear-gradient(135deg, #ff00b4, #cc00ff);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 0, 180, 0.45);
}

.etpd-vs-card-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.etpd-vs-order-pill {
    background: rgba(80, 130, 255, 0.18);
    color: #6995ff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
}

.etpd-vs-tv-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 0, 180, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ff00b4;
}

.etpd-vs-card--second .etpd-vs-tv-icon {
    border-color: rgba(80, 130, 255, 0.4);
    color: #6995ff;
}

.etpd-vs-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.etpd-vs-price-line {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.etpd-vs-price {
    font-size: 1.7rem;
    font-weight: 800;
    color: #6995ff;
    direction: ltr;
}

.etpd-vs-price-currency {
    font-size: 0.8rem;
    color: #999;
    font-weight: 700;
}

.etpd-vs-price-period {
    font-size: 0.78rem;
    color: #777;
}

/* ── VS center divider ─────────────────────────── */
.etpd-vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
}

.etpd-vs-divider-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #12122a;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ══════════════════════════════════════════════════
   VS rows table
   ══════════════════════════════════════════════════ */
.etpd-vs-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.etpd-vs-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    background: #12122a;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 14px 16px;
}

.etpd-vs-cell {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    direction: ltr;
}

.etpd-vs-cell--first  { color: #ff3da6; }
.etpd-vs-cell--second { color: #6995ff; }

.etpd-vs-row-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.88rem;
    font-weight: 600;
    justify-content: center;
    white-space: nowrap;
}

.etpd-vs-row-icon {
    color: #888;
    font-size: 1rem;
}

/* Boolean ✓ / ✗ pill */
.etpd-vs-bool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 auto;
}

.etpd-vs-bool--yes-first  { background: rgba(255, 0, 180, 0.18); color: #ff3da6; }
.etpd-vs-bool--yes-second { background: rgba(80, 130, 255, 0.18); color: #6995ff; }
.etpd-vs-bool--no         { background: rgba(255, 255, 255, 0.06); color: #555; }

/* ══════════════════════════════════════════════════
   Mobile (≤ 600px)
   ══════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .etpd-vs-wrap {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
    }
    .etpd-vs-card { padding: 18px 10px 16px; }
    .etpd-vs-card-name { font-size: 0.95rem; }
    .etpd-vs-tv-icon { width: 44px; height: 44px; font-size: 1.3rem; }
    .etpd-vs-price { font-size: 1.3rem; }
    .etpd-vs-divider-circle { width: 38px; height: 38px; font-size: 0.78rem; }
    .etpd-vs-row { padding: 11px 12px; gap: 6px; }
    .etpd-vs-row-label { font-size: 0.78rem; }
    .etpd-vs-cell { font-size: 0.85rem; }
}

/* ══════════════════════════════════════════════════
   Empty state (when no packages selected)
   ══════════════════════════════════════════════════ */
.extratv-compare-empty {
    text-align: center;
    padding: 50px 20px;
    color: #888;
    font-size: 0.95rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

/* ══════════════════════════════════════════════════
   Floating compare bar (unchanged styling)
   ══════════════════════════════════════════════════ */
.extratv-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #13132b;
    border-top: 1px solid rgba(255, 0, 180, 0.25);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
    padding: 12px 20px;
}

.extratv-compare-bar-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    direction: rtl;
}

.extratv-compare-bar-slots {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.extratv-compare-bar-slot {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 0, 180, 0.1);
    border: 1px solid rgba(255, 0, 180, 0.25);
    border-radius: 50px;
    padding: 5px 12px;
}

.extratv-compare-bar-slot-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
}

.extratv-compare-bar-slot-remove {
    background: transparent;
    border: none;
    color: #ff00b4;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.extratv-compare-bar-slot-remove:hover { color: #fff; }

.extratv-compare-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.extratv-compare-bar-count {
    font-size: 0.8rem;
    color: #aaa;
    white-space: nowrap;
}

.extratv-compare-bar-clear {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    cursor: pointer;
}

.extratv-compare-bar-clear:hover {
    background: rgba(220, 38, 38, 0.12);
    color: #ef4444;
    border-color: #ef4444;
}

.extratv-compare-bar-trigger {
    background: linear-gradient(135deg, #ff00b4, #cc00ff);
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 0, 180, 0.3);
    white-space: nowrap;
}

.extratv-compare-bar-trigger:hover { opacity: 0.9; }

@media (max-width: 600px) {
    .extratv-compare-bar-inner { flex-direction: column; align-items: stretch; }
    .extratv-compare-bar-actions { width: 100%; justify-content: space-between; }
    .extratv-compare-bar-trigger { flex: 1; }
}
