/* Marketing dashboard — blue performance studio */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap');

body[data-dash="marketing"] {
  --mkt-ink: #0b1a33;
  --mkt-teal: #1d4ed8;
  --mkt-teal-bright: #3b82f6;
  --mkt-mint: #bfdbfe;
  --mkt-sand: #f3f6fb;
  --mkt-card: #ffffff;
  --mkt-line: rgba(29, 78, 216, 0.14);
  font-family: 'DM Sans', system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(59, 130, 246, 0.16), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(29, 78, 216, 0.1), transparent 50%),
    linear-gradient(180deg, #f5f8fc 0%, var(--mkt-sand) 40%, #eef2f8 100%);
}

body[data-dash="marketing"] h1,
body[data-dash="marketing"] h2,
body[data-dash="marketing"] h3,
body[data-dash="marketing"] .mkt-display {
  font-family: 'Syne', 'DM Sans', sans-serif;
  letter-spacing: -0.03em;
}

body[data-dash="marketing"] .dash-sidebar {
  background: linear-gradient(180deg, #0b1a33 0%, #0f2744 100%);
  border-right: 0;
  color: #e8eef8;
}
body[data-dash="marketing"] .dash-menu-title { color: rgba(232, 238, 248, 0.55); }
body[data-dash="marketing"] .dash-link { color: rgba(232, 238, 248, 0.82); }
body[data-dash="marketing"] .dash-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
body[data-dash="marketing"] .dash-link.active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.35);
}
body[data-dash="marketing"] .dash-link-ic { color: rgba(232, 238, 248, 0.55); }
body[data-dash="marketing"] .dash-link:hover .dash-link-ic,
body[data-dash="marketing"] .dash-link.active .dash-link-ic { color: #fff; }
body[data-dash="marketing"] .dash-side-foot { border-top-color: rgba(255,255,255,0.1); }
body[data-dash="marketing"] .dash-legal-links a { color: rgba(232, 238, 248, 0.55); }
body[data-dash="marketing"] .dash-brand img { filter: brightness(1.05); }

.mkt-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: stretch;
}
.mkt-hero-copy {
  padding: 1.6rem 1.75rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(11, 26, 51, 0.96), rgba(29, 78, 216, 0.92)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: #f0fdfa;
  position: relative;
  overflow: hidden;
  min-height: 210px;
}
.mkt-hero-copy::after {
  content: '';
  position: absolute;
  right: -40px; bottom: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 219, 254, 0.35), transparent 70%);
  pointer-events: none;
}
.mkt-hero-copy h1 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 .4rem;
}
.mkt-hero-copy p { color: rgba(240, 253, 250, 0.78); margin: 0 0 1.1rem; max-width: 36ch; }
.mkt-hero-meta {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.mkt-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: .78rem;
  font-weight: 600;
  color: #eff6ff;
}

.mkt-link-card {
  background: var(--mkt-card);
  border: 1px solid var(--mkt-line);
  border-radius: 22px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 12px 40px rgba(11, 26, 51, 0.06);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.mkt-link-card h3 { margin: 0; font-size: 1.05rem; color: var(--mkt-ink); }
.mkt-link-row {
  display: flex; gap: .5rem; align-items: stretch;
}
.mkt-link-row input {
  flex: 1;
  border: 1.5px solid var(--mkt-line);
  border-radius: 12px;
  padding: .7rem .85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  background: #f8fbfa;
  color: var(--mkt-ink);
}
.mkt-link-row .btn {
  border-radius: 12px;
  white-space: nowrap;
  background: var(--mkt-teal);
  border-color: var(--mkt-teal);
}
.mkt-link-row .btn:hover { background: #2563eb; }

.mkt-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.mkt-kpi {
  background: var(--mkt-card);
  border: 1px solid var(--mkt-line);
  border-radius: 18px;
  padding: 1.1rem 1.15rem;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mkt-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(11, 26, 51, 0.08);
}
.mkt-kpi::before {
  content: '';
  position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--mkt-teal-bright), var(--mkt-teal));
}
.mkt-kpi .label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #5b6b7c;
  margin-bottom: .35rem;
}
.mkt-kpi .value {
  font-family: 'Syne', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--mkt-ink);
  line-height: 1.1;
}
.mkt-kpi .delta {
  margin-top: .35rem;
  font-size: .78rem;
  color: var(--mkt-teal);
  font-weight: 600;
}

.mkt-grid-2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}
.mkt-panel {
  background: var(--mkt-card);
  border: 1px solid var(--mkt-line);
  border-radius: 20px;
  padding: 1.15rem 1.25rem 1.3rem;
  box-shadow: 0 10px 30px rgba(11, 26, 51, 0.04);
}
.mkt-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-bottom: 1rem;
}
.mkt-panel-head h3 { margin: 0; font-size: 1.05rem; color: var(--mkt-ink); }
.mkt-chart-wrap { position: relative; height: 260px; }
.mkt-chart-wrap canvas { width: 100% !important; height: 100% !important; }

.mkt-campaign-list { display: flex; flex-direction: column; gap: .75rem; }
.mkt-campaign {
  border: 1px solid var(--mkt-line);
  border-radius: 14px;
  padding: .9rem 1rem;
  background: linear-gradient(135deg, #f8fffd, #fff);
  display: grid;
  gap: .45rem;
}
.mkt-campaign h4 { margin: 0; font-size: .95rem; color: var(--mkt-ink); }
.mkt-campaign p { margin: 0; font-size: .82rem; color: #5b6b7c; }
.mkt-campaign .actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.mkt-campaign .actions .btn { border-radius: 10px; padding: .4rem .75rem; font-size: .8rem; }

.mkt-table-wrap { overflow-x: auto; }
.mkt-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mkt-table th {
  text-align: left; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .05em; color: #5b6b7c; padding: .55rem .4rem;
  border-bottom: 1px solid var(--mkt-line);
}
.mkt-table td {
  padding: .7rem .4rem;
  border-bottom: 1px solid rgba(29, 78, 216, 0.08);
  color: var(--mkt-ink);
}
.mkt-status {
  display: inline-flex; padding: .2rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
}
.mkt-status--paid { background: #dbeafe; color: #1e40af; }
.mkt-status--active { background: #dbeafe; color: #1d4ed8; }
.mkt-status--draft { background: #f1f5f9; color: #475569; }
.mkt-status--paused { background: #fef3c7; color: #92400e; }

.mkt-apply-page {
  --mkt-ink: #0b1a33;
  --mkt-teal: #1d4ed8;
  --mkt-teal-bright: #3b82f6;
  --mkt-mint: #bfdbfe;
  --mkt-sand: #f3f6fb;
  --mkt-line: rgba(29, 78, 216, 0.16);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--mkt-ink);
  background: #eef3f9;
}
.mkt-apply-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1000px 520px at 8% -8%, rgba(59, 130, 246, 0.22), transparent 58%),
    radial-gradient(820px 480px at 96% 4%, rgba(26, 44, 138, 0.1), transparent 52%),
    linear-gradient(165deg, #f7f9fc 0%, #e8eef8 45%, #eef2f8 100%);
}
.mkt-apply-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: mkt-float 12s ease-in-out infinite;
}
.mkt-apply-orb--a {
  width: 280px; height: 280px;
  left: -80px; top: 18%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 70%);
}
.mkt-apply-orb--b {
  width: 340px; height: 340px;
  right: -120px; bottom: 8%;
  background: radial-gradient(circle, rgba(26, 44, 138, 0.16), transparent 70%);
  animation-delay: -4s;
}
.mkt-apply-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(29, 78, 216, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
@keyframes mkt-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.mkt-apply-nav {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 1080px);
  margin: 0 auto;
  padding: 1.15rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mkt-apply-nav .brand img { height: 36px; width: auto; }
.mkt-apply-nav-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--mkt-teal);
  padding: .55rem .95rem;
  border-radius: 999px;
  border: 1.5px solid rgba(29, 78, 216, 0.28);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mkt-apply-nav-link:hover {
  background: var(--mkt-teal);
  border-color: var(--mkt-teal);
  color: #fff;
}

.mkt-apply-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1080px);
  margin: 1.5rem auto 3.5rem;
  display: grid;
  grid-template-columns: 0.92fr 1.18fr;
  gap: 1.5rem;
  align-items: stretch;
  animation: mkt-rise .55s var(--ease, cubic-bezier(.4,0,.2,1)) both;
}
@keyframes mkt-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.mkt-apply-pitch {
  position: relative;
  overflow: hidden;
  padding: 2.1rem 1.85rem 1.9rem;
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(11, 26, 51, 0.97) 0%, rgba(29, 78, 216, 0.92) 55%, rgba(59, 130, 246, 0.85) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: #eff6ff;
  box-shadow: 0 24px 60px rgba(11, 26, 51, 0.22);
}
.mkt-apply-pitch::after {
  content: '';
  position: absolute;
  right: -60px; bottom: -70px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 219, 254, 0.4), transparent 68%);
  pointer-events: none;
  animation: mkt-float 10s ease-in-out infinite reverse;
}
.mkt-apply-kicker {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #eff6ff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.mkt-apply-brand {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 .85rem;
  color: #fff;
}
.mkt-apply-lede {
  margin: 0 0 1.5rem;
  max-width: 28ch;
  font-size: 1.05rem;
  line-height: 1.45;
  color: rgba(239, 246, 255, 0.86);
}
.mkt-apply-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem;
  position: relative;
  z-index: 1;
}
.mkt-apply-perks li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .92rem;
  line-height: 1.35;
  color: rgba(239, 246, 255, 0.94);
}
.mkt-apply-perk-ic {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .12rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff 0 28%, transparent 30%),
    linear-gradient(135deg, var(--mkt-mint), var(--mkt-teal-bright));
  box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.18);
}
.mkt-apply-note {
  position: relative;
  z-index: 1;
  margin: 1.6rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: .82rem;
  color: rgba(239, 246, 255, 0.7);
}

.mkt-apply-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 28px;
  padding: 1.65rem 1.55rem 1.45rem;
  box-shadow: 0 20px 55px rgba(11, 26, 51, 0.08);
  animation: mkt-rise .65s .08s var(--ease, cubic-bezier(.4,0,.2,1)) both;
}
.mkt-apply-panel-head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--mkt-line);
}
.mkt-apply-panel-head h2 {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 .35rem;
  color: var(--mkt-ink);
}
.mkt-apply-panel-head p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.45;
  color: #5b6b7c;
  max-width: 46ch;
}

.mkt-apply-form { margin: 0; }
.mkt-apply-block {
  margin: 0 0 1.2rem;
  padding: 0;
  border: 0;
}
.mkt-apply-block legend {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mkt-teal);
  margin-bottom: .75rem;
  padding: 0;
}
.mkt-apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem .9rem;
}
.mkt-field {
  display: flex;
  flex-direction: column;
  gap: .38rem;
  margin: 0;
}
.mkt-field--wide { grid-column: 1 / -1; }
.mkt-field > span {
  font-size: .8rem;
  font-weight: 650;
  color: #3d4a5c;
}
.mkt-field input,
.mkt-field select,
.mkt-field textarea {
  width: 100%;
  border: 1.5px solid rgba(29, 78, 216, 0.18);
  border-radius: 14px;
  padding: .78rem .95rem;
  font: inherit;
  font-size: .95rem;
  color: var(--mkt-ink);
  background: #f8fafc;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.mkt-field select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%231d4ed8' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}
.mkt-field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.45;
}
.mkt-field input::placeholder,
.mkt-field textarea::placeholder { color: #8a97a8; }
.mkt-field input:hover,
.mkt-field select:hover,
.mkt-field textarea:hover {
  border-color: rgba(29, 78, 216, 0.35);
  background: #fff;
}
.mkt-field input:focus,
.mkt-field select:focus,
.mkt-field textarea:focus {
  border-color: var(--mkt-teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.mkt-apply-actions {
  display: grid;
  gap: .85rem;
  padding-top: .35rem;
}
.mkt-apply-submit {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: .95rem 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.28);
}
.mkt-apply-submit:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  box-shadow: 0 14px 32px rgba(29, 78, 216, 0.34);
}
.mkt-apply-foot {
  margin: 0;
  text-align: center;
  font-size: .86rem;
  color: #5b6b7c;
}
.mkt-apply-foot a {
  color: var(--mkt-teal);
  font-weight: 650;
}
.mkt-apply-foot a:hover { color: #1e40af; }

@media (max-width: 980px) {
  .mkt-hero, .mkt-grid-2, .mkt-apply-shell { grid-template-columns: 1fr; }
  .mkt-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .mkt-apply-pitch { min-height: auto; }
}
@media (max-width: 560px) {
  .mkt-kpi-grid { grid-template-columns: 1fr; }
  .mkt-link-row { flex-direction: column; }
  .mkt-chart-wrap { height: 220px; }
  .mkt-apply-grid { grid-template-columns: 1fr; }
  .mkt-apply-panel { padding: 1.25rem 1.05rem 1.2rem; border-radius: 22px; }
  .mkt-apply-pitch { padding: 1.6rem 1.25rem; border-radius: 22px; }
  .mkt-apply-nav { padding-top: .9rem; }
  .mkt-field input,
  .mkt-field select,
  .mkt-field textarea { font-size: 16px; }
}
