/* ============================================================
   IPTV Manager Pro — Pricing Table  (pricing-table.css)
   ============================================================ */

#iptv-plans-wrap {
    --iptv-primary:      #39A751;
    --iptv-primary-dark: #2f9946;
    --iptv-discount:     #dc2626;
    --iptv-bg:           #0e0e0e;
    --iptv-card-bg:      #161d15;
    --iptv-card-border:  rgba(57,167,81,0.22);
    --iptv-text:         #ffffff;
    --iptv-text-muted:   #a0a0a0;
    --iptv-divider:      rgba(255,255,255,0.08);
    font-family: inherit;
    background: transparent;
    padding: 0;
}

/* ── Connection Tabs ──────────────────────────────────────── */
.iptv-connection-buttons {
    text-align: center;
    margin: 0 0 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.iptv-conn-btn {
    padding: 12px 28px;
    border: 1.5px solid rgba(57,167,81,0.4);
    border-radius: 30px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.28s;
    color: #a0a0a0;
    font-family: inherit;
}
.iptv-conn-btn:hover {
    border-color: var(--iptv-primary);
    color: var(--iptv-primary);
}
.iptv-conn-btn.active {
    background: var(--iptv-primary);
    border-color: var(--iptv-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(57,167,81,0.32);
}

/* ── Grid ─────────────────────────────────────────────────── */
.iptv-pricing-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
@media (max-width: 1100px) { .iptv-pricing-container { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .iptv-pricing-container { grid-template-columns: 1fr; }
    .iptv-conn-btn { padding: 10px 18px; font-size: 13px; } }

/* ── Plan Card ────────────────────────────────────────────── */
.iptv-plan-box {
    background: var(--iptv-card-bg);
    border-radius: 16px;
    padding: 32px 24px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--iptv-card-border);
    font-family: inherit;
}
.iptv-plan-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(57,167,81,0.12);
    border-color: rgba(57,167,81,0.5);
}
.iptv-plan-box.featured {
    border-color: var(--iptv-primary);
    box-shadow: 0 0 30px rgba(57,167,81,0.22);
}

/* ── Ribbon Badge ─────────────────────────────────────────── */
.iptv-discount-ribbon {
    position: absolute;
    top: -14px;
    right: 16px;
    background: var(--iptv-discount);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(220,38,38,0.4);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ── Duration label ───────────────────────────────────────── */
.iptv-duration {
    font-size: 13px;
    font-weight: 700;
    color: var(--iptv-primary);
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ── Price block ──────────────────────────────────────────── */
.iptv-price-wrap {
    text-align: center;
    margin: 10px 0 8px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Original (crossed-out) price during flash sale */
.iptv-price-original {
    font-size: 1.1rem;
    color: #888;
    text-decoration: line-through;
    line-height: 1;
}
.iptv-currency-orig { font-size: 0.85rem; vertical-align: super; }

/* Main price */
.iptv-price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--iptv-text);
    line-height: 1;
    transition: color 0.4s;
}
.iptv-price.flash-active {
    color: var(--iptv-primary);
    animation: iptv-price-drop-in 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.iptv-currency {
    font-size: 1.5rem;
    font-weight: 700;
    vertical-align: super;
    color: var(--iptv-primary);
}

/* Flash price badge */
.iptv-price-drop-badge {
    background: var(--iptv-discount);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    animation: iptv-badge-pop 0.4s ease both;
}

/* ── Divider ──────────────────────────────────────────────── */
.iptv-divider {
    height: 1px;
    background: var(--iptv-divider);
    margin: 18px 0;
}

/* ── Features ─────────────────────────────────────────────── */
.iptv-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.iptv-features li {
    padding: 9px 0;
    border-bottom: 1px solid var(--iptv-divider);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--iptv-text-muted);
}
.iptv-features li:last-child { border-bottom: none; }
.iptv-features li::before {
    content: "✓";
    color: var(--iptv-primary);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.iptv-features li.iptv-highlight {
    color: var(--iptv-primary);
    font-weight: 600;
}

/* ── Buy Now Button ───────────────────────────────────────── */
.iptv-subscribe-btn {
    width: 100%;
    padding: 16px;
    background: var(--iptv-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 0.5px;
}
.iptv-subscribe-btn:hover {
    background: var(--iptv-primary-dark);
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(57,167,81,0.35);
}
/* Flash sale state — pulse */
.iptv-subscribe-btn.flash-btn {
    animation: iptv-btn-pulse 1.8s ease-out infinite;
}
@keyframes iptv-btn-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(57,167,81,0.6); }
    65%  { box-shadow: 0 0 0 12px rgba(57,167,81,0); }
    100% { box-shadow: 0 0 0 0 rgba(57,167,81,0); }
}

/* ── Price drop animations ────────────────────────────────── */
@keyframes iptv-price-drop-in {
    0%   { transform: translateY(-28px) scale(0.7); opacity: 0; }
    100% { transform: translateY(0)     scale(1);   opacity: 1; }
}
@keyframes iptv-badge-pop {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
