/* ==============================================
   InviteBuilder — Pricing, Paywall, Plan Badges
   css/pricing.css v1.0 — 28.04.2026
   ============================================== */

/* ===== PLAN BADGE (Header) ===== */
.plan-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    line-height: 1.6;
    white-space: nowrap;
}
.plan-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.plan-badge--free {
    background: #374151;
    color: #d1d5db;
}
.plan-badge--standard {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}
.plan-badge--premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 0 8px rgba(245,158,11,0.3);
}
.plan-badge--admin {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    box-shadow: 0 0 8px rgba(139,92,246,0.3);
}

/* ===== PLAN BANNER (Dashboard) ===== */
.plan-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-bottom: 16px;
    animation: planBannerIn 0.4s ease;
}
@keyframes planBannerIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.plan-banner--free {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #94a3b8;
    border: 1px solid #475569;
}
.plan-banner--free strong { color: #e2e8f0; }
.plan-banner--warning {
    background: linear-gradient(135deg, #451a03, #78350f);
    color: #fbbf24;
    border: 1px solid #92400e;
}
.plan-banner--warning strong { color: #fef3c7; }
.plan-banner__text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.plan-banner__text i { font-size: 1rem; flex-shrink: 0; }
.plan-banner__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.plan-banner__btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.plan-banner__btn:hover { background: #2563eb; }
.plan-banner--warning .plan-banner__btn { background: #f59e0b; color: #1c1917; }
.plan-banner--warning .plan-banner__btn:hover { background: #d97706; }
.plan-banner__close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.4;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    transition: opacity 0.2s;
}
.plan-banner__close:hover { opacity: 1; }

@media (max-width: 600px) {
    .plan-banner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .plan-banner__text { justify-content: center; flex-wrap: wrap; }
}

/* ===== PAYWALL OVERLAY ===== */
.pw-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.pw-overlay.pw-visible { opacity: 1; }
.pw-modal {
    position: relative;
    background: #1c1c1e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.pw-visible .pw-modal { transform: scale(1); }
.pw-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.pw-close:hover { color: #fff; }
.pw-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.pw-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f1f1f1;
    margin: 0 0 6px;
}
.pw-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin: 0 0 18px;
    line-height: 1.5;
}
.pw-plan-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.pw-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f1f1;
    margin: 0 0 20px;
}
.pw-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.pw-btn:hover { transform: translateY(-1px); }
.pw-btn--primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}
.pw-btn--primary:hover {
    box-shadow: 0 6px 20px rgba(59,130,246,0.4);
}
.pw-btn--secondary {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
}
.pw-btn--secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ===== PRICING PAGE ===== */
.pricing-page {
    min-height: 100vh;
    background: #0f0f11;
    color: #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.pricing-header {
    text-align: center;
    padding: 60px 20px 20px;
}
.pricing-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 24px;
}
.pricing-header__logo .accent { color: #8b5cf6; }
.pricing-header__logo i { color: #8b5cf6; }
.pricing-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}
.pricing-header p {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px 40px;
}
.pricing-card {
    background: #1a1a1e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.pricing-card--popular {
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59,130,246,0.15);
}
.pricing-card--premium {
    border-color: #f59e0b;
    box-shadow: 0 0 20px rgba(245,158,11,0.1);
}
.pricing-card__popular-tag {
    position: absolute;
    top: 12px;
    right: -28px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 32px;
    transform: rotate(45deg);
}
.pricing-card__icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.pricing-card__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.pricing-card__price {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.pricing-card__price-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}
.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}
.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    line-height: 1.4;
}
.pricing-card__features li i {
    color: #4ade80;
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 0.7rem;
}
.pricing-card__features li.feat--disabled {
    color: rgba(255,255,255,0.25);
    text-decoration: line-through;
}
.pricing-card__features li.feat--disabled i {
    color: rgba(255,255,255,0.15);
}
.pricing-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    text-align: center;
}
.pricing-card__btn:hover { transform: translateY(-1px); }
.pricing-card__btn--current {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.3);
    cursor: default;
    pointer-events: none;
}
.pricing-card__btn--standard {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59,130,246,0.25);
}
.pricing-card__btn--standard:hover {
    box-shadow: 0 6px 24px rgba(59,130,246,0.35);
}
.pricing-card__btn--premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1c1917;
    box-shadow: 0 4px 16px rgba(245,158,11,0.25);
}
.pricing-card__btn--premium:hover {
    box-shadow: 0 6px 24px rgba(245,158,11,0.35);
}
.pricing-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.pricing-footer strong { color: rgba(255,255,255,0.6); }

/* Close button (X) — top-right corner, replaces "Back to dashboard" link */
.pricing-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    z-index: 100;
    transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pricing-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fff;
    transform: scale(1.05);
}
.pricing-close:active {
    transform: scale(0.96);
}
@media (max-width: 700px) {
    .pricing-close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
    }
}
.pricing-current-tag {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .pricing-header h1 { font-size: 1.5rem; }
}
