/* ── hero ── */
.pricing-hero { text-align: center; padding: 88px 24px 64px; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; background: var(--primary-tint); border: 1px solid var(--primary-edge); border-radius: 999px; font-size: 12.5px; font-weight: 400; color: var(--primary); margin-bottom: 24px; }
.pricing-hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 400; letter-spacing: -.035em; margin: 0 0 18px; line-height: 1.08; }
.pricing-hero h1 em { font-style: normal; color: var(--primary); }
.pricing-hero > p { font-size: 17px; color: var(--ink-500); max-width: 520px; margin: 0 auto 32px; line-height: 1.65; }
.toggle-wrap { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.toggle-wrap button { padding: 10px 24px; font-size: 14px; font-weight: 400; color: var(--ink-700); cursor: pointer; border: 0; background: none; transition: background .15s, color .15s; }
.toggle-wrap button.active { background: var(--primary); color: #fff; }

/* ── plans ── */
.plans-section { padding: 56px 0 20px; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 28px 26px; position: relative; display: flex; flex-direction: column; gap: 18px; transition: box-shadow .2s, transform .18s; }
.plan:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.plan.featured { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint), var(--sh-md); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 400; white-space: nowrap; font-family: var(--font-en); }
html[dir="rtl"] .plan-badge { left: auto; right: 50%; transform: translateX(50%); }
.plan-name { font-size: 12.5px; font-weight: 400; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-500); font-family: var(--font-en); margin-bottom: 2px; }
.plan-name.hi { color: var(--primary); }
.plan-price { display: flex; align-items: baseline; gap: 2px; }
.plan-price .num { font-size: 52px; font-weight: 400; letter-spacing: -.045em; line-height: 1; font-family: var(--font-en); }
.plan-price .pct { font-size: 22px; font-weight: 400; color: var(--ink-500); font-family: var(--font-en); }
.plan-price .custom { font-size: 30px; font-weight: 400; letter-spacing: -.02em; }
.plan-sub { font-size: 12.5px; color: var(--ink-500); line-height: 1.5; }
.plan-rates { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.plan.featured .plan-rates { border-color: var(--primary-edge); background: var(--primary-tint); }
.rate-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.rate-row .rk { color: var(--ink-500); display: flex; align-items: center; gap: 7px; }
.rate-row .rv { font-weight: 400; font-family: var(--font-en); }
.rate-row .rv.hi { color: var(--primary); }
.feat-list { display: flex; flex-direction: column; gap: 9px; flex: 1; list-style: none; margin: 0; padding: 0; }
.feat-item { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-700); }
.feat-item .fi-icon { width: 18px; height: 18px; border-radius: 50%; background: color-mix(in oklab, var(--green) 15%, transparent); color: var(--green); display: grid; place-items: center; flex: 0 0 auto; margin-top: 2px; }
.feat-item .fi-icon svg { width: 10px; height: 10px; }
.feat-item.dim { color: var(--ink-400); }
.feat-item.dim .fi-icon { background: var(--line); color: var(--ink-400); }
.sym { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 400; font-family: var(--font-en); color: #fff; flex-shrink: 0; }
.sym.usdt { background: #26a17b; }
.sym.btc  { background: #f7931a; }
.sym.eth  { background: #627eea; }

/* ── compare ── */
.compare-section { padding-top: 72px; }
.compare-section > h2 { font-size: 24px; font-weight: 400; letter-spacing: -.02em; margin: 0 0 28px; }
.compare-overflow { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }
.ctable { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); min-width: 560px; }
.crow { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.crow:last-child { border-bottom: 0; }
.crow.head { background: var(--surface-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 400; color: var(--ink-500); padding: 14px 20px; }
.crow.head .hi { color: var(--primary); }
.crow:not(.head):not(.sec):hover { background: var(--surface-2); }
.crow .feat { color: var(--ink-700); }
.crow .feat .fsub { font-size: 12px; color: var(--ink-400); display: block; margin-top: 2px; }
.cell { text-align: center; font-family: var(--font-en); font-weight: 400; }
.cell.yes { color: var(--green); }
.cell.no  { color: var(--ink-300); }
.cell.amt { color: var(--ink-700); font-size: 13px; font-weight: 400; }
.crow.sec { background: var(--surface-2); border-top: 1px solid var(--line-strong); }
.crow.sec .feat { font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); }

/* ── FAQ ── */
.faq-section { padding-top: 72px; }
.faq-section > h2 { font-size: 24px; font-weight: 400; letter-spacing: -.02em; margin: 0 0 32px; text-align: center; }
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; padding: 18px 0; font-size: 15px; font-weight: 400; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-arrow { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; flex: 0 0 auto; color: var(--ink-500); transition: transform .2s, background .15s, border-color .15s; }
.faq-item[open] .faq-arrow { transform: rotate(180deg); background: var(--primary-tint); color: var(--primary); border-color: var(--primary-edge); }
.faq-item p { color: var(--ink-500); font-size: 14px; line-height: 1.75; padding-bottom: 18px; margin: 0; }

/* ── CTA ── */
.cta-section { padding-top: 72px; }
.cta-inner { background: var(--ink-900); border-radius: 24px; padding: 52px 44px; display: flex; align-items: center; gap: 40px; position: relative; overflow: hidden; }
[data-theme="dark"] .cta-inner { background: var(--surface); border: 1px solid var(--line); }
.cta-inner::before { content:""; position: absolute; inset-inline-end: -60px; top: -60px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--primary) 35%, transparent), transparent 60%); pointer-events: none; }
.cta-text { flex: 1; position: relative; z-index: 1; }
.cta-text h2 { margin: 0 0 10px; font-size: 28px; font-weight: 400; letter-spacing: -.025em; color: #fff; line-height: 1.15; }
[data-theme="dark"] .cta-text h2 { color: var(--ink-900); }
.cta-text p { margin: 0; font-size: 15px; color: rgba(255,255,255,.65); }
[data-theme="dark"] .cta-text p { color: var(--ink-500); }
.cta-btns { display: flex; gap: 10px; position: relative; z-index: 1; }
.btn-cta-ghost { border: 1px solid rgba(255,255,255,.25); color: #fff; }

/* ── Responsive ── */
@media (max-width: 880px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .pricing-hero { padding: 60px 16px 44px; }
  .cta-inner { flex-direction: column; text-align: center; padding: 36px 24px; }
  .cta-btns { flex-direction: column; width: 100%; }
  .cta-btns .btn { justify-content: center; }
  .compare-section, .faq-section, .cta-section { padding-top: 52px; }

  /* جدول المقارنة: كروت بدل الجدول */
  .compare-overflow { overflow: visible; }
  .ctable { min-width: 0; border: 0; background: none; border-radius: 0; overflow: visible; }
  .crow.head { display: none; }
  .crow.sec { display: block; background: none; border: 0; padding: 22px 4px 8px; }
  .crow:not(.head):not(.sec) {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 6px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 14px; margin-bottom: 10px;
  }
  .crow:not(.head):not(.sec):hover { background: var(--surface); }
  .crow:last-child { border-bottom: 1px solid var(--line); }
  .crow .feat { grid-column: 1 / -1; font-size: 14px; }
  .cell { padding-top: 10px; border-top: 1px dashed var(--line); }
  .cell::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-400);
  }
}
@media (max-width: 480px) {
  .toggle-wrap button { padding: 9px 16px; font-size: 13px; }
  .pricing-hero h1 { letter-spacing: -.025em; }
}
