:root {
    --primary: #007aff;
    --secondary: #5856d6;
    --bg-light: #f5f5f7;
    --card-bg: #fff;
    --text-dark: #1d1d1f;
    --text-gray: #86868b;
}

body {
    background-color: var(--bg-light);
    font-family: 'Vazirmatn';
    margin: 0;
    padding: 0;
}

.pmc-sub-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    direction: rtl;
    /* راست چین */
}

.pmc-sub-header {
    text-align: center;
    margin-bottom: 40px;
}

.pmc-sub-header h1 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.pmc-sub-header p {
    color: var(--text-gray);
    font-size: 16px;
}

/* کارت‌های طرح */
.pmc-plans-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* طرح ویژه (Special) */
.plan-card.special {
    border-color: var(--primary);
    background: linear-gradient(to bottom right, #fff, #f0f8ff);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    /* چون RTL است، چپ می‌شود */
    background: var(--primary);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
}

.plan-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.plan-title {
    font-size: 20px;
    margin: 0 0 10px;
    color: var(--text-dark);
}

.plan-price .amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.plan-duration {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 5px;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #444;
}

.plan-features li i {
    color: var(--secondary);
    /* رنگ تیک */
    font-size: 18px;
}

.plan-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    background: #f2f2f7;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.plan-card.special .plan-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.plan-btn:hover {
    filter: brightness(0.95);
}

/* بخش کوپن */
.pmc-coupon-section {
    margin-top: 40px;
    text-align: center;
}

.coupon-box {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 10px auto;
}

.coupon-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.coupon-box button {
    padding: 0 25px;
    background: var(--text-dark);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}
/* استایل پس‌زمینه لودینگ */
#pmc-loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

/* انیمیشن چرخان */
.pmc-loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}