/**
 * MyVideoStudio — Customer Design System v3 (Fash-inspired)
 * v1.45.2 — Shared design layer applied across Dashboard, Gallery, Marketplace,
 * Credits, Profile, Settings, with the studio palette:
 *   Background: #F1F5F9 (gris clair)
 *   Surface:    #FFFFFF (blanc)
 *   Primary:    #3C50E0 (bleu)
 *   Ink:        #1C2434 (noir profond)
 *
 * This layer LOADS AFTER the page-specific CSS (dashboard, gallery…) and
 * gently overrides the shared primitives (cards, buttons, panels, badges)
 * to give every client page the Fash polish. Page-specific layouts are
 * preserved — only the visual primitives are upgraded.
 */

/* =====================================================================
   GLOBAL BACKGROUND — pull the studio background through the client area
   ===================================================================== */

.mvs-portal__main,
body.mvs-customer-area,
.mvs-portal {
  background: #F1F5F9 !important;
}

/* =====================================================================
   PAGE HEADERS — premium AI-app typography (Runway / Krea / Linear inspired)
   v1.45.3 — overrides the default portal title with a refined hierarchy
   ===================================================================== */

.mvs-portal__header {
  margin-bottom: 32px !important;
  padding-bottom: 22px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}
/* Subtle accent line — 60px blue underline anchored bottom-left */
.mvs-portal__header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #3C50E0, #5B6EF0);
  border-radius: 2px;
}

.mvs-portal__header-content { min-width: 0; flex: 1; }

/* Eyebrow — small uppercase tag above the title */
.mvs-portal__eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 10.5px !important;
  color: #64748B !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
}
.mvs-portal__eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: #3C50E0;
}

/* Title — Plus Jakarta sans-serif by default with optional italic accent */
.mvs-portal__title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(28px, 4.2vw, 44px) !important;
  color: #1C2434 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.02 !important;
  margin: 0 !important;
}
.mvs-portal__title em,
.mvs-portal__title-accent {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: #3C50E0 !important;
  letter-spacing: -0.01em !important;
  padding-right: 2px;
}

/* Subtitle — soft body, max 60ch */
.mvs-portal__subtitle {
  margin: 14px 0 0 !important;
  font-size: 15px !important;
  color: #475569 !important;
  letter-spacing: -0.005em !important;
  max-width: 60ch !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
}

.mvs-portal__header-actions {
  display: flex !important;
  gap: 8px !important;
  flex-shrink: 0;
  align-items: center;
}

/* The credits chip in the top-right gets a Runway-style pill */
.mvs-portal__header-actions .mvs-portal__btn--outline {
  background: #FFFFFF !important;
  color: #1C2434 !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 999px !important;
  height: 36px !important;
  padding: 0 14px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: border-color 130ms ease, background 130ms ease, color 130ms ease;
}
.mvs-portal__header-actions .mvs-portal__btn--outline:hover {
  border-color: #3C50E0 !important;
  background: #EFF4FB !important;
  color: #3C50E0 !important;
}
.mvs-portal__header-actions .mvs-portal__btn--outline svg {
  width: 13px !important;
  height: 13px !important;
  color: #3C50E0;
}

/* Page header on mobile */
@media (max-width: 768px) {
  .mvs-portal__header { margin-bottom: 22px !important; padding-bottom: 18px; }
  .mvs-portal__title { font-size: 28px !important; }
  .mvs-portal__subtitle { font-size: 14px !important; }
}

/* =====================================================================
   HIDE THE DASHBOARD HERO (v1.45.2 was too loud — the header is enough)
   ===================================================================== */
.mvs-portal__main > .mvs-fash-hero { display: none !important; }

/* =====================================================================
   TONE DOWN THE UGC PRESET CARD — match the studio palette
   v1.45.3 — replace the red/orange gradient with subtle stroke + ink
   ===================================================================== */
.mvs-ugc__preset-card {
  background: #1C2434 !important;
  border: 1px solid #1C2434 !important;
  color: #FFFFFF !important;
  box-shadow:
    0 8px 22px rgba(28, 36, 52, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  position: relative;
  overflow: hidden;
}
.mvs-ugc__preset-card::before {
  /* Very subtle blue accent corner glow */
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(60, 80, 224, 0.45) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.mvs-ugc__preset-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}
.mvs-ugc__preset-card .mvs-ugc__preset-label,
.mvs-ugc__preset-card .mvs-ugc__preset-sub {
  position: relative !important;
  z-index: 2 !important;
  color: #FFFFFF !important;
}

/* v1.45.9 — Video Generator quality picker replaced the old "Standard" gradient card.
   The new design uses .mvs-vidgen__quality-tabs (segmented control) which doesn't
   need any overrides here. */

/* =====================================================================
   FASH PRIMITIVES (reusable building blocks)
   ===================================================================== */

/* Hero card — gradient blue panel with Instrument Serif italic title
   (the "Standard" card from Video Generator, the dBank hero panel). */
.mvs-fash-hero {
  position: relative;
  border-radius: 24px;
  padding: 22px 24px;
  color: #FFFFFF;
  overflow: hidden;
  background:
    linear-gradient(135deg, #1E3FD9 0%, #3C50E0 100%);
  box-shadow: 0 10px 32px rgba(60, 80, 224, 0.18);
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.mvs-fash-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}
.mvs-fash-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.mvs-fash-hero__title {
  font-family: 'Instrument Serif', 'Plus Jakarta Sans', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.mvs-fash-hero__sub {
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.92;
  margin-top: 8px;
  max-width: 580px;
  position: relative;
  z-index: 1;
}

/* Variants */
.mvs-fash-hero--dark { background: linear-gradient(135deg, #1C2434 0%, #2E3A47 100%); box-shadow: 0 10px 32px rgba(28, 36, 52, 0.18); }
.mvs-fash-hero--white {
  background: #FFFFFF;
  color: #1C2434;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 14px rgba(28, 36, 52, 0.04);
}
.mvs-fash-hero--white::after { display: none; }

/* Card-in-card (translucent stat tile inside the hero panel — dBank pattern) */
.mvs-fash-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}
.mvs-fash-hero .mvs-fash-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mvs-fash-stat__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 6px;
}
.mvs-fash-stat__value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.mvs-fash-stat__delta {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  opacity: 0.85;
}

/* Outside-hero stat tile (white surface) */
.mvs-fash-tile {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px;
  transition: border-color 180ms ease, transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 180ms ease;
}
.mvs-fash-tile:hover {
  border-color: #CBD5E1;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(28, 36, 52, 0.06);
}
.mvs-fash-tile__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.mvs-fash-tile__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EFF4FB;
  color: #3C50E0;
}
.mvs-fash-tile__icon svg { width: 16px !important; height: 16px !important; }
.mvs-fash-tile__icon--green  { background: #DCFCE7; color: #16A34A; }
.mvs-fash-tile__icon--purple { background: #F3E8FF; color: #9333EA; }
.mvs-fash-tile__icon--orange { background: #FFEDD5; color: #EA580C; }
.mvs-fash-tile__icon--pink   { background: #FCE7F3; color: #DB2777; }
.mvs-fash-tile__label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.mvs-fash-tile__value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #1C2434;
  letter-spacing: -0.015em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mvs-fash-tile__sub {
  font-size: 12px;
  color: #64748B;
  margin-top: 6px;
}

/* Section header — used above lists / panels */
.mvs-fash-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 14px;
}
.mvs-fash-section__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #1C2434;
  letter-spacing: -0.015em;
  margin: 0;
}
.mvs-fash-section__title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #3C50E0;
  letter-spacing: -0.01em;
}
.mvs-fash-section__link {
  font-size: 12.5px;
  font-weight: 600;
  color: #3C50E0;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 180ms ease;
}
.mvs-fash-section__link:hover { gap: 8px; color: #2F40C7; }
.mvs-fash-section__link svg { width: 13px; height: 13px; }

/* List row — Activity / Tasks / Recent (dBank-style full-width row) */
.mvs-fash-list {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
}
.mvs-fash-list__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #F1F5F9;
  transition: background 130ms ease;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit;
}
.mvs-fash-list__row:last-child { border-bottom: none; }
.mvs-fash-list__row:hover { background: #F7F9FC; }
.mvs-fash-list__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EFF4FB;
  color: #3C50E0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.mvs-fash-list__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mvs-fash-list__avatar svg { width: 16px !important; height: 16px !important; }
.mvs-fash-list__avatar--green  { background: #DCFCE7; color: #16A34A; }
.mvs-fash-list__avatar--purple { background: #F3E8FF; color: #9333EA; }
.mvs-fash-list__avatar--orange { background: #FFEDD5; color: #EA580C; }
.mvs-fash-list__avatar--pink   { background: #FCE7F3; color: #DB2777; }
.mvs-fash-list__body { flex: 1; min-width: 0; }
.mvs-fash-list__title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1C2434;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mvs-fash-list__meta {
  font-size: 11.5px;
  color: #64748B;
  margin-top: 2px;
}
.mvs-fash-list__right {
  font-size: 13.5px;
  font-weight: 700;
  color: #1C2434;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.mvs-fash-list__right--green { color: #16A34A; }
.mvs-fash-list__right--red   { color: #DC2626; }
.mvs-fash-list__cta {
  font-size: 12px;
  font-weight: 600;
  color: #3C50E0;
  flex-shrink: 0;
  text-decoration: none !important;
}

/* Progress bar (Goals dBank-style) */
.mvs-fash-progress {
  height: 6px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.mvs-fash-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #3C50E0, #5B6EF0);
  border-radius: 999px;
  transition: width 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mvs-fash-progress--green .mvs-fash-progress__bar  { background: linear-gradient(90deg, #16A34A, #22C55E); }
.mvs-fash-progress--orange .mvs-fash-progress__bar { background: linear-gradient(90deg, #EA580C, #F59E0B); }
.mvs-fash-progress--purple .mvs-fash-progress__bar { background: linear-gradient(90deg, #9333EA, #A855F7); }

/* Pill badges */
.mvs-fash-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.mvs-fash-badge--primary  { background: #EFF4FB; border-color: #C7D2FE; color: #3C50E0; }
.mvs-fash-badge--success  { background: #DCFCE7; border-color: #86EFAC; color: #16A34A; }
.mvs-fash-badge--warning  { background: #FFEDD5; border-color: #FDBA74; color: #EA580C; }
.mvs-fash-badge--danger   { background: #FEE2E2; border-color: #FCA5A5; color: #991B1B; }
.mvs-fash-badge--ink      { background: #1C2434; border-color: #1C2434; color: #FFFFFF; }
.mvs-fash-badge--ghost    { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #FFFFFF; }

/* Primary button (dark Run-style — used as primary CTA across pages) */
.mvs-fash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  background: #1C2434;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.005em;
  text-decoration: none !important;
  transition: background 130ms ease, transform 80ms ease;
}
.mvs-fash-btn:hover { background: #000000; color: #FFFFFF; }
.mvs-fash-btn:active { transform: translateY(0.5px); }
.mvs-fash-btn svg { width: 15px !important; height: 15px !important; }
.mvs-fash-btn--primary { background: #3C50E0; }
.mvs-fash-btn--primary:hover { background: #2F40C7; }
.mvs-fash-btn--ghost {
  background: #FFFFFF;
  color: #1C2434;
  border: 1px solid #E2E8F0;
}
.mvs-fash-btn--ghost:hover { background: #F7F9FC; border-color: #CBD5E1; color: #1C2434; }
.mvs-fash-btn--sm { height: 36px; padding: 0 16px; font-size: 12.5px; }
.mvs-fash-btn--lg { height: 50px; padding: 0 26px; font-size: 15.5px; border-radius: 14px; }

/* Icon button (square) */
.mvs-fash-iconbtn {
  width: 36px;
  height: 36px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none !important;
  transition: background 130ms ease, color 130ms ease, border-color 130ms ease;
}
.mvs-fash-iconbtn:hover { background: #EFF4FB; color: #3C50E0; border-color: #3C50E0; }
.mvs-fash-iconbtn.is-danger:hover { background: #FEE2E2; color: #DC2626; border-color: #DC2626; }
.mvs-fash-iconbtn svg { width: 15px !important; height: 15px !important; }

/* =====================================================================
   PAGE-LEVEL OVERRIDES — upgrade existing components to Fash look
   ===================================================================== */

/* Cards/panels across all client pages — softer radius, no shadow,
   replaced with stroke + hover lift */
.mvs-card,
.mvs-dashboard-promax__card,
.mvs-gallery__panel,
.mvs-marketplace__panel,
.mvs-credits__panel,
.mvs-portal__panel,
.mvs-tool__panel {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

/* Page-level h1 / titles — Fash split (sans + Instrument Serif italic accent) */
.mvs-portal__page-title,
.mvs-dashboard-promax__page-title,
.mvs-gallery__page-title,
.mvs-marketplace__page-title,
.mvs-credits__page-title,
.mvs-tool__page-title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(22px, 3vw, 30px) !important;
  letter-spacing: -0.02em !important;
  color: #1C2434 !important;
  line-height: 1.15 !important;
}
.mvs-portal__page-title em,
.mvs-dashboard-promax__page-title em,
.mvs-tool__page-title em {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: #3C50E0 !important;
}

/* Numbers — tabular sans, never serif italic (per Naty's note) */
.mvs-stat-card__value,
.mvs-stat__value,
.mvs-dashboard-promax__stat-value,
.mvs-credits__balance-num {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.015em !important;
}

/* Primary CTAs on client pages adopt the Fash dark-pill shape */
.mvs-credits__btn--primary,
.mvs-marketplace__btn--primary,
.mvs-dashboard-promax__btn--primary,
.mvs-portal__btn--primary {
  background: #1C2434 !important;
  color: #FFFFFF !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  letter-spacing: -0.005em !important;
  box-shadow: none !important;
  transition: background 130ms ease, transform 80ms ease !important;
}
.mvs-credits__btn--primary:hover,
.mvs-marketplace__btn--primary:hover,
.mvs-dashboard-promax__btn--primary:hover,
.mvs-portal__btn--primary:hover {
  background: #000000 !important;
}

/* Secondary / ghost CTAs */
.mvs-credits__btn--outline,
.mvs-marketplace__btn--outline,
.mvs-portal__btn--outline {
  background: #FFFFFF !important;
  color: #1C2434 !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
}
.mvs-credits__btn--outline:hover,
.mvs-marketplace__btn--outline:hover,
.mvs-portal__btn--outline:hover {
  background: #F7F9FC !important;
  border-color: #CBD5E1 !important;
}

/* Forms — match input style across all client pages */
.mvs-portal input[type="text"],
.mvs-portal input[type="email"],
.mvs-portal input[type="password"],
.mvs-portal input[type="url"],
.mvs-portal input[type="number"],
.mvs-portal textarea,
.mvs-portal select {
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  background: #FFFFFF !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  color: #1C2434 !important;
  transition: border-color 130ms ease, box-shadow 130ms ease !important;
}
.mvs-portal input[type="text"]:focus,
.mvs-portal input[type="email"]:focus,
.mvs-portal input[type="password"]:focus,
.mvs-portal input[type="url"]:focus,
.mvs-portal input[type="number"]:focus,
.mvs-portal textarea:focus,
.mvs-portal select:focus {
  border-color: #3C50E0 !important;
  box-shadow: 0 0 0 3px rgba(60, 80, 224, 0.12) !important;
  outline: none !important;
}

/* No-underline guarantee for client area links */
.mvs-portal__main a,
.mvs-portal__main a:link,
.mvs-portal__main a:visited,
.mvs-portal__main a:hover,
.mvs-portal__main a:active {
  text-decoration: none !important;
}

/* Marketplace tool cards — adopt the same hover lift as Fash tiles */
.mvs-marketplace__tool-card,
.mvs-marketplace-card,
.mvs-tool-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 16px !important;
  transition: border-color 180ms ease, transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 180ms ease !important;
}
.mvs-marketplace__tool-card:hover,
.mvs-marketplace-card:hover,
.mvs-tool-card:hover {
  border-color: #3C50E0 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(60, 80, 224, 0.08) !important;
}

/* Gallery thumbnails — radius 14 + hover lift consistent with tools */
.mvs-gallery__thumb,
.mvs-gallery__item,
.mvs-gallery-card {
  border-radius: 14px !important;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease !important;
}
.mvs-gallery__thumb:hover,
.mvs-gallery__item:hover,
.mvs-gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(28, 36, 52, 0.08);
}

/* Credits page — plan cards adopt premium gradient if "Pro" */
.mvs-credits__plan-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 18px !important;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease !important;
}
.mvs-credits__plan-card:hover {
  border-color: #3C50E0 !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(60, 80, 224, 0.1) !important;
}
.mvs-credits__plan-card--featured,
.mvs-credits__plan-card.is-featured {
  background: linear-gradient(135deg, #1E3FD9 0%, #3C50E0 100%) !important;
  border: none !important;
  color: #FFFFFF !important;
  box-shadow: 0 14px 30px rgba(60, 80, 224, 0.25) !important;
}
.mvs-credits__plan-card--featured *,
.mvs-credits__plan-card.is-featured * {
  color: inherit !important;
}

/* Empty states get the Fash treatment everywhere */
.mvs-empty-state,
.mvs-portal__empty {
  text-align: center;
  padding: 60px 24px;
  color: #64748B;
}
.mvs-empty-state__icon,
.mvs-portal__empty-icon {
  font-size: 38px;
  opacity: 0.5;
  margin-bottom: 12px;
}
.mvs-empty-state__title,
.mvs-portal__empty-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #1C2434;
  margin: 0 0 6px;
}

/* Scrollbar in client area — thin, branded */
.mvs-portal__main *::-webkit-scrollbar { width: 8px; height: 8px; }
.mvs-portal__main *::-webkit-scrollbar-track { background: transparent; }
.mvs-portal__main *::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
.mvs-portal__main *::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* =====================================================================
   FASH HELPERS — utility classes for inline use
   ===================================================================== */

.mvs-fash-grid {
  display: grid;
  gap: 16px;
}
.mvs-fash-grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mvs-fash-grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mvs-fash-grid--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.mvs-fash-stack { display: flex; flex-direction: column; gap: 16px; }
.mvs-fash-row   { display: flex; align-items: center; gap: 12px; }
.mvs-fash-row--between { justify-content: space-between; }

.mvs-fash-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #E2E8F0 20%, #E2E8F0 80%, transparent);
  border: none;
  margin: 20px 0;
}

/* Italic accent text (use on numerals, dates, eyebrows where it fits) */
.mvs-fash-italic {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #3C50E0;
  letter-spacing: -0.01em;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 768px) {
  .mvs-fash-hero { padding: 18px 18px; border-radius: 18px; min-height: 110px; }
  .mvs-fash-hero__title { font-size: 26px; }
  .mvs-fash-section { margin: 20px 0 12px; }
  .mvs-fash-section__title { font-size: 16px; }
  .mvs-fash-tile__value { font-size: 22px; }
}

/* =====================================================================
   v1.45.13 — DASHBOARD: Compact credits card (replaces the big blue hero)
   ===================================================================== */

/* Compact credits card — same style as the small "Credits status" card
   from the right sidebar. Sits at the top of the dashboard with the Top-up
   pill on the right. Way smaller than the previous blue gradient banner. */
.mvs-dash-credits-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  margin: 0 0 18px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
}
.mvs-dash-credits-mini__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mvs-dash-credits-mini__label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mvs-dash-credits-mini__value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #1C2434;
  margin: 4px 0 2px;
}
.mvs-dash-credits-mini__hint {
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 500;
}
.mvs-dash-credits-mini__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background: #1C2434;
  color: #FFFFFF !important;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none !important;
  transition: background 130ms ease, transform 80ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.mvs-dash-credits-mini__btn:hover { background: #000000; }
.mvs-dash-credits-mini__btn:active { transform: translateY(0.5px); }
.mvs-dash-credits-mini__btn svg { width: 13px; height: 13px; }

/* Marketplace strip — the live tools grid */
.mvs-dash-market {
  margin: 0 0 24px;
}
.mvs-dash-market__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.mvs-dash-market__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.mvs-dash-market__eyebrow::before {
  content: '';
  width: 14px;
  height: 1px;
  background: #3C50E0;
}
.mvs-dash-market__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #1C2434;
  margin: 0;
  line-height: 1.1;
}
.mvs-dash-market__title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #3C50E0;
  letter-spacing: -0.01em;
}
.mvs-dash-market__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #3C50E0;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: gap 180ms ease;
}
.mvs-dash-market__all:hover { gap: 10px; }
.mvs-dash-market__all svg { width: 13px; height: 13px; }

.mvs-dash-market__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.mvs-dash-market__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  color: #1C2434;
  transition:
    border-color 180ms ease,
    transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 180ms ease;
  position: relative;
}
.mvs-dash-market__card:hover {
  border-color: #3C50E0;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(60, 80, 224, 0.08);
}
.mvs-dash-market__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #EFF4FB;
  color: #3C50E0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 180ms ease, color 180ms ease;
}
.mvs-dash-market__icon svg { width: 18px !important; height: 18px !important; }
.mvs-dash-market__card:hover .mvs-dash-market__icon {
  background: #3C50E0;
  color: #FFFFFF;
}
.mvs-dash-market__name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 700;
  color: #1C2434;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mvs-dash-market__arrow {
  color: #CBD5E1;
  display: inline-flex;
  transition: color 180ms ease, transform 180ms ease;
}
.mvs-dash-market__card:hover .mvs-dash-market__arrow {
  color: #3C50E0;
  transform: translate(2px, -2px);
}

/* Responsive */
@media (max-width: 768px) {
  .mvs-dash-credits-mini {
    padding: 12px 14px;
    border-radius: 12px;
  }
  .mvs-dash-credits-mini__value { font-size: 26px; }
  .mvs-dash-market__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mvs-dash-market__title { font-size: 19px; }
  .mvs-dash-market__grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
