/* Sleek admin boards for Growth, Sponsorship, and Sponsor builder. Follows the site light / dark theme. */
.fxd {
  --fxd-card: #ffffff;
  --fxd-inset: #f6f7fb;
  --fxd-line: rgba(15, 23, 42, 0.08);
  --fxd-text: #12141a;
  --fxd-muted: #6b7280;
  --fxd-track: rgba(15, 23, 42, 0.08);
  --fxd-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --fxd-radius: 22px;
  color: var(--fxd-text);
}
html[data-theme="dark"] .fxd,
html[data-theme="hybrid"] .fxd {
  --fxd-card: #171a22;
  --fxd-inset: #12141c;
  --fxd-line: rgba(255, 255, 255, 0.07);
  --fxd-text: #f4f6f8;
  --fxd-muted: #9aa3b5;
  --fxd-track: rgba(255, 255, 255, 0.08);
  --fxd-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.fxd h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fxd-text);
}
.fxd .fxd-sub {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  color: var(--fxd-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.fxd-head { margin-bottom: 1.25rem; }

.fxd .card,
.fxd-card {
  background: var(--fxd-card) !important;
  color: var(--fxd-text) !important;
  border: 1px solid var(--fxd-line) !important;
  border-radius: var(--fxd-radius) !important;
  box-shadow: var(--fxd-shadow) !important;
}
.fxd-card { padding: 1.35rem 1.45rem; margin-bottom: 1.15rem; }
.fxd-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fxd-text);
}
.fxd-note { margin: 0 0 1rem; color: var(--fxd-muted); font-size: 0.8rem; line-height: 1.45; }

.fxd-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}
.fxd-stat {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 6.4rem;
  padding: 1rem 1.1rem;
  background: var(--fxd-card);
  border: 1px solid var(--fxd-line);
  border-radius: var(--fxd-radius);
  box-shadow: var(--fxd-shadow);
}
.fxd-k { font-size: 0.78rem; color: var(--fxd-muted); }
.fxd-v {
  margin-top: 0.1rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fxd-text);
  font-variant-numeric: tabular-nums;
}
.fxd-h { margin-top: 0.15rem; font-size: 0.72rem; color: var(--fxd-muted); }
.fxd-ring { width: 3.6rem; height: 3.6rem; flex: none; }
.fxd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fxd-ring-track { fill: none; stroke: var(--fxd-track); stroke-width: 3.2; }
.fxd-ring-val { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; }

.fxd-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}
.fxd-split > .card { margin-bottom: 0; }

.fxd table { width: 100%; border-collapse: separate; border-spacing: 0; }
.fxd th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fxd-muted);
  padding: 0.45rem 0.5rem 0.7rem;
}
.fxd td {
  padding: 0.75rem 0.5rem;
  border-top: 1px solid var(--fxd-line);
  color: var(--fxd-text);
  font-size: 0.9rem;
}
.fxd th.text-right, .fxd td.text-right { text-align: right; }

.fxd-list { display: flex; flex-direction: column; gap: 0.55rem; }
.fxd-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: var(--fxd-inset);
  border: 1px solid var(--fxd-line);
}
.fxd-dot {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex: none;
  background: linear-gradient(135deg, #38bdf8, #a78bfa);
}
.fxd-row-main { min-width: 8rem; flex: 1; }
.fxd-row-main strong { display: block; color: var(--fxd-text); }
.fxd-row-main span, .fxd-meta { color: var(--fxd-muted); font-size: 0.78rem; }

.fxd-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 1.35rem;
  margin: 1.15rem 0 1.5rem;
}
.fxd-stack { display: flex; flex-direction: column; gap: 1.2rem; }
.fxd-field { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.fxd-field label, .fxd form .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fxd-muted);
}
.fxd-field .input,
.fxd-field textarea,
.fxd-field .ss-dd { margin: 0 !important; width: 100%; }
.fxd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.35rem;
}
.fxd-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  color: var(--fxd-text);
  font-size: 0.85rem;
}

.fxd-seg {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: var(--fxd-inset);
  border: 1px solid var(--fxd-line);
  position: relative;
  z-index: 2;
}
.fxd-seg button {
  border: 0;
  background: transparent;
  color: var(--fxd-muted);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}
.fxd-seg button.on {
  background: #45a04e;
  color: #fff;
}

/* Phone slot cards stay a dark handset in both themes. Pills must stay readable. */
.sb-phone {
  background: #121614 !important;
  color: #F4F6F5 !important;
  border-color: #2a3330 !important;
}
.sb-pill {
  border-radius: 999px !important;
  border: 1px solid #52B788 !important;
  background: #1c2822 !important;
  color: #F4F6F5 !important;
  padding: 0.22rem 0.6rem;
  line-height: 1.2;
}
.sb-pill.on {
  background: #45A04E !important;
  border-color: #2E7D32 !important;
  color: #fff !important;
}

.fxd-pop { position: relative; z-index: 30; overflow: visible; }
.fxd-proposal { position: relative; z-index: 1; }
.fxd .ss-dd-menu { z-index: 240; }

.fxd #sp-form .input,
.fxd #sp-form .ss-dd { margin-bottom: 1rem !important; }
.fxd #sp-form .label { display: block; margin: 0.15rem 0 0.4rem; }

@media (max-width: 980px) {
  .fxd-stats, .fxd-split, .fxd-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .fxd-stats, .fxd-split, .fxd-form { grid-template-columns: 1fr; }
}
