/* R76 | AFM Flow price cards, uses existing dashboard tokens and responsive layout */
.afm-pricing-section{position:relative;margin:1rem 0 1.4rem;padding:1.15rem;border:1px solid rgba(178,148,84,.28);border-radius:18px;background:linear-gradient(135deg,rgba(20,55,61,.055),rgba(216,176,89,.07));box-shadow:0 8px 32px rgba(15,45,48,.045)}
.afm-pricing-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:1rem}
.afm-pricing-header h2{font-size:1.17rem;font-weight:800;margin:0 0 .32rem;color:var(--text,#173d40)}
.afm-pricing-header p{font-size:.82rem;margin:0;color:var(--text-muted,#6d7780)}
.afm-pricing-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.afm-pricing-actions .afm-pricing-reload{cursor:pointer;padding:.53rem .8rem;border-radius:10px;border:1px solid var(--border,#dce5e7);background:var(--surface,#fff);color:var(--text,#173d40);font:inherit;font-weight:700;font-size:.84rem}
.afm-pricing-open{display:inline-flex;align-items:center;justify-content:center;text-align:center;border-radius:10px;padding:.58rem .95rem;color:#fff!important;background:#173f3a;text-decoration:none!important;font-weight:750;font-size:.85rem;white-space:nowrap;box-shadow:0 4px 13px rgba(23,63,58,.16)}
.afm-pricing-open:hover{background:#285b54}
.afm-price-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.78rem}
.afm-price-card{min-width:0;display:flex;flex-direction:column;gap:.68rem;min-height:151px;padding:.93rem .94rem;border:1px solid var(--border,#dee6e9);border-radius:14px;background:var(--surface,#fff);box-shadow:0 2px 11px rgba(22,53,59,.045)}
.afm-price-head{display:flex;justify-content:space-between;gap:.25rem;align-items:start}
.afm-price-name{font-weight:750;font-size:.85rem;line-height:1.8;color:var(--text,#1e3c40)}
.afm-price-symbol{font-size:.68rem;border-radius:7px;background:rgba(201,168,100,.12);color:#90713b;padding:.16rem .3rem;white-space:nowrap}
.afm-price-value{font-family:inherit;font-size:clamp(.92rem,1.05vw,1.2rem);font-weight:900;line-height:1.7;direction:rtl;overflow-wrap:anywhere;color:var(--text,#173f3a)}
.afm-price-change{font-size:.75rem;color:var(--text-muted,#718088)}
.afm-price-change.positive{color:#b04d40}.afm-price-change.negative{color:#168469}
.afm-price-time{font-size:.7rem;color:var(--text-muted,#879298);margin-top:auto}
.afm-price-unavailable{opacity:.75}
.side-nav a.afm-pricing-nav{display:flex;align-items:center;justify-content:flex-start;text-decoration:none;border-radius:11px;margin-top:.6rem;padding:.7rem .85rem;background:rgba(200,162,83,.12);border:1px solid rgba(200,162,83,.28);font-weight:750;color:var(--text,#173f3a);font-size:.87rem}
.side-nav a.afm-pricing-nav:hover{background:rgba(200,162,83,.21)}
@media(max-width:1200px){.afm-price-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.afm-pricing-section{padding:.78rem;border-radius:12px}.afm-price-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.afm-price-card{padding:.73rem;min-height:145px}.afm-price-value{font-size:1rem}.afm-pricing-actions{width:100%}.afm-pricing-actions>a{flex:1}.afm-pricing-header h2{font-size:1.03rem}}
@media(max-width:360px){.afm-price-grid{grid-template-columns:1fr}.afm-price-card{min-height:auto}}

/* R77 compact dashboard. Preserve all five real prices, keep existing stats visible. */
.dashboard-page .afm-pricing-section {
  margin: .48rem 0 .85rem;
  padding: .58rem .74rem;
  border-radius: 13px;
}
.dashboard-page .afm-pricing-header {
  margin-bottom: .48rem;
  gap: .4rem;
}
.dashboard-page .afm-pricing-header h2 {font-size:.94rem; margin-bottom:.12rem}
.dashboard-page .afm-pricing-header p {font-size:.71rem;line-height:1.4}
.dashboard-page .afm-pricing-actions {gap:.42rem}
.dashboard-page .afm-pricing-actions .afm-pricing-reload,
.dashboard-page .afm-pricing-actions .afm-pricing-open {
  font-size:.74rem;
  padding:.35rem .68rem;
  line-height:1.35;
}
.dashboard-page .afm-price-grid {
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:.42rem;
}
.dashboard-page .afm-price-card {
  gap:.26rem;
  min-height:98px;
  padding:.48rem .56rem;
  border-radius:10px;
  box-shadow:0 2px 9px rgba(22,53,59,.03);
}
.dashboard-page .afm-price-head {gap:.2rem; align-items:center}
.dashboard-page .afm-price-name {font-size:.75rem;line-height:1.4}
.dashboard-page .afm-price-symbol {font-size:.57rem;padding:.08rem .2rem}
.dashboard-page .afm-price-value {font-size:.92rem;line-height:1.35}
.dashboard-page .afm-price-change {font-size:.63rem;line-height:1.3}
.dashboard-page .afm-price-time {font-size:.58rem;line-height:1.35}
.dashboard-page .stat-grid {margin-bottom:.38rem}
@media (min-width:1024px) {
  .dashboard-page .stat-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:.62rem}
  .dashboard-page .stat {
    min-height:94px;
    padding:.62rem .76rem;
    gap:.54rem;
    flex-direction:row;
  }
  .dashboard-page .stat-icon {width:38px;height:38px}
  .dashboard-page .stat strong {font-size:1.6rem}
  .dashboard-page .stat small {font-size:.61rem}
}
@media (max-width:1200px) and (min-width:701px) {
  .dashboard-page .afm-price-grid {grid-template-columns:repeat(5,minmax(0,1fr))}
  .dashboard-page .afm-price-value {font-size:.81rem}
  .dashboard-page .afm-price-name {font-size:.68rem}
}
@media (max-width:700px) {
  .dashboard-page .afm-pricing-section {padding:.58rem}
  .dashboard-page .afm-price-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-page .afm-price-card {min-height:88px;padding:.5rem}
  .dashboard-page .afm-price-value {font-size:.89rem}
}
@media (max-width:360px) {
  .dashboard-page .afm-price-grid {grid-template-columns:1fr}
}

/* R78 -- three permitted AFM Flow cards. Vendor/office prices are portal-only. */
.dashboard-page .afm-price-grid {
  max-width: 750px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}
@media (max-width:1200px) and (min-width:701px) {
  .dashboard-page .afm-price-grid {
    max-width: 750px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width:700px) {
  .dashboard-page .afm-price-grid {
    max-width:none;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:360px) {
  .dashboard-page .afm-price-grid {grid-template-columns:1fr}
}

/* R79: five internal common cards including all three Kerman finished items. */
.dashboard-page .afm-price-grid {
 max-width: none;
 grid-template-columns: repeat(5,minmax(0,1fr));
 gap:.46rem;
}
@media (max-width:1200px) and (min-width:701px) {
 .dashboard-page .afm-price-grid {max-width:none;grid-template-columns:repeat(5,minmax(0,1fr))}
 .dashboard-page .afm-price-name {font-size:.67rem}
 .dashboard-page .afm-price-value {font-size:.83rem}
}
@media (max-width:700px) {
 .dashboard-page .afm-price-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:360px) {
 .dashboard-page .afm-price-grid {grid-template-columns:1fr}
}
