/* ═══════════════════════════════════════════════════════════
   Faminab Subscription — Premium SaaS Pricing Experience
   Mobile-first · Conversion-focused · Full-bleed laptop/desktop
   ═══════════════════════════════════════════════════════════ */

.fm-sub {
  --fm-sub-accent: var(--ak-accent, #2dd4a8);
  --fm-sub-accent-rgb: var(--ak-accent-rgb);
  --fm-sub-accent-dim: rgba(var(--ak-accent-rgb), 0.14);
  --fm-sub-danger: #dc2626;
  --fm-sub-danger-soft: rgba(220, 38, 38, 0.12);
  --fm-sub-line: rgba(255, 255, 255, 0.1);
  --fm-sub-card: rgba(255, 255, 255, 0.06);
  --fm-sub-elev: rgba(255, 255, 255, 0.09);
  --fm-sub-text: var(--ak-text, var(--ab-text, #f4f4fa));
  --fm-sub-muted: var(--ak-text-muted, var(--ab-text-muted, #a8a8c0));
  --fm-sub-radius: 20px;
  --fm-sub-radius-sm: 14px;
  position: relative;
  width: 100%;
  min-width: 0;
}

[data-theme="light"] .fm-sub {
  --fm-sub-line: rgba(18, 19, 26, 0.09);
  --fm-sub-card: rgba(255, 255, 255, 0.78);
  --fm-sub-elev: #ffffff;
  --fm-sub-text: #12131a;
  --fm-sub-muted: #45465a;
  --fm-sub-accent-dim: rgba(var(--ak-accent-rgb), 0.16);
}

/* ——— Shell: break auth 460px trap ——— */
html:has(body.auth-body--sub),
body.auth-body.auth-body--sub {
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  max-width: 100%;
}

body.auth-body.auth-body--sub .auth-page {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 100dvh;
  overflow-x: hidden;
}

body.auth-body.auth-body--sub .auth-brand {
  display: none !important;
}

body.auth-body.auth-body--sub .auth-form-panel,
body.auth-body.auth-body--sub.page-alkemy .auth-form-panel,
body.auth-body.auth-body--sub.page-ak-glass.page-alkemy .auth-form-panel {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  background: transparent !important;
}

body.auth-body.auth-body--sub .auth-card.auth-card--sub,
body.auth-body.auth-body--sub.page-alkemy .auth-card.auth-card--sub,
body.auth-body.auth-body--sub.page-ak-glass.page-alkemy .auth-card.auth-card--sub {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

body.auth-body.auth-body--sub .auth-sub-panel.auth-form {
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ——— Page canvas ——— */
.fm-sub-canvas {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 1.25rem 1rem 7.5rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

.fm-sub-canvas::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 280px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 80% at 85% 0%, rgba(var(--fm-sub-accent-rgb), 0.18), transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 20%, rgba(99, 102, 241, 0.08), transparent 65%);
  z-index: 0;
}

.fm-sub-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .fm-sub-canvas {
    padding: 1.75rem clamp(1.5rem, 3.5vw, 3rem) 8rem;
  }
  .fm-sub-inner {
    max-width: min(1280px, 100%);
  }
}

@media (min-width: 1440px) {
  .fm-sub-inner {
    max-width: min(1360px, 100%);
  }
}

@media (min-width: 1920px) {
  .fm-sub-inner {
    max-width: 1480px;
  }
}

/* ——— Progress ——— */
.fm-sub-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--fm-sub-line);
  background: var(--fm-sub-card);
  backdrop-filter: blur(12px);
}

.fm-sub-progress-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
  font-size: 0.68rem;
  color: var(--fm-sub-muted);
}

.fm-sub-progress-item.is-done,
.fm-sub-progress-item.is-active {
  color: var(--fm-sub-text);
  font-weight: 700;
}

.fm-sub-progress-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  border: 1px solid var(--fm-sub-line);
}

.fm-sub-progress-item.is-done .fm-sub-progress-dot {
  background: var(--fm-sub-accent);
  border-color: var(--fm-sub-accent);
  color: #06251c;
}

.fm-sub-progress-item.is-active .fm-sub-progress-dot {
  border-color: var(--fm-sub-accent);
  box-shadow: 0 0 0 3px var(--fm-sub-accent-dim);
  color: var(--fm-sub-accent);
}

/* ——— Intro ——— */
.fm-sub-intro {
  margin-bottom: 1.5rem;
}

.fm-sub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fm-sub-accent);
  background: var(--fm-sub-accent-dim);
  border: 1px solid rgba(var(--fm-sub-accent-rgb), 0.28);
}

[data-theme="light"] .fm-sub-kicker {
  color: var(--ak-accent-dim, #0f766e);
  background: rgba(var(--ak-accent-rgb), 0.2);
  border-color: rgba(var(--ak-accent-rgb), 0.45);
}

.fm-sub-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--fm-sub-text);
}

.fm-sub-desc {
  margin: 0;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fm-sub-muted);
}

/* ——— User type ——— */
.fm-sub-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .fm-sub-types {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.fm-sub-type {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.85rem;
  border-radius: var(--fm-sub-radius-sm);
  border: 1.5px solid var(--fm-sub-line);
  background: var(--fm-sub-card);
  color: var(--fm-sub-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s;
}

.fm-sub-type:hover {
  border-color: rgba(var(--fm-sub-accent-rgb), 0.45);
}

.fm-sub-type.is-on {
  border-color: var(--fm-sub-accent);
  background: linear-gradient(145deg, var(--fm-sub-accent-dim), var(--fm-sub-card));
  box-shadow: 0 0 0 3px var(--fm-sub-accent-dim);
}

.fm-sub-type.is-locked {
  cursor: default;
  opacity: 0.55;
}

.fm-sub-type-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--fm-sub-accent-dim);
  color: var(--fm-sub-accent);
  font-size: 1.05rem;
}

.fm-sub-type.is-on .fm-sub-type-ico {
  background: var(--fm-sub-accent);
  color: #06251c;
}

.fm-sub-type-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.fm-sub-type-label small {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--fm-sub-muted);
}

.fm-sub-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--fm-sub-accent-rgb), 0.35);
  background: var(--fm-sub-accent-dim);
  color: var(--fm-sub-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.fm-sub-role-chip i {
  color: var(--fm-sub-accent);
}

/* ——— Plans grid ——— */
.fm-sub-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  margin-bottom: 1.25rem;
}

@media (min-width: 720px) {
  .fm-sub-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: stretch;
  }
}

@media (min-width: 1024px) {
  .fm-sub-plans {
    gap: 1.35rem;
  }
}

/* ——— Plan card ——— */
.fm-sub-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 1.25rem 1.2rem 1.2rem;
  border-radius: var(--fm-sub-radius);
  border: 1.5px solid var(--fm-sub-line);
  background: var(--fm-sub-elev);
  color: inherit;
  text-align: right;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
  overflow: hidden;
}

.fm-sub-plan:hover {
  border-color: rgba(var(--fm-sub-accent-rgb), 0.5);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.fm-sub-plan.is-selected {
  border-color: var(--fm-sub-accent);
  box-shadow:
    0 0 0 3px var(--fm-sub-accent-dim),
    0 16px 36px rgba(0, 0, 0, 0.1);
}

.fm-sub-plan.is-featured {
  border-color: rgba(var(--fm-sub-accent-rgb), 0.55);
  background:
    linear-gradient(165deg, rgba(var(--fm-sub-accent-rgb), 0.12) 0%, var(--fm-sub-elev) 42%);
}

.fm-sub-plan.is-featured.is-selected {
  border-color: var(--fm-sub-accent);
}

.fm-sub-ribbon {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--fm-sub-accent);
  color: #06251c;
  box-shadow: 0 6px 16px rgba(var(--fm-sub-accent-rgb), 0.35);
}

.fm-sub-plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-left: 0.25rem;
}

.fm-sub-plan.is-featured .fm-sub-plan-top {
  padding-top: 0.35rem;
}

.fm-sub-plan-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--fm-sub-text);
}

.fm-sub-plan-dur {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--fm-sub-muted);
}

.fm-sub-plan-blurb {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--fm-sub-muted);
}

.fm-sub-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--fm-sub-line);
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
}

.fm-sub-plan.is-selected .fm-sub-radio {
  border-color: var(--fm-sub-accent);
  background: var(--fm-sub-accent);
}

.fm-sub-plan.is-selected .fm-sub-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06251c;
}

/* Discount splash */
.fm-sub-deal {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: var(--fm-sub-danger-soft);
  border: 1px solid rgba(220, 38, 38, 0.22);
}

.fm-sub-deal-pct {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  min-width: 3.1rem;
  height: 3.1rem;
  border-radius: 12px;
  background: var(--fm-sub-danger);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.35);
  animation: fmSubPulse 2.4s ease-in-out infinite;
}

.fm-sub-deal-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fm-sub-danger);
}

.fm-sub-deal-copy span {
  font-weight: 500;
  color: var(--fm-sub-muted);
  font-size: 0.74rem;
}

@keyframes fmSubPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

@keyframes fmSubSpark {
  0% { transform: rotate(0deg) scale(0.6); opacity: 0.35; }
  50% { transform: rotate(180deg) scale(1.15); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.6); opacity: 0.35; }
}

.fm-sub-deal {
  position: relative;
  overflow: hidden;
}

.fm-sub-deal-badge {
  position: absolute;
  inset: -40% -20%;
  pointer-events: none;
  background: radial-gradient(circle at 30% 40%, rgba(220, 38, 38, 0.18), transparent 55%);
  animation: fmSubSpark 4.5s linear infinite;
}

.fm-sub-deal-pct {
  animation: fmSubPulse 1.6s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.fm-sub-status--lock {
  border-color: color-mix(in srgb, var(--fm-sub-danger) 40%, transparent);
  background: var(--fm-sub-danger-soft);
}

.fm-sub-status-desc--warn {
  color: var(--fm-sub-danger) !important;
  font-weight: 600;
}

.fm-sub-days {
  color: var(--fm-sub-accent) !important;
  font-weight: 700;
}

body.fm-sub-hard-locked .db-nav-item.is-sub-locked {
  opacity: 0.45;
  pointer-events: none;
}

body.fm-sub-hard-locked .db-section:not(#secSubscription) {
  display: none !important;
}

body.fm-sub-hard-locked #secSubscription {
  display: block !important;
}

.fm-sub-extras {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

.fm-sub-code-row {
  font-size: 0.9rem;
  color: var(--fm-sub-muted);
}

.fm-sub-switch,
.fm-sub-add-role {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.fm-sub-switch-label {
  font-size: 0.82rem;
  color: var(--fm-sub-muted);
  width: 100%;
}

.fm-sub-switch-btn,
.fm-sub-add-btn {
  border: 1px solid var(--fm-sub-line);
  background: var(--fm-sub-card);
  color: var(--fm-sub-text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  cursor: pointer;
}

.fm-sub-switch-btn.is-on,
.fm-sub-add-btn:hover,
.fm-sub-switch-btn:hover {
  border-color: var(--fm-sub-accent);
  background: var(--fm-sub-accent-dim);
}

@media (prefers-reduced-motion: reduce) {
  .fm-sub-deal-pct { animation: none; }
  .fm-sub-deal-badge { animation: none; }
  .fm-sub-plan { transition: none; }
  .fm-sub-plan:hover { transform: none; }
}

/* Prices */
.fm-sub-prices {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fm-sub-price {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--fm-sub-text);
  line-height: 1.2;
}

.fm-sub-price-old {
  font-size: 0.92rem;
  text-decoration: line-through;
  color: var(--fm-sub-muted);
  opacity: 0.85;
}

.fm-sub-save {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.15rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fm-sub-accent);
  background: var(--fm-sub-accent-dim);
}

.fm-sub-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.fm-sub-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--fm-sub-muted);
}

.fm-sub-perks i {
  color: var(--fm-sub-accent);
  font-size: 0.95rem;
  margin-top: 0.1rem;
}

.fm-sub-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(var(--fm-sub-accent-rgb), 0.4);
  background: var(--fm-sub-accent-dim);
  color: var(--fm-sub-text);
  font-weight: 800;
  font-size: 0.9rem;
  pointer-events: none;
}

.fm-sub-plan.is-selected .fm-sub-card-cta {
  background: var(--fm-sub-accent);
  border-color: var(--fm-sub-accent);
  color: #06251c;
}

.fm-sub-empty {
  padding: 1.25rem;
  border-radius: var(--fm-sub-radius);
  border: 1px dashed var(--fm-sub-line);
  color: var(--fm-sub-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ——— Trust ——— */
.fm-sub-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0.5rem 0 1.25rem;
}

@media (min-width: 640px) {
  .fm-sub-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fm-sub-trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--fm-sub-line);
  background: var(--fm-sub-card);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fm-sub-muted);
}

.fm-sub-trust-item i {
  color: var(--fm-sub-accent);
  font-size: 1.05rem;
}

/* ——— Sticky checkout ——— */
.fm-sub-dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--ak-bg, #12141c) 88%, transparent) 35%);
  pointer-events: none;
}

[data-theme="light"] .fm-sub-dock {
  background: linear-gradient(180deg, transparent, rgba(235, 236, 239, 0.94) 32%);
}

.fm-sub-dock-inner {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--fm-sub-line);
  background: color-mix(in srgb, var(--fm-sub-elev) 94%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.14);
}

@media (min-width: 1024px) {
  .fm-sub-dock-inner {
    max-width: min(1280px, calc(100% - 3rem));
  }
}

@media (min-width: 1440px) {
  .fm-sub-dock-inner {
    max-width: min(1360px, calc(100% - 4rem));
  }
}

@media (min-width: 720px) {
  .fm-sub-dock-inner {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
  }
}

.fm-sub-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  flex: 1;
  min-width: 0;
}

.fm-sub-summary-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.fm-sub-summary-label {
  font-size: 0.78rem;
  color: var(--fm-sub-muted);
}

.fm-sub-summary-value {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--fm-sub-text);
}

.fm-sub-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fm-sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--fm-sub-danger-soft);
  color: var(--fm-sub-danger);
}

.fm-sub-chip--muted {
  background: var(--fm-sub-accent-dim);
  color: var(--fm-sub-muted);
}

.fm-sub-actions {
  display: flex;
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 720px) {
  .fm-sub-actions {
    width: auto;
  }
}

.fm-sub-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 50px;
  width: 100%;
  padding-inline: 1.5rem;
  border: 0;
  border-radius: 14px;
  background: var(--fm-sub-accent);
  color: #06251c;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(var(--fm-sub-accent-rgb), 0.28);
  transition: filter 0.2s, transform 0.2s;
}

.fm-sub-pay:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.fm-sub-pay:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (min-width: 720px) {
  .fm-sub-pay {
    width: auto;
    min-width: 240px;
  }
}

/* Dashboard reuse */
.fm-sub-status {
  padding: 0.95rem 1rem;
  border-radius: var(--fm-sub-radius);
  border: 1px solid var(--fm-sub-line);
  background: var(--fm-sub-card);
  margin-bottom: 1rem;
}

.fm-sub-status-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--fm-sub-text);
}

.fm-sub-status--active .fm-sub-status-title { color: var(--fm-sub-accent); }

.fm-sub-status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  font-size: 0.82rem;
  color: var(--fm-sub-muted);
}

.fm-sub-status-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--fm-sub-muted);
}

.fm-sub-buy {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   Laptop fit: no vertical scroll (≤900px tall / ≥1024 wide)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) and (max-height: 900px) {
  body.auth-body.auth-body--sub,
  html:has(body.auth-body--sub) {
    height: 100%;
    max-height: 100dvh;
    overflow: hidden !important;
  }

  body.auth-body.auth-body--sub .auth-page,
  body.auth-body.auth-body--sub .auth-form-panel,
  body.auth-body.auth-body--sub .auth-card.auth-card--sub {
    height: 100%;
    max-height: 100dvh;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.auth-body.auth-body--sub .auth-sub-panel.auth-form {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .fm-sub-canvas {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100dvh;
    padding: 0.65rem clamp(1rem, 2.5vw, 2rem) 0.75rem;
    overflow: hidden;
    box-sizing: border-box;
  }

  .fm-sub-canvas::before {
    height: 160px;
    opacity: 0.7;
  }

  .fm-sub-inner {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-height: 0;
    max-width: min(1200px, 100%);
    overflow: visible;
  }

  /* حذف محتوای اضافه روی لپ‌تاپ */
  .fm-sub-progress {
    display: none;
  }

  .fm-sub-intro {
    flex-shrink: 0;
    margin-bottom: 0.45rem;
  }

  .fm-sub-kicker {
    margin-bottom: 0.25rem;
    padding: 0.18rem 0.5rem;
    font-size: 0.68rem;
  }

  .fm-sub-title {
    margin: 0 0 0.15rem;
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    line-height: 1.25;
  }

  .fm-sub-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    max-width: 36rem;
  }

  .fm-sub-role-chip {
    flex-shrink: 0;
    margin-bottom: 0.45rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.74rem;
  }

  .fm-sub-plans {
    flex: 0 1 auto;
    min-height: 0;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
    align-items: start;
    align-content: start;
  }

  .fm-sub-plan {
    gap: 0.4rem;
    padding: 0.75rem 0.9rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    height: auto;
    max-height: 100%;
    overflow: hidden;
  }

  .fm-sub-plan:hover {
    transform: none;
  }

  .fm-sub-ribbon {
    top: 0.55rem;
    left: 0.55rem;
    padding: 0.18rem 0.5rem;
    font-size: 0.65rem;
  }

  .fm-sub-plan.is-featured .fm-sub-plan-top {
    padding-top: 0.15rem;
  }

  .fm-sub-plan-name {
    font-size: 1rem;
  }

  .fm-sub-plan-dur {
    margin-top: 0.1rem;
    font-size: 0.74rem;
  }

  .fm-sub-plan-blurb {
    display: none;
  }

  .fm-sub-deal {
    gap: 0.45rem;
    padding: 0.4rem 0.55rem;
    border-radius: 10px;
  }

  .fm-sub-deal-pct {
    min-width: 2.4rem;
    height: 2.4rem;
    font-size: 0.82rem;
    border-radius: 9px;
    box-shadow: none;
    animation: none;
  }

  .fm-sub-deal-copy {
    font-size: 0.72rem;
  }

  .fm-sub-deal-copy span {
    display: none;
  }

  .fm-sub-price {
    font-size: 1.25rem;
  }

  .fm-sub-price-old {
    font-size: 0.8rem;
  }

  .fm-sub-save {
    font-size: 0.66rem;
    padding: 0.15rem 0.45rem;
  }

  .fm-sub-perks {
    gap: 0.22rem;
  }

  .fm-sub-perks li {
    font-size: 0.76rem;
    line-height: 1.3;
  }

  .fm-sub-card-cta {
    min-height: 38px;
    font-size: 0.82rem;
    border-radius: 10px;
  }

  .fm-sub-trust {
    display: none;
  }

  /* checkout در جریان صفحه — نه fixed (بدون padding اضافه) */
  .fm-sub-dock {
    position: static;
    flex-shrink: 0;
    margin-top: auto;
    padding: 0 0 0.15rem;
    background: none;
    pointer-events: auto;
  }

  .fm-sub-dock-inner {
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    max-width: none;
  }

  .fm-sub-summary-value {
    font-size: 1rem;
  }

  .fm-sub-pay {
    min-height: 44px;
    font-size: 0.92rem;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(var(--fm-sub-accent-rgb), 0.22);
  }
}

/* لپ‌تاپ خیلی کوتاه (مثل 1366×768) — فشرده، ولی کicker را پنهان نکن */
@media (min-width: 1024px) and (max-height: 780px) {
  .fm-sub-kicker {
    display: inline-flex;
    margin-bottom: 0.2rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.68rem;
  }

  .fm-sub-desc {
    display: none;
  }

  .fm-sub-role-chip {
    margin-bottom: 0.35rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.7rem;
  }

  .fm-sub-intro {
    margin-bottom: 0.3rem;
  }

  .fm-sub-title {
    font-size: 1.1rem;
  }

  .fm-sub-plan {
    gap: 0.3rem;
    padding: 0.6rem 0.75rem;
  }

  .fm-sub-deal {
    padding: 0.3rem 0.45rem;
  }

  .fm-sub-deal-pct {
    min-width: 2.1rem;
    height: 2.1rem;
    font-size: 0.75rem;
  }

  .fm-sub-price {
    font-size: 1.15rem;
  }

  .fm-sub-card-cta {
    display: none;
  }

  .fm-sub-perks li:nth-child(n + 3) {
    display: none;
  }

  .fm-sub-save {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fm-sub-dock-inner {
    padding: 0.5rem 0.75rem;
  }

  .fm-sub-pay {
    min-height: 40px;
    min-width: 180px;
    font-size: 0.88rem;
  }
}

/* پیش‌نمایش: نوار ابزار جمع‌وجور تا اسکرول نسازد */
@media (min-width: 1024px) and (max-height: 900px) {
  .sub-prev-tools {
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    gap: 0.35rem;
  }

  .sub-prev-tools .sub-prev-note {
    display: none;
  }

  .sub-prev-tools button {
    padding: 0.25rem 0.55rem;
  }

  body.auth-body.auth-body--sub:has(.sub-prev-tools) .auth-page,
  body.auth-body.auth-body--sub:has(.sub-prev-tools) .auth-form-panel,
  body.auth-body.auth-body--sub:has(.sub-prev-tools) .auth-card.auth-card--sub {
    height: calc(100dvh - 2.75rem);
    max-height: calc(100dvh - 2.75rem);
  }

  body.auth-body.auth-body--sub:has(.sub-prev-tools) .fm-sub-canvas {
    max-height: calc(100dvh - 2.75rem);
  }
}
