.md1-frame,
.md1-editor-surface,
.md1-post-card,
.sf-module-slot,
.sf-case-card,
.sf-winner-card,
.sf-media-placeholder,
.sf-module-fallback,
.md1-hero,
.md1-auth-fallback {
  position: relative;
  overflow: hidden;
  border-radius: var(--md1-radius);
  border: 1px solid var(--md1-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    var(--md1-surface);
  box-shadow: var(--md1-shadow);
}

.md1-frame::before,
.md1-editor-surface::before,
.md1-post-card::before,
.sf-module-slot::before,
.sf-case-card::before,
.sf-winner-card::before,
.sf-media-placeholder::before,
.sf-module-fallback::before,
.md1-hero::before,
.md1-auth-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(124,58,237,.14), transparent 26%),
    linear-gradient(320deg, rgba(236,72,153,.12), transparent 32%);
}

.md1-frame,
.md1-editor-surface,
.md1-post-card,
.sf-module-slot,
.sf-case-card,
.sf-winner-card,
.sf-media-placeholder,
.sf-module-fallback,
.md1-auth-fallback {
  padding: 24px;
}

.md1-frame--center {
  text-align: center;
}

.md1-frame--hero {
  padding: 30px;
}

.md1-frame__lead {
  max-width: 740px;
  color: var(--md1-muted);
}

.md1-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 24px;
  padding: 34px;
}

.md1-hero--compact {
  grid-template-columns: 1fr minmax(260px, .75fr);
}

.md1-hero__content,
.md1-hero__visual {
  position: relative;
  z-index: 1;
}

.sf-grid {
  gap: 20px;
}

.sf-grid.wp-block-columns {
  display: grid !important;
}

.sf-grid.wp-block-columns > .wp-block-column {
  margin: 0 !important;
  min-width: 0;
}

.sf-grid--2.wp-block-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sf-grid--3.wp-block-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sf-media-placeholder {
  display: grid;
  place-items: center;
  min-height: 250px;
  text-align: center;
  border-color: rgba(124,58,237,.24);
  background:
    radial-gradient(circle at center, rgba(124,58,237,.18), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    var(--md1-surface-strong);
}

.sf-media-placeholder--hero {
  min-height: 320px;
}

.sf-media-placeholder__label {
  display: block;
  font-weight: 700;
  color: #fff;
}

.sf-case-card {
  min-height: 240px;
  display: grid;
  align-content: start;
}

.sf-case-card--purple {
  border-color: rgba(124,58,237,.26);
  box-shadow: 0 0 36px rgba(124,58,237,.10);
}

.sf-case-card--pink {
  border-color: rgba(236,72,153,.26);
  box-shadow: 0 0 36px rgba(236,72,153,.10);
}

.sf-case-card--gold {
  border-color: rgba(245,158,11,.26);
  box-shadow: 0 0 36px rgba(245,158,11,.10);
}

.sf-winner-card {
  min-height: 140px;
}

.sf-winner-card--purple { border-color: rgba(124,58,237,.18); }
.sf-winner-card--pink { border-color: rgba(236,72,153,.18); }
.sf-winner-card--gold { border-color: rgba(245,158,11,.18); }

.sf-module-slot {
  border-color: rgba(255,255,255,.10);
}

.sf-module-slot .wp-block-shortcode {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(8, 12, 24, 0.72);
}

.sf-module-slot--stream { border-color: rgba(124,58,237,.28); }
.sf-module-slot--cases { border-color: rgba(236,72,153,.24); }
.sf-module-slot--loot { border-color: rgba(245,158,11,.24); }
.sf-module-slot--referrals { border-color: rgba(59,130,246,.24); }
.sf-module-slot--schedule { border-color: rgba(124,58,237,.18); }
.sf-module-slot--videos { border-color: rgba(236,72,153,.18); }

.sf-module-fallback {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
}

.sf-module-fallback__glow {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--md1-purple), var(--md1-pink), var(--md1-gold));
  opacity: .9;
  box-shadow: 0 0 34px rgba(124,58,237,.30);
}

.md1-auth-button,
.md1-auth-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--md1-purple), var(--md1-pink));
  box-shadow: 0 0 24px rgba(124,58,237,.22);
}

.md1-auth-button--ghost {
  background: rgba(255,255,255,.04);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,.10);
}

.md1-auth-fallback p {
  margin-bottom: 14px;
  color: var(--md1-muted);
}

.md1-post-card h2 {
  margin-bottom: 10px;
}

.md1-meta {
  color: var(--md1-muted);
  font-size: .92rem;
}

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

  .sf-grid--3.wp-block-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sf-grid--2.wp-block-columns,
  .sf-grid--3.wp-block-columns {
    grid-template-columns: 1fr;
  }
}
