/* Abarip shop page. Design: "Abarip Customer" (Vazirmatn, one blue accent, white surfaces, 24px cards, 14px controls). RTL. */

body.abshop-page, .abshop {
  --abs-bg: #F4F6FB;
  --abs-sf: #FFFFFF;
  --abs-ink: #101828;
  --abs-mu: #667085;
  --abs-bd: #E6EAF2;
  --abs-ac: #2E5CE6;
  --abs-vi: #7C5CE6;
  --abs-deep: #1A2740;
  --abs-ok: #17A673;
  --abs-ff: "OIP Vazirmatn", Vazirmatn, Tahoma, sans-serif;
}

/* the theme's white page box becomes the calm ground the sections sit on */
body.abshop-page .page_content {
  background: var(--abs-bg) !important;
  box-shadow: none !important;
  border-radius: 28px !important;
  padding: 28px !important;
}

.abshop, .abshop * { box-sizing: border-box; font-family: var(--abs-ff); }
.abshop { color: var(--abs-ink); direction: rtl; text-align: right; display: grid; gap: 40px; }
.abshop h2, .abshop h3, .abshop p, .abshop ul, .abshop ol { margin: 0; padding: 0; }
.abshop ul, .abshop ol { list-style: none; }
.abshop a { text-decoration: none; }
.abshop svg { display: block; flex: none; }
.abshop h2 { font-size: 24px; line-height: 1.3; font-weight: 800; color: var(--abs-ink); }

/* ---------- intro ---------- */
.abshop-intro { max-width: 680px; display: grid; gap: 10px; }
.abshop-intro__title { font-size: 30px !important; line-height: 1.25 !important; letter-spacing: -.2px; }
.abshop-intro__text { color: var(--abs-mu); font-size: 15.5px; line-height: 2; }

/* ---------- plans ---------- */
.abshop-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-bottom: -24px; /* the note below belongs to the cards */
}
.abshop-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--abs-sf);
  border: 1px solid var(--abs-bd);
  border-radius: 24px;
  padding: 22px 20px 18px;
  transition: border-color .2s, transform .2s;
}
.abshop-plan:hover { border-color: #C9D6FB; transform: translateY(-2px); }
.abshop-plan.is-best {
  background: linear-gradient(160deg, var(--abs-deep) 0%, #213a7a 60%, var(--abs-ac) 140%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 40px rgba(46, 92, 230, .22);
}
.abshop-plan__flag {
  position: absolute;
  top: -12px;
  inset-inline-start: 20px;
  background: #fff;
  color: var(--abs-ac);
  border: 1px solid #C9D6FB;
  border-radius: 12px;
  padding: 3px 12px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.7;
}
.abshop-plan__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.abshop-plan__img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: var(--abs-bg); flex: none; margin: 0 !important; }
.abshop-plan.is-best .abshop-plan__img { background: rgba(255, 255, 255, .12); }
.abshop-plan__title { font-size: 19px; line-height: 1.3; font-weight: 800; }
.abshop-plan__gift { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--abs-ok); }
.abshop-plan.is-best .abshop-plan__gift { color: #7FE3BD; }

.abshop-plan__price { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.abshop-plan__price strong { font-size: 40px; font-weight: 800; letter-spacing: -.5px; }
.abshop-plan__price span { font-size: 15px; font-weight: 700; color: var(--abs-mu); }
.abshop-plan__price del { font-size: 16px; color: var(--abs-mu); }
.abshop-plan.is-best .abshop-plan__price span, .abshop-plan.is-best .abshop-plan__price del { color: rgba(255, 255, 255, .75); }
.abshop-plan__toman { margin-top: 10px !important; font-size: 13.5px; font-weight: 700; color: var(--abs-ink); line-height: 1.8; }
.abshop-plan__monthly { font-size: 13px; color: var(--abs-mu); line-height: 1.8; }
.abshop-plan.is-best .abshop-plan__toman { color: #fff; }
.abshop-plan.is-best .abshop-plan__monthly { color: rgba(255, 255, 255, .78); }

.abshop-plan__list { display: grid; gap: 9px; margin: 18px 0 20px !important; padding-top: 16px !important; border-top: 1px dashed var(--abs-bd); flex: 1; align-content: start; }
.abshop-plan.is-best .abshop-plan__list { border-top-color: rgba(255, 255, 255, .22); }
.abshop-plan__list li { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.7; }
.abshop-plan__list svg { width: 18px; height: 18px; color: var(--abs-ok); }
.abshop-plan.is-best .abshop-plan__list svg { color: #7FE3BD; }

.abshop-plan__buy {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--abs-ac) !important;
  background: #EEF3FF;
  border: 1px solid #D5E0FB;
  transition: background .15s, transform .15s;
}
.abshop-plan__buy:hover { background: #E2EAFF; }
.abshop-plan__buy:active { transform: scale(.98); }
.abshop-plan.is-best .abshop-plan__buy {
  color: #fff !important;
  background: linear-gradient(120deg, var(--abs-ac), var(--abs-vi));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(10, 20, 60, .35);
}
.abshop-plan__more { display: block; text-align: center; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--abs-mu) !important; }
.abshop-plan__more:hover { color: var(--abs-ac) !important; }
.abshop-plan.is-best .abshop-plan__more { color: rgba(255, 255, 255, .78) !important; }
.abshop-plan.is-best .abshop-plan__more:hover { color: #fff !important; }
.abshop a:focus-visible { outline: 3px solid rgba(46, 92, 230, .45); outline-offset: 2px; }
.abshop-plan.is-best a:focus-visible { outline-color: #fff; }

.abshop-note { font-size: 12.5px; color: var(--abs-mu); line-height: 1.9; }

/* ---------- included (brand panel + list) ---------- */
.abshop-included {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 0;
  background: var(--abs-sf);
  border: 1px solid var(--abs-bd);
  border-radius: 24px;
  overflow: hidden;
}
.abshop-included__lead {
  background: linear-gradient(150deg, var(--abs-deep) 0%, var(--abs-ac) 135%);
  color: #fff;
  padding: 30px 28px;
  display: grid;
  align-content: center;
  gap: 10px;
}
.abshop-included__lead h2 { color: #fff !important; }
.abshop-included__lead p { color: rgba(255, 255, 255, .8); font-size: 14.5px; line-height: 1.9; }
/* every cell draws its bottom line; the list is pulled 1px down so the last row's line hides under the frame */
.abshop-included__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: -1px !important; }
.abshop-included__list li { display: flex; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--abs-bd); border-inline-start: 1px solid var(--abs-bd); }
.abshop-included__list li:nth-child(2n+1) { border-inline-start: 0; }
.abshop-included__list li:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
.abshop-included__list i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #EEF3FF; color: var(--abs-ac); flex: none; }
.abshop-included__list b { display: block; font-size: 15px; font-weight: 800; line-height: 1.5; margin-bottom: 2px; }
.abshop-included__list span { display: block; font-size: 13.5px; color: var(--abs-mu); line-height: 1.9; }

/* ---------- steps (connected line, no cards) ---------- */
.abshop-steps { display: grid; gap: 22px; }
.abshop-steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.abshop-steps__list::before { content: none; }
.abshop-steps__list li:not(:last-child)::after { content: ""; position: absolute; top: 24px; inset-inline-start: 62px; width: calc(100% - 50px); height: 2px; background: repeating-linear-gradient(to left, #C9D6FB 0 8px, transparent 8px 14px); pointer-events: none; }
.abshop-steps__list li { position: relative; display: grid; justify-items: start; gap: 6px; }
.abshop-steps__list i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--abs-sf); border: 1px solid var(--abs-bd); color: var(--abs-ac); margin-bottom: 8px; }
.abshop-steps__list li:last-child i { background: var(--abs-ac); border-color: var(--abs-ac); color: #fff; }
.abshop-steps__list b { font-size: 15.5px; font-weight: 800; }
.abshop-steps__list span { font-size: 13.5px; color: var(--abs-mu); line-height: 1.9; max-width: 34ch; }

/* ---------- FAQ ---------- */
.abshop-faq { display: grid; gap: 10px; }
.abshop-faq h2 { margin-bottom: 8px !important; }
.abshop-faq details { background: var(--abs-sf); border: 1px solid var(--abs-bd); border-radius: 16px; transition: border-color .2s; }
.abshop-faq details[open] { border-color: #C9D6FB; }
.abshop-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; font-size: 15px; font-weight: 700; line-height: 1.7; }
.abshop-faq summary::-webkit-details-marker { display: none; }
.abshop-faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--abs-mu); border-bottom: 2px solid var(--abs-mu); transform: rotate(45deg); margin-top: -5px; margin-left: 4px; transition: transform .2s; }
.abshop-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 5px; border-color: var(--abs-ac); }
.abshop-faq summary:focus-visible { outline: 3px solid rgba(46, 92, 230, .45); outline-offset: -3px; border-radius: 16px; }
.abshop-faq details p { padding: 0 20px 18px !important; color: var(--abs-mu); font-size: 14.5px; line-height: 2.1; max-width: none !important; width: auto; }

/* ---------- help ---------- */
.abshop-help { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--abs-sf); border: 1px solid var(--abs-bd); border-radius: 24px; padding: 24px 28px; }
.abshop-help h2 { font-size: 20px; margin-bottom: 6px !important; }
.abshop-help p { color: var(--abs-mu); font-size: 14px; line-height: 1.9; max-width: 56ch; }
.abshop-help__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.abshop-help__btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 14px; background: linear-gradient(120deg, var(--abs-ac), var(--abs-vi)); color: #fff !important; font-weight: 800; font-size: 14.5px; box-shadow: 0 10px 22px rgba(46, 92, 230, .25); }
.abshop-help__btn svg, .abshop-help__link svg { width: 19px; height: 19px; }
.abshop-help__link { display: inline-flex; align-items: center; gap: 6px; color: var(--abs-ac) !important; font-weight: 700; font-size: 14px; }
.abshop-help__link:hover { text-decoration: underline; }

/* ---------- customer panel: buy page (narrower column next to the account menu) ---------- */
.abshop--panel { gap: 22px; }
.abshop--panel .abshop-plans { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); row-gap: 26px; margin-top: 6px; }
.abshop--panel .abshop-plan__price strong { font-size: 34px; }
.abshop-panel-head h1 { font-size: 20px !important; font-weight: 800; line-height: 1.4; margin: 4px 0 6px !important; }
.abshop-panel-head p { color: var(--abs-mu); font-size: 14px; line-height: 1.9; }
.abshop-panel-flow { display: flex; flex-wrap: wrap; gap: 8px 18px; background: var(--abs-sf); border: 1px solid var(--abs-bd); border-radius: 16px; padding: 12px 16px; font-size: 13px; color: var(--abs-mu); line-height: 1.8; }
.abshop-panel-flow span { display: inline-flex; align-items: center; gap: 6px; }
.abshop-panel-flow svg { width: 17px; height: 17px; color: var(--abs-ac); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .abshop-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
}
@media (max-width: 900px) {
  .abshop-included { grid-template-columns: minmax(0, 1fr); }
  .abshop-included__lead { padding: 24px; }
  .abshop-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .abshop-steps__list::before, .abshop-steps__list li::after { display: none !important; }
  .abshop-help { flex-direction: column; align-items: stretch; }
  .abshop-help__actions { justify-content: space-between; }
}
@media (max-width: 640px) {
  body.abshop-page .page_content { padding: 16px !important; border-radius: 22px !important; }
  .abshop { gap: 32px; }
  .abshop-intro__title { font-size: 23px !important; }
  .abshop-intro__text { font-size: 14.5px; }
  .abshop-plans { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .abshop-plan__price strong { font-size: 36px; }
  .abshop-included__list { grid-template-columns: minmax(0, 1fr); }
  .abshop-included__list li { border-inline-start: 0; padding: 18px; }
  .abshop-steps__list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .abshop-steps__list li { grid-template-columns: 50px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; }
  .abshop-steps__list i { grid-row: span 2; margin: 0; }
  .abshop h2 { font-size: 21px; }
  .abshop-help { padding: 20px; }
  .abshop-help__actions { flex-direction: column; align-items: stretch; }
  .abshop-help__btn { justify-content: center; }
  .abshop-help__link { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .abshop-plan, .abshop-plan__buy, .abshop-faq details, .abshop-faq summary::after { transition: none; }
  .abshop-plan:hover { transform: none; }
}

/* ---------- dark theme ---------- */
html[data-theme="dark"] .abshop,html[data-theme="dark"] .abshop--panel{--abs-bg:#0B1220;--abs-sf:#121B2E;--abs-ink:#EAF0FB;--abs-mu:#9AA7BD;--abs-bd:#26324A;--abs-ac:#6E92FF;--abs-ok:#34D399}
html[data-theme="dark"] .abshop-plan:hover{border-color:#3A5299}
html[data-theme="dark"] .abshop-plan__flag{background:#121B2E;color:#8FB0FF;border-color:#2B3C66}
html[data-theme="dark"] .abshop-plan__buy{background:rgba(110,146,255,.14);color:#9DB8FF!important;border-color:#2B3C66}
html[data-theme="dark"] .abshop-plan__buy:hover{background:rgba(110,146,255,.24)}
html[data-theme="dark"] .abshop-plan.is-best .abshop-plan__buy{color:#fff!important;background:linear-gradient(120deg,#2E5CE6,#7C5CE6);border-color:transparent}
html[data-theme="dark"] .abshop-plan__more:hover{color:#9DB8FF!important}
html[data-theme="dark"] .abshop-faq details[open]{border-color:#3A5299}
/* Best plan card is dark in both themes: keep its title and saving chip light. */
.abshop-plan.is-best .abshop-plan__title { color: #fff; }
.abshop-plan.is-best .abshop-plan__save { color: #7FE3BD; background: rgba(255, 255, 255, .14); }
