/* Imported from BFServices Social Marketing module for BFCleanSys. */
#socialMarketingSection { min-height: calc(100vh - 24px); }
#socialMarketingSection #contentArea { min-height: 100%; }
.bfsm-layout { display: grid; gap: 14px; }
.bfsm-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.bfsm-page-head h2 { margin: 0; color: #0f172a; font-size: 26px; line-height: 1.1; }
.dashboard-center h1 {
  max-width: 850px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.dashboard-center p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #e2e8f0;
  font-size: 17px;
  line-height: 1.5;
}

.dashboard-center .hero-actions {
  justify-content: flex-start;
  margin-top: 24px;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.dash-kpi {
  min-height: 104px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bf-charcoal);
  border: 1px solid rgba(214, 183, 90, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.dash-kpi span {
  color: #475569;
}

.dash-kpi strong {
  display: block;
  margin-top: 12px;
  font-size: 36px;
  line-height: 1;
}

.sm-stage {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(560px, 1.08fr);
  gap: 30px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(rgba(39, 111, 191, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 111, 191, 0.18) 1px, transparent 1px),
    radial-gradient(circle at 18% 20%, rgba(37, 211, 102, 0.32), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(225, 48, 108, 0.23), transparent 28%),
    radial-gradient(circle at 58% 86%, rgba(66, 133, 244, 0.32), transparent 30%),
    linear-gradient(135deg, #071424, #10223d 50%, #07344a);
  background-size: 44px 44px, 44px 44px, auto, auto, auto, auto;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.28);
  position: relative;
  overflow: hidden;
}

.sm-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255,255,255,.08) 48%, transparent 60%);
  opacity: .65;
  animation: smGridDrift 18s linear infinite;
}

.sm-stage-content,
.sm-phone-demo,
.sm-channel-ring,
.sm-visual-stage {
  position: relative;
  z-index: 1;
}

.sm-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #c7f9e8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sm-stage h1 {
  max-width: 680px;
  margin: 16px 0 14px;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: 0;
}

.sm-stage p {
  max-width: 720px;
  margin: 0;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.45;
}

.sm-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.sm-primary,
.sm-secondary {
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.sm-primary {
  background: linear-gradient(135deg, #25d366, #1478df);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(20, 120, 223, 0.32);
}

.sm-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.sm-phone-demo {
  width: 320px;
  min-height: 430px;
  padding: 18px;
  border-radius: 28px;
  background: #f8fafc;
  color: #0f172a;
  border: 8px solid rgba(255,255,255,.18);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.34);
  animation: none;
  position: absolute;
  right: 24px;
  top: 98px;
  z-index: 3;
}

.sm-phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  color: #334155;
  font-size: 13px;
}

.sm-phone-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.16);
}

.sm-message,
.sm-phone-result {
  margin-top: 14px;
  padding: 13px;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
  position: relative;
  overflow: hidden;
}

.sm-message::after {
  content: "";
  width: 2px;
  height: 18px;
  display: inline-block;
  margin-left: 6px;
  background: currentColor;
  vertical-align: -3px;
  animation: smTypingCursor .7s steps(1) infinite;
}

.sm-message-a { background: #fce7f3; color: #9d174d; }
.sm-message-b { background: #dcfce7; color: #166534; margin-left: 26px; }
.sm-message-c { background: #dbeafe; color: #1d4ed8; }

.sm-phone-result {
  margin-top: 28px;
  background: linear-gradient(135deg, #0f766e, #1478df);
  color: #ffffff;
  text-align: center;
}

.sm-visual-stage {
  min-height: 640px;
  position: relative;
  margin-left: -180px;
  width: calc(100% + 180px);
}

.sm-channel-ring {
  min-height: 640px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.sm-channel {
  width: 142px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: #0f172a;
  text-align: left;
  position: absolute;
  pointer-events: auto;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: none;
}

.sm-brand-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  font-weight: 900;
  position: relative;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.sm-channel strong {
  color: #0f172a;
  flex: 1;
  font-size: 14px;
  line-height: 1.08;
  text-align: center;
  overflow-wrap: anywhere;
}

.sm-channel:hover {
  filter: brightness(1.04);
}

.sm-channel:nth-child(1) { left: 16px; top: 18px; }
.sm-channel:nth-child(2) { left: 548px; top: 26px; }
.sm-channel:nth-child(3) { left: 42px; top: 156px; }
.sm-channel:nth-child(4) { left: 18px; top: 330px; }
.sm-channel:nth-child(5) { left: 28px; top: 548px; }
.sm-channel:nth-child(6) { left: 542px; top: 536px; }

.sm-whatsapp { background: linear-gradient(135deg, #ffffff, #dcfce7); }
.sm-instagram { background: linear-gradient(135deg, #ffffff, #fce7f3); }
.sm-facebook { background: linear-gradient(135deg, #ffffff, #dbeafe); }
.sm-google { background: linear-gradient(135deg, #ffffff, #f8fafc); }
.sm-meta { background: linear-gradient(135deg, #ffffff, #e0f2fe); }
.sm-bfsales { background: linear-gradient(135deg, #ffffff, #ccfbf1); }

.sm-whatsapp .sm-brand-icon {
  background: #25d366;
}

.sm-whatsapp .sm-brand-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  border-left-color: transparent;
  transform: rotate(-24deg);
}

.sm-whatsapp .sm-brand-icon::after {
  content: "";
  width: 10px;
  height: 4px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  position: absolute;
  left: 13px;
  top: 20px;
  transform: rotate(34deg);
}

.sm-instagram .sm-brand-icon {
  background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #515bd4);
}

.sm-instagram .sm-brand-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 9px;
}

.sm-instagram .sm-brand-icon::after {
  content: "";
  width: 7px;
  height: 7px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  left: 15px;
  top: 15px;
  box-shadow: 9px -8px 0 -2px #ffffff;
}

.sm-facebook .sm-brand-icon {
  background: #1877f2;
}

.sm-facebook .sm-brand-icon::before {
  content: "f";
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(4px);
}

.sm-google .sm-brand-icon {
  background:
    conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
}

.sm-google .sm-brand-icon::before {
  content: "G";
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #4285f4;
  font-size: 22px;
  font-weight: 900;
}

.sm-meta .sm-brand-icon {
  background: #ffffff;
  border: 3px solid #0668e1;
}

.sm-meta .sm-brand-icon::before {
  content: "∞";
  color: #0668e1;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.sm-bfsales .sm-brand-icon {
  background: #ffffff;
  overflow: hidden;
}

.sm-bfsales .sm-brand-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.sm-command {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.sm-kpi-card {
  min-height: 102px;
  padding: 16px;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #d8e1ef;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.sm-kpi-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sm-kpi-card strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
}

.sm-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sm-flow-step {
  min-height: 190px;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #d8e1ef;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.sm-flow-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.sm-flow-step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 900;
}

.sm-flow-step strong {
  font-size: 24px;
  line-height: 1.05;
}

.sm-flow-step small {
  color: #475569;
  font-size: 14px;
  line-height: 1.35;
}

.sm-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 22px;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
}

.sm-showcase-copy span {
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sm-showcase-copy strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.1;
}

.sm-showcase-copy p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #cbd5e1;
  line-height: 1.45;
}

.sm-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sm-proof-grid button,
.sm-proof-grid div {
  min-height: 48px;
  background: rgba(255,255,255,.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.sm-proof-grid div span {
  color: #bae6fd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sm-proof-grid div strong {
  font-size: 20px;
  line-height: 1;
}

@keyframes smGridDrift {
  from { transform: translate3d(-35%, 0, 0); }
  to { transform: translate3d(35%, 0, 0); }
}

@keyframes smPhoneFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes smFloatPathTopL {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  18% { transform: translate3d(168px, 70px, 0) rotate(1.1deg); }
  38% { transform: translate3d(360px, 14px, 0) rotate(-.4deg); }
  62% { transform: translate3d(250px, 132px, 0) rotate(1.3deg); }
  82% { transform: translate3d(62px, 88px, 0) rotate(-.8deg); }
}

@keyframes smFloatPathTopR {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(1deg); }
  20% { transform: translate3d(-138px, 82px, 0) rotate(-1deg); }
  42% { transform: translate3d(-316px, 18px, 0) rotate(.6deg); }
  66% { transform: translate3d(-208px, 146px, 0) rotate(-1.2deg); }
  84% { transform: translate3d(-54px, 70px, 0) rotate(.7deg); }
}

@keyframes smFloatPathLeftA {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(.7deg); }
  22% { transform: translate3d(202px, 58px, 0) rotate(-1.1deg); }
  44% { transform: translate3d(54px, 174px, 0) rotate(1.4deg); }
  68% { transform: translate3d(286px, 126px, 0) rotate(-.5deg); }
  86% { transform: translate3d(118px, 34px, 0) rotate(.8deg); }
}

@keyframes smFloatPathLeftB {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.8deg); }
  20% { transform: translate3d(330px, 34px, 0) rotate(1deg); }
  42% { transform: translate3d(118px, 128px, 0) rotate(-1.2deg); }
  64% { transform: translate3d(402px, 168px, 0) rotate(.6deg); }
  84% { transform: translate3d(64px, 82px, 0) rotate(-.7deg); }
}

@keyframes smFloatPathBottomL {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(1deg); }
  18% { transform: translate3d(152px, -76px, 0) rotate(-1.1deg); }
  40% { transform: translate3d(362px, -18px, 0) rotate(.5deg); }
  64% { transform: translate3d(236px, -136px, 0) rotate(-1.3deg); }
  84% { transform: translate3d(74px, -48px, 0) rotate(.8deg); }
}

@keyframes smFloatPathBottomR {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  22% { transform: translate3d(-168px, -78px, 0) rotate(1.1deg); }
  44% { transform: translate3d(-342px, -14px, 0) rotate(-.5deg); }
  68% { transform: translate3d(-214px, -144px, 0) rotate(1.3deg); }
  86% { transform: translate3d(-62px, -54px, 0) rotate(-.7deg); }
}

@keyframes smTypingCursor {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (max-width: 1100px) {
  .sm-stage {
    grid-template-columns: 1fr;
  }

  .sm-visual-stage {
    min-height: auto;
    display: grid;
    gap: 16px;
  }

  .sm-phone-demo {
    position: relative;
    right: auto;
    top: auto;
    margin: 0 auto;
  }

  .sm-channel-ring {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .sm-channel {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100%;
    animation: none !important;
  }

  .sm-command,
  .sm-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }
}

@media (max-width: 720px) {
  .sm-stage,
  .sm-command,
  .sm-flow,
  .sm-showcase,
  .sm-proof-grid {
    grid-template-columns: 1fr;
  }

  .sm-stage {
    padding: 20px;
  }

  .sm-phone-demo {
    width: min(300px, calc(100vw - 96px));
    min-height: 380px;
  }

  .sm-channel {
    width: 100%;
    min-height: 62px;
    padding: 10px 12px;
  }

  .sm-brand-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .sm-channel-ring {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .dashboard-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-panel {
    padding: 18px;
  }

  .dashboard-topbar {
    align-items: center;
  }

  .dashboard-topbar img {
    width: 220px;
  }

  .dashboard-center h1 {
    font-size: 36px;
  }

  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dashboard-topbar {
    display: block;
  }

  .dashboard-status {
    margin-top: 12px;
    text-align: left;
  }

  .dashboard-kpis {
    grid-template-columns: 1fr;
  }
}

/* Dashboard standby + technology showcase */
.dashboard-shell {
  --dashboard-bg: radial-gradient(circle at 50% 42%, #072611, #000000 64%);
  --dashboard-photo: none;
  background: var(--dashboard-bg);
  background-size: cover, cover, cover, cover, auto, auto;
  background-repeat: no-repeat;
  background-position: center;
  transition: background 900ms ease;
}

.dashboard-shell::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 0;
  background-image: var(--dashboard-photo);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}

.dashboard-shell.showcase-mode::after {
  opacity: 0.58;
}

.dashboard-shell::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 18, 8, 0.18) 45%, rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 18% 12%, rgba(255, 212, 76, 0.16), transparent 24%),
    repeating-linear-gradient(90deg, rgba(40,255,112,0.07) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, rgba(40,255,112,0.045) 0 1px, transparent 1px 42px);
}

.dashboard-shell.showcase-mode::before {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.36) 44%, rgba(2, 6, 23, 0.76)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 78px);
}

.matrix-canvas {
  opacity: 0.82;
}

.dashboard-shell.matrix-mode .matrix-canvas {
  opacity: 1;
}

.dashboard-shell.showcase-mode .matrix-canvas {
  opacity: 0.04;
}

.dashboard-panel {
  position: relative;
  z-index: 2;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "top"
    "center"
    "kpis";
  gap: 22px;
}

.dashboard-topbar {
  display: none;
}

.service-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  pointer-events: auto;
  align-content: center;
  align-items: center;
}

.service-rail-top {
  grid-area: top;
  justify-content: center;
  justify-self: center;
  width: min(100%, 1180px);
  padding: 10px 12px;
  background: rgba(255, 210, 74, 0.14);
  border: 1px solid rgba(255, 210, 74, 0.38);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 36px rgba(0, 0, 0, 0.24);
}

.service-rail-bottom {
  grid-area: bottom;
  justify-content: center;
  align-self: end;
  justify-self: center;
  width: min(100%, 560px);
  padding: 8px 10px;
  background: rgba(255, 210, 74, 0.08);
  border: 1px solid rgba(255, 210, 74, 0.22);
  border-radius: 8px;
}

.service-rail span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2b1c00;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  padding: 0 14px;
  border: 1px solid rgba(255, 230, 138, 0.82);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe58f, #d6a72f 58%, #a97812);
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255, 248, 215, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.service-rail span:hover {
  color: #140d00;
  background: linear-gradient(180deg, #fff4bf, #f0c84f 58%, #bd870f);
  border-color: rgba(255, 244, 191, 1);
  transform: translateY(-1px);
}

.dashboard-center {
  grid-area: center;
  align-self: center;
  max-width: 980px;
}

.dashboard-center h1 {
  max-width: 940px;
  font-size: clamp(48px, 6.2vw, 86px);
  color: #f8fafc;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.65), 0 0 30px rgba(32, 255, 104, 0.22);
}

.dashboard-center p {
  max-width: 840px;
  color: #e8fff1;
  font-size: 19px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.dashboard-kpis {
  grid-area: kpis;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-self: end;
  width: 100%;
  min-width: 0;
}

.dash-kpi {
  min-height: 98px;
  background:
    linear-gradient(180deg, rgba(10, 20, 14, 0.88), rgba(3, 10, 7, 0.78));
  color: #ffffff;
  border: 1px solid rgba(70, 255, 132, 0.22);
  border-top: 4px solid #35ff7b;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 28px rgba(28, 255, 100, 0.08);
}

.dash-kpi strong {
  font-size: 38px;
  color: #ffffff;
  text-shadow: 0 0 22px rgba(39, 255, 113, 0.28);
}

.dash-kpi span {
  color: rgba(226, 232, 240, 0.78);
}

.dashboard-shell.showcase-mode .dashboard-vignette {
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 210, 74, 0.18), transparent 28%),
    radial-gradient(circle at 28% 72%, rgba(29, 190, 255, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.46));
}

@media (max-width: 1280px) {
  .dashboard-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "center"
      "kpis";
  }

  .dashboard-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-rail-top {
    width: 100%;
    justify-content: flex-start;
    justify-self: stretch;
  }
}

@media (max-width: 900px) {
  .dashboard-center h1 {
    font-size: 36px;
  }

  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile system view */
@media (max-width: 768px) {
  html,
  body {
    height: 100svh;
    overflow: hidden;
  }

  .layout {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100svh;
    overflow: hidden;
  }

  .sidebar {
    width: 100%;
    min-height: 0;
    max-height: 166px;
    overflow: hidden;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(214, 183, 90, 0.22);
  }

  .brand-block {
    width: 170px;
    margin: 0 12px 0 0;
    display: inline-block;
    vertical-align: top;
  }

  .title,
  .info-card,
  .user-card,
  .logout {
    display: none;
  }

  .menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 2px;
    margin: 0;
    scrollbar-width: none;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }

  .menu button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    margin: 0;
    padding: 9px 11px;
    font-size: 13px;
  }

  .submenu {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 118px;
    z-index: 4;
    padding: 8px;
    background: rgba(23, 21, 21, 0.96);
    border: 1px solid rgba(214, 183, 90, 0.24);
    border-radius: 8px;
  }

  .submenu button {
    width: auto;
    margin-right: 6px;
    margin-bottom: 0;
  }

  .main {
    height: auto;
    min-height: 0;
  }

  .content {
    padding: 10px;
  }

  .footer {
    display: none;
  }

  .content:has(.dashboard-shell) {
    padding: 0;
  }

  .dashboard-shell {
    border-radius: 0;
    border: 0;
  }

  .dashboard-panel {
    padding: 16px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "center"
      "kpis";
    gap: 14px;
  }

  .service-rail-top {
    width: 100%;
    padding: 8px;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .service-rail-bottom {
    display: none;
  }

  .service-rail span {
    flex: 0 0 auto;
    min-height: 30px;
    font-size: 11px;
    padding: 0 11px;
  }

  .dashboard-center {
    align-self: center;
    max-width: 100%;
  }

  .dashboard-center h1 {
    max-width: 100%;
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1.02;
  }

  .dashboard-center p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.45;
  }

  .dashboard-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-self: end;
  }

  .dash-kpi {
    min-height: 72px;
    padding: 10px;
  }

  .dash-kpi span {
    font-size: 10px;
  }

  .dash-kpi strong {
    margin-top: 7px;
    font-size: 24px;
  }
}

@media (max-width: 430px) {
  .sidebar {
    max-height: 150px;
  }

  .brand-block {
    width: 145px;
  }

  .submenu {
    top: 106px;
  }

  .dashboard-panel {
    padding: 14px;
  }

  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-kpi:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 720px) {
  .audit-cards,
  .audit-grid,
  .audit-summary-strip,
  .audit-toolbar {
    grid-template-columns: 1fr;
  }

  .audit-report-row,
  .audit-inventory-row {
    grid-template-columns: 1fr;
  }
}


/* Social Marketing dashboard grid -40 percent */
.sm-stage { min-height: 417px; grid-template-columns: minmax(0, 0.92fr) minmax(333px, 1.08fr); gap: 18px; padding: 20px; }
.sm-visual-stage { min-height: 381px; margin-left: -107px; width: calc(100% + 107px); }
.sm-channel-ring { min-height: 381px; }
.sm-phone-demo { width: 190px; min-height: 256px; padding: 11px; right: 14px; top: 59px; border-width: 5px; border-radius: 17px; }
.sm-phone-top { padding-bottom: 9px; font-size: 10px; }
.sm-message, .sm-phone-result { margin-top: 9px; padding: 8px; font-size: 11px; }
.sm-phone-result { margin-top: 17px; }
.sm-channel { width: 84px; min-height: 38px; gap: 7px; padding: 7px 9px; font-size: 10px; }
.sm-brand-icon { width: 25px; height: 25px; flex-basis: 25px; }
@media (max-width: 1180px) { .sm-stage { min-height: 417px; } .sm-visual-stage, .sm-channel-ring { min-height: 381px; } }


/* Social Marketing logo proportion and compact lower bands */
.sm-channel strong { font-size: 9px; line-height: 1.05; text-align: center; }
.sm-brand-icon { overflow: hidden; }
.sm-whatsapp .sm-brand-icon::before { width: 13px; height: 13px; border-width: 2px; }
.sm-whatsapp .sm-brand-icon::after { width: 6px; height: 3px; border-left-width: 2px; border-bottom-width: 2px; left: 8px; top: 12px; }
.sm-instagram .sm-brand-icon::before { width: 13px; height: 13px; border-width: 2px; border-radius: 5px; }
.sm-instagram .sm-brand-icon::after { width: 4px; height: 4px; border-width: 2px; left: 9px; top: 9px; box-shadow: 6px -5px 0 -2px #ffffff; }
.sm-facebook .sm-brand-icon::before { font-size: 21px; transform: translateY(3px); }
.sm-google .sm-brand-icon::before { width: 18px; height: 18px; font-size: 13px; }
.sm-meta .sm-brand-icon { border-width: 2px; }
.sm-meta .sm-brand-icon::before { font-size: 20px; }
.sm-bfsales .sm-brand-icon img { width: 21px; height: 21px; }
.sm-command { gap: 8px; margin: 8px 0; }
.sm-kpi-card { min-height: 66px; padding: 10px 12px; }
.sm-kpi-card span { font-size: 10px; }
.sm-kpi-card strong { margin-top: 5px; font-size: 22px; }
.sm-flow { gap: 8px; }
.sm-flow-step { min-height: 104px; padding: 11px; gap: 7px; }
.sm-flow-step span { width: 24px; height: 24px; border-radius: 6px; font-size: 12px; }
.sm-flow-step strong { font-size: 16px; line-height: 1.05; }
.sm-flow-step small { font-size: 11px; line-height: 1.2; }
.sm-showcase { margin-top: 8px; padding: 12px; gap: 10px; }
.sm-showcase-copy span { font-size: 10px; }
.sm-showcase-copy strong { margin-top: 4px; font-size: 18px; }
.sm-showcase-copy p { margin-top: 5px; font-size: 12px; line-height: 1.25; }
.sm-proof-grid { gap: 7px; }
.sm-proof-grid button { min-height: 34px; padding: 7px 9px; font-size: 11px; }


/* Social Marketing balanced balloons and last panel */
.sm-stage { min-height: 452px; grid-template-columns: minmax(0, 0.92fr) minmax(365px, 1.08fr); gap: 20px; padding: 22px; }
.sm-visual-stage { min-height: 414px; margin-left: -118px; width: calc(100% + 118px); }
.sm-channel-ring { min-height: 414px; }
.sm-phone-demo { width: 204px; min-height: 274px; padding: 12px; right: 16px; top: 62px; border-width: 6px; border-radius: 19px; }
.sm-channel { width: 104px; min-height: 50px; gap: 8px; padding: 8px 10px; font-size: 10px; box-shadow: 0 18px 36px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.92); }
.sm-channel strong { font-size: 10px; line-height: 1.05; text-align: left; overflow-wrap: normal; word-break: normal; }
.sm-brand-icon { width: 32px; height: 32px; flex-basis: 32px; overflow: hidden; }
.sm-whatsapp .sm-brand-icon::before { width: 17px; height: 17px; border-width: 2px; }
.sm-whatsapp .sm-brand-icon::after { width: 8px; height: 3px; border-left-width: 2px; border-bottom-width: 2px; left: 10px; top: 15px; }
.sm-instagram .sm-brand-icon::before { width: 17px; height: 17px; border-width: 2px; border-radius: 7px; }
.sm-instagram .sm-brand-icon::after { width: 5px; height: 5px; border-width: 2px; left: 12px; top: 12px; box-shadow: 7px -6px 0 -2px #ffffff; }
.sm-facebook .sm-brand-icon::before { font-size: 27px; transform: translateY(4px); }
.sm-google .sm-brand-icon::before { width: 23px; height: 23px; font-size: 17px; }
.sm-meta .sm-brand-icon { border-width: 2px; }
.sm-meta .sm-brand-icon::before { font-size: 27px; }
.sm-bfsales .sm-brand-icon img { width: 27px; height: 27px; }
.sm-command { gap: 8px; margin: 7px 0; }
.sm-kpi-card { min-height: 62px; padding: 9px 11px; }
.sm-kpi-card strong { margin-top: 4px; font-size: 21px; }
.sm-flow { gap: 8px; }
.sm-flow-step { min-height: 92px; padding: 10px; gap: 6px; }
.sm-flow-step span { width: 22px; height: 22px; font-size: 11px; }
.sm-flow-step strong { font-size: 15px; }
.sm-flow-step small { font-size: 10.5px; line-height: 1.16; }
.sm-showcase { min-height: 82px; margin-top: 8px; padding: 15px; gap: 12px; }
.sm-showcase-copy strong { font-size: 21px; line-height: 1.05; }
.sm-showcase-copy p { margin-top: 5px; font-size: 12px; line-height: 1.22; }
.sm-proof-grid button { min-height: 39px; padding: 8px 10px; font-size: 11px; }
@media (max-width: 1180px) { .sm-stage { min-height: 452px; } .sm-visual-stage, .sm-channel-ring { min-height: 414px; } }


/* Social Marketing balloons and presentation panel +20 percent */
.sm-channel { width: 125px; min-height: 60px; gap: 10px; padding: 10px 12px; font-size: 12px; }
.sm-channel strong { font-size: 12px; line-height: 1.08; text-align: left; white-space: normal; overflow-wrap: normal; word-break: keep-all; }
.sm-brand-icon { width: 38px; height: 38px; flex-basis: 38px; }
.sm-whatsapp .sm-brand-icon::before { width: 20px; height: 20px; border-width: 2px; }
.sm-whatsapp .sm-brand-icon::after { width: 10px; height: 4px; border-left-width: 2px; border-bottom-width: 2px; left: 12px; top: 18px; }
.sm-instagram .sm-brand-icon::before { width: 20px; height: 20px; border-width: 2px; border-radius: 8px; }
.sm-instagram .sm-brand-icon::after { width: 6px; height: 6px; border-width: 2px; left: 14px; top: 14px; box-shadow: 8px -7px 0 -2px #ffffff; }
.sm-facebook .sm-brand-icon::before { font-size: 32px; transform: translateY(5px); }
.sm-google .sm-brand-icon::before { width: 28px; height: 28px; font-size: 20px; }
.sm-meta .sm-brand-icon::before { font-size: 32px; }
.sm-bfsales .sm-brand-icon img { width: 32px; height: 32px; }
.sm-showcase { min-height: 98px; padding: 18px; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(312px, .7fr); }
.sm-showcase-copy span { font-size: 12px; }
.sm-showcase-copy strong { font-size: 25px; line-height: 1.06; }
.sm-showcase-copy p { margin-top: 6px; font-size: 14px; line-height: 1.25; }
.sm-proof-grid { gap: 8px; }
.sm-proof-grid button { min-height: 47px; padding: 10px 12px; font-size: 13px; }


/* Social Marketing icon alignment and presentation panel +20 percent */
.sm-brand-icon { position: relative; display: inline-grid; place-items: center; overflow: hidden; }
.sm-whatsapp .sm-brand-icon::before, .sm-instagram .sm-brand-icon::before, .sm-instagram .sm-brand-icon::after { position: absolute; left: 50%; top: 50%; box-sizing: border-box; }
.sm-whatsapp .sm-brand-icon::before { width: 21px; height: 21px; border-width: 2px; transform: translate(-50%, -50%) rotate(-24deg); }
.sm-whatsapp .sm-brand-icon::after { width: 10px; height: 4px; border-left-width: 2px; border-bottom-width: 2px; left: 50%; top: 50%; transform: translate(-35%, 12%) rotate(34deg); }
.sm-instagram .sm-brand-icon::before { width: 21px; height: 21px; border-width: 2px; border-radius: 8px; transform: translate(-50%, -50%); }
.sm-instagram .sm-brand-icon::after { width: 6px; height: 6px; border-width: 2px; transform: translate(-50%, -50%); box-shadow: 8px -7px 0 -2px #ffffff; }
.sm-facebook .sm-brand-icon::before { display: block; font-size: 32px; line-height: .9; transform: translateY(4px); }
.sm-showcase { min-height: 118px; padding: 22px; gap: 17px; grid-template-columns: minmax(0, 1fr) minmax(374px, .72fr); }
.sm-showcase-copy span { font-size: 13px; }
.sm-showcase-copy strong { font-size: 30px; line-height: 1.04; }
.sm-showcase-copy p { margin-top: 7px; font-size: 16px; line-height: 1.25; }
.sm-proof-grid { gap: 10px; }
.sm-proof-grid button { min-height: 56px; padding: 12px 14px; font-size: 15px; }

/* Magic Marketing Center */
.mmc-shell {
  min-height: calc(100vh - 76px);
  padding: 22px;
  color: #f8fafc;
  background:
    linear-gradient(135deg, rgba(12, 10, 9, .96), rgba(15, 23, 42, .9) 52%, rgba(8, 47, 73, .88)),
    url("assets3/bf-brand-banner.png") center/cover no-repeat;
}

.mmc-hero {
  display: grid;
  grid-template-columns: minmax(340px, .78fr) minmax(430px, 1.22fr);
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(214, 183, 90, .48);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 21, 21, .88), rgba(15, 23, 42, .7)),
    rgba(15, 23, 42, .9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
  overflow: hidden;
}

.mmc-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #d6b75a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mmc-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 58px;
  line-height: .92;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, .45);
}

.mmc-hero p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.45;
}

.mmc-magic-board {
  position: relative;
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 14px;
  align-items: stretch;
}

.mmc-brand-card,
.mmc-art-tile,
.mmc-vision-grid img {
  border: 1px solid rgba(214, 183, 90, .4);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .36);
}

.mmc-brand-card {
  width: 100%;
  height: 100%;
  min-height: 282px;
  object-fit: cover;
  background: #111827;
}

.mmc-art-stack {
  display: grid;
  gap: 10px;
}

.mmc-art-tile {
  position: relative;
  min-height: 86px;
  margin: 0;
  overflow: hidden;
  background: #111827;
}

.mmc-art-tile img {
  width: 100%;
  height: 100%;
  min-height: 86px;
  display: block;
  object-fit: cover;
}

.mmc-art-tile figcaption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 5px 7px;
  border-radius: 6px;
  color: #fff7d6;
  background: rgba(0, 0, 0, .58);
  font-size: 11px;
  font-weight: 800;
}

.mmc-signal-line {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mmc-signal-line span {
  padding: 7px 10px;
  border: 1px solid rgba(214, 183, 90, .45);
  border-radius: 8px;
  color: #fff7d6;
  background: rgba(15, 23, 42, .72);
  font-size: 12px;
  font-weight: 900;
}

.mmc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  justify-content: flex-start;
  gap: 10px;
}

.mmc-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.mmc-status-grid div,
.mmc-panel {
  border: 1px solid rgba(214, 183, 90, .32);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .2);
}

.mmc-status-grid div {
  min-height: 82px;
  padding: 16px;
}

.mmc-status-grid span,
.mmc-panel-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mmc-status-grid strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 26px;
}

.mmc-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.12fr) minmax(320px, .88fr);
  gap: 14px;
}

.mmc-panel {
  min-height: 280px;
  padding: 18px;
  color: #172033;
}

.mmc-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.mmc-panel-head strong {
  color: #0f172a;
  font-size: 18px;
  text-align: right;
}

.mmc-vision {
  grid-column: 1 / -1;
}

.mmc-vision-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr .75fr .85fr;
  gap: 12px;
}

.mmc-vision-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #111827;
}

.mmc-chat {
  display: grid;
  gap: 10px;
}

.mmc-bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
}

.mmc-bubble.james {
  color: #0f172a;
  background: #e2e8f0;
}

.mmc-bubble.user {
  justify-self: end;
  color: #fff;
  background: #0f766e;
}

.mmc-question-grid,
.mmc-connectors,
.mmc-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mmc-question-grid {
  margin-top: 14px;
}

.mmc-question-grid button,
.mmc-connector {
  min-height: 48px;
  border-radius: 8px;
}

.mmc-connector {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .42);
  color: #0f172a;
  text-align: left;
  background: #f8fafc;
}

.mmc-connector span {
  color: #64748b;
  font-size: 12px;
}

.mmc-safe-note {
  margin-top: 12px;
  padding: 12px;
  border-left: 4px solid #d97706;
  border-radius: 6px;
  color: #475569;
  background: #fffbeb;
  font-size: 13px;
  line-height: 1.35;
}

.mmc-flow-list {
  display: grid;
  gap: 10px;
}

.mmc-flow-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 8px;
  background: #f8fafc;
}

.mmc-flow-step span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: #0f766e;
}

.mmc-flow-step strong {
  color: #1e293b;
  font-size: 14px;
}

.mmc-pill-grid span {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 8px;
  color: #334155;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .mmc-hero,
  .mmc-grid {
    grid-template-columns: 1fr;
  }

  .mmc-hero-actions {
    justify-content: flex-start;
  }

  .mmc-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mmc-magic-board {
    grid-template-columns: 1fr;
  }

  .mmc-art-stack,
  .mmc-vision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mmc-shell {
    padding: 12px;
  }

  .mmc-hero h1 {
    font-size: 34px;
  }

  .mmc-status-grid,
  .mmc-question-grid,
  .mmc-connectors,
  .mmc-pill-grid,
  .mmc-art-stack,
  .mmc-vision-grid {
    grid-template-columns: 1fr;
  }

  .mmc-brand-card,
  .mmc-vision-grid img {
    min-height: 180px;
    height: 180px;
  }
}

/* MMC Magic Console */
.mmc-shell {
  min-height: calc(100vh - 76px);
  padding: 18px;
  color: #f8fafc;
  background:
    linear-gradient(135deg, rgba(5, 8, 15, .96), rgba(18, 18, 20, .88) 46%, rgba(8, 38, 55, .92)),
    url("assets3/dashboard/tech2.jpg") center/cover no-repeat;
}

.mmc-console {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
  gap: 18px;
  min-height: 460px;
  padding: 22px;
  border: 1px solid rgba(214, 183, 90, .45);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(12, 10, 9, .82)),
    rgba(15, 23, 42, .86);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
}

.mmc-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.mmc-brand-strip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mmc-brand-strip img {
  width: 148px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
}

.mmc-brand-strip span,
.mmc-kicker {
  color: #d6b75a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-headline h1 {
  max-width: 680px;
  margin: 10px 0 12px;
  color: #ffffff;
  font-size: 62px;
  line-height: .92;
  letter-spacing: 0;
}

.mmc-headline p {
  max-width: 680px;
  margin: 0;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.45;
}

.mmc-quick-brief {
  display: grid;
  gap: 8px;
}

.mmc-quick-brief label {
  color: #fff7d6;
  font-size: 13px;
  font-weight: 900;
}

.mmc-quick-brief div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.mmc-quick-brief input {
  min-height: 52px;
  border: 1px solid rgba(214, 183, 90, .38);
  border-radius: 8px;
  padding: 0 14px;
  color: #0f172a;
  background: rgba(255, 255, 255, .94);
  font-size: 15px;
}

.mmc-quick-brief button,
.mmc-preview-copy button {
  min-height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d6b75a, #facc15);
  color: #171515;
  box-shadow: 0 16px 34px rgba(250, 204, 21, .24);
  font-weight: 950;
}

.mmc-goal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mmc-goal,
.mmc-connector,
.mmc-lead-card {
  border: 1px solid rgba(214, 183, 90, .26);
  border-radius: 8px;
  text-align: left;
  background: rgba(255, 255, 255, .08);
}

.mmc-goal {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 13px;
  color: #ffffff;
}

.mmc-goal strong {
  font-size: 15px;
}

.mmc-goal span {
  color: #cbd5e1;
  font-size: 12px;
}

.mmc-preview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(214, 183, 90, .36);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: #0f172a;
}

.mmc-preview-media {
  position: relative;
  min-height: 360px;
  background: #111827;
}

.mmc-preview-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mmc-preview-media span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff7d6;
  background: rgba(0, 0, 0, .68);
  font-size: 12px;
  font-weight: 900;
}

.mmc-preview-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.mmc-preview-copy span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-preview-copy strong {
  color: #0f172a;
  font-size: 27px;
  line-height: 1.06;
}

.mmc-preview-copy p {
  color: #475569;
  font-size: 14px;
  line-height: 1.4;
}

.mmc-status-grid {
  margin: 14px 0;
}

.mmc-status-grid div,
.mmc-panel {
  border-color: rgba(214, 183, 90, .3);
  background: rgba(255, 255, 255, .96);
}

.mmc-grid {
  grid-template-columns: minmax(360px, 1fr) minmax(320px, .82fr);
}

.mmc-panel {
  min-height: 230px;
  padding: 16px;
  color: #172033;
}

.mmc-plan-list {
  display: grid;
  gap: 10px;
}

.mmc-plan-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.mmc-plan-item > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  color: #171515;
  background: #d6b75a;
  font-weight: 950;
}

.mmc-plan-item strong,
.mmc-plan-item small {
  display: block;
}

.mmc-plan-item small {
  margin-top: 3px;
  color: #64748b;
}

.mmc-connectors {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mmc-connector {
  min-height: 76px;
  color: #0f172a;
  background: #f8fafc;
}

.mmc-lead-stack {
  display: grid;
  gap: 10px;
}

.mmc-lead-card {
  display: grid;
  gap: 5px;
  min-height: 68px;
  padding: 11px;
  color: #0f172a;
  background: #f8fafc;
}

.mmc-lead-card span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  color: #14532d;
  background: #dcfce7;
  font-size: 11px;
  font-weight: 900;
}

.mmc-lead-card small {
  color: #64748b;
}

.mmc-pill-grid {
  grid-template-columns: 1fr;
}

.mmc-pill-grid span {
  background: #f8fafc;
}

@media (max-width: 1180px) {
  .mmc-console,
  .mmc-preview-card,
  .mmc-grid {
    grid-template-columns: 1fr;
  }

  .mmc-preview-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .mmc-shell {
    padding: 10px;
  }

  .mmc-console {
    padding: 14px;
  }

  .mmc-headline h1 {
    font-size: 38px;
  }

  .mmc-quick-brief div,
  .mmc-goal-row,
  .mmc-status-grid,
  .mmc-connectors {
    grid-template-columns: 1fr;
  }
}

/* MMC using dashboard visual system */
.mmc-dashboard-shell {
  --dashboard-bg:
    linear-gradient(90deg, rgba(15, 23, 42, .9), rgba(67, 20, 45, .58) 48%, rgba(15, 23, 42, .9)),
    radial-gradient(circle at 18% 20%, rgba(251, 113, 133, .38), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(250, 204, 21, .26), transparent 24%),
    radial-gradient(circle at 60% 80%, rgba(14, 165, 233, .26), transparent 31%),
    linear-gradient(135deg, #111827, #7f1d1d 48%, #312e81);
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, .9), rgba(67, 20, 45, .58) 48%, rgba(15, 23, 42, .9)),
    url("assets3/dashboard/tech1.jpg");
  background-size: cover;
  background-position: center;
}

.mmc-dashboard-panel {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas:
    "top"
    "center"
    "kpis"
    "mmc";
}

.mmc-service-rail {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(251, 113, 133, .38);
}

.mmc-service-rail span {
  color: #3b1020;
  border-color: rgba(255, 228, 230, .9);
  background: linear-gradient(180deg, #ffe4e6, #fb7185 56%, #be123c);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .36);
}

.mmc-service-rail span:hover {
  background: linear-gradient(180deg, #fff1f2, #fda4af 56%, #e11d48);
}

.mmc-dashboard-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 24px;
  align-items: center;
  width: 100%;
  max-width: none;
}

.mmc-dashboard-copy h1 {
  max-width: 840px;
}

.mmc-dashboard-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 820px;
  margin-top: 24px;
}

.mmc-dashboard-brief input {
  min-height: 54px;
  border: 1px solid rgba(255, 230, 138, .72);
  border-radius: 8px;
  padding: 0 16px;
  color: #0f172a;
  background: rgba(255, 255, 255, .94);
  font-size: 16px;
}

.mmc-dashboard-brief button,
.mmc-dashboard-preview button {
  min-height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fb7185, #facc15 58%, #38bdf8);
  color: #111827;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(251, 113, 133, .28), inset 0 1px 0 rgba(255, 255, 255, .48);
}

.mmc-dashboard-preview {
  overflow: hidden;
  border: 1px solid rgba(255, 228, 230, .42);
  border-radius: 8px;
  background: rgba(15, 23, 42, .86);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .38);
}

.mmc-dashboard-preview img {
  width: 100%;
  height: 160px;
  display: block;
  object-fit: cover;
  background: #111827;
}

.mmc-dashboard-preview div {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.mmc-dashboard-preview span,
.mmc-dash-card > span {
  color: #fda4af;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-dashboard-preview strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.08;
}

.mmc-dashboard-preview p {
  color: #e8fff1;
  font-size: 14px;
  line-height: 1.38;
}

.mmc-dashboard-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mmc-dashboard-kpis .dash-kpi:nth-child(5) strong,
.mmc-dashboard-kpis .dash-kpi:nth-child(6) strong {
  font-size: 25px;
}

.mmc-dashboard-kpis .dash-kpi {
  border-color: rgba(251, 113, 133, .24);
  border-top-color: #fb7185;
  background:
    linear-gradient(180deg, rgba(49, 46, 129, .84), rgba(15, 23, 42, .82));
  box-shadow: 0 16px 36px rgba(0, 0, 0, .32), 0 0 28px rgba(251, 113, 133, .1);
}

.mmc-dashboard-grid {
  grid-area: mmc;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 12px;
}

.mmc-dash-card {
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(251, 113, 133, .22);
  border-top: 4px solid #fb7185;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(49, 46, 129, .86), rgba(15, 23, 42, .84));
  box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
}

.mmc-dash-card .mmc-plan-list {
  margin-top: 10px;
}

.mmc-dash-card .mmc-plan-item,
.mmc-dash-card .mmc-connector {
  border-color: rgba(255, 228, 230, .22);
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}

.mmc-dash-card .mmc-plan-item small,
.mmc-dash-card .mmc-connector span {
  color: rgba(226, 232, 240, .76);
}

.mmc-dash-card .mmc-plan-item strong,
.mmc-dash-card .mmc-connector strong {
  color: #ffffff;
}

@media (max-width: 1280px) {
  .mmc-dashboard-center,
  .mmc-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .mmc-dashboard-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mmc-dashboard-brief,
  .mmc-dashboard-kpis,
  .mmc-dash-card .mmc-connectors {
    grid-template-columns: 1fr;
  }
}

/* MMC clean blue marketing layout */
.mmc-clean-shell {
  min-height: calc(100vh - 76px);
  padding: 22px;
  color: #0f172a;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, .94), rgba(248, 250, 252, .98)),
    radial-gradient(circle at 14% 10%, rgba(56, 189, 248, .2), transparent 26%),
    radial-gradient(circle at 90% 18%, rgba(59, 130, 246, .18), transparent 24%),
    #f8fafc;
  overflow: auto;
}

.mmc-photo-grid {
  display: grid;
  grid-template-columns: 1.15fr .9fr .9fr 1.05fr;
  gap: 12px;
  margin-bottom: 16px;
}

.mmc-photo-tile {
  position: relative;
  min-height: 160px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  background: #dbeafe;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .1);
}

.mmc-photo-tile:first-child {
  min-height: 250px;
  grid-row: span 2;
}

.mmc-photo-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.mmc-photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, .58));
}

.mmc-photo-tile figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(37, 99, 235, .78);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-clean-main,
.mmc-modern-grid,
.mmc-counters-grid {
  display: grid;
  gap: 14px;
}

.mmc-clean-main {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  align-items: stretch;
  margin-bottom: 14px;
}

.mmc-clean-copy,
.mmc-clean-launch,
.mmc-modern-card,
.mmc-counters-grid > div {
  border: 1px solid rgba(191, 219, 254, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.mmc-clean-copy {
  padding: 28px;
}

.mmc-clean-copy .mmc-kicker,
.mmc-modern-card > span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-clean-copy h1 {
  max-width: 760px;
  margin: 10px 0 12px;
  color: #0f172a;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: 0;
}

.mmc-clean-copy p {
  max-width: 700px;
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.45;
}

.mmc-clean-launch {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 22px;
}

.mmc-clean-launch label {
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 900;
}

.mmc-dashboard-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.mmc-dashboard-brief input {
  min-height: 48px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 0 14px;
  color: #0f172a;
  background: #ffffff;
  font-size: 15px;
}

.mmc-dashboard-brief button,
.mmc-modern-card button {
  min-height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
}

.mmc-clean-goals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.mmc-clean-goals .mmc-goal {
  min-height: 76px;
  border: 1px solid #bfdbfe;
  color: #0f172a;
  background: #eff6ff;
  box-shadow: none;
}

.mmc-clean-goals .mmc-goal span {
  color: #64748b;
}

.mmc-modern-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  margin-bottom: 14px;
}

.mmc-modern-card {
  min-height: 220px;
  padding: 18px;
}

.mmc-modern-card strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.08;
}

.mmc-modern-card p {
  margin: 10px 0 18px;
  color: #475569;
  line-height: 1.45;
}

.mmc-modern-card .mmc-plan-list {
  margin-top: 12px;
}

.mmc-modern-card .mmc-plan-item {
  border-color: #dbeafe;
  background: #f8fafc;
}

.mmc-modern-card .mmc-plan-item strong {
  margin: 0;
  font-size: 14px;
}

.mmc-modern-card .mmc-plan-item > span {
  color: #ffffff;
  background: #2563eb;
}

.mmc-counters-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mmc-counters-grid > div {
  min-height: 96px;
  padding: 18px;
}

.mmc-counters-grid span,
.mmc-counters-grid strong {
  display: block;
}

.mmc-counters-grid span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-counters-grid strong {
  margin-top: 10px;
  color: #1d4ed8;
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 1180px) {
  .mmc-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mmc-clean-main,
  .mmc-modern-grid {
    grid-template-columns: 1fr;
  }

  .mmc-counters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mmc-clean-shell {
    padding: 12px;
  }

  .mmc-photo-grid,
  .mmc-clean-goals,
  .mmc-dashboard-brief,
  .mmc-counters-grid {
    grid-template-columns: 1fr;
  }

  .mmc-clean-copy h1 {
    font-size: 34px;
  }
}

/* MMC ad entry + wizard */
.mmc-ads-shell,
.mmc-system-shell {
  min-height: calc(100vh - 76px);
  padding: 22px;
  color: #0f172a;
  background:
    linear-gradient(180deg, #eff6ff, #f8fafc 48%, #ffffff),
    radial-gradient(circle at 16% 8%, rgba(59, 130, 246, .18), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(14, 165, 233, .16), transparent 28%);
  overflow: auto;
}

.mmc-ads-head {
  max-width: 920px;
  margin: 0 auto 18px;
  text-align: center;
}

.mmc-ads-head span,
.mmc-system-head span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-ads-head h1,
.mmc-system-head h1 {
  margin: 8px 0 10px;
  color: #0f172a;
  font-size: 42px;
  line-height: 1.04;
  letter-spacing: 0;
}

.mmc-ads-head p,
.mmc-system-head p {
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.45;
}

.mmc-ad-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.mmc-ad-card {
  overflow: hidden;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(37, 99, 235, .1);
}

.mmc-ad-card:first-child {
  grid-column: span 2;
}

.mmc-ad-card img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
}

.mmc-ad-card:first-child img {
  height: 300px;
}

.mmc-ad-card div {
  padding: 16px;
}

.mmc-ad-card span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-ad-card strong {
  display: block;
  margin-top: 7px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.08;
}

.mmc-ad-card p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.38;
}

.mmc-magic-entry {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 12px 0 4px;
}

.mmc-client-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.mmc-metric-card {
  min-height: 116px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 32px rgba(37, 99, 235, .08);
}

.mmc-metric-card span,
.mmc-metric-card strong,
.mmc-metric-card small {
  display: block;
}

.mmc-metric-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-metric-card strong {
  margin-top: 8px;
  color: #1d4ed8;
  font-size: 30px;
  line-height: 1;
}

.mmc-metric-card small {
  margin-top: 10px;
  color: #64748b;
  line-height: 1.28;
}

.mmc-magic-entry button {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  box-shadow: 0 20px 46px rgba(37, 99, 235, .25);
}

.mmc-magic-entry strong {
  font-size: 18px;
}

.mmc-magic-entry small {
  color: #64748b;
}

.mmc-wand {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-block;
}

.mmc-wand::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 22px;
  width: 30px;
  height: 5px;
  border-radius: 999px;
  background: #ffffff;
  transform: rotate(-35deg);
}

.mmc-wand::after {
  content: "";
  position: absolute;
  right: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #facc15;
  box-shadow:
    0 0 0 5px rgba(250, 204, 21, .25),
    0 0 22px rgba(250, 204, 21, .9),
    -13px 2px 0 -6px #ffffff,
    8px 14px 0 -6px #ffffff,
    -4px -12px 0 -7px #ffffff;
}

.mmc-system-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.mmc-login-shell {
  display: grid;
  place-items: center;
}

.mmc-login-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: stretch;
}

.mmc-login-copy,
.mmc-login-form {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 42px rgba(37, 99, 235, .1);
}

.mmc-login-copy {
  display: grid;
  align-content: center;
  padding: 34px;
}

.mmc-login-copy span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-login-copy h1 {
  margin: 10px 0 12px;
  color: #0f172a;
  font-size: 42px;
  line-height: 1.04;
  letter-spacing: 0;
}

.mmc-login-copy p {
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.45;
}

.mmc-login-form {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 26px;
}

.mmc-login-form label {
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-login-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 12px;
  color: #0f172a;
  background: #ffffff;
  font: inherit;
}

.mmc-login-form button {
  min-height: 46px;
  border-radius: 8px;
}

.mmc-login-form small {
  color: #64748b;
  line-height: 1.35;
}

.mmc-login-error {
  min-height: 18px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 800;
}

.mmc-wizard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 16px;
  margin-bottom: 16px;
}

.mmc-wizard-form,
.mmc-wizard-preview,
.mmc-preview-card {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.mmc-wizard-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.mmc-wizard-form .span-2 {
  grid-column: span 2;
}

.mmc-action-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mmc-action-card {
  min-height: 58px;
  padding: 8px 10px;
  display: grid;
  align-content: space-between;
  gap: 4px;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, .38);
  border-radius: 8px;
  color: #0f172a;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(241, 245, 249, .92));
  box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
}

.mmc-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .42);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .12);
}

.mmc-action-card span,
.mmc-action-card strong,
.mmc-action-card small {
  display: block;
}

.mmc-action-card span {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.mmc-action-card strong {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.18;
}

.mmc-action-card small {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-location-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 8px;
  background: rgba(248, 250, 252, .94);
}

.mmc-wizard-form label {
  display: block;
  margin-bottom: 3px;
  color: #1e3a8a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-wizard-form input,
.mmc-wizard-form select,
.mmc-wizard-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 12px;
  color: #0f172a;
  background: #ffffff;
  font: inherit;
}

.mmc-wizard-form textarea {
  min-height: 96px;
  resize: vertical;
}

.mmc-image-picker {
  display: grid;
  grid-template-columns: auto auto auto auto minmax(170px, 1fr);
  gap: 6px;
  align-items: end;
}

.mmc-image-picker label {
  flex-basis: 100%;
}

.mmc-image-picker .mmc-file-button {
  flex-basis: auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mmc-file-button input {
  display: none;
}

.mmc-image-url {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
}

.mmc-image-url input {
  min-height: 32px;
}

.mmc-image-picker button {
  min-height: 32px;
  padding: 6px 9px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.mmc-wizard-form .form-actions {
  gap: 6px;
  padding-top: 0;
}

.mmc-wizard-form .form-actions button {
  min-height: 34px;
  padding: 7px 10px;
}

.mmc-wizard-preview {
  overflow: hidden;
}

.mmc-wizard-preview > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
  background: #f8fafc;
}

.mmc-preview-card {
  margin: 14px;
  padding: 16px;
  box-shadow: none;
}

.mmc-preview-card span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-preview-card strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 25px;
  line-height: 1.08;
}

.mmc-preview-card p {
  margin: 8px 0 0;
  color: #475569;
}

.mmc-wizard-preview .mmc-plan-list {
  margin: 14px;
}

@media (max-width: 1180px) {
  .mmc-ad-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mmc-client-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mmc-wizard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .mmc-ads-shell,
  .mmc-system-shell {
    padding: 12px;
  }

  .mmc-ad-gallery,
  .mmc-client-metrics,
  .mmc-system-head,
  .mmc-login-card,
  .mmc-action-board,
  .mmc-location-filter,
  .mmc-wizard-form,
  .mmc-counters-grid {
    grid-template-columns: 1fr;
  }

  .mmc-ad-card:first-child,
  .mmc-wizard-form .span-2 {
    grid-column: span 1;
  }

  .mmc-ads-head h1,
  .mmc-system-head h1 {
    font-size: 32px;
  }
}

/* MMC fixed 100% workspace */
body:has(.mmc-ads-shell) .layout,
body:has(.mmc-system-shell) .layout {
  height: 100vh;
  overflow: hidden;
}

body:has(.mmc-ads-shell) .main,
body:has(.mmc-system-shell) .main,
body:has(.mmc-ads-shell) .content,
body:has(.mmc-system-shell) .content {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

body:has(.mmc-ads-shell) .footer,
body:has(.mmc-system-shell) .footer {
  display: none;
}

.mmc-ads-shell,
.mmc-system-shell {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.mmc-ads-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
}

.mmc-ads-head {
  margin-bottom: 0;
}

.mmc-ads-head h1 {
  margin: 5px 0 5px;
  font-size: clamp(26px, 3.4vw, 38px);
}

.mmc-ads-head p {
  font-size: 15px;
}

.mmc-ad-gallery {
  min-height: 0;
  height: 100%;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  align-items: stretch;
  margin-bottom: 0;
}

.mmc-ad-card {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.mmc-ad-card img,
.mmc-ad-card:first-child img {
  height: 100%;
  min-height: 0;
}

.mmc-ad-card div {
  padding: 12px;
}

.mmc-ad-card strong {
  font-size: 18px;
}

.mmc-ad-card p {
  font-size: 13px;
}

.mmc-magic-entry {
  padding: 0;
}

.mmc-magic-entry button {
  min-height: 54px;
  padding: 10px 20px;
}

.mmc-system-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
}

.mmc-system-head {
  margin-bottom: 0;
  gap: 10px;
}

.mmc-system-head h1 {
  margin: 2px 0;
  font-size: clamp(20px, 2.4vw, 28px);
}

.mmc-system-head p {
  font-size: 13px;
}

.mmc-wizard-grid {
  min-height: 0;
  height: 100%;
  margin-bottom: 0;
}

.mmc-wizard-form,
.mmc-wizard-preview {
  min-height: 0;
  overflow: hidden;
}

.mmc-wizard-form {
  gap: 8px;
  padding: 10px;
}

.mmc-wizard-form input,
.mmc-wizard-form select {
  min-height: 32px;
  padding: 6px 9px;
}

.mmc-wizard-form textarea {
  min-height: 48px;
}

.mmc-wizard-preview {
  display: grid;
  grid-template-rows: minmax(110px, .75fr) auto minmax(0, 1fr);
}

.mmc-wizard-preview > img {
  height: 100%;
  min-height: 0;
}

.mmc-preview-card {
  margin: 8px;
  padding: 10px;
}

.mmc-preview-card strong {
  font-size: 20px;
}

.mmc-preview-card p {
  font-size: 13px;
}

.mmc-wizard-preview .mmc-plan-list {
  min-height: 0;
  margin: 0 8px 8px;
}

.mmc-plan-item {
  padding: 6px;
}

.mmc-counters-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.mmc-counters-grid > div {
  min-height: 52px;
  padding: 8px;
}

.mmc-counters-grid strong {
  margin-top: 3px;
  font-size: 20px;
}

.mmc-login-shell {
  padding: 14px;
}

.mmc-login-card {
  max-height: 100%;
}

.mmc-platform-intro-shell {
  display: grid;
  place-items: stretch;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, .78), rgba(30, 64, 175, .36), rgba(15, 23, 42, .78));
  position: relative;
  isolation: isolate;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: 12px;
}

.mmc-platform-intro-shell::before,
.mmc-platform-intro-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transition: opacity 2600ms ease;
}

.mmc-platform-intro-shell::before {
  background-image: var(--mmc-intro-bg-a);
  opacity: 1;
}

.mmc-platform-intro-shell::after {
  background-image: var(--mmc-intro-bg-b);
  opacity: 0;
}

.mmc-platform-intro-shell.show-bg-b::before {
  opacity: 0;
}

.mmc-platform-intro-shell.show-bg-b::after {
  opacity: 1;
}

.mmc-platform-intro-shell .dashboard-vignette,
.mmc-platform-intro-shell::selection {
  background: transparent;
}

.mmc-platform-show {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  height: 100%;
  align-content: start;
  animation: mmcCinematicIn 900ms ease both;
}

.mmc-platform-show-copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 12px 18px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .46);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .26);
}

.mmc-platform-show-copy span {
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

.mmc-platform-show-copy h1 {
  margin: 6px 0;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 8px 26px rgba(0, 0, 0, .62);
}

.mmc-platform-show-copy p {
  margin: 0;
  color: #eef6ff;
  font-size: 16px;
  line-height: 1.4;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .6);
}

.mmc-logo-panel {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  width: 119px;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: auto;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.mmc-logo-stage {
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(11, 67px);
  gap: 6px;
  align-items: stretch;
  width: 100%;
  opacity: .08;
  transform: translateY(0) scale(.96);
  pointer-events: none;
  transition: opacity 900ms ease, transform 900ms ease;
}

.mmc-logo-stage.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mmc-logo-stage.is-ready {
  pointer-events: auto;
}

.mmc-logo-choice {
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  height: 67px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(8, 13, 28, .94), rgba(15, 23, 42, .82));
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 38px rgba(2, 6, 23, .58), inset 0 1px 0 rgba(255, 255, 255, .24);
  animation: mmcPosterFloat 4.8s ease-in-out infinite;
  cursor: default;
}

.mmc-logo-stage.is-ready .mmc-logo-choice {
  cursor: pointer;
  border-color: rgba(255, 255, 255, .68);
  background: linear-gradient(135deg, rgba(8, 13, 28, .96), rgba(12, 80, 116, .64));
  color: #ffffff;
  animation: mmcLogoDock 650ms ease both;
}

.mmc-logo-choice:hover {
  transform: translateY(-6px) scale(1.02);
}

.mmc-logo-choice img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: none;
  transition: transform 300ms ease;
}

.mmc-logo-choice span {
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .72);
}

.mmc-logo-choice:nth-child(-n + 5) {
  grid-column: 1;
  justify-self: stretch;
}

.mmc-logo-choice:nth-child(n + 6) {
  grid-column: 1;
  justify-self: stretch;
}

.mmc-logo-choice:nth-child(1) { grid-row: 1; }
.mmc-logo-choice:nth-child(2) { grid-row: 2; }
.mmc-logo-choice:nth-child(3) { grid-row: 3; }
.mmc-logo-choice:nth-child(4) { grid-row: 4; }
.mmc-logo-choice:nth-child(5) { grid-row: 5; }
.mmc-logo-choice:nth-child(6) { grid-row: 6; }
.mmc-logo-choice:nth-child(7) { grid-row: 7; }
.mmc-logo-choice:nth-child(8) { grid-row: 8; }
.mmc-logo-choice:nth-child(9) { grid-row: 9; }
.mmc-logo-choice:nth-child(10) { grid-row: 10; }
.mmc-logo-choice:nth-child(11) { grid-row: 11; }

.mmc-logo-choice:nth-child(2) { animation-delay: .18s; }
.mmc-logo-choice:nth-child(3) { animation-delay: .36s; }
.mmc-logo-choice:nth-child(4) { animation-delay: .54s; }
.mmc-logo-choice:nth-child(5) { animation-delay: .72s; }
.mmc-logo-choice:nth-child(6) { animation-delay: .9s; }
.mmc-logo-choice:nth-child(7) { animation-delay: 1.08s; }
.mmc-logo-choice:nth-child(8) { animation-delay: 1.26s; }
.mmc-logo-choice:nth-child(9) { animation-delay: 1.44s; }
.mmc-logo-choice:nth-child(10) { animation-delay: 1.62s; }
.mmc-logo-choice:nth-child(11) { animation-delay: 1.8s; }

@keyframes mmcLogoDock {
  from {
    transform: translateY(-10px) scale(.96);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

.mmc-platform-ready {
  display: grid;
  place-items: center;
  gap: 8px;
}

.mmc-platform-ready button {
  min-height: 54px;
  border-radius: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(37, 99, 235, .22);
  animation: mmcButtonPulse 1.6s ease-in-out infinite;
}

.mmc-platform-ready small {
  color: #e0f2fe;
  font-weight: 800;
}

@keyframes mmcCinematicIn {
  from {
    opacity: 0;
    transform: scale(1.035);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mmcPosterFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.01);
  }
}

@keyframes mmcButtonPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 18px 38px rgba(37, 99, 235, .22);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(37, 99, 235, .34);
  }
}

.mmc-platform-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mmc-platform-card {
  display: grid;
  align-content: center;
  gap: 9px;
  min-height: 0;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #0f172a;
  text-align: left;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 36px rgba(37, 99, 235, .08);
}

.mmc-platform-card span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-platform-card strong {
  font-size: 20px;
  line-height: 1.08;
}

.mmc-platform-card small {
  color: #64748b;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .mmc-ad-gallery,
  .mmc-platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mmc-wizard-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(300px, .96fr);
  }

  .mmc-ad-card:first-child {
    grid-column: span 1;
  }
}

/* Mobile touch/scroll repair: keep every menu and action button reachable. */
@media (max-width: 768px) {
  html,
  body {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .layout {
    display: block;
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    max-height: none;
    overflow: visible;
  }

  .menu {
    flex-wrap: wrap;
    overflow: visible;
    align-items: flex-start;
  }

  .menu button {
    min-height: 44px;
    white-space: normal;
  }

  .submenu {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    flex: 0 0 100%;
    gap: 8px;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
  }

  .submenu.is-open {
    display: flex;
  }

  .submenu button {
    min-height: 42px;
    margin: 0;
  }

  .main,
  .content {
    height: auto;
    overflow: visible;
  }

  .content:has(.dashboard-shell) {
    overflow: visible;
  }

  button,
  .btn {
    min-height: 44px;
    touch-action: manipulation;
  }

  body:has(.mmc-ads-shell) .layout,
  body:has(.mmc-system-shell) .layout,
  body:has(.mmc-ads-shell) .main,
  body:has(.mmc-system-shell) .main,
  body:has(.mmc-ads-shell) .content,
  body:has(.mmc-system-shell) .content {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .mmc-ads-shell,
  .mmc-system-shell {
    height: auto;
    max-height: none;
    min-height: calc(100svh - 148px);
    overflow: visible;
  }

  .mmc-ads-shell,
  .mmc-system-shell,
  .mmc-platform-show {
    display: grid;
    grid-template-rows: auto auto auto;
  }

  .mmc-platform-intro-shell,
  .mmc-platform-intro-shell .mmc-platform-show {
    height: 100svh;
    max-height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  .mmc-ad-gallery,
  .mmc-platform-grid,
  .mmc-wizard-grid {
    height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .mmc-ad-card,
  .mmc-wizard-form,
  .mmc-wizard-preview {
    overflow: visible;
  }

  .mmc-ad-card img,
  .mmc-ad-card:first-child img {
    height: 180px;
  }

  .mmc-platform-show {
    gap: 10px;
  }

  .mmc-platform-show-copy {
    padding: 10px 12px;
  }

  .mmc-platform-show-copy h1 {
    font-size: 30px;
  }

  .mmc-platform-show-copy p {
    font-size: 14px;
  }

  .mmc-logo-panel {
    left: 10px;
    top: 10px;
    width: 119px;
    padding: 0;
    gap: 0;
    border-radius: 0;
    grid-template-rows: auto;
  }

  .mmc-logo-stage {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
}

/* BFClean MMC fit: keep MMC inside the available workspace without bottom cuts. */
#socialMarketingSection:has(.mmc-ads-shell),
#socialMarketingSection:has(.mmc-system-shell) {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
  padding-right: 0 !important;
}

#socialMarketingSection:has(.mmc-ads-shell) #contentArea,
#socialMarketingSection:has(.mmc-system-shell) #contentArea {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.mmc-ads-shell,
.mmc-system-shell {
  width: 100%;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.mmc-ads-shell {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
}

.mmc-ads-head h1 {
  font-size: clamp(22px, 2.6vw, 32px);
}

.mmc-ads-head p {
  font-size: 13px;
}

.mmc-ad-gallery {
  gap: 8px;
}

.mmc-ad-card div {
  padding: 8px;
}

.mmc-ad-card strong {
  font-size: 16px;
}

.mmc-ad-card p {
  font-size: 12px;
}

.mmc-magic-entry button {
  min-height: 46px;
  padding: 8px 18px;
}

.mmc-system-shell {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 6px;
  padding: 8px;
}

.mmc-system-head {
  gap: 8px;
}

.mmc-system-head h1 {
  font-size: clamp(18px, 2vw, 24px);
}

.mmc-system-head p {
  font-size: 12px;
}

.mmc-platform-intro-shell {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  padding: 8px;
}

.mmc-platform-show {
  height: 100%;
  min-height: 0;
  gap: 5px;
}

.mmc-platform-show-copy {
  padding: 9px 14px;
}

.mmc-platform-show-copy h1 {
  font-size: clamp(24px, 3vw, 36px);
}

.mmc-platform-show-copy p {
  font-size: 13px;
}

.mmc-logo-panel {
  left: 8px;
  top: 8px;
  width: 100px;
}

.mmc-logo-stage {
  grid-template-rows: repeat(11, 48px);
  gap: 4px;
}

.mmc-logo-choice {
  height: 48px;
  min-height: 0;
  gap: 3px;
  padding: 2px 4px;
}

.mmc-logo-choice img {
  width: 30px;
  height: 30px;
}

.mmc-logo-choice span {
  font-size: 7px;
}

.mmc-platform-ready button {
  min-height: 44px;
  padding: 8px 18px;
}

.mmc-wizard-grid {
  height: 100%;
  min-height: 0;
  gap: 8px;
}

.mmc-wizard-form {
  gap: 6px;
  padding: 8px;
  overflow: hidden;
}

.mmc-action-board {
  gap: 6px;
}

.mmc-action-card {
  min-height: 46px;
  padding: 6px 8px;
}

.mmc-action-card strong {
  font-size: 12px;
}

.mmc-action-card small {
  font-size: 9px;
}

.mmc-location-filter {
  gap: 6px;
  padding: 6px;
}

.mmc-wizard-form label {
  margin-bottom: 2px;
  font-size: 9px;
}

.mmc-wizard-form input,
.mmc-wizard-form select {
  min-height: 29px;
  padding: 5px 8px;
  font-size: 12px;
}

.mmc-wizard-form textarea {
  min-height: 40px;
  padding: 6px 8px;
  font-size: 12px;
}

.mmc-image-picker {
  gap: 5px;
}

.mmc-wizard-form .form-actions button,
.mmc-image-picker button,
.mmc-image-picker .mmc-file-button {
  min-height: 29px;
  padding: 5px 8px;
  font-size: 11px;
}

.mmc-wizard-preview {
  grid-template-rows: minmax(76px, .48fr) auto minmax(0, 1fr);
}

.mmc-preview-card {
  margin: 6px;
  padding: 8px;
}

.mmc-preview-card strong {
  font-size: 18px;
}

.mmc-preview-card p {
  font-size: 12px;
}

.mmc-wizard-preview .mmc-plan-list {
  margin: 0 6px 6px;
  overflow: hidden;
}

.mmc-plan-item {
  padding: 5px;
}

.mmc-plan-item small {
  font-size: 11px;
}

.mmc-counters-grid {
  gap: 6px;
}

.mmc-counters-grid > div {
  min-height: 44px;
  padding: 6px;
}

.mmc-counters-grid strong {
  font-size: 17px;
}

@media (max-width: 1180px) {
  #socialMarketingSection:has(.mmc-ads-shell),
  #socialMarketingSection:has(.mmc-system-shell),
  #socialMarketingSection:has(.mmc-ads-shell) #contentArea,
  #socialMarketingSection:has(.mmc-system-shell) #contentArea,
  .mmc-ads-shell,
  .mmc-system-shell {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
}

/* MMC upload preview guard - 20260520. */
#socialMarketingSection .mmc-wizard-preview:has(#mmcCreativePreview) {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 14px;
  min-height: 0;
  overflow: hidden;
}

#socialMarketingSection .mmc-wizard-preview:has(#mmcCreativePreview) > #mmcCreativePreview {
  flex: 0 1 auto;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block;
  border-radius: 10px;
  background: #f8fafc;
}

#socialMarketingSection .mmc-wizard-preview:has(#mmcCreativePreview) .mmc-preview-card,
#socialMarketingSection .mmc-wizard-preview:has(#mmcCreativePreview) .mmc-plan-list {
  display: none !important;
}

/* MMC 100% presentation mode inside BFClean. */
.main-content:has(#socialMarketingSection:not(.hidden) .mmc-ads-shell),
.main-content:has(#socialMarketingSection:not(.hidden) .mmc-system-shell) {
  padding: 10px !important;
  overflow: hidden !important;
}

.main-content:has(#socialMarketingSection:not(.hidden) .mmc-ads-shell) > #socialMarketingSection,
.main-content:has(#socialMarketingSection:not(.hidden) .mmc-system-shell) > #socialMarketingSection {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding-right: 0 !important;
}

#socialMarketingSection:has(.mmc-ads-shell) #contentArea,
#socialMarketingSection:has(.mmc-system-shell) #contentArea {
  position: relative;
  width: 100%;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

#socialMarketingSection:has(.mmc-ads-shell) .mmc-ads-shell {
  transform: scale(.96);
  transform-origin: top left;
  width: 104.2%;
  height: 104.2% !important;
  max-height: 104.2% !important;
}

#socialMarketingSection:has(.mmc-system-shell) .mmc-system-shell {
  transform: scale(.88);
  transform-origin: top left;
  width: 113.7%;
  height: 113.7% !important;
  max-height: 113.7% !important;
}

#socialMarketingSection:has(.mmc-platform-intro-shell) .mmc-platform-intro-shell {
  transform: scale(.9);
  transform-origin: top left;
  width: 111.2%;
  height: 111.2% !important;
  max-height: 111.2% !important;
}

#socialMarketingSection:has(.mmc-ads-shell) .mmc-ad-gallery {
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
}

#socialMarketingSection:has(.mmc-system-shell) .mmc-wizard-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
}

#socialMarketingSection:has(.mmc-system-shell) .mmc-wizard-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#socialMarketingSection:has(.mmc-system-shell) .mmc-action-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#socialMarketingSection:has(.mmc-system-shell) .mmc-counters-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-height: 760px) {
  #socialMarketingSection:has(.mmc-ads-shell) .mmc-ads-shell {
    transform: scale(.9);
    width: 111.2%;
    height: 111.2% !important;
    max-height: 111.2% !important;
  }

  #socialMarketingSection:has(.mmc-system-shell) .mmc-system-shell,
  #socialMarketingSection:has(.mmc-platform-intro-shell) .mmc-platform-intro-shell {
    transform: scale(.78);
    width: 128.3%;
    height: 128.3% !important;
    max-height: 128.3% !important;
  }
}

.mmc-publish-preview-shell {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 5px;
  padding: 5px;
}

.mmc-publish-preview-shell .mmc-system-head {
  gap: 8px;
}

.mmc-publish-preview-shell .mmc-system-head h1 {
  font-size: clamp(17px, 1.8vw, 22px);
}

.mmc-publish-preview-shell .mmc-system-head p {
  font-size: 12px;
}

.mmc-publish-preview-grid {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 6px;
  overflow: hidden;
}

.mmc-publish-ad-preview,
.mmc-publish-checklist {
  min-height: 0;
  overflow: hidden;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}

.mmc-publish-ad-preview {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 68px;
  gap: 6px;
  padding: 6px;
  background:
    linear-gradient(135deg, #f8fafc, #eff6ff);
}

.mmc-publish-artboard {
  min-height: 0;
  position: relative;
  display: block;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  overflow: hidden;
}

.mmc-publish-image-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%),
    #f8fafc;
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.mmc-publish-image-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  display: block;
}

.mmc-publish-ad-copy {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: grid;
  align-content: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  padding: 8px;
  border: 1px solid rgba(191, 219, 254, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .12);
}

.mmc-publish-ad-preview span,
.mmc-publish-next-card span,
.mmc-publish-facts span {
  color: #1d4ed8;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.mmc-publish-ad-preview strong {
  display: block;
  color: #0f172a;
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1;
}

.mmc-publish-ad-preview p,
.mmc-publish-next-card p,
.mmc-publish-steps small {
  color: #475569;
  line-height: 1.24;
  font-size: 11px;
}

.mmc-publish-ad-preview button {
  width: fit-content;
  min-height: 30px;
  border-radius: 8px;
  padding: 6px 11px;
  background: #0f172a;
  color: #ffffff;
  grid-row: 1 / span 3;
  grid-column: 2;
  align-self: center;
}

.mmc-social-mock {
  padding: 6px 8px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.mmc-social-mock-head,
.mmc-social-mock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mmc-social-mock-head > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-weight: 900;
}

.mmc-social-mock-head strong,
.mmc-social-mock-head small {
  display: block;
}

.mmc-social-mock-head strong {
  color: #0f172a;
}

.mmc-social-mock-head small,
.mmc-social-mock-footer small {
  color: #64748b;
}

.mmc-social-mock p {
  margin: 4px 0;
  color: #334155;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mmc-social-mock-footer button {
  min-height: 28px;
  border-radius: 8px;
  padding: 5px 9px;
  background: #2563eb;
  color: #fff;
}

.mmc-publish-checklist {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 5px;
  padding: 5px;
}

.mmc-publish-next-card,
.mmc-publish-facts,
.mmc-publish-steps {
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  padding: 7px;
}

.mmc-publish-next-card strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 16px;
}

.mmc-publish-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.mmc-publish-facts div {
  padding: 6px;
  border-radius: 8px;
  background: #fff;
}

.mmc-publish-facts strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 11px;
}

.mmc-publish-steps {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 4px;
}

.mmc-publish-steps div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px;
  align-items: start;
  padding: 5px;
  border-radius: 8px;
  background: #fff;
}

.mmc-publish-steps div span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #0f172a;
  color: #fff;
  font-weight: 900;
}

.mmc-publish-steps strong {
  display: block;
  color: #0f172a;
  font-size: 11px;
}

#socialMarketingSection:has(.mmc-publish-preview-shell) .mmc-publish-preview-shell {
  transform: scale(1);
  transform-origin: top left;
  width: 100%;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

#socialMarketingSection:has(.mmc-publish-preview-shell) #contentArea {
  overflow: hidden !important;
}

@media (max-height: 760px) {
  #socialMarketingSection:has(.mmc-publish-preview-shell) .mmc-publish-preview-shell {
    transform: scale(1);
    width: 100%;
    height: 100% !important;
    max-height: 100% !important;
  }

  .mmc-publish-preview-shell .mmc-system-head p {
    display: none;
  }
}

@media (max-width: 1180px) {
  .mmc-publish-preview-grid,
  .mmc-publish-artboard {
    grid-template-columns: 1fr;
    overflow: hidden;
  }
}


/* MMC 100% no-scroll and Magic preview guard - 20260520. */
#socialMarketingSection:has(.mmc-wizard-grid),
#socialMarketingSection:has(.mmc-publish-preview-shell) {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

#socialMarketingSection:has(.mmc-wizard-grid) #contentArea,
#socialMarketingSection:has(.mmc-publish-preview-shell) #contentArea {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

#socialMarketingSection:has(.mmc-wizard-grid) .mmc-system-shell,
#socialMarketingSection:has(.mmc-publish-preview-shell) .mmc-publish-preview-shell {
  transform: none !important;
  transform-origin: top left;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#socialMarketingSection:has(.mmc-wizard-grid) .mmc-system-shell {
  grid-template-rows: auto minmax(0, 1fr) minmax(38px, auto) !important;
  gap: 6px;
  padding: 8px;
}

#socialMarketingSection:has(.mmc-wizard-grid) .mmc-system-head {
  min-height: 0;
  gap: 8px;
}

#socialMarketingSection:has(.mmc-wizard-grid) .mmc-system-head h1 {
  font-size: clamp(17px, 1.8vw, 23px);
  line-height: 1.04;
}

#socialMarketingSection:has(.mmc-wizard-grid) .mmc-system-head p {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
}

#socialMarketingSection:has(.mmc-wizard-grid) .mmc-wizard-grid {
  min-height: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

#socialMarketingSection:has(.mmc-wizard-grid) .mmc-counters-grid {
  align-self: end;
  min-height: 38px;
  gap: 5px;
}

#socialMarketingSection:has(.mmc-wizard-grid) .mmc-counters-grid > div {
  min-height: 38px;
  padding: 4px 6px;
}

#socialMarketingSection:has(.mmc-wizard-grid) .mmc-counters-grid span {
  font-size: 9px;
  line-height: 1;
}

#socialMarketingSection:has(.mmc-wizard-grid) .mmc-counters-grid strong {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1;
}

#socialMarketingSection:has(.mmc-publish-preview-shell) .mmc-publish-preview-shell {
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 6px;
  padding: 6px;
}

#socialMarketingSection:has(.mmc-publish-preview-shell) .mmc-publish-preview-grid {
  grid-template-columns: minmax(0, 1fr) minmax(318px, .42fr);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

#socialMarketingSection:has(.mmc-publish-preview-shell) .mmc-publish-checklist {
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 6px;
  padding: 6px;
  overflow: hidden;
}

#socialMarketingSection:has(.mmc-publish-preview-shell) .mmc-publish-next-card p,
#socialMarketingSection:has(.mmc-publish-preview-shell) .mmc-publish-steps small {
  font-size: 11px;
  line-height: 1.25;
}

#socialMarketingSection:has(.mmc-publish-preview-shell) .mmc-publish-steps {
  align-content: stretch;
  overflow: hidden;
}

#socialMarketingSection:has(.mmc-publish-preview-shell) .mmc-publish-steps div {
  grid-template-columns: 22px minmax(0, 1fr);
  padding: 6px;
}

#socialMarketingSection:has(.mmc-publish-preview-shell) .mmc-publish-steps div span {
  width: 22px;
  height: 22px;
}

@media (max-height: 760px) {
  #socialMarketingSection:has(.mmc-wizard-grid) .mmc-system-head p,
  #socialMarketingSection:has(.mmc-publish-preview-shell) .mmc-system-head p {
    display: none;
  }

  #socialMarketingSection:has(.mmc-wizard-grid) .mmc-system-shell {
    grid-template-rows: auto minmax(0, 1fr) 34px !important;
    gap: 5px;
    padding: 6px;
  }

  #socialMarketingSection:has(.mmc-wizard-grid) .mmc-counters-grid,
  #socialMarketingSection:has(.mmc-wizard-grid) .mmc-counters-grid > div {
    min-height: 34px;
  }
}
