/* ============================================ */
/* static/css/plan-cards.css
   CSS مشترک کارت‌های پلن (صفحه اصلی + داشبورد + پنل ادمین)
   ============================================ */

/* ============================================ */
/* Grid */
/* ============================================ */
#pricingGrid,
.pricing-grid.plan-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
    align-items: stretch;
}

/* ============================================ */
/* Plan Card */
/* ============================================ */
.plan-card {
    position: relative;
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.85), rgba(11, 18, 32, 0.95));
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.6),
                0 0 30px rgba(79, 70, 229, 0.15);
}

.plan-card.plan-selected {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px #4f46e5,
                0 15px 40px rgba(79, 70, 229, 0.5);
    background: linear-gradient(160deg, rgba(79, 70, 229, 0.12), rgba(11, 18, 32, 0.95));
}

.plan-card.plan-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #4338ca);
}

/* ============================================ */
/* Badge */
/* ============================================ */
.plan-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.5);
    z-index: 2;
    line-height: 1.4;
}

/* ============================================ */
/* Name & Description */
/* ============================================ */
.plan-name {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    margin-top: 8px;
    line-height: 1.4;
}

.plan-card.plan-featured .plan-name {
    margin-top: 20px;
}

.plan-card .plan-badge + .plan-name {
    margin-top: 24px;
}

.plan-desc {
    font-size: 12px;
    color: rgba(248, 250, 252, 0.65);
    line-height: 1.7;
    margin-bottom: 14px;
    min-height: 34px;
}

/* ============================================ */
/* Price */
/* ============================================ */
.plan-price-original {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(248, 250, 252, 0.4);
    text-decoration: line-through;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.plan-discount-badge {
    text-decoration: none;
    background: rgba(239, 68, 68, 0.2);
    color: #ff9aa5;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    display: inline-block;
    line-height: 1.5;
}

.plan-price {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 12px;

    /* 🎨 گرادیانت پرمیوم */
    background: linear-gradient(135deg, #6366f1 0%, #a78bfa 55%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* ✍️ فونت حرفه‌ای برای اعداد */
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "ss01" 1;
    letter-spacing: -0.3px;
    word-spacing: 1px;

    /* ✨ درخشش ملایم */
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3))
            drop-shadow(0 0 18px rgba(167, 139, 250, 0.12));

    /* ⚡ بهینه‌سازی رندر */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.plan-price small {
    font-size: 12px;
    color: rgba(248, 250, 252, 0.7);
    font-weight: 600;
    margin-right: 6px;
    font-family: 'Vazirmatn', sans-serif;
    letter-spacing: 0.2px;
    -webkit-text-fill-color: rgba(248, 250, 252, 0.7);
    vertical-align: middle;
    position: relative;
    top: -2px;
}

/* ============================================ */
/* Meta (days + tour limit) */
/* ============================================ */
.plan-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(248, 250, 252, 0.65);
    padding: 10px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.08);
    border-bottom: 1px solid rgba(226, 232, 240, 0.08);
    margin-bottom: 12px;
    font-weight: 600;
    flex-wrap: wrap;
    font-variant-numeric: tabular-nums;
}

.plan-meta span {
    white-space: nowrap;
}

/* ============================================ */
/* Features */
/* ============================================ */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.plan-features li {
    font-size: 12px;
    color: rgba(248, 250, 252, 0.65);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
}

.plan-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: 900;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.plan-card.plan-featured .plan-features li::before {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.15);
}

/* ============================================ */
/* Select Button */
/* ============================================ */
.plan-select-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: auto;
}

.plan-card:hover .plan-select-btn {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.4);
    color: #4f46e5;
}

.plan-card.plan-selected .plan-select-btn {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    border-color: #4f46e5;
    color: #fff;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.5);
}

/* ============================================ */
/* Mobile */
/* ============================================ */
@media (max-width: 600px) {
    #pricingGrid,
    .pricing-grid.plan-cards-grid {
        grid-template-columns: 1fr;
    }

    .plan-price {
        font-size: 24px;
    }
}