/* ============================================================
   AI Account Detail Page — ai-account-detail.css
   Sections: hero, plans, how-to-buy, capabilities, faq, form, related
   ============================================================ */

/* ── Reset / base ───────────────────────────────────────── */
.ad-page {
  font-family: inherit;
  direction: rtl;
  color: #1a1a2e;
  margin-top: 0;
  padding-top: 0;
}

/* Collapse empty wrapper main from site chrome */
body > main:not(.ad-page) {
  display: contents;
}

/* ── Section helpers ────────────────────────────────────── */
.ad-section-header { text-align: center; margin-bottom: 40px; }
.ad-section-header--light .ad-section-title { color: #fff; }
.ad-section-header--light .ad-howtobuy__intro { color: #cbd5e1; }

.ad-section-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 12px;
}

/* ── Hero — breadcrumb matches knowledge/article news-crumb ─ */
.ad-hero {
  background: #fff;
  padding: 20px 20px 48px;
  border-bottom: 1px solid #e8edf2;
}
.ad-hero__shell {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ad-hero__breadcrumb {
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}
.ad-hero__breadcrumb .news-crumb {
  width: 100%;
}
.ad-hero__breadcrumb .news-crumb__item {
  font-size: 12px;
}
.ad-hero__breadcrumb .news-crumb__item--current {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}
.ad-hero__inner {
  display: flex;
  gap: 48px;
  align-items: center;
}
.ad-hero__content { flex: 1; min-width: 0; }

.ad-hero__title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: #1a1a2e;
  margin: 0 0 10px;
  line-height: 1.25;
}
.ad-hero__subtitle {
  font-size: 17px;
  color: #2aabe2;
  font-weight: 700;
  margin: 0 0 18px;
}
.ad-hero__intro {
  font-size: 15px;
  line-height: 1.9;
  color: #475569;
  margin: 0 0 20px;
}
.ad-hero__intro p { margin: 0 0 12px; }

.ad-hero__min-price {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 28px;
}
.ad-hero__min-price .ad-plan-rial {
  color: #2aabe2;
  font-weight: 700;
  font-size: 16px;
}

.ad-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

/* Hero + plan CTAs — base shape; CMS theme overrides colors via site-theme-loader */
.ad-hero__cta .adsl-btn-item,
.ad-plan-card__cta.adsl-btn-item {
  min-width: 172px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: 0 8px 20px rgba(2, 132, 199, .22);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.ad-hero__cta .adsl-btn-item:hover,
.ad-plan-card__cta.adsl-btn-item:hover {
  opacity: .96;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(2, 132, 199, .28);
}

.ad-hero__cta .cta-btn.outline {
  min-width: 148px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #b45309;
  color: #b45309 !important;
  -webkit-text-fill-color: #b45309 !important;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.ad-hero__cta .cta-btn.outline:hover {
  background: #fff7ed;
  color: #92400e !important;
  -webkit-text-fill-color: #92400e !important;
  border-color: #92400e;
}

.ad-hero__cta .cta-btn.outline.ad-hero__knowledge {
  border-color: #2563eb;
  color: #1d4ed8 !important;
  -webkit-text-fill-color: #1d4ed8 !important;
  background: #eff6ff;
}

.ad-hero__cta .cta-btn.outline.ad-hero__knowledge:hover {
  background: #dbeafe;
  border-color: #1d4ed8;
  color: #1e40af !important;
  -webkit-text-fill-color: #1e40af !important;
}

.ad-hero__visual {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.ad-logo-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 160px;
}
.ad-logo-card img {
  display: block;
  width: 120px;
  height: 120px;
  max-width: 120px !important;
  max-height: 120px !important;
  object-fit: contain !important;
}

/* جلوگیری از deform شدن لوگو توسط قوانین global CMS */
.ad-page .ad-logo-card img,
.ad-page .ad-related-card__icon {
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
.ad-page .ad-logo-card img {
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
}
.ad-page .ad-related-card__icon {
  max-width: 100% !important;
  max-height: 88px !important;
}

@media (max-width: 768px) {
  .ad-page { margin-top: -24px; }
  .ad-hero__inner { flex-direction: column-reverse; gap: 24px; }
  .ad-hero { padding: 16px 16px 36px; }
  .ad-hero__shell { gap: 16px; }
  .ad-hero__breadcrumb { padding-bottom: 10px; }
  .ad-logo-card { min-width: unset; min-height: unset; padding: 20px 24px; }
  .ad-logo-card img { width: 88px; height: 88px; }
  .ad-hero__cta { flex-direction: column; align-items: stretch; }
  .ad-hero__cta .adsl-btn-item,
  .ad-hero__cta .cta-btn.outline,
  .ad-hero__cta .ad-hero__knowledge { width: 100%; min-width: unset; }
}

/* ── Plans ──────────────────────────────────────────────── */
.ad-plans {
  background: #fff;
  padding: 52px 20px 56px;
  border-bottom: 1px solid #edf0f7;
}

.ad-plans__head {
  max-width: 960px;
  margin: 0 auto 28px;
  text-align: center;
}

.ad-plans__head .ad-section-title {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 26px);
}

.ad-plans__slider {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  direction: ltr; /* ‹ بعدی چپ | › قبلی راست — استاندارد RTL */
}

.ad-plans__slider--no-nav .ad-plans-track {
  padding-inline: 0;
}

.ad-plans-nav__btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #dbe3ee;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.ad-plans-nav__btn:hover {
  background: #f8fafc;
  border-color: #2aabe2;
  color: #0284c7;
  box-shadow: 0 4px 14px rgba(42, 171, 226, .12);
}

.ad-plans-nav__btn:disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

.ad-plans-track {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 6px 4px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  direction: rtl;
}

.ad-plans-track::-webkit-scrollbar {
  display: none;
}

.ad-plan-card {
  flex: 0 0 210px;
  scroll-snap-align: center;
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  padding: 26px 18px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}

.ad-plan-card--offer {
  padding-top: 34px;
}

.ad-plan-card__offer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(234, 88, 12, .35);
}

.ad-plan-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
  transform: translateY(-2px);
}

.ad-plan-card__name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  line-height: 1.3;
}

.ad-plan-card__subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 18px;
  line-height: 1.5;
}

.ad-plan-card__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.ad-plan-card__usd {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  direction: ltr;
  letter-spacing: -.02em;
  line-height: 1;
}

.ad-plan-card__usd-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ad-plan-card__usd--before {
  font-size: 18px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.ad-plan-card__usd--after {
  font-size: 28px;
  font-weight: 800;
  color: #ea580c;
}

.ad-plan-card__rial--discount {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ad-plan-rial--before {
  color: #94a3b8;
  font-weight: 500;
  font-size: 12px;
  text-decoration: line-through;
}

.ad-plan-rial--after {
  color: #059669;
  font-weight: 700;
}

.ad-plan-card__rial {
  font-size: 13px;
  color: #64748b;
  min-height: 20px;
  line-height: 1.5;
}

.ad-plan-rial {
  color: #059669;
  font-weight: 700;
}

.ad-plan-card__billing {
  font-size: 11px;
  color: #94a3b8;
  margin: 0 0 16px;
  line-height: 1.6;
  min-height: 32px;
}

.ad-plan-card__cta {
  margin-top: auto;
  width: 100%;
  min-width: unset !important;
  height: 40px !important;
  padding: 0 12px !important;
  font-size: 12.5px !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

.ad-plans-note {
  max-width: 960px;
  margin: 16px auto 0;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ── Chargeable account: custom USD top-up ─────────────── */
.ad-charge__card {
  max-width: 520px;
  margin: 8px auto 0;
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e3e9f2;
  border-radius: 22px;
  padding: 30px 26px 26px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .06);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ad-charge__hint {
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.85;
  font-weight: 500;
  color: #475569;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 13px;
  padding: 14px 18px;
}

.ad-charge__field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ad-charge__input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.ad-charge__input {
  flex: 1;
  max-width: 280px;
  height: 58px;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  background: #fff;
  padding: 0 18px;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  font-family: inherit;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -moz-appearance: textfield;
}
.ad-charge__input::placeholder {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  text-align: center;
}
.ad-charge__input::-webkit-outer-spin-button,
.ad-charge__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ad-charge__input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.ad-charge__unit {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
  padding: 8px 14px;
  background: #f1f5f9;
  border-radius: 10px;
}

.ad-charge__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  text-align: center;
}
.ad-charge__result-label { font-size: 13px; font-weight: 600; color: #15803d; }
.ad-charge__result-value {
  font-size: 20px;
  font-weight: 800;
  color: #059669;
  min-height: 24px;
}

.ad-charge__cta.adsl-btn-item {
  width: 100%;
  height: 52px !important;
  min-width: unset !important;
  font-size: 15px !important;
  border-radius: 13px !important;
  transition: opacity .2s, filter .2s;
}
.ad-charge__cta:disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: grayscale(.3);
}
.ad-charge__rate-note { margin-top: 2px; }

@media (max-width: 768px) {
  .ad-charge__card { padding: 24px 18px 20px; border-radius: 18px; }
  .ad-charge__input { height: 52px; font-size: 20px; max-width: 100%; }
  .ad-charge__input::placeholder { font-size: 12px; }
  .ad-charge__result-value { font-size: 18px; }
}

@media (max-width: 768px) {
  .ad-plans { padding: 40px 12px 44px; }
  .ad-plans__slider { gap: 8px; }
  .ad-plans-nav__btn { width: 36px; height: 36px; }
  .ad-plans-track {
    justify-content: flex-start;
    padding-inline: 8px;
  }
  .ad-plan-card { flex-basis: 188px; padding: 22px 16px 18px; }
  .ad-plan-card__usd { font-size: 24px; }
}

/* ── How to Buy (dark) — shared with hub via ai-how-to-buy.css ── */
@import url('/assets/css/ai-how-to-buy.css');

/* ── Capabilities — shared via ai-capabilities.css ───────── */
@import url('/assets/css/ai-capabilities.css');

/* ── FAQ ────────────────────────────────────────────────── */
.ad-faq { background: #fff; padding: 56px 20px; border-bottom: 1px solid #e2e8f0; }
.ad-faq__inner { max-width: 760px; margin: 0 auto; }
.ad-faq .ad-section-title { text-align: center; margin-bottom: 32px; }
.ad-faq__list { display: flex; flex-direction: column; gap: 12px; }
.ad-faq__item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}
.ad-faq__item[open] { background: #fff; border-color: #2aabe2; }
.ad-faq__q {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ad-faq__q::after { content: '+'; font-size: 20px; color: #2aabe2; font-weight: 300; }
.ad-faq__item[open] .ad-faq__q::after { content: '−'; }
.ad-faq__a {
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.9;
  color: #475569;
}

/* ── Consult Form ───────────────────────────────────────── */
.ad-form-section {
  background: #f8fafc;
  padding: 64px 20px;
  border-bottom: 1px solid #e2e8f0;
  scroll-margin-top: 80px;
}

.ad-form-section .fo-form-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
}

.ad-form-section .fo-form-header {
  text-align: center;
  margin-bottom: 36px;
}

.ad-form-section .fo-form-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #0ea5e9;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ad-form-section .fo-form-header__eyebrow span {
  width: 28px;
  height: 1px;
  background: #0ea5e9;
  display: inline-block;
}

.ad-form-section .fo-form-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.4;
}

.ad-form-section .fo-form-header p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.8;
}

.ad-form-section .fo-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 36px 36px;
  box-shadow: 0 4px 32px rgba(15, 23, 42, .06);
}

.ad-form-section .fo-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}

.ad-form-section .fo-form-grid .fo-field--full {
  grid-column: 1 / -1;
}

.ad-form-section .fo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ad-form-section .fo-field label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  letter-spacing: .02em;
}

.ad-form-section .fo-field input,
.ad-form-section .fo-field textarea,
.ad-form-section .fo-field select {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
  box-sizing: border-box;
}

.ad-form-section .fo-field input:focus,
.ad-form-section .fo-field textarea:focus,
.ad-form-section .fo-field select:focus {
  border-color: #0ea5e9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .13);
}

.ad-form-section .fo-field textarea {
  resize: vertical;
  min-height: 90px;
}

.ad-form-section .fo-field input::placeholder,
.ad-form-section .fo-field textarea::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.ad-form-section .fo-form-footer {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.ad-form-section .fo-form-footer__note {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ad-form-section .fo-submit-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 36px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .18s, transform .12s;
  letter-spacing: .02em;
}

.ad-form-section .fo-submit-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.ad-form-section .fo-captcha-row { margin-top: 4px; }

.ad-form-section .fo-captcha-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ad-form-section .fo-captcha-img {
  display: block;
  height: 52px;
  width: 150px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
}

.ad-form-section .fo-captcha-refresh {
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.ad-form-section .fo-captcha-refresh:hover {
  border-color: #0ea5e9;
  color: #0284c7;
}

.ad-form-section .fo-captcha-input { max-width: 140px; }

@media (max-width: 600px) {
  .ad-form-section .fo-form-card { padding: 28px 18px 24px; }
  .ad-form-section .fo-form-grid { grid-template-columns: 1fr; gap: 18px; }
  .ad-form-section .fo-form-footer { flex-direction: column; align-items: stretch; }
  .ad-form-section .fo-submit-btn { width: 100%; text-align: center; }
  .ad-form-section .fo-captcha-input { max-width: none; flex: 1; }
}

/* ── Related ────────────────────────────────────────────── */
.ad-related {
  background: #fff;
  padding: 48px 20px 64px;
}
.ad-related__inner { max-width: 1100px; margin: 0 auto; }
.ad-related .ad-section-title {
  text-align: center;
  margin-bottom: 28px;
}
.ad-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ad-related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px 22px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  color: #1a1a2e;
  font-weight: 700;
  font-size: 14px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  min-height: 180px;
}
.ad-related-card:hover {
  border-color: #2aabe2;
  box-shadow: 0 8px 28px rgba(42, 171, 226, .14);
  transform: translateY(-3px);
}
.ad-related-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 96px;
  max-width: 140px;
}
.ad-related-card__icon {
  max-width: 100%;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .2s;
}
.ad-related-card:hover .ad-related-card__icon {
  transform: scale(1.06);
}
.ad-related-card__title {
  text-align: center;
  line-height: 1.5;
  color: #1e293b;
}
.ad-related-card:hover .ad-related-card__title {
  color: #4356a3;
}

@media (max-width: 900px) {
  .ad-related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .ad-related-grid { grid-template-columns: repeat(2, 1fr); }
  .ad-related-card { min-height: 150px; padding: 20px 12px 16px; }
  .ad-related-card__icon-wrap { height: 72px; }
  .ad-related-card__icon { max-height: 64px; }
}
