/* FollowerAbzar 80.2.8 — typography, dark-mode, calculation and virtual-country price refinement. */

/* Standard typography: use the bundled Vazirmatn throughout FASMM-owned front-end UI. */
:is(.fasmm-materio-rtl,.fasmm-panel-view,.fasmm-storefront,.fasmm-sf-page,.fasmm-country-modal,.fasmm-order-workspace,.fasmm-premium-checkout){
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
  font-size:14px;
  line-height:1.75;
  text-rendering:optimizeLegibility;
}
:is(.fasmm-materio-rtl,.fasmm-panel-view,.fasmm-storefront,.fasmm-sf-page,.fasmm-country-modal) button,
:is(.fasmm-materio-rtl,.fasmm-panel-view,.fasmm-storefront,.fasmm-sf-page,.fasmm-country-modal) input,
:is(.fasmm-materio-rtl,.fasmm-panel-view,.fasmm-storefront,.fasmm-sf-page,.fasmm-country-modal) select,
:is(.fasmm-materio-rtl,.fasmm-panel-view,.fasmm-storefront,.fasmm-sf-page,.fasmm-country-modal) textarea{font-family:inherit!important}

/* Country rows now expose the cached provider-derived selling price before selection. */
.fasmm-country-row__price{display:grid!important;gap:2px!important;min-width:112px!important;text-align:left!important}
.fasmm-country-row__price small{font-size:10px!important;color:var(--fasmm-sf-muted)!important}
.fasmm-country-row__price strong{font-size:12.5px!important;line-height:1.5!important;color:var(--fasmm-virtual-accent)!important;white-space:nowrap!important}
.fasmm-country-row.is-selected .fasmm-country-row__price strong{font-weight:950!important}

/* SMM price calculation: clear hierarchy between quantity, rate and final amount. */
.fasmm-order-workspace .fasmm-order-quantity-section{align-items:stretch!important}
.fasmm-order-workspace .fasmm-order-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:stretch!important}
.fasmm-order-workspace .fasmm-order-metric{
  min-height:72px!important;padding:12px 14px!important;border-radius:13px!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;gap:3px!important;
  background:color-mix(in srgb,var(--fo-surface,#fff) 96%,var(--fo-primary,#5b4df7) 4%)!important;
  border:1px solid var(--fo-border,#dce3ef)!important;box-shadow:none!important
}
.fasmm-order-workspace .fasmm-order-metric>span{font-size:11px!important;font-weight:700!important;color:var(--fo-muted)!important}
.fasmm-order-workspace .fasmm-order-metric>b{font-size:15px!important;line-height:1.5!important;font-weight:900!important;color:var(--fo-text)!important}
.fasmm-order-workspace .fasmm-order-metric.is-total{background:color-mix(in srgb,var(--fo-primary,#5b4df7) 7%,var(--fo-surface,#fff))!important;border-color:color-mix(in srgb,var(--fo-primary,#5b4df7) 28%,var(--fo-border,#dce3ef))!important}
.fasmm-order-workspace .fasmm-order-metric.is-total>b{font-size:18px!important;color:var(--fo-primary)!important}
.fasmm-order-workspace .fasmm-qty-field{min-height:72px!important;padding:11px 13px!important;border-radius:13px!important}
.fasmm-order-workspace .fasmm-qty-field>span{font-size:13px!important;font-weight:850!important}

/* Full dark audit: page shell, cards, overlays, storefronts, inputs and calculation surfaces. */
body.fasmm-dark{background:var(--fasmm-bg-page,#1d1b2a)!important;color:var(--fasmm-text-primary,#f5f3fb)!important}
body.fasmm-dark :is(#page,.site,.site-content,.entry-content,.fasmm-panel-view,.fasmm-panel-page,.fasmm-panel-content,.fasmm-storefront,.fasmm-sf-page){background:var(--fasmm-bg-page,#1d1b2a)!important;color:var(--fasmm-text-primary,#f5f3fb)!important}
body.fasmm-dark :is(.fasmm-card,.fasmm-sf-card,.fasmm-sf-product-card,.fasmm-country-modal__dialog,.fasmm-country-modal__checkout,.fasmm-virtual-card,.fasmm-account-card){background:var(--fasmm-bg-surface,#262337)!important;border-color:var(--fasmm-border,#49445f)!important;color:var(--fasmm-text-primary,#f5f3fb)!important}
body.fasmm-dark :is(.fasmm-country-row,.fasmm-sf-search input,.fasmm-sf-field input,.fasmm-sf-field select,.fasmm-sf-field textarea){background:var(--fasmm-bg-surface-2,#302c43)!important;border-color:var(--fasmm-border,#49445f)!important;color:var(--fasmm-text-primary,#f5f3fb)!important}
body.fasmm-dark .fasmm-country-row:hover,body.fasmm-dark .fasmm-country-row.is-selected{background:color-mix(in srgb,var(--fasmm-virtual-accent,#20b486) 10%,var(--fasmm-bg-surface-2,#302c43))!important}
body.fasmm-dark .fasmm-country-row__price strong{color:#55d8ad!important}
body.fasmm-dark .fasmm-order-workspace .fasmm-order-metric{background:var(--fasmm-bg-surface-2,#302c43)!important;border-color:var(--fasmm-border,#49445f)!important;color:var(--fasmm-text-primary,#f5f3fb)!important}
body.fasmm-dark .fasmm-order-workspace .fasmm-order-metric.is-total{background:color-mix(in srgb,var(--fasmm-primary,#a69cff) 12%,var(--fasmm-bg-surface-2,#302c43))!important;border-color:color-mix(in srgb,var(--fasmm-primary,#a69cff) 35%,var(--fasmm-border,#49445f))!important}
body.fasmm-dark .fasmm-order-workspace .fasmm-order-metric>span{color:var(--fasmm-text-secondary,#b8b3c7)!important}
body.fasmm-dark .fasmm-order-workspace .fasmm-order-metric>b{color:var(--fasmm-text-primary,#f5f3fb)!important}
body.fasmm-dark .fasmm-order-workspace .fasmm-order-metric.is-total>b{color:var(--fasmm-primary,#a69cff)!important}
body.fasmm-dark :is(.fasmm-order-summary-compact,.fasmm-order-summary-strip,.fasmm-order-summary-strip>div,.fasmm-service-information,.fasmm-premium-checkout,.fasmm-premium-payment-methods,.fasmm-premium-price-breakdown){border-color:var(--fasmm-border,#49445f)!important;color:var(--fasmm-text-primary,#f5f3fb)!important}
body.fasmm-dark :is(.fasmm-order-summary-strip,.fasmm-order-summary-strip>div,.fasmm-service-information,.fasmm-premium-checkout){background:var(--fasmm-bg-surface,#262337)!important}
body.fasmm-dark :is(.fasmm-order-workspace input,.fasmm-order-workspace select,.fasmm-order-workspace textarea,.fasmm-premium-checkout input,.fasmm-premium-checkout select,.fasmm-premium-checkout textarea){background:var(--fasmm-input-bg,#312d45)!important;border-color:var(--fasmm-border,#49445f)!important;color:var(--fasmm-input-text,#f5f3fb)!important}
body.fasmm-dark :is(.fasmm-order-workspace input,.fasmm-premium-checkout input,.fasmm-sf-search input)::placeholder{color:var(--fasmm-text-muted,#8f899f)!important;opacity:1!important}

/* Desktop readability without oversized labels. */
@media(min-width:768px){
  .fasmm-order-workspace :is(.fasmm-select-label,.fasmm-order-link-field>span,.fasmm-qty-field>span){font-size:14px!important}
  .fasmm-order-workspace .fasmm-select-trigger b{font-size:14px!important}
  .fasmm-order-workspace :is(#fasmm-order-link,#fasmm-qty,.fasmm-search-input){font-size:14px!important}
  .fasmm-country-modal__dialog>header h2{font-size:18px!important;line-height:1.6!important}
  .fasmm-country-row b{font-size:12.5px!important}
}

/* Mobile density: readable Persian without causing overflow. */
@media(max-width:767px){
  :is(.fasmm-materio-rtl,.fasmm-panel-view,.fasmm-storefront,.fasmm-sf-page,.fasmm-country-modal,.fasmm-order-workspace,.fasmm-premium-checkout){font-size:13px!important;line-height:1.75!important}
  .fasmm-order-workspace .fasmm-order-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .fasmm-order-workspace .fasmm-order-metric{min-height:64px!important;padding:9px 10px!important}
  .fasmm-order-workspace .fasmm-order-metric>span{font-size:10px!important}
  .fasmm-order-workspace .fasmm-order-metric>b{font-size:13px!important}
  .fasmm-order-workspace .fasmm-order-metric.is-total>b{font-size:15px!important}
  .fasmm-order-workspace .fasmm-qty-field{min-height:64px!important;padding:9px 10px!important}
  .fasmm-country-row{gap:8px!important;padding:9px 8px!important}
  .fasmm-country-row__flag{width:36px!important;height:28px!important;min-width:36px!important}
  .fasmm-country-row__price{min-width:94px!important}
  .fasmm-country-row__price small{font-size:8.5px!important}
  .fasmm-country-row__price strong{font-size:10.5px!important}
  .fasmm-country-modal__dialog>header h2{font-size:16px!important}
}
@media(max-width:390px){
  .fasmm-order-workspace .fasmm-order-metrics{grid-template-columns:1fr 1fr!important}
  .fasmm-country-row__price{min-width:82px!important}
}


/* Virtual-number checkout calculation: make total/payment split easy to scan. */
.fasmm-country-modal__checkout .fasmm-quote-card{padding:14px!important;border-radius:14px!important;gap:11px!important}
.fasmm-country-modal__checkout .fasmm-quote-card>div:last-child{padding-top:9px!important;border-top:1px dashed var(--fasmm-sf-line)!important}
.fasmm-country-modal__checkout .fasmm-quote-card strong{font-size:19px!important;font-weight:950!important;color:var(--fasmm-virtual-accent)!important}
.fasmm-virtual-price-breakdown{display:grid!important;gap:7px!important;padding:11px!important;border:1px solid var(--fasmm-sf-line)!important;border-radius:12px!important;background:var(--fasmm-sf-card)!important}
.fasmm-virtual-price-breakdown>div{min-height:30px!important;padding:3px 0!important}
.fasmm-virtual-price-breakdown>div+div{border-top:1px dashed var(--fasmm-sf-line)!important}
.fasmm-virtual-price-breakdown span{font-size:11px!important;color:var(--fasmm-sf-muted)!important}
.fasmm-virtual-price-breakdown b{font-size:12.5px!important;color:var(--fasmm-sf-text)!important}
.fasmm-virtual-price-breakdown .is-total b,.fasmm-virtual-price-breakdown>div:last-child b{font-size:15px!important;color:var(--fasmm-virtual-accent)!important}
.fasmm-virtual-premium-checkout .fasmm-auto-payment-note{border-radius:11px!important;padding:10px 11px!important;font-size:11.5px!important;line-height:1.75!important}
body.fasmm-dark .fasmm-virtual-price-breakdown{background:var(--fasmm-bg-surface-2,#302c43)!important;border-color:var(--fasmm-border,#49445f)!important}
body.fasmm-dark .fasmm-virtual-price-breakdown>div+div{border-color:var(--fasmm-border,#49445f)!important}
body.fasmm-dark .fasmm-country-modal__checkout .fasmm-quote-card{background:var(--fasmm-bg-surface-2,#302c43)!important;border-color:var(--fasmm-border,#49445f)!important}

@media(max-width:767px){
  .fasmm-country-modal__checkout .fasmm-quote-card strong{font-size:16px!important}
  .fasmm-virtual-price-breakdown{padding:9px!important}
  .fasmm-virtual-price-breakdown span{font-size:10px!important}
  .fasmm-virtual-price-breakdown b{font-size:11.5px!important}
}
