/* ============================================
   صفحة الاشتراك (One UI Style)
   ✅ 3 بطاقات اشتراك + تأثير اختيار
   ============================================ */

html, body {
  height: auto !important;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto !important;
}

body.subscription-page {
  background: #f5f5f5;
  padding: 20px 16px 40px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.subscription-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ══════════════════════════════════════════
   رأس الصفحة
   ══════════════════════════════════════════ */
.sub-header {
  text-align: center;
  padding: 12px 0 20px;
}

.sub-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #171717;
  margin: 0 0 8px;
}

.sub-header p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* ══════════════════════════════════════════
   البطاقة الأساسية
   ══════════════════════════════════════════ */
.plan-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ✅ الباقة الاحترافية — مميزة افتراضياً */
.plan-card.popular {
  border-color: #2563eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

/* ✅ البطاقة المُختارة */
.plan-card.selected {
  border-color: #2563eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.15);
}

/* ══════════════════════════════════════════
   شارة "الأكثر شيوعاً"
   ══════════════════════════════════════════ */
.plan-badge {
  position: absolute;
  top: -12px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

[dir="rtl"] .plan-badge {
  transform: translateX(50%);
}

.plan-badge i {
  font-size: 11px;
}

/* ══════════════════════════════════════════
   رأس البطاقة
   ══════════════════════════════════════════ */
.plan-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px dashed #e5e5e5;
  margin-bottom: 20px;
}

.plan-name {
  font-size: 20px;
  font-weight: 800;
  color: #171717;
  margin: 0 0 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.plan-price-value {
  font-size: 42px;
  font-weight: 900;
  color: #171717;
  line-height: 1;
  letter-spacing: -1px;
}

.plan-price-currency {
  font-size: 16px;
  font-weight: 700;
  color: #6b7280;
}

.plan-price-period {
  font-size: 13px;
  color: #a3a3a3;
  font-weight: 500;
  display: block;
  text-align: center;
}

/* ══════════════════════════════════════════
   جدول المميزات
   ══════════════════════════════════════════ */
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fafafa;
  border-radius: 12px;
  font-size: 14px;
}

.feature-row i {
  color: #2563eb;
  font-size: 14px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.feature-label {
  flex: 1;
  font-weight: 500;
  color: #171717;
  text-align: start;
}

.feature-value {
  font-weight: 700;
  color: #171717;
  text-align: end;
  flex-shrink: 0;
}

.feature-value.unlimited {
  color: #2563eb;
}

/* ══════════════════════════════════════════
   زر الاشتراك
   ══════════════════════════════════════════ */
.plan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: #171717;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.plan-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.plan-btn:active {
  transform: translateY(0);
}

.plan-btn i {
  font-size: 14px;
}

/* ✅ زر الباقة الاحترافية (أزرق) */
.plan-card.popular .plan-btn {
  background: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.plan-card.popular .plan-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

/* ✅ الزر عند الاختيار (يصبح أزرق) */
.plan-card.selected .plan-btn {
  background: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.plan-card.selected .plan-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */
@media (max-width: 480px) {
  body.subscription-page {
    padding: 16px 12px 32px;
  }

  .sub-header h2 {
    font-size: 22px;
  }

  .sub-header p {
    font-size: 13px;
  }

  .plan-card {
    padding: 20px;
    border-radius: 20px;
  }

  .plan-price-value {
    font-size: 36px;
  }

  .plan-price-currency {
    font-size: 14px;
  }

  .plan-name {
    font-size: 18px;
  }

  .feature-row {
    font-size: 13px;
    padding: 8px 10px;
  }

  .plan-btn {
    padding: 14px 20px;
    font-size: 14px;
  }
}