/* ای‌سیم مارکت — مقایسه قیمت اینترنت بین‌الملل
   Standalone widget stylesheet. All rules are namespaced under .epc so it
   cannot collide with a WordPress theme's header/footer styles. */

.epc {
  --epc-ink: #171b2e;
  --epc-ink-2: #5b6178;
  --epc-mute: #8a90ad;
  --epc-line: #e8eaf3;
  --epc-line-2: #f2f3fa;
  --epc-bg: #f7f8fc;
  --epc-card: #fff;
  --epc-brand: #4550e5;
  --epc-brand-soft: #eef0fb;
  --epc-dark: #12162a;
  --epc-mint: #5fe0b5;
  --epc-green: #1c8a52;
  --epc-radius: 22px;
  --epc-font: IRANSans, IRANSansX, Vazirmatn, system-ui, sans-serif;
  --epc-num: 'IBM Plex Sans Arabic', IRANSans, Vazirmatn, sans-serif;

  direction: rtl;
  font-family: var(--epc-font);
  color: var(--epc-ink);
  background: var(--epc-bg);
  font-feature-settings: 'ss01', 'tnum';
  -webkit-font-smoothing: antialiased;
}
.epc *, .epc *::before, .epc *::after { box-sizing: border-box; }
.epc button, .epc input { font-family: inherit; }
.epc input:focus { outline: none; }
.epc h1, .epc h2, .epc h3, .epc p { margin: 0; }
.epc__num { font-family: var(--epc-num); font-variant-numeric: tabular-nums; direction: ltr; }
.epc__wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- hero ---------- */
.epc__hero { position: relative; overflow: hidden; background: var(--epc-dark); color: #fff; padding: 66px 28px 96px; }
.epc__hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(920px 440px at 76% -12%, rgba(69,80,229,.6), transparent 62%),
              radial-gradient(760px 400px at 6% 112%, rgba(95,224,181,.16), transparent 66%);
}
.epc__hero::after {
  content: ''; position: absolute; inset: 0; opacity: .055;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.epc__hero-grid { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: center; }
.epc__hero-copy { animation: epc-rise .7s cubic-bezier(.2,.8,.2,1) both; }
.epc__eyebrow { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #c9cde4; border-radius: 999px; padding: 7px 16px; font-size: 12.5px; font-weight: 700; }
.epc__eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--epc-mint); }
.epc__h1 { margin: 24px 0 0; font-size: 46px; line-height: 1.32; font-weight: 900; letter-spacing: -.8px; max-width: 15ch; }
.epc__h1 span { color: #8f9bff; }
.epc__lede { margin: 22px 0 0; font-size: 15.5px; line-height: 2.15; color: #aeb4cf; max-width: 47ch; text-wrap: pretty; }
.epc__stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.epc__stat { display: flex; align-items: baseline; gap: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); border-radius: 13px; padding: 12px 18px; transition: .25s; }
.epc__stat:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.epc__stat b { font-size: 21px; font-weight: 700; color: var(--epc-mint); }
.epc__stat span { font-size: 12.5px; color: #aeb4cf; }

.epc__hero-art { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13); border-radius: 24px; padding: 24px; backdrop-filter: blur(8px); overflow: hidden; animation: epc-rise .8s .1s cubic-bezier(.2,.8,.2,1) both; }
.epc__hero-art::before { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); animation: epc-sheen 4.5s 1s infinite; }
.epc__art-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.epc__art-head b { font-size: 12px; color: #9aa4f5; font-weight: 800; }
.epc__art-head span { font-size: 10.5px; color: #8890b0; }
.epc__art-row { margin-bottom: 15px; }
.epc__art-row > div:first-child { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; margin-bottom: 8px; }
.epc__art-row b { font-weight: 700; color: #e7e9f5; }
.epc__art-row.is-best b { color: var(--epc-mint); }
.epc__art-row span { color: #aeb4cf; font-size: 12px; font-weight: 600; }
.epc__track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.epc__track i { display: block; height: 100%; border-radius: 99px; background: rgba(255,255,255,.28); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.epc__art-row.is-best .epc__track i { background: linear-gradient(90deg, #5fe0b5, #22b26b); }

/* ---------- selector ---------- */
.epc__selector { max-width: 1180px; margin: -58px auto 0; padding: 0 28px; position: relative; z-index: 40; }
.epc__panel { background: var(--epc-card); border: 1px solid var(--epc-line); border-radius: 26px; padding: 26px; box-shadow: 0 30px 70px -38px rgba(18,22,42,.45); }
.epc__fields { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: end; }
.epc__label { display: block; font-size: 12.5px; font-weight: 800; color: var(--epc-ink-2); margin-bottom: 9px; }
.epc__search { position: relative; }
.epc__search-flag { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); font-size: 18px; pointer-events: none; }
.epc__input { width: 100%; border: 1.5px solid #dde1f0; border-radius: 15px; padding: 16px 48px 16px 16px; font-size: 15px; color: var(--epc-ink); background: #fbfbfe; transition: .2s; }
.epc__input:focus { border-color: #b8bdf3; box-shadow: 0 0 0 4px rgba(69,80,229,.09); }
.epc__drop { display: none; position: absolute; top: 100%; right: 0; left: 0; margin-top: 8px; background: #fff; border: 1px solid var(--epc-line); border-radius: 18px; box-shadow: 0 24px 56px -22px rgba(18,22,42,.4); max-height: 300px; overflow-y: auto; z-index: 70; padding: 6px; animation: epc-fade .16s ease both; }
.epc__drop.is-open { display: block; }
.epc__opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; border-radius: 12px; transition: .12s; }
.epc__opt.is-hi { background: #f3f4fd; }
.epc__opt > span:first-child { display: flex; align-items: center; gap: 11px; font-size: 14.5px; font-weight: 600; }
.epc__opt em { font-style: normal; font-size: 19px; }
.epc__opt-price { font-size: 12px; color: var(--epc-mute); font-weight: 600; }
.epc__empty-opt { padding: 18px; text-align: center; font-size: 13px; color: var(--epc-mute); }

.epc__durs { display: flex; gap: 8px; }
.epc__dur { flex: 1; background: #fff; color: #3c4258; border: 1.5px solid #dde1f0; border-radius: 15px; padding: 16px 8px; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: .22s cubic-bezier(.2,.8,.2,1); }
.epc__dur:hover { border-color: #b8bdf3; }
.epc__dur.is-on { background: var(--epc-dark); color: #fff; border-color: var(--epc-dark); transform: translateY(-2px); }

.epc__chips { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--epc-line-2); }
.epc__chips > b { font-size: 12px; color: var(--epc-mute); font-weight: 700; margin-left: 4px; }
.epc__chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: #3c4258; border: 1px solid var(--epc-line); border-radius: 999px; padding: 8px 15px; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: .2s; }
.epc__chip:hover { transform: translateY(-2px); border-color: #b8bdf3; }
.epc__chip.is-on { background: var(--epc-brand-soft); color: var(--epc-brand); border-color: #c7ccf6; }
.epc__chip em { font-style: normal; font-size: 15px; }

/* ---------- results ---------- */
.epc__section { max-width: 1180px; margin: 0 auto; padding: 46px 28px 20px; }
.epc__results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.epc__h2 { font-size: 23px; font-weight: 900; letter-spacing: -.4px; }
.epc__h2 i { font-style: normal; color: #c2c7da; font-weight: 400; }
.epc__sub { font-size: 13px; color: #7a8099; margin-top: 8px; }
.epc__head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.epc__toggle { display: flex; background: #eef0f7; border-radius: 12px; padding: 4px; }
.epc__toggle button { background: transparent; color: #7a8099; border: none; border-radius: 9px; padding: 9px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: .2s; }
.epc__toggle button.is-on { background: #fff; color: var(--epc-ink); box-shadow: 0 2px 6px rgba(18,22,42,.1); }
.epc__save { display: flex; align-items: center; gap: 10px; background: #eef7f1; border: 1px solid #cfeadc; border-radius: 13px; padding: 11px 17px; }
.epc__save span { font-size: 12.5px; color: var(--epc-green); font-weight: 700; }
.epc__save b { font-size: 17px; font-weight: 700; color: #12703f; }

.epc__rows { display: flex; flex-direction: column; gap: 12px; }
.epc__row { background: #fff; border: 1.5px solid var(--epc-line); border-radius: var(--epc-radius); overflow: hidden; box-shadow: 0 1px 2px rgba(18,22,42,.03); transition: .28s cubic-bezier(.2,.8,.2,1); animation: epc-rise .5s cubic-bezier(.2,.8,.2,1) both; }
.epc__row:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(18,22,42,.45); }
.epc__row.is-best { background: linear-gradient(135deg, #181d35, #12162a); border-color: var(--epc-dark); box-shadow: 0 20px 44px -26px rgba(18,22,42,.6); }
.epc__row-main { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; cursor: pointer; }
.epc__id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.epc__rank { flex: none; width: 44px; height: 44px; border-radius: 14px; background: #f4f5fb; color: var(--epc-mute); display: grid; place-items: center; font-size: 16px; font-weight: 700; }
.epc__row.is-best .epc__rank { background: rgba(95,224,181,.14); color: var(--epc-mint); }
.epc__name-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.epc__name { font-size: 15.5px; font-weight: 800; }
.epc__row.is-best .epc__name { color: #fff; }
.epc__badge { border-radius: 999px; padding: 4px 11px; font-size: 10.5px; font-weight: 800; background: var(--epc-brand-soft); color: var(--epc-brand); }
.epc__row.is-best .epc__badge { background: rgba(95,224,181,.14); color: var(--epc-mint); }
.epc__note { font-size: 12px; color: var(--epc-mute); margin-top: 6px; }
.epc__row.is-best .epc__note, .epc__row.is-best .epc__delta, .epc__row.is-best .epc__unit, .epc__row.is-best .epc__chev, .epc__row.is-best .epc__dt { color: #9aa1bd; }
.epc__bar .epc__track { height: 10px; background: var(--epc-line-2); }
.epc__row.is-best .epc__bar .epc__track { background: rgba(255,255,255,.14); }
.epc__bar .epc__track i { background: var(--epc-provider, #4550e5); }
.epc__row.is-best .epc__bar .epc__track i { background: linear-gradient(90deg, #5fe0b5, #22b26b); }
.epc__delta { font-size: 11px; color: var(--epc-mute); margin-top: 9px; }
.epc__price-cell { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.epc__price { font-size: 24px; font-weight: 700; letter-spacing: -.2px; line-height: 1.15; }
.epc__row.is-best .epc__price { color: var(--epc-mint); }
.epc__unit { font-size: 10.5px; color: var(--epc-mute); margin-top: 3px; text-align: left; }
.epc__cta { flex: none; background: #fff; color: var(--epc-brand); border: 1px solid #dde1f0; border-radius: 13px; padding: 12px 20px; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: .2s; text-decoration: none; }
.epc__cta:hover { transform: scale(1.04); }
.epc__row.is-best .epc__cta { background: var(--epc-mint); color: #0d2b22; border-color: var(--epc-mint); }
.epc__chev { flex: none; color: var(--epc-mute); font-size: 11px; transition: .28s; }
.epc__row.is-open .epc__chev { transform: rotate(180deg); }
.epc__detail { display: none; padding: 0 22px 22px; animation: epc-fade .3s ease both; }
.epc__row.is-open .epc__detail { display: block; }
.epc__detail-grid { border-top: 1px solid var(--epc-line-2); padding-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.epc__row.is-best .epc__detail-grid { border-top-color: rgba(255,255,255,.12); }
.epc__dt { font-size: 10.5px; color: var(--epc-mute); font-weight: 700; margin-bottom: 7px; }
.epc__dd { font-size: 13px; font-weight: 700; line-height: 1.8; }
.epc__row.is-best .epc__dd { color: #fff; }
.epc__disclaimer { font-size: 11.5px; color: var(--epc-mute); margin-top: 16px; line-height: 2; }

/* ---------- matrix ---------- */
.epc__h3 { font-size: 18px; font-weight: 900; letter-spacing: -.3px; margin-bottom: 16px; }
.epc__matrix { background: #fff; border: 1px solid var(--epc-line); border-radius: var(--epc-radius); overflow: hidden; }
.epc__matrix-scroll { overflow-x: auto; }
.epc__matrix-inner { min-width: 740px; }
.epc__mrow { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); align-items: center; border-top: 1px solid var(--epc-line-2); transition: .18s; }
.epc__mrow:hover { background: #fafbff; }
.epc__mrow.epc__mhead { border-top: none; background: linear-gradient(180deg, #f9fafe, #f4f5fb); font-size: 12px; font-weight: 800; color: var(--epc-ink-2); }
.epc__mhead:hover { background: linear-gradient(180deg, #f9fafe, #f4f5fb); }
.epc__mrow > div { padding: 16px 10px; text-align: center; font-size: 12.5px; font-weight: 700; }
.epc__mrow > div:first-child { padding: 16px 20px; text-align: right; font-size: 13.5px; }
.epc__yes { color: var(--epc-green); }
.epc__no { color: #c2c7da; }
.epc__mid { color: var(--epc-ink-2); }

/* ---------- method + faq ---------- */
.epc__two { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; }
.epc__method { position: relative; overflow: hidden; background: var(--epc-dark); color: #fff; border-radius: 24px; padding: 32px; }
.epc__method::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px 220px at 90% 0%, rgba(69,80,229,.4), transparent 65%); }
.epc__method > * { position: relative; }
.epc__steps { display: flex; flex-direction: column; gap: 18px; }
.epc__step { display: flex; gap: 14px; align-items: flex-start; }
.epc__step > span { flex: none; width: 28px; height: 28px; border-radius: 10px; background: rgba(143,155,255,.16); color: #9aa4f5; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; font-family: ui-monospace, monospace; }
.epc__step b { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 6px; }
.epc__step p { font-size: 12.5px; color: #aeb4cf; line-height: 2; }
.epc__faq { display: flex; flex-direction: column; gap: 12px; }
.epc__q { background: #fff; border: 1px solid var(--epc-line); border-radius: 18px; padding: 19px 22px; cursor: pointer; transition: .22s; }
.epc__q:hover { border-color: #c7ccf6; }
.epc__q.is-open { border-color: #c7ccf6; }
.epc__q-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.epc__q-head b { font-size: 14px; font-weight: 800; }
.epc__q-sign { flex: none; width: 24px; height: 24px; border-radius: 8px; background: #f4f5fb; color: var(--epc-mute); display: grid; place-items: center; font-size: 11px; transition: .28s; }
.epc__q.is-open .epc__q-sign { background: var(--epc-brand-soft); color: var(--epc-brand); transform: rotate(180deg); }
.epc__a { display: none; font-size: 13px; color: var(--epc-ink-2); line-height: 2.1; margin-top: 12px; animation: epc-fade .25s ease both; }
.epc__q.is-open .epc__a { display: block; }

/* ---------- sticky ---------- */
.epc__sticky { position: fixed; right: 0; left: 0; bottom: 0; z-index: 80; padding: 14px 28px; pointer-events: none; transform: translateY(130%); opacity: 0; transition: .35s cubic-bezier(.2,.8,.2,1); }
.epc__sticky.is-on { transform: translateY(0); opacity: 1; }
.epc__sticky-inner { pointer-events: auto; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: rgba(18,22,42,.94); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 14px 20px; box-shadow: 0 24px 60px -28px rgba(18,22,42,.7); }
.epc__sticky-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.epc__sticky-id > em { font-style: normal; font-size: 20px; }
.epc__sticky-id b { display: block; font-size: 13.5px; font-weight: 800; color: #fff; }
.epc__sticky-id span { font-size: 11.5px; color: #aeb4cf; margin-top: 4px; display: block; }
.epc__sticky-buy { display: flex; align-items: center; gap: 14px; }
.epc__sticky-buy b { font-size: 20px; font-weight: 700; color: var(--epc-mint); }
.epc__sticky-buy a { background: var(--epc-mint); color: #0d2b22; border: none; border-radius: 12px; padding: 11px 22px; font-size: 13px; font-weight: 800; cursor: pointer; transition: .2s; text-decoration: none; }
.epc__sticky-buy a:hover { transform: scale(1.04); }
.epc__spacer { height: 84px; }

/* ---------- animations ---------- */
@keyframes epc-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes epc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes epc-sheen { from { transform: translateX(-120%); } to { transform: translateX(220%); } }

/* ---------- responsive ---------- */
@media (max-width: 999px) {
  .epc__hero-grid { grid-template-columns: 1fr; }
  .epc__hero-art { display: none; }
  .epc__h1 { font-size: 38px; }
  .epc__row-main { grid-template-columns: 1fr auto; }
  .epc__bar { display: none; }
  .epc__detail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 719px) {
  .epc__hero { padding: 46px 20px 84px; }
  .epc__h1 { font-size: 30px; }
  .epc__wrap, .epc__section, .epc__selector { padding-left: 18px; padding-right: 18px; }
  .epc__fields { grid-template-columns: 1fr; }
  .epc__durs { flex-wrap: wrap; }
  .epc__two { grid-template-columns: 1fr; }
  .epc__detail-grid { grid-template-columns: 1fr; }
  .epc__price-cell { flex-wrap: wrap; justify-content: flex-start; }
  .epc__sticky { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .epc *, .epc *::before, .epc *::after { animation: none !important; transition: none !important; }
}

/* ── States the standalone design did not need ──────────────────────────────
   The demo always had a price for every seller. Against the live feed a
   seller can legitimately have no matching plan, and the feed itself takes a
   moment to arrive, so those two cases need styling. Everything below stays
   inside the .epc namespace like the rest of this file. */

.epc__empty {
  padding: 44px 22px;
  text-align: center;
  font-size: 14.5px;
  line-height: 2;
  color: var(--epc-ink-2);
  background: var(--epc-card);
  border: 1px dashed var(--epc-line);
  border-radius: var(--epc-radius);
}

/* A seller with no comparable bundle: present, greyed, never priced. */
.epc__row.is-na { opacity: .62; }
.epc__row.is-na:hover { transform: none; }
.epc__row.is-na .epc__rank { color: var(--epc-mute); background: var(--epc-line-2); }
.epc__price.epc__na {
  font-size: 15px;
  font-weight: 600;
  color: var(--epc-mute);
  white-space: nowrap;
}

/* Flags are flag-icons sprites (site-wide stylesheet), not emoji. Each slot
   already sets its own font-size, which is what sizes the sprite; this only
   settles it on the text baseline in mixed Persian/flag runs. */
.epc .fi { vertical-align: -0.12em; border-radius: 3px; }

/* Full plan list inside an expanded seller row. The headline shows only the
   plan that matched the comparison spec; this is everything else they sell
   for the selected country, so nothing is hidden behind the comparison rule. */
.epc__plans { margin-top: 18px; border-top: 1px solid var(--epc-line-2); padding-top: 16px; }
.epc__row.is-best .epc__plans { border-top-color: rgba(255,255,255,.12); }
.epc__plans-head { font-size: 10.5px; font-weight: 700; color: var(--epc-mute); margin-bottom: 10px; }
.epc__plans-empty { font-size: 12.5px; color: var(--epc-mute); }
.epc__plans-scroll { max-height: 232px; overflow-y: auto; }
.epc__plans-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.epc__plans-table td { padding: 7px 10px; border-bottom: 1px solid var(--epc-line-2); text-align: right; white-space: nowrap; }
.epc__plans-table td:nth-child(3) { font-weight: 700; }
.epc__plans-table td:last-child { width: 1%; }
.epc__plans-table tr:last-child td { border-bottom: 0; }
.epc__plans-table tr.is-out td { color: var(--epc-mute); }
.epc__plans-table tr.is-pick td { background: var(--epc-brand-soft); font-weight: 700; }
.epc__plans-tag { display: inline-block; font-size: 10px; font-weight: 800; color: var(--epc-brand); background: #fff; border-radius: 999px; padding: 2px 9px; }

/* The cheapest row is painted dark by the design — invert the table on it. */
.epc__row.is-best .epc__plans-table td { border-bottom-color: rgba(255,255,255,.1); color: #dfe3f5; }
.epc__row.is-best .epc__plans-table tr.is-out td { color: #8e96b8; }
.epc__row.is-best .epc__plans-table tr.is-pick td { background: rgba(255,255,255,.1); color: #fff; }
.epc__row.is-best .epc__plans-tag { background: rgba(255,255,255,.16); color: #fff; }
