.sam-profile-pro{--sam-profile-primary:#111827;--sam-profile-accent:#2563eb;--sam-profile-bg:#f8fafc;--sam-profile-card:#fff;--sam-profile-sidebar:#fff;--sam-profile-text:#1f2937;--sam-profile-muted:#64748b;--sam-profile-border:#e5e7eb;--sam-profile-menu-active:#111827;--sam-profile-menu-active-text:#fff;--sam-profile-menu-hover:#f1f5f9;--sam-profile-avatar-ring:#e2e8f0;--sam-profile-chart-purchase:#2563eb;--sam-profile-chart-view:#10b981;--sam-profile-chart-grid:#e5e7eb;--sam-profile-success:#047857;--sam-profile-warning:#b45309;--sam-profile-danger:#b91c1c;--sam-profile-field-bg:#fff;--sam-profile-button:#111827;--sam-profile-button-text:#fff;--sam-profile-radius:18px;display:grid;grid-template-columns:minmax(230px,280px) minmax(0,1fr);gap:22px;background:var(--sam-profile-bg);padding:22px;border-radius:calc(var(--sam-profile-radius) + 6px);color:var(--sam-profile-text);box-sizing:border-box}.sam-profile-pro *{box-sizing:border-box}.sam-profile-sidebar{background:var(--sam-profile-sidebar);border:1px solid var(--sam-profile-border);border-radius:var(--sam-profile-radius);padding:18px;align-self:start;position:sticky;top:22px}.sam-profile-avatar{display:flex;align-items:center;gap:12px;padding:5px 4px 18px;border-bottom:1px solid var(--sam-profile-border)}.sam-profile-avatar img,.sam-profile-avatar-current{width:104px;height:104px;border-radius:50%;object-fit:cover;border:4px solid var(--sam-profile-avatar-ring);background:#fff}.sam-profile-sidebar .sam-profile-avatar img{width:62px;height:62px;border-width:3px}.sam-profile-user-name{display:block;color:var(--sam-profile-primary);font-size:16px}.sam-profile-welcome{display:block;color:var(--sam-profile-muted);font-size:12px;margin-top:4px}.sam-profile-nav{display:flex;flex-direction:column;gap:6px;margin-top:14px}.sam-profile-nav a{display:flex;align-items:center;min-height:42px;padding:9px 12px;border-radius:12px;color:var(--sam-profile-text);text-decoration:none;transition:.2s ease}.sam-profile-nav a:hover{background:var(--sam-profile-menu-hover)}.sam-profile-nav a.active{background:var(--sam-profile-menu-active);color:var(--sam-profile-menu-active-text)}.sam-profile-nav a.logout{margin-top:8px;color:var(--sam-profile-danger);border-top:1px solid var(--sam-profile-border);border-radius:0;padding-top:14px}.sam-profile-content{min-width:0}.sam-profile-card{background:var(--sam-profile-card);border:1px solid var(--sam-profile-border);border-radius:var(--sam-profile-radius);padding:20px;box-shadow:0 7px 24px rgba(15,23,42,.035)}.sam-profile-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.sam-profile-section-title,.sam-profile-chart-title{margin:0;color:var(--sam-profile-primary);font-size:18px}.sam-profile-muted,.sam-profile-help{color:var(--sam-profile-muted);font-size:12px}.sam-profile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.sam-profile-stat{background:var(--sam-profile-card);border:1px solid var(--sam-profile-border);border-radius:var(--sam-profile-radius);padding:17px}.sam-profile-stat-label{display:block;color:var(--sam-profile-muted);font-size:12px;margin-bottom:7px}.sam-profile-stat-value{display:block;color:var(--sam-profile-primary);font-size:18px;overflow-wrap:anywhere}.sam-profile-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}.sam-profile-chart-card{min-height:300px}.sam-profile-chart{display:block;width:100%;height:225px;max-width:100%}.sam-profile-dashboard-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}.sam-profile-orders{display:flex;flex-direction:column;gap:10px}.sam-profile-order{display:flex;justify-content:space-between;gap:14px;align-items:center;border:1px solid var(--sam-profile-border);border-radius:14px;padding:13px}.sam-profile-order-main{display:flex;flex-direction:column;gap:5px}.sam-profile-order-number{color:var(--sam-profile-primary)}.sam-profile-order-meta{color:var(--sam-profile-muted);font-size:12px}.sam-profile-order-side{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.sam-profile-status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;background:#f1f5f9}.sam-profile-status.success{color:var(--sam-profile-success);background:color-mix(in srgb,var(--sam-profile-success) 10%,white)}.sam-profile-status.warning{color:var(--sam-profile-warning);background:color-mix(in srgb,var(--sam-profile-warning) 10%,white)}.sam-profile-status.danger{color:var(--sam-profile-danger);background:color-mix(in srgb,var(--sam-profile-danger) 10%,white)}.sam-profile-order-total,.sam-profile-price{color:var(--sam-profile-primary)}.sam-profile-btn,.sam-profile-pro button,.sam-profile-pro .button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 13px;border:0;border-radius:11px;background:var(--sam-profile-button);color:var(--sam-profile-button-text)!important;text-decoration:none;cursor:pointer}.sam-profile-btn.secondary{background:#f1f5f9;color:var(--sam-profile-primary)!important}.sam-profile-link{color:var(--sam-profile-accent);text-decoration:none}.sam-profile-link.danger{color:var(--sam-profile-danger);background:none!important;padding:0!important;min-height:0!important}.sam-profile-recent-products{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sam-profile-product{display:flex;gap:9px;align-items:center;border:1px solid var(--sam-profile-border);border-radius:13px;padding:8px;text-decoration:none;color:var(--sam-profile-text)}.sam-profile-product-img img{width:52px;height:52px;border-radius:10px;object-fit:cover}.sam-profile-product strong{display:block;font-size:12px}.sam-profile-product small{display:block;color:var(--sam-profile-muted);margin-top:4px}.sam-profile-empty{padding:20px;text-align:center;color:var(--sam-profile-muted);border:1px dashed var(--sam-profile-border);border-radius:13px}.sam-profile-section-card{min-height:260px}.sam-profile-address-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sam-profile-address{border:1px solid var(--sam-profile-border);border-radius:14px;padding:17px;line-height:2}.sam-profile-address h3{margin:0 0 10px}.sam-profile-address .sam-profile-btn{margin-top:14px}.sam-profile-avatar-settings{display:flex;align-items:center;gap:18px;padding:16px;border:1px solid var(--sam-profile-border);border-radius:15px;margin-bottom:20px}.sam-profile-avatar-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sam-profile-avatar-delete{display:inline-block;margin-right:8px}.sam-profile-pro input[type=text],.sam-profile-pro input[type=email],.sam-profile-pro input[type=password],.sam-profile-pro input[type=tel],.sam-profile-pro input[type=file],.sam-profile-pro select,.sam-profile-pro textarea{background:var(--sam-profile-field-bg);border:1px solid var(--sam-profile-border);border-radius:10px;min-height:42px;padding:9px 11px;color:var(--sam-profile-text);max-width:100%}.sam-profile-pro .woocommerce-form-row{margin-bottom:12px}.sam-profile-notice{padding:12px 15px;border-radius:12px;margin-bottom:14px}.sam-profile-notice.ok{background:#ecfdf5;color:#047857}.sam-profile-notice.bad{background:#fef2f2;color:#b91c1c}.sam-profile-login{max-width:540px;margin:0 auto}.sam-profile-warning{padding:16px;background:#fff7ed;color:#9a3412;border-radius:12px}.sam-profile-demo-avatar{width:62px;height:62px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e2e8f0;color:#334155;font-size:24px;font-weight:800;border:3px solid var(--sam-profile-avatar-ring)}
@media(max-width:1024px){.sam-profile-pro{grid-template-columns:220px minmax(0,1fr);padding:16px}.sam-profile-stats{grid-template-columns:repeat(2,1fr)}.sam-profile-chart-grid,.sam-profile-dashboard-grid{grid-template-columns:1fr}}
@media(max-width:767px){.sam-profile-pro{display:block;padding:10px;border-radius:16px}.sam-profile-sidebar{position:static;padding:12px;margin-bottom:12px}.sam-profile-sidebar .sam-profile-avatar{padding-bottom:12px}.sam-profile-nav{flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:3px;scrollbar-width:none}.sam-profile-nav::-webkit-scrollbar{display:none}.sam-profile-nav a{white-space:nowrap;min-height:38px;padding:7px 10px}.sam-profile-nav a.logout{margin:0;border:0;border-radius:12px;padding-top:7px}.sam-profile-mobile-grid .sam-profile-nav{display:grid;grid-template-columns:1fr 1fr;overflow:visible}.sam-profile-stats{grid-template-columns:1fr 1fr;gap:8px}.sam-profile-stat{padding:13px}.sam-profile-stat-value{font-size:15px}.sam-profile-chart-grid{gap:10px}.sam-profile-card{padding:14px}.sam-profile-chart-card{min-height:260px}.sam-profile-chart{height:195px}.sam-profile-order{align-items:flex-start;flex-direction:column}.sam-profile-order-side{width:100%;justify-content:flex-start}.sam-profile-address-grid{grid-template-columns:1fr}.sam-profile-avatar-settings{align-items:flex-start;flex-direction:column}.sam-profile-avatar-form{width:100%}.sam-profile-recent-products{grid-template-columns:1fr}}


/* ===== Samaneh Profile Studio 2.3.4 consolidated fixes ===== */
.sam-profile-pro{--sam-profile-card-paid:#047857;--sam-profile-card-pending:#b45309;--sam-profile-card-cancelled:#b91c1c;--sam-profile-card-points:#7c3aed}
.sam-profile-status-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.sam-profile-status-cards .sam-profile-kpi-card{position:relative;display:flex;align-items:stretch;gap:12px;min-height:112px;padding:17px;text-decoration:none;color:inherit;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.sam-profile-status-cards a.sam-profile-kpi-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,23,42,.08)}
.sam-profile-kpi-accent{width:5px;min-width:5px;border-radius:999px;background:var(--sam-profile-accent)}
.sam-profile-kpi-card.tone-paid .sam-profile-kpi-accent{background:var(--sam-profile-card-paid)}
.sam-profile-kpi-card.tone-pending .sam-profile-kpi-accent{background:var(--sam-profile-card-pending)}
.sam-profile-kpi-card.tone-cancelled .sam-profile-kpi-accent{background:var(--sam-profile-card-cancelled)}
.sam-profile-kpi-card.tone-points .sam-profile-kpi-accent{background:var(--sam-profile-card-points)}
.sam-profile-kpi-body{display:flex;flex-direction:column;justify-content:center;min-width:0}
.sam-profile-kpi-card .sam-profile-stat-label{margin-bottom:8px}
.sam-profile-kpi-card .sam-profile-stat-value{font-size:24px;line-height:1.25}
.sam-profile-kpi-note{display:block;margin-top:7px;color:var(--sam-profile-muted);font-size:11px;line-height:1.7}
.sam-profile-dashboard-single{grid-template-columns:1fr!important}
.sam-profile-last-order{margin-top:14px;padding-top:13px;border-top:1px solid var(--sam-profile-border);color:var(--sam-profile-muted);font-size:12px}
.sam-profile-last-order strong{color:var(--sam-profile-text)}
/* Profile 2.3.2 intentionally contains no chart UI. */
.sam-profile-chart-grid,.sam-profile-chart-card,.sam-profile-chart{display:none!important}
@media(max-width:1024px){.sam-profile-status-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.sam-profile-status-cards{grid-template-columns:1fr 1fr;gap:8px}.sam-profile-status-cards .sam-profile-kpi-card{min-height:96px;padding:13px;gap:9px}.sam-profile-kpi-card .sam-profile-stat-value{font-size:19px}.sam-profile-kpi-note{font-size:10px}}
@media(max-width:390px){.sam-profile-status-cards{grid-template-columns:1fr}.sam-profile-status-cards .sam-profile-kpi-card{min-height:86px}}

/* Reserved commerce slots: Wishlist + Product Compare */
.sam-profile-future-slot{display:flex;align-items:center;gap:20px;min-height:190px;padding:28px!important;position:relative;overflow:hidden}
.sam-profile-future-icon{width:74px;height:74px;min-width:74px;border-radius:22px;display:flex;align-items:center;justify-content:center;font-size:38px;line-height:1;background:var(--sam-profile-soft,#f5f7fb);border:1px solid rgba(15,23,42,.08);color:var(--sam-profile-primary,#111827)}
.sam-profile-future-copy{min-width:0}.sam-profile-future-copy .sam-profile-section-title{margin:8px 0 7px}
.sam-profile-future-badge{display:inline-flex;align-items:center;min-height:28px;padding:4px 10px;border-radius:999px;background:#f8fafc;border:1px solid #e5e7eb;font-size:12px;font-weight:700;color:#64748b}
.sam-profile-future-slot:after{content:"";position:absolute;left:-42px;bottom:-58px;width:150px;height:150px;border-radius:50%;background:rgba(148,163,184,.08);pointer-events:none}
@media(max-width:640px){.sam-profile-future-slot{align-items:flex-start;gap:14px;min-height:0;padding:20px!important}.sam-profile-future-icon{width:58px;height:58px;min-width:58px;border-radius:18px;font-size:30px}.sam-profile-future-copy .sam-profile-section-title{font-size:18px}}

/* Defensive layout rules: keep theme/Elementor/global link/card CSS from collapsing the profile. */
.samaneh-profile-template .sam-profile-pro,
.elementor-widget-samaneh-profile-pro .sam-profile-pro{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  direction:rtl!important;
}
.samaneh-profile-template .sam-profile-content,
.elementor-widget-samaneh-profile-pro .sam-profile-content{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  position:relative!important;
  overflow:visible!important;
}
.samaneh-profile-template .sam-profile-status-cards,
.elementor-widget-samaneh-profile-pro .sam-profile-status-cards{
  display:grid!important;
  width:100%!important;
  min-width:0!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:stretch!important;
  margin:0 0 18px!important;
  padding:0!important;
  position:relative!important;
}
.samaneh-profile-template .sam-profile-status-cards > .sam-profile-kpi-card,
.elementor-widget-samaneh-profile-pro .sam-profile-status-cards > .sam-profile-kpi-card{
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:112px!important;
  height:auto!important;
  margin:0!important;
  padding:17px!important;
  float:none!important;
  clear:none!important;
  position:relative!important;
  inset:auto!important;
  transform:none;
  box-sizing:border-box!important;
  overflow:hidden!important;
  background:var(--sam-profile-card)!important;
  border:1px solid var(--sam-profile-border)!important;
  border-radius:var(--sam-profile-radius)!important;
  box-shadow:0 7px 24px rgba(15,23,42,.035)!important;
  text-align:right!important;
  justify-self:stretch!important;
  align-self:stretch!important;
}
.samaneh-profile-template .sam-profile-status-cards > a.sam-profile-kpi-card:hover,
.elementor-widget-samaneh-profile-pro .sam-profile-status-cards > a.sam-profile-kpi-card:hover{
  transform:translateY(-2px)!important;
}
.samaneh-profile-template .sam-profile-kpi-body,
.elementor-widget-samaneh-profile-pro .sam-profile-kpi-body{
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  overflow:visible!important;
}
.samaneh-profile-template .sam-profile-dashboard-grid,
.elementor-widget-samaneh-profile-pro .sam-profile-dashboard-grid{
  width:100%!important;
  min-width:0!important;
}
.samaneh-profile-template .sam-profile-dashboard-single,
.elementor-widget-samaneh-profile-pro .sam-profile-dashboard-single{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
}
.samaneh-profile-template .sam-profile-card,
.elementor-widget-samaneh-profile-pro .sam-profile-card{
  max-width:100%!important;
  min-width:0!important;
}
@media(max-width:1024px){
  .samaneh-profile-template .sam-profile-status-cards,
  .elementor-widget-samaneh-profile-pro .sam-profile-status-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:767px){
  .samaneh-profile-template .sam-profile-status-cards,
  .elementor-widget-samaneh-profile-pro .sam-profile-status-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .samaneh-profile-template .sam-profile-status-cards > .sam-profile-kpi-card,
  .elementor-widget-samaneh-profile-pro .sam-profile-status-cards > .sam-profile-kpi-card{min-height:96px!important;padding:13px!important}
}
@media(max-width:390px){
  .samaneh-profile-template .sam-profile-status-cards,
  .elementor-widget-samaneh-profile-pro .sam-profile-status-cards{grid-template-columns:1fr!important}
}
