@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --black: #030006;
  --panel: #111014;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f9edff;
  --muted: #b7a7c8;
  --violet: #8d22ff;
  --magenta: #e345ff;
  --lavender: #efd5ff;
  --cyan: #49e4ff;
  --green: #3cffb0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--violet) rgba(255, 255, 255, 0.08);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(3, 0, 6, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--magenta), var(--violet));
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--lavender), var(--violet));
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(128, 32, 214, 0.54), transparent 23rem),
    radial-gradient(circle at 50% 82%, rgba(159, 23, 255, 0.6), transparent 18rem),
    linear-gradient(180deg, #050007 0%, #030005 46%, #060008 100%);
  font-family: Inter, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.home-shell {
  min-height: 100vh;
  color: #111827;
  overflow: hidden;
}

.home-page {
  --mouse-x: 0;
  --mouse-y: 0;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #99c8ff;
  font-family: Inter, Arial, sans-serif;
}

.home-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 17px;
  padding: 0 clamp(1.4rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(123, 80, 255, 0.42);
  background: rgba(8, 14, 36, 0.88);
  backdrop-filter: blur(18px);
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: white;
  font-weight: 950;
  letter-spacing: 0;
}

.home-brand img {
  width: clamp(56px, 5.5vw, 84px);
  height: auto;
  /* The logo is square (500x500). Reserving the aspect ratio keeps the header at
     its final height from the first paint, before the image finishes loading. */
  aspect-ratio: 1 / 1;
  display: block;
  filter: drop-shadow(0 0 14px rgba(117, 72, 255, 0.45));
}

.home-brand span {
  font-size: clamp(0.95rem, 1.3vw, 1.3rem);
  line-height: 1;
}

.home-brand span span {
  color: #8d61ff;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3.4vw, 3.4rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 1.236rem;
}

.home-nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.home-nav a:hover,
.home-nav a[aria-current="page"] {
  color: #8757ff;
  transform: translateY(-1px);
}

.home-menu-button {
  display: none;
  width: 36px;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.home-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #ffffff;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(8.4rem, 14vh, 10.5rem) clamp(1.4rem, 8vw, 9rem) 2rem;
  isolation: isolate;
}

.home-bg,
.home-bg-tint,
.home-liquid,
.home-cursor-wave,
.home-product,
.home-copy {
  position: absolute;
}

.home-bg {
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-bg-tint {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(180, 219, 255, 0.48), rgba(255, 255, 255, 0.18) 42%, rgba(90, 122, 230, 0.18)),
    radial-gradient(circle at 24% 52%, rgba(255, 255, 255, 0.34), transparent 28rem);
  pointer-events: none;
}

.home-liquid {
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(1px) saturate(1.3);
  opacity: 0.72;
}

.liquid-one {
  right: 26vw;
  top: 9vh;
  width: min(32vw, 520px);
  height: min(65vh, 680px);
  border-radius: 44% 56% 49% 51% / 32% 39% 61% 68%;
  background:
    radial-gradient(circle at 48% 18%, rgba(113, 255, 235, 0.72), transparent 19%),
    radial-gradient(circle at 56% 48%, rgba(172, 43, 255, 0.78), transparent 35%),
    radial-gradient(circle at 46% 82%, rgba(255, 0, 234, 0.78), transparent 23%),
    linear-gradient(145deg, rgba(113, 255, 235, 0.42), rgba(127, 42, 255, 0.56));
  animation: homeLiquidFloat 12s ease-in-out infinite alternate;
}

.liquid-one::before,
.liquid-one::after {
  content: "";
  position: absolute;
  inset: -6%;
  border: 4px solid rgba(113, 255, 235, 0.32);
  border-radius: inherit;
  filter: blur(2px);
}

.liquid-one::after {
  inset: 9% 14%;
  border-color: rgba(176, 61, 255, 0.36);
  transform: rotate(22deg);
}

.liquid-two {
  right: 39vw;
  top: 7vh;
  width: min(23vw, 360px);
  height: min(29vh, 300px);
  border-radius: 62% 38% 54% 46% / 54% 48% 52% 46%;
  background:
    radial-gradient(circle at 50% 44%, rgba(113, 255, 235, 0.68), transparent 28%),
    radial-gradient(circle at 62% 48%, rgba(170, 57, 255, 0.58), transparent 42%);
  opacity: 0.48;
  animation: homeLiquidDrift 14s ease-in-out infinite alternate;
}

.liquid-three {
  right: 45vw;
  bottom: 2vh;
  width: min(18vw, 280px);
  height: min(35vh, 340px);
  border-radius: 42% 58% 50% 50% / 30% 42% 58% 70%;
  background:
    radial-gradient(circle at 48% 78%, rgba(255, 0, 238, 0.78), transparent 25%),
    radial-gradient(circle at 54% 28%, rgba(109, 246, 255, 0.5), transparent 46%);
  opacity: 0.58;
  animation: homeLiquidRise 11s ease-in-out infinite alternate;
}

.home-copy {
  z-index: 5;
  left: clamp(1.5rem, 9vw, 10rem);
  top: calc(clamp(10.2rem, 28vh, 19rem) - 15px);
  max-width: 58rem;
  will-change: transform;
}

.home-title-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.home-title-row img {
  width: clamp(42px, 4.8vw, 70px);
  height: clamp(42px, 4.8vw, 70px);
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(84, 45, 185, 0.32));
}

.home-copy h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.42em;
  margin: 0;
  color: #000000;
  font-size: clamp(2.45rem, 4.45vw, 5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: none !important;
  filter: none !important;
}

.home-title-word {
  display: inline-block;
  text-shadow: none !important;
  filter: none !important;
}

.home-title-find {
  color: #000000;
}

.home-title-connect {
  color: #7b35ff;
}

.home-title-grow {
  color: #0668f5;
}

.home-copy p {
  margin: 0.9rem 0 0;
  color: rgba(28, 31, 44, 0.78);
  font-size: clamp(1.02rem, 1.45vw, 1.45rem);
  line-height: 1.28;
  font-weight: 700;
  text-shadow: none;
}

.home-copy strong {
  color: #7b35ff;
}

.home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0 0;
}

.home-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  min-width: 7.2rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  color: rgba(18, 22, 36, 0.86);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  text-align: center;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.home-tags svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  fill: none;
  stroke: #7b35ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-cta {
  display: inline-flex;
  margin: calc(1.5rem - 10px) 0 0;
  min-height: 62px;
  align-items: center;
  padding: 0 1.625rem;
  border-radius: 10px;
  border: 1px solid rgba(73, 228, 255, 0.64);
  color: #ffffff;
  background: linear-gradient(135deg, #5e2dff, #8a35ff 48%, #0095ff);
  box-shadow:
    0 16px 36px rgba(86, 45, 255, 0.34),
    0 0 18px rgba(73, 228, 255, 0.22);
  font-weight: 700;
  font-size: 1.495rem;
}

.home-podcast {
  width: min(100%, 440px);
  margin-top: 1rem;
}

.home-podcast iframe {
  display: block;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(32, 39, 76, 0.24);
}

.home-product {
  right: -2vw;
  bottom: calc(-1.2vh + 40px);
  z-index: 6;
  width: min(68vw, 1180px);
  transform-origin: 60% 80%;
  will-change: transform;
  pointer-events: none;
}

.home-product img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 46px rgba(36, 30, 100, 0.38));
}

.home-cursor-wave {
  left: 0;
  top: 0;
  z-index: 12;
  width: 210px;
  height: 210px;
  border-radius: 44% 56% 52% 48% / 44% 46% 54% 56%;
  background:
    radial-gradient(circle at 35% 35%, rgba(126, 250, 255, 0.82), transparent 26%),
    radial-gradient(circle at 64% 62%, rgba(244, 0, 255, 0.62), transparent 38%);
  filter: blur(10px) saturate(1.4);
  mix-blend-mode: screen;
  opacity: 0.48;
  pointer-events: none;
  transform: translate3d(50vw, 50vh, 0);
  animation: cursorBlob 4.5s ease-in-out infinite alternate;
}

.home-bottom-note {
  position: absolute;
  left: clamp(1.4rem, 8vw, 8rem);
  bottom: 2rem;
  z-index: 8;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.home-bottom-note a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 32px;
  padding: 0.42rem 0.66rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(8, 14, 36, 0.34);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.home-bottom-note a:hover {
  color: #ffffff;
  background: rgba(8, 14, 36, 0.52);
  transform: translateY(-1px);
}

.home-bottom-note svg {
  display: block;
  width: 0.92rem;
  height: 0.92rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-bottom-note .home-brand-icon {
  fill: currentColor;
  stroke: none;
}

.home-bottom-note span {
  display: block;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-2.5px);
}

@keyframes homeLiquidFloat {
  0% { transform: translate3d(-3vw, -2vh, 0) rotate(-8deg) scale(0.94); border-radius: 44% 56% 49% 51% / 32% 39% 61% 68%; }
  50% { transform: translate3d(2vw, 1vh, 0) rotate(5deg) scale(1.04); border-radius: 62% 38% 55% 45% / 42% 54% 46% 58%; }
  100% { transform: translate3d(4vw, 3vh, 0) rotate(13deg) scale(0.98); border-radius: 38% 62% 44% 56% / 60% 40% 60% 40%; }
}

@keyframes homeLiquidDrift {
  from { transform: translate3d(-4vw, 0, 0) rotate(8deg) scale(0.9); }
  to { transform: translate3d(7vw, 4vh, 0) rotate(-19deg) scale(1.08); }
}

@keyframes homeLiquidRise {
  from { transform: translate3d(-1vw, 4vh, 0) rotate(-8deg) scale(0.96); }
  to { transform: translate3d(3vw, -4vh, 0) rotate(11deg) scale(1.08); }
}

@keyframes cursorBlob {
  from { border-radius: 44% 56% 52% 48% / 44% 46% 54% 56%; }
  to { border-radius: 62% 38% 42% 58% / 58% 38% 62% 42%; }
}

@media (max-width: 760px) {
  .home-header {
    min-height: 21px;
    padding: 0 1rem;
  }

  .home-brand img {
    width: 66px;
  }

  .home-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 1rem;
    display: none;
    min-width: 178px;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(8, 14, 36, 0.94);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
  }

  .home-page.is-menu-open .home-nav,
  .blog-page.is-menu-open .home-nav {
    display: grid;
    gap: 0.55rem;
  }

  .blog-page.is-menu-open .blog-nav {
    background: rgba(5, 2, 10, 0.96);
  }

  .home-menu-button {
    display: block;
  }

  .home-hero {
    min-height: 100vh;
    padding: 6.4rem 1rem 1rem;
  }

  .home-copy {
    left: 1rem;
    right: 1rem;
    top: 7rem;
    max-width: none;
    text-align: left;
  }

  .home-title-row {
    gap: 0.7rem;
    justify-content: flex-start;
  }

  .home-copy h1 {
    font-size: clamp(2rem, 10.5vw, 3.25rem);
  }

  .home-copy p,
  .home-tags,
  .home-cta,
  .home-podcast {
    margin-left: 0;
  }

  .home-tags {
    gap: 0.5rem;
    margin-top: 1.2rem;
    justify-content: flex-start;
  }

  .home-tags span {
    min-width: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    gap: 0.36rem;
  }

  .home-tags svg {
    width: 1rem;
    height: 1rem;
  }

  .home-podcast {
    width: min(100%, 360px);
  }

  .home-podcast iframe {
    height: 80px;
  }

  .home-product {
    right: -34vw;
    bottom: 10vh;
    width: 125vw;
  }

  .liquid-one {
    right: 5vw;
    top: 22vh;
    width: 58vw;
    height: 52vh;
  }

  .liquid-two {
    right: 35vw;
    top: 16vh;
    width: 42vw;
  }

  .home-cursor-wave {
    width: 150px;
    height: 150px;
  }

  .home-bottom-note {
    left: 1rem;
    right: 1rem;
    bottom: calc(1.25rem + 15px);
    max-width: none;
    gap: 0.35rem;
    flex-wrap: wrap;
  }

  .home-bottom-note a {
    min-height: 28px;
    padding: 0.34rem 0.46rem;
    font-size: 0.62rem;
    gap: 0.32rem;
  }

  .home-bottom-note svg {
    width: 0.78rem;
    height: 0.78rem;
  }
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 152px 1fr 152px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 0, 5, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
}

.brand {
  justify-content: center;
  height: 68px;
  border-right: 1px solid var(--line);
}

.brand img {
  width: 106px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(141, 34, 255, 0.8));
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-nav a,
.login-link {
  opacity: 0.88;
  transition: color 160ms ease, text-shadow 160ms ease, opacity 160ms ease;
}

.main-nav a:hover,
.login-link:hover {
  color: var(--lavender);
  opacity: 1;
  text-shadow: 0 0 14px rgba(227, 69, 255, 0.9);
}

.login-link {
  justify-self: center;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: 900px;
  padding: 160px clamp(1rem, 4vw, 5rem) 0;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 66% -8rem auto;
  height: 310px;
  border-top: 2px solid rgba(227, 69, 255, 0.48);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(227, 69, 255, 0.46), transparent 52%);
  filter: blur(0.1px);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, transparent 75%);
  z-index: -4;
}

.hero-orbit {
  position: absolute;
  left: 50%;
  border: 1px solid rgba(171, 66, 255, 0.42);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.hero-orbit-one {
  top: 72%;
  width: 118vw;
  height: 30vw;
  min-height: 230px;
}

.hero-orbit-two {
  top: 77%;
  width: 78vw;
  height: 18vw;
  min-height: 150px;
  opacity: 0.38;
}

.hero-content {
  width: min(100%, 1120px);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--cyan);
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(73, 228, 255, 0.76);
}

h1 {
  margin: 0;
  color: #faefff;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(3.1rem, 7vw, 7.8rem);
  font-weight: 800;
  line-height: 1.08;
  text-transform: none;
  text-shadow: 0 0 30px rgba(237, 213, 255, 0.35);
}

h1 span {
  display: block;
  margin-top: 0.18em;
  color: transparent;
  background: linear-gradient(180deg, #f3d8ff 8%, #9a6aac 45%, rgba(44, 29, 55, 0.72) 76%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, 0.75));
}

.hero-copy {
  width: min(100%, 760px);
  margin: 1.8rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.8;
}

.search-panel {
  width: min(100%, 760px);
  margin: 2.2rem auto 0;
  padding: 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(227, 69, 255, 0.24), rgba(73, 228, 255, 0.08)),
    rgba(13, 12, 18, 0.82);
  box-shadow:
    0 0 38px rgba(141, 34, 255, 0.34),
    inset 0 0 0 10px rgba(255, 255, 255, 0.035);
}

.search-panel label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 136px;
  gap: 0.58rem;
}

.search-box input,
.search-box button {
  min-height: 58px;
  border: 0;
  border-radius: 6px;
  font: inherit;
}

.search-box input {
  width: 100%;
  padding: 0 1.2rem;
  color: var(--text);
  background: rgba(3, 2, 8, 0.86);
  outline: 1px solid rgba(255, 255, 255, 0.08);
}

.search-box input::placeholder {
  color: rgba(249, 237, 255, 0.46);
}

.search-box button,
.insight-band a,
.hero-action {
  color: white;
  background: linear-gradient(135deg, var(--magenta), var(--violet) 54%, #2e49ff);
  font-family: Orbitron, Inter, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(141, 34, 255, 0.55);
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 58px;
  margin-top: 2.3rem;
  padding: 0 1.35rem;
  border-radius: 6px;
  font-size: 1.15em;
}

.creator-avatar {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(86px, 8.5vw, 156px);
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.82), transparent 0.48rem),
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.18), transparent 25%),
    linear-gradient(145deg, #36e1ff 0%, #9e20ff 48%, #3513a4 100%);
  box-shadow:
    0 0 46px rgba(141, 34, 255, 0.75),
    inset 0 -18px 36px rgba(0, 0, 0, 0.34);
}

.creator-avatar span {
  display: grid;
  place-items: center;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 16px;
  color: #100118;
  background: #f8e8ff;
  font-family: Orbitron, Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 1.9vw, 2rem);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}

.avatar-youtube {
  top: 36%;
  right: clamp(1rem, 6vw, 7rem);
}

.avatar-kick {
  top: 64%;
  left: clamp(1rem, 12vw, 14rem);
}

.avatar-twitch {
  top: 59%;
  right: clamp(1rem, 18vw, 20rem);
  width: clamp(68px, 6.5vw, 120px);
  opacity: 0.88;
}

.feature-deck {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.4rem);
  width: min(100%, 1580px);
  margin: 0 auto;
  transform: translateY(48px);
}

.feature-deck article {
  min-height: 150px;
  padding: 1.2rem;
  border: 10px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.03), rgba(227, 69, 255, 0.24) 52%, rgba(73, 228, 255, 0.12)),
    rgba(14, 14, 17, 0.95);
  box-shadow: 0 -26px 72px rgba(141, 34, 255, 0.22);
}

.feature-deck strong {
  display: block;
  margin: 0.2rem 0 0.7rem;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.72rem);
  line-height: 1.2;
}

.feature-deck span {
  color: var(--muted);
  line-height: 1.6;
}

.insight-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 9rem clamp(1rem, 6vw, 7rem) 5rem;
  background: linear-gradient(180deg, rgba(2, 0, 5, 0.1), rgba(3, 0, 6, 0.96));
}

.choose-plan-page {
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(2,0,5,0.85), rgba(3,0,6,0.96));
  color: #fff;
}
.choose-plan-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 5rem clamp(1rem, 4vw, 4rem) 2rem;
  text-align: center;
}
.choose-plan-hero h1 {
  margin: 0.6rem 0 0.9rem;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--green);
  text-shadow: 0 0 24px rgba(60, 255, 176, 0.45);
}
.choose-plan-sub {
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.choose-plan-page .pricing-section {
  padding-bottom: 5rem;
}

.pricing-section {
  scroll-margin-top: 90px;
  padding: clamp(5rem, 9vw, 9rem) clamp(1rem, 6vw, 7rem) clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(141, 34, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(73, 228, 255, 0.12), transparent 60%),
    rgba(3, 0, 6, 0.96);
}

.home-site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 0, 6, 0.96);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}
.home-footer-copy {
  margin: 0;
  order: 2;
  flex: 1 1 auto;
  text-align: center;
}
.home-footer-socials {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.home-footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.home-footer-socials a:hover {
  color: var(--cyan, #49e4ff);
  border-color: rgba(73, 228, 255, 0.5);
  background: rgba(73, 228, 255, 0.1);
  transform: translateY(-1px);
}
.home-footer-socials svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-footer-email {
  order: 3;
  color: var(--cyan, #49e4ff);
  text-decoration: none;
  font-weight: 700;
}
.home-footer-email:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .home-site-footer { justify-content: center; }
  .home-footer-copy { order: 3; flex: 1 1 100%; }
  .home-footer-socials { order: 1; }
  .home-footer-email { order: 2; }
}
.pricing-heading {
  max-width: 880px;
  margin: 0 auto 3rem;
  text-align: center;
}
.pricing-eyebrow {
  margin: 0 0 0.6rem;
  color: var(--green);
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Tutorials section (home page) */
.home-tutorials {
  scroll-margin-top: 90px;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 6vw, 7rem) clamp(4rem, 7vw, 6rem);
  text-align: center;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(141, 34, 255, 0.16), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(73, 228, 255, 0.10), transparent 60%),
    rgba(3, 0, 6, 0.97);
}
.home-tutorials > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.home-tutorials .pricing-eyebrow { text-align: center; }
.home-tutorials h2 {
  margin: 0 0 2rem;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #fff;
  text-align: center;
}
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}
.tutorial-card {
  margin: 0;
  background: rgba(6, 3, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
}
.tutorial-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.tutorial-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tutorial-card figcaption {
  padding: 14px 16px 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.4;
}
.pricing-heading h2 {
  margin: 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.18;
  color: var(--green);
  text-shadow: 0 0 24px rgba(60, 255, 176, 0.45);
}
.pricing-sub {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  width: min(100%, 1400px);
  margin: 0 auto;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 240px;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(141, 34, 255, 0.15) 55%, rgba(73, 228, 255, 0.08)),
    rgba(14, 14, 17, 0.92);
  box-shadow: 0 18px 48px rgba(141, 34, 255, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(73, 228, 255, 0.32);
  box-shadow: 0 28px 64px rgba(73, 228, 255, 0.18);
}
.pricing-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.pricing-card h3 {
  margin: 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--green);
  text-shadow: 0 0 14px rgba(60, 255, 176, 0.4);
}
.pricing-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}
.pricing-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(73, 228, 255, 0.4);
  border-radius: 999px;
  background: rgba(73, 228, 255, 0.1);
  color: #cfeaff;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pricing-card--accent {
  border-color: rgba(73, 228, 255, 0.32);
  background:
    linear-gradient(140deg, rgba(73, 228, 255, 0.16), rgba(141, 34, 255, 0.22) 55%, rgba(73, 228, 255, 0.08)),
    rgba(14, 14, 17, 0.92);
}
.pricing-price {
  margin: 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
}
.pricing-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.pricing-feature-list li {
  position: relative;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.45;
}
.pricing-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-weight: 800;
}
.pricing-cta {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease;
}
.pricing-cta:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}
.pricing-cta:disabled,
.pricing-cta[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Per-plan coupon input + Apply */
.plan-coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0.4rem 0 0.6rem;
}
/* The coupon starts the bottom group, so it absorbs the card's leftover space and
   the Buy/Apply button sits tight beneath it — keeping the coupon↔button gap
   identical on every card regardless of feature-list length. */
.plan-coupon { margin-top: auto; }
.plan-coupon + .pricing-cta,
.plan-coupon + .pricing-concierge-actions { margin-top: 0; }
.plan-coupon-input {
  flex: 1 1 120px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
}
.plan-coupon-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.plan-coupon-apply {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 7px;
  border: 1px solid rgba(73, 228, 255, 0.6);
  background: rgba(73, 228, 255, 0.12);
  color: #d6f7ff;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.plan-coupon-apply:hover { background: rgba(73, 228, 255, 0.22); }
.plan-coupon-remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}
.plan-coupon-ok {
  flex: 1 1 100%;
  color: #3cffb0;
  font-size: 0.82rem;
  font-weight: 700;
}
.plan-coupon-error {
  flex: 1 1 100%;
  color: #ff7a90;
  font-size: 0.78rem;
}
.plan-coupon-price {
  margin: 0.2rem 0 0;
  color: #3cffb0;
  font-size: 0.92rem;
}
.plan-coupon-price strong { font-weight: 800; }
.pricing-summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  line-height: 1.55;
}
.pricing-card--featured {
  border-color: rgba(73, 228, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(73, 228, 255, 0.22), rgba(227, 69, 255, 0.32)),
    rgba(14, 14, 17, 0.92);
  box-shadow: 0 30px 64px rgba(73, 228, 255, 0.28);
}
.pricing-card--featured h3 {
  color: var(--green);
  text-shadow: 0 0 16px rgba(60, 255, 176, 0.5);
}
.pricing-card--featured p {
  color: rgba(255, 255, 255, 0.86);
}
.pricing-more-info {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.pricing-more-info:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}
.pricing-concierge-actions {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: stretch;
}
.pricing-concierge-actions .pricing-more-info,
.pricing-concierge-actions .pricing-cta {
  margin-top: 0;
  align-self: stretch;
  flex: 1 1 140px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
}

/* Admin impersonation banner (shown in /app when an admin is viewing as a user). */
.impersonation-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: #d97706;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.impersonation-banner button {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.impersonation-banner button:hover { background: rgba(255,255,255,0.28); }
.impersonation-banner .impersonation-hide {
  padding: 2px 8px;
  line-height: 1;
  font-size: 14px;
  border-radius: 50%;
}
/* When hidden, the bar collapses to this small unobtrusive floating button. */
.impersonation-pill {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 1200;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: #d97706;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  opacity: 0.85;
}
.impersonation-pill:hover { opacity: 1; }

/* Homepage-only CTA above the plan grid (no per-plan buy buttons on home). */
.pricing-start-now {
  display: flex;
  justify-content: center;
  margin: 0 0 1.6rem;
}
.pricing-start-now .home-cta { margin-top: 0; font-size: 1.656rem; }

/* ---------- Pricing: campaign banner ---------- */
.pricing-campaign-banner {
  width: min(100%, 1100px);
  margin: 0 auto 1.4rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 14px;
  background:
    linear-gradient(140deg, rgba(255, 209, 102, 0.16), rgba(255, 92, 145, 0.22) 60%, rgba(141, 34, 255, 0.18)),
    rgba(14, 14, 17, 0.94);
  box-shadow: 0 18px 48px rgba(255, 92, 145, 0.18);
  text-align: center;
}
.pricing-campaign-eyebrow {
  margin: 0 0 0.4rem;
  color: #ffd166;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.pricing-campaign-title {
  margin: 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.25;
  color: #fff;
}
.pricing-campaign-title strong {
  color: #ffd166;
  letter-spacing: 0.08em;
  margin: 0 0.15em;
}
.pricing-campaign-sub {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

/* ---------- Pricing: billing toggle ---------- */
.pricing-billing-toggle {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 2rem;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(14, 14, 17, 0.85);
  gap: 4px;
}
.pricing-billing-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.pricing-billing-tab:hover {
  color: #fff;
}
.pricing-billing-tab.is-active {
  background: linear-gradient(135deg, var(--green, #3cffb0), #49e4ff);
  color: #0b0b12;
  box-shadow: 0 8px 22px rgba(73, 228, 255, 0.25);
}
.pricing-billing-save {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(11, 11, 18, 0.18);
  color: inherit;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}
.pricing-billing-tab:not(.is-active) .pricing-billing-save {
  background: rgba(60, 255, 176, 0.16);
  color: var(--green, #3cffb0);
}

/* ---------- Pricing: dual-price stack (struck-through + final) ---------- */
.pricing-price-stack {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
}
.pricing-price-original {
  margin: 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 92, 145, 0.65);
  text-decoration-thickness: 2px;
}
.pricing-price-now {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 16px rgba(60, 255, 176, 0.35);
}
.pricing-price-period {
  margin-left: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.pricing-price-original .pricing-price-period {
  color: rgba(255, 255, 255, 0.4);
}
.pricing-price-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd166, #ff5c91);
  color: #0b0b12;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .pricing-billing-toggle { width: 100%; }
  .pricing-billing-tab { flex: 1; justify-content: center; }
  .pricing-price-now { font-size: 1.25rem; }
}

.concierge-modal {
  width: min(720px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.8rem;
  border: 1px solid rgba(73, 228, 255, 0.35);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(141, 34, 255, 0.18), rgba(30, 13, 54, 0.94)),
    #130a1f;
  color: #fff;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
}
.concierge-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.concierge-modal-header h2 {
  margin: 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
}
.concierge-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.concierge-modal-close:hover { background: rgba(255, 255, 255, 0.15); }
.concierge-modal-summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}
.concierge-modal-features-title {
  margin: 0.4rem 0 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.concierge-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
.concierge-feature-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.concierge-feature-list strong {
  font-size: 0.96rem;
  font-weight: 800;
}
.concierge-feature-list span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.insight-band p {
  margin: 0 0 0.7rem;
  color: var(--green);
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.insight-band h2 {
  max-width: 800px;
  margin: 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 4.2rem);
  line-height: 1.18;
}

.insight-band a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 54px;
  padding: 0 1.2rem;
  border-radius: 6px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.8rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: rgba(249, 237, 255, 0.68);
  background: #020004;
}

.footer-brand img {
  width: 132px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(141, 34, 255, 0.65));
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.blog-shell {
  min-height: 100vh;
  color: #f9edff;
  background:
    radial-gradient(circle at 18% 0%, rgba(73, 228, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(141, 34, 255, 0.28), transparent 30rem),
    #05020a;
}

.blog-page {
  min-height: 100vh;
}

.blog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 clamp(1rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 2, 10, 0.78);
  backdrop-filter: blur(18px);
}

.blog-nav a[aria-current="page"] {
  color: #49e4ff;
}

.blog-hero,
.blog-grid,
.blog-article {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.blog-hero {
  padding: clamp(4rem, 10vw, 8rem) 0 2rem;
}

.blog-hero h1 {
  max-width: 780px;
  font-size: clamp(2.4rem, 5.5vw, 5.5rem);
  line-height: 1.04;
}

.blog-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(2rem, 6vw, 4rem) 0 5rem;
}

/* Case studies */
.case-study-hero {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 3rem) 0 0;
}

.case-study-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
}

.case-study-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.case-study-grid {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: clamp(1rem, 5vw, 1.2rem) 0 5rem;
}

.case-study-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.case-study-card:hover {
  border-color: rgba(73, 228, 255, 0.42);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.case-study-quote {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #f9edff;
}

.case-study-person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.case-study-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(73, 228, 255, 0.3), rgba(141, 34, 255, 0.42));
}

.case-study-meta strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
}

.case-study-meta span {
  display: block;
  margin-top: 1px;
  font-size: 0.86rem;
  color: var(--muted);
}

.case-study-blog-link {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #49e4ff;
  text-decoration: none;
}

.case-study-blog-link:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .case-study-grid {
    grid-template-columns: 1fr;
  }
}

/* Dashboard analytics */
.dash-block { margin: 0 0 1.6rem; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 0.6rem; }
.dash-head h2 { margin: 0; font-size: 1.05rem; }
.dash-range { flex: 0 0 20%; width: 20%; max-width: 20%; box-sizing: border-box; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(127,127,127,0.3); background: rgba(127,127,127,0.06); color: inherit; font: inherit; }
.dash-row { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.dash-card { border: 1px solid rgba(127,127,127,0.2); border-radius: 14px; background: rgba(127,127,127,0.05); padding: 1rem 1.1rem; min-height: 120px; }
.dash-card-donut { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.dash-svg { width: 100%; height: auto; display: block; }
/* Line-chart colors via variables; light mode darkens the pale cyan/green so they read on white. */
.dashboard-shell { --dl-cyan: #49e4ff; --dl-violet: #8d22ff; --dl-magenta: #e345ff; --dl-green: #3cffb0; }
html[data-theme="light"] .dashboard-shell { --dl-cyan: #0e8fb5; --dl-green: #12a36e; }
.dash-report-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 2px; }
.dash-report-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-report-actions label { font-size: 0.85rem; opacity: 0.75; }
.dash-report-actions .dash-range { flex: 0 0 auto; width: auto; min-width: 150px; max-width: none; }
.dash-print-cover { display: none; }

@media print {
  /* Page background: light = soft gray, dark = very dark blue. Full-bleed (no white page margins);
     spacing is inner padding so the gaps take the background color, not white. */
  html { --pdf-page-bg: #f4f6fb; }
  html[data-theme="dark"] { --pdf-page-bg: #0b1220; }
  @page { margin: 0; }
  html, body { background: var(--pdf-page-bg) !important; }
  /* Drop the grid and let only the report content flow from the top of page 1. */
  .dashboard-shell { display: block !important; height: auto !important; overflow: visible !important; background: var(--pdf-page-bg) !important; }
  .dashboard-shell .dashboard-sidebar, .dashboard-shell .dashboard-topbar, .dash-report-bar, .dash-range, .dash-info, .li-overlay { display: none !important; }
  /* Hide the Smartsupp live-chat widget when printing to PDF. */
  #smartsupp-widget-container, #chat-application, [id^="smartsupp"] { display: none !important; }
  .dashboard-shell .dashboard-main { display: block !important; height: auto !important; min-height: 0 !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; background: var(--pdf-page-bg) !important; }
  /* Horizontal inset applies on every page; vertical spacing is per-block padding (below) so it
     survives page breaks — Chrome drops top margins at page tops but keeps padding. */
  .dashboard-shell .workspace { display: block !important; height: auto !important; min-height: 0 !important; overflow: visible !important; margin: 0 !important; padding: 0 14mm !important; }
  .dashboard-shell .tab-panel > h1, .dashboard-shell .dash-block { padding-top: 14mm !important; }
  .dashboard-shell .dash-block:last-child { padding-bottom: 14mm !important; }
  .dash-block, .dash-row, .dash-card { break-inside: avoid; page-break-inside: avoid; }
  /* Cover page: logo + name, then a page break before the charts. */
  .dash-print-cover { display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: calc(100vh - 32mm); break-after: page; page-break-after: always; }
  .dash-print-cover img { width: 96px; height: 96px; border-radius: 20px; }
  .dash-print-cover .dash-cover-name { font-size: 30px; font-weight: 800; margin-top: 14px; color: #11122b; }
  html[data-theme="dark"] .dash-print-cover .dash-cover-name { color: #e6ecf6; }
  .dash-print-cover .dash-cover-title { font-size: 18px; margin-top: 24px; font-weight: 700; }
  .dash-print-cover .dash-cover-sub { font-size: 13px; opacity: 0.7; margin-top: 6px; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
.dash-chart { position: relative; }
.dash-plot { position: relative; }
.dash-guide { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(127,127,127,0.55); pointer-events: none; }
.dash-tooltip { position: absolute; top: 6px; min-width: 130px; max-width: 250px; padding: 8px 10px; border-radius: 8px; background: rgba(20,20,28,0.96); color: #fff; font-size: 12px; line-height: 1.5; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,0.35); z-index: 8; }
/* Content markers: avatars at a day's peak when influencers published matching content.
   z-index below .dash-tooltip so the hover tooltip always sits above the markers. */
.dash-content-layer { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.dash-cmark { position: absolute; transform: translate(-50%, -100%); margin-top: -6px; pointer-events: auto; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: linear-gradient(135deg,#7a3cff,#2c6cf5); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.dash-cmark-bubble { border-radius: 50% 50% 50% 4px; }
.dash-cmark-rect { border-radius: 12px; }
.dash-cmark::after { content: ""; position: absolute; left: 12px; bottom: -5px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #2c6cf5; }
.dash-cmark-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,0.25); display: block; }
.dash-cmark-more { color: #fff; font-size: 11px; font-weight: 700; padding: 0 4px; align-self: center; }
.dash-donut-caption { text-align: center; margin: .5rem 0 0; font-size: .9rem; font-weight: 600; opacity: .85; }
/* Success rate by platform cards. */
.social-success-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.social-card { border: 1px solid rgba(127,127,127,0.2); border-radius: 12px; padding: 14px 16px; background: rgba(127,127,127,0.04); }
.social-card-head { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: .92rem; }
.social-dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none; }
.social-rate { font-size: 1.9rem; font-weight: 800; margin: .35rem 0 .1rem; font-variant-numeric: tabular-nums; }
.social-sub { font-size: .82rem; opacity: .75; }
.social-bar { margin-top: .6rem; height: 6px; border-radius: 4px; background: rgba(127,127,127,0.18); overflow: hidden; }
.social-bar span { display: block; height: 100%; border-radius: 4px; }
.dash-cmark:hover { transform: translate(-50%, -100%) scale(1.08); }
/* Content lightbox video player. */
.li-video { display: block; }
.li-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.li-video-play { border: none; padding: 0; cursor: pointer; background: rgba(127,127,127,0.12); }
.li-play-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.dash-tip-reps { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.16); }
.dash-tip-rep { display: flex; align-items: center; gap: 7px; height: 25px; }
.dash-tip-rep img, .dash-tip-av { width: 23px; height: 23px; border-radius: 50%; flex: none; object-fit: cover; background: rgba(255,255,255,0.22); display: inline-block; }
.dash-tip-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 185px; }
.dash-tip-more { font-size: 11px; opacity: 0.72; margin-top: 3px; }
.dash-tip-date { font-weight: 700; margin-bottom: 4px; }
.dash-tip-row { display: flex; align-items: center; gap: 6px; }
.dash-tip-row i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: none; }
.dash-tip-row span { flex: 1; }
.dash-tip-row strong { font-variant-numeric: tabular-nums; }
.dash-donut { width: 375px; max-width: 100%; height: auto; }
.dash-legend-top { margin-top: 0; margin-bottom: 0.6rem; }
.dash-donut-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: nowrap; }
.dash-donut-row .dash-donut { width: 180px; flex: 0 0 auto; }
.dash-donut-row .dash-legend { flex: 1 1 auto; min-width: 0; margin-top: 0; }
@media (max-width: 560px) { .dash-donut-row { flex-wrap: wrap; } }
.dash-info { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 7px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 11px; font-weight: 700; font-style: italic; opacity: 0.55; cursor: help; vertical-align: middle; }
.dash-info:hover, .dash-info:focus-within { opacity: 1; }
.dash-info-tip { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; width: 270px; max-width: 80vw; padding: 10px 12px; border-radius: 10px; background: rgba(20,20,28,0.97); color: #fff; font-size: 12px; font-weight: 400; font-style: normal; line-height: 1.55; box-shadow: 0 8px 24px rgba(0,0,0,0.35); opacity: 0; visibility: hidden; transition: opacity 0.12s ease; pointer-events: none; }
.dash-info:hover .dash-info-tip, .dash-info:focus-within .dash-info-tip { opacity: 1; visibility: visible; }
.dash-tip-cta { margin: 7px 0 2px; color: #49e4ff; font-weight: 700; }
.li-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid rgba(127,127,127,0.2); font-size: 0.92rem; }
.li-stat { display: inline-flex; align-items: center; gap: 7px; }
.li-stat i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* Day-repliers lightbox */
.li-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(8,10,20,0.62); backdrop-filter: blur(3px); padding: 20px; }
.li-modal { width: min(900px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: var(--ds-surface, #fff); color: var(--ds-text, #111827); border: 1px solid rgba(127,127,127,0.25); border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,0.45); overflow: hidden; }
.li-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid rgba(127,127,127,0.2); font-size: 1.05rem; min-height: 56px; }
.li-modal-body { padding: 16px 20px; overflow-y: auto; flex: 1 1 auto; }
.li-modal-foot { padding: 12px 20px; border-top: 1px solid rgba(127,127,127,0.2); text-align: right; }
.li-btn { padding: 9px 18px; border-radius: 9px; border: 1px solid rgba(127,127,127,0.3); background: rgba(127,127,127,0.08); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.li-btn:hover { background: rgba(127,127,127,0.16); }
.li-close { background: linear-gradient(135deg,#7a3cff,#2c6cf5); color: #fff; border: none; }
.li-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.li-card { text-align: left; padding: 0; border: 1px solid rgba(127,127,127,0.2); border-radius: 12px; background: rgba(127,127,127,0.05); cursor: pointer; overflow: hidden; color: inherit; font: inherit; }
.li-card:hover { border-color: rgba(73,228,255,0.5); }
.li-thumb { position: relative; width: 100%; aspect-ratio: 16/9; display: block; background: rgba(127,127,127,0.12); overflow: hidden; }
.li-thumb-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(127,127,127,0.55); }
.li-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.li-card-body { padding: 10px 12px; }
.li-card-head { display: flex; align-items: center; gap: 8px; }
.li-av { position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: rgba(127,127,127,0.3); flex: none; display: inline-block; }
.li-card-id strong { display: block; font-size: 0.92rem; }
.li-card-id span { display: block; font-size: 0.76rem; opacity: 0.7; }
.li-card-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 0.78rem; opacity: 0.85; }
.li-card-email { margin-top: 6px; font-size: 0.78rem; color: #2c6cf5; word-break: break-all; }
.li-det-head { display: flex; align-items: center; gap: 12px; }
.li-det-av { position: relative; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: rgba(127,127,127,0.3); flex: none; display: inline-block; }
.li-det-head h3 { margin: 0; font-size: 1.2rem; }
.li-det-head span { font-size: 0.85rem; opacity: 0.7; }
.li-det-thumb { position: relative; width: 100%; max-width: 480px; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: rgba(127,127,127,0.12); margin: 14px 0; display: block; }
.li-det-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 8px 0; }
.li-det-field label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.6; }
.li-det-field strong { font-size: 0.95rem; word-break: break-word; }
.li-det-socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.li-det-socials a { color: #2c6cf5; font-weight: 600; text-decoration: none; }
.li-det-desc { margin-top: 12px; font-size: 0.9rem; line-height: 1.55; opacity: 0.85; white-space: pre-wrap; }
.dash-donut-wrap { display: flex; flex-direction: column; align-items: center; }
.dash-subtitle { font-size: 0.82rem; font-weight: 700; opacity: 0.75; margin-bottom: 0.5rem; text-align: center; }
.dash-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.6rem; font-size: 0.82rem; opacity: 0.95; }
.dash-legend-col { flex-direction: column; gap: 0.35rem; align-items: flex-start; }
.dash-leg { display: inline-flex; align-items: center; gap: 0.4rem; }
.dash-leg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none; }
@media (max-width: 900px) { .dash-row { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  /* On mobile use natural page scroll so every dashboard row is reachable
     (the internal workspace scroll clipped rows 2 & 3 on small screens). */
  .dashboard-shell .dashboard-main { height: auto; min-height: 100vh; }
  .dashboard-shell .workspace { overflow: visible; min-height: 0; margin: 16px; }
  /* The time-range select needs more room to show "Last 12 months" on mobile. */
  .dash-range { flex: none; width: auto; min-width: 150px; max-width: 62%; }
}

.blog-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.blog-card:hover {
  border-color: rgba(73, 228, 255, 0.42);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.blog-card img,
.blog-card-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(73, 228, 255, 0.2), rgba(141, 34, 255, 0.34));
}

.blog-card div {
  padding: 1rem;
}

.blog-card span,
.blog-article header span,
.blog-back-link {
  color: #8fefff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card h2 {
  margin: 0.55rem 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.blog-article {
  padding: clamp(3rem, 8vw, 6rem) 0 5rem;
}

.blog-back-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.blog-article header {
  max-width: 100%;
}

.blog-article h1 {
  margin-top: 0.6rem;
  font-size: clamp(1.44rem, 1.56vw, 1.625rem);
  line-height: 1.28;
}

.blog-article header p {
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.7;
}

.blog-article-image {
  display: block;
  width: 100%;
  max-height: 560px;
  margin: 2rem 0;
  border-radius: 8px;
  object-fit: cover;
}

/* Games section (reuses blog page/card/article styles). */
.games-intro { max-width: 1100px; margin: 0 auto 1.5rem; padding: 0 1.25rem; }
.games-intro h1 { margin: 0 0 .4rem; }
.games-intro p { margin: 0; opacity: .8; }
.game-body .game-hero {
  display: block;
  width: 100%;
  max-height: 360px;
  margin: 0 0 1.6rem;
  border-radius: 10px;
  object-fit: cover;
}
.game-body .game-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.6rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.game-body .game-video iframe,
.game-body .game-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.blog-body {
  max-width: 100%;
  color: #d6dae3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
}

.blog-body p {
  margin: 0 0 1.35em;
  font: inherit;
  letter-spacing: 0;
}

.blog-body strong,
.blog-body b {
  color: #ffffff;
  font-weight: 600;
}

.blog-body em,
.blog-body i {
  font-style: italic;
  font-weight: inherit;
}

.blog-body h2,
.blog-body h3 {
  margin: 2.15em 0 0.78em;
  color: #ffffff;
  font-family: Inter, Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0;
}
.blog-body h3 {
  font-size: 22px;
}

.blog-body a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: inherit;
}
.blog-body a:hover {
  color: #93c5fd;
}

.blog-body img {
  display: block;
  width: 75%;
  max-width: 100%;
  margin: 1.5rem auto;
  border-radius: 8px;
}

.blog-spotify-embed {
  display: block;
  width: 75%;
  min-height: 152px;
  margin: 1.5rem auto;
  border: 0;
  border-radius: 8px;
}

/* Generic responsive video / podcast embed wrapper used by sanitizeBlogHtml */
.blog-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin: 1.6rem 0;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.blog-embed iframe,
.blog-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.blog-embed--spotify,
.blog-embed--soundcloud {
  padding-bottom: 0;
  height: 152px;
  background: transparent;
}
.blog-embed--video video {
  object-fit: contain;
  background: #000;
}

.auth-shell,
.dashboard-shell {
  min-height: 100vh;
}

.auth-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 6rem clamp(1rem, 4vw, 3rem);
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(920px, 82vw);
  aspect-ratio: 1;
  border: 1px solid rgba(73, 228, 255, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(227, 69, 255, 0.28), transparent 34%),
    radial-gradient(circle at 48% 54%, rgba(73, 228, 255, 0.16), transparent 52%);
  transform: translate(-50%, -50%);
  z-index: -1;
}

.auth-brand {
  position: absolute;
  top: 1.8rem;
  left: clamp(1rem, 4vw, 4rem);
}

.auth-brand img {
  width: 120px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(141, 34, 255, 0.82));
}

.login-panel {
  width: min(100%, 640px);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(73, 228, 255, 0.08), rgba(227, 69, 255, 0.18)),
    rgba(9, 7, 14, 0.88);
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.48),
    0 0 60px rgba(141, 34, 255, 0.28);
  text-align: center;
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.workspace h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
}

.login-panel h1 {
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 1.12;
  overflow-wrap: break-word;
}

.auth-copy,
.dashboard-copy {
  color: var(--muted);
  line-height: 1.7;
}

.auth-copy {
  width: min(100%, 440px);
  margin: 1.2rem auto 0;
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 58px;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #14031d;
  background: #fff;
  font-weight: 800;
  box-shadow: 0 0 34px rgba(73, 228, 255, 0.18);
}

.google-mark {
  display: grid;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #4285f4, #34a853 42%, #fbbc05 66%, #ea4335);
  font-weight: 900;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.5rem 0 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.magic-link-form {
  display: grid;
  gap: 0.65rem;
}
.magic-link-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.magic-link-form input[type="email"] {
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
}
.magic-link-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(73, 228, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(73, 228, 255, 0.18);
}
.login-panel .email-button {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  width: 100%; box-sizing: border-box;
  min-height: 48px; margin-top: 0.8rem; border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px; background: rgba(255,255,255,0.06); color: #fff;
  font-family: Inter, system-ui, sans-serif; font-weight: 700; font-size: 0.94rem;
  text-decoration: none; cursor: pointer; transition: filter 140ms ease, background 140ms ease;
}
.login-panel .email-button:hover { background: rgba(255,255,255,0.12); }
.login-panel .email-mark { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: #1f2937; background: #fff; flex: 0 0 auto; }
html[data-theme="light"] .login-panel .email-button { background: #f3f4f6; color: #111827; border-color: #d1d5db; }
.email-auth-tabs { display: flex; gap: 8px; margin: 4px 0 14px; }
.email-auth-tabs button { flex: 1; min-height: 40px; border: 1px solid rgba(255,255,255,0.18); border-radius: 8px; background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.75); font-weight: 700; cursor: pointer; }
.email-auth-tabs button.is-active { background: linear-gradient(135deg, rgba(73,228,255,0.85), rgba(141,34,255,0.95)); color: #fff; border-color: transparent; }
html[data-theme="light"] .email-auth-tabs button { background: #f3f4f6; color: #6b7280; border-color: #d1d5db; }
html[data-theme="light"] .email-auth-tabs button.is-active { color: #fff; }
.auth-secondary-link { display: block; width: 100%; margin-top: 14px; background: none; border: none; color: rgba(255,255,255,0.7); font-weight: 600; cursor: pointer; font-size: 0.88rem; text-decoration: underline; }
.auth-secondary-link:hover { color: #49e4ff; }
html[data-theme="light"] .auth-secondary-link { color: #6b7280; }
.password-login-form { display: grid; gap: 0.65rem; }
.password-login-form input { min-height: 48px; padding: 0 1rem; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 6px; background: rgba(255, 255, 255, 0.04); color: #fff; font-size: 0.95rem; font-family: inherit; width: 100%; }
.password-login-form .pw-wrap .pw-input { padding-right: 44px; }
.password-login-form input:focus { outline: none; border-color: rgba(73, 228, 255, 0.55); box-shadow: 0 0 0 3px rgba(73, 228, 255, 0.18); }
html[data-theme="light"] .password-login-form input { background: #fff; color: #111827; border-color: #d1d5db; }
.magic-link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 0.25rem;
  border: 1px solid rgba(73, 228, 255, 0.85);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(73, 228, 255, 0.85), rgba(141, 34, 255, 0.95));
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(73, 228, 255, 0.30), 0 0 22px rgba(141, 34, 255, 0.35);
}
.magic-link-button:hover:not(:disabled) {
  filter: brightness(1.07);
}
.magic-link-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.magic-link-status {
  min-height: 1.4em;
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  text-align: center;
}
.magic-link-error { color: #ff9aa6; }
.magic-link-success { color: #9ef0c0; }

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 0, 5, 0.86);
  backdrop-filter: blur(18px);
}

.dashboard-brand img {
  width: 112px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(141, 34, 255, 0.8));
}

.profile-menu {
  position: relative;
}

.profile-button {
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  overflow: hidden;
}

.profile-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-popover {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  display: none;
  width: min(280px, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(11, 9, 16, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.profile-menu.is-open .profile-popover {
  display: grid;
  gap: 0.45rem;
}

.profile-popover strong {
  font-size: 0.95rem;
}

.profile-popover span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.85rem;
}

.profile-popover a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 0.6rem;
  border-radius: 6px;
  color: white;
  background: rgba(227, 69, 255, 0.24);
  font-weight: 800;
}

.dashboard-main {
  min-height: calc(100vh - 72px);
  padding: clamp(1rem, 3vw, 2.8rem);
  background:
    radial-gradient(circle at 20% 10%, rgba(73, 228, 255, 0.14), transparent 22rem),
    radial-gradient(circle at 78% 18%, rgba(60, 255, 176, 0.1), transparent 18rem);
}

.workspace {
  width: min(100%, 1380px);
  margin: 0 auto;
}

.tabs {
  position: sticky;
  top: 86px;
  z-index: 15;
  display: flex;
  gap: 0.7rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(9, 7, 14, 0.94);
  backdrop-filter: blur(16px);
  overflow-x: auto;
}

.tab-button {
  min-height: 48px;
  padding: 0 1rem;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.tab-button.is-active {
  color: white;
  background: linear-gradient(135deg, rgba(227, 69, 255, 0.42), rgba(73, 228, 255, 0.16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.tab-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.tab-panel {
  margin-top: 1rem;
}

.search-workbench,
.results-panel,
.email-panel,
.send-status-panel {
  min-height: 620px;
  padding: clamp(1.2rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(73, 228, 255, 0.05)),
    rgba(8, 7, 13, 0.84);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.search-workbench {
  display: grid;
  align-content: start;
  gap: 1.8rem;
  background:
    linear-gradient(145deg, rgba(73, 228, 255, 0.13), rgba(10, 46, 64, 0.72)),
    #07141b;
}

.results-panel {
  background:
    linear-gradient(145deg, rgba(141, 34, 255, 0.18), rgba(30, 13, 54, 0.78)),
    #130a1f;
}

.results-stream-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(73, 228, 255, 0.4);
  border-radius: 10px;
  background: rgba(73, 228, 255, 0.08);
  color: #d6f6ff;
}
.results-stream-banner .stream-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.results-stream-banner .stream-banner-text strong {
  font-weight: 800;
  font-size: 0.92rem;
}
.results-stream-banner .stream-elapsed {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 1px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.dashboard-shell .results-stream-banner .stream-elapsed {
  background: rgba(74, 134, 255, 0.14);
  border-color: rgba(74, 134, 255, 0.28);
}
.results-stream-banner .stream-banner-text span {
  font-size: 0.78rem;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.results-stream-banner.is-running {
  border-color: rgba(73, 228, 255, 0.45);
  background: rgba(73, 228, 255, 0.1);
}
.results-stream-banner.is-complete {
  border-color: rgba(60, 220, 130, 0.55);
  background: rgba(60, 220, 130, 0.12);
  color: #d6ffe6;
}
.results-stream-banner.is-failed {
  border-color: rgba(255, 96, 96, 0.55);
  background: rgba(255, 96, 96, 0.14);
  color: #ffdede;
}
.results-stream-banner .stream-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(73, 228, 255, 0.25);
  border-top-color: rgba(73, 228, 255, 1);
  border-radius: 50%;
  animation: stream-spin 0.9s linear infinite;
  flex-shrink: 0;
}
.results-stream-banner .stream-check,
.results-stream-banner .stream-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.results-stream-banner.is-complete .stream-check {
  background: rgba(60, 220, 130, 0.3);
  color: #b9ffd1;
}
.results-stream-banner.is-failed .stream-cross {
  background: rgba(255, 96, 96, 0.3);
  color: #ffd5d5;
}
.results-stream-banner .stream-banner-stop,
.results-stream-banner .stream-banner-dismiss {
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0.85;
}
.results-stream-banner .stream-banner-stop:hover,
.results-stream-banner .stream-banner-dismiss:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}
.results-stream-banner .stream-banner-dismiss {
  min-width: 26px;
  padding: 0;
  height: 26px;
  font-size: 1.1rem;
  line-height: 1;
}
@keyframes stream-spin {
  to { transform: rotate(360deg); }
}

.dashboard-shell .results-stream-banner {
  background: var(--ds-surface);
  border-color: var(--ds-border);
  color: var(--ds-text);
  box-shadow: var(--ds-shadow-xs);
}
.dashboard-shell .results-stream-banner.is-running {
  background: var(--ds-primary-soft);
  border-color: var(--ds-primary-200);
  color: var(--ds-primary);
}
.dashboard-shell .results-stream-banner.is-running .stream-spinner {
  border-color: rgba(74, 134, 255, 0.25);
  border-top-color: var(--ds-primary);
}
.dashboard-shell .results-stream-banner.is-complete {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
  color: #166534;
}
.dashboard-shell .results-stream-banner.is-failed {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.4);
  color: #991b1b;
}

.email-panel {
  background:
    linear-gradient(145deg, rgba(60, 255, 176, 0.13), rgba(7, 48, 37, 0.76)),
    #071912;
}

.send-status-panel {
  background:
    linear-gradient(145deg, rgba(255, 80, 130, 0.14), rgba(56, 13, 30, 0.78)),
    #1c0810;
}

.dashboard-search {
  display: grid;
  gap: 0.7rem;
}

.dashboard-search label,
.email-form label {
  color: var(--lavender);
  font-weight: 800;
}

.platform-toggle-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.platform-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(3, 2, 8, 0.78);
  font: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform-toggle.is-on {
  color: white;
  border-color: rgba(73, 228, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(227, 69, 255, 0.34), rgba(73, 228, 255, 0.16)),
    rgba(3, 2, 8, 0.82);
  box-shadow: 0 0 28px rgba(141, 34, 255, 0.24);
}

.platform-toggle strong {
  color: var(--cyan);
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.field-block {
  display: grid;
  gap: 0.55rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.search-name-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1.15fr);
  gap: 1rem;
}

.search-category-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) repeat(3, minmax(160px, 1fr));
  gap: 1rem;
}

.dashboard-search input,
.dashboard-search select,
.dashboard-search textarea,
.search-submit,
.email-form input,
.email-form textarea,
.email-form button,
.export-actions button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font: inherit;
}

.dashboard-search input,
.dashboard-search select,
.dashboard-search textarea,
.email-form input,
.email-form textarea {
  width: 100%;
  padding: 0.48rem 0.85rem;
  color: var(--text);
  background: rgba(3, 2, 8, 0.86);
}

.dashboard-search select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%) calc(100% - 1.1rem) 52% / 0.45rem 0.45rem no-repeat,
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%) calc(100% - 0.8rem) 52% / 0.45rem 0.45rem no-repeat,
    rgba(3, 2, 8, 0.86);
}

.dashboard-search textarea {
  min-height: 72px;
  resize: vertical;
}

.csv-import-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid rgba(73, 228, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.csv-import-toggle-row,
.csv-import-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem 0.9rem;
  align-items: center;
}

.csv-import-controls {
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.csv-import-panel strong,
.csv-import-panel span {
  display: block;
}

.csv-import-panel span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.csv-import-toggle {
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid rgba(73, 228, 255, 0.34);
  border-radius: 8px;
  color: white;
  background: rgba(73, 228, 255, 0.12);
  font-weight: 800;
  cursor: pointer;
}

.csv-import-toggle:hover,
.csv-import-toggle:focus-visible {
  border-color: rgba(73, 228, 255, 0.5);
  background: rgba(73, 228, 255, 0.18);
}

.csv-import-panel input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.csv-upload-button {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid rgba(73, 228, 255, 0.34);
  border-radius: 8px;
  color: white;
  background: rgba(73, 228, 255, 0.12);
  font-weight: 800;
  cursor: pointer;
}

.csv-import-panel .ai-search-status,
.csv-import-panel .ai-search-error {
  margin: 0;
}

@media (max-width: 700px) {
  .csv-import-toggle-row,
  .csv-import-controls {
    grid-template-columns: 1fr;
  }

  .csv-upload-button,
  .csv-import-toggle {
    width: 100%;
  }
}

.ai-search-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.ai-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

.ai-search-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.ai-search-tools button {
  min-height: 40px;
  padding: 0 0.9rem;
  border: 1px solid rgba(73, 228, 255, 0.24);
  border-radius: 6px;
  color: white;
  background: rgba(73, 228, 255, 0.12);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.ai-search-tools button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.dashboard-search .ai-search-prompt {
  min-height: 96px;
  margin-top: 0.75rem;
  border-color: rgba(73, 228, 255, 0.22);
  background: rgba(73, 228, 255, 0.06);
}

.ai-search-status,
.ai-search-error {
  margin: 0.65rem 0 0;
  font-weight: 800;
}

.ai-search-status {
  color: var(--cyan);
}

.previous-results-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}

.previous-results-row .ai-search-status {
  margin: 0;
}

.previous-results-row button {
  min-height: 34px;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(73, 228, 255, 0.45);
  border-radius: 8px;
  color: #00151c;
  background: var(--cyan);
  font-weight: 900;
  cursor: pointer;
}

.previous-results-row button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.ai-search-error {
  color: #ff9fbd;
}

.search-submit,
.email-form button,
.export-actions button {
  color: white;
  background: linear-gradient(135deg, var(--magenta), var(--violet) 56%, #2e49ff);
  font-family: Orbitron, Inter, sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.community-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.community-field legend {
  margin-bottom: 0.55rem;
  color: var(--lavender);
  font-weight: 800;
}

.followers-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
}

.followers-range span,
.followers-range strong {
  color: var(--muted);
  white-space: nowrap;
}

.followers-range strong {
  color: var(--cyan);
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.tag-select {
  position: relative;
}

.tag-input-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 34px;
  gap: 0.45rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(3, 2, 8, 0.86);
}

.tag-input-shell input {
  flex: 1 1 150px;
  min-width: 120px;
  min-height: 26px;
  padding: 0 0.35rem;
  border: 0;
  background: transparent;
  outline: 0;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 26px;
  padding: 0 0.45rem 0 0.75rem;
  border: 1px solid rgba(73, 228, 255, 0.24);
  border-radius: 999px;
  background: rgba(73, 228, 255, 0.1);
  color: white;
  font-size: 0.88rem;
  font-weight: 800;
}

.filter-tag button {
  display: grid;
  width: 22px;
  min-height: 18px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  font: inherit;
  line-height: 1;
}

.suggestion-list {
  position: absolute;
  inset: calc(100% + 0.35rem) 0 auto;
  z-index: 12;
  display: none;
  max-height: 210px;
  overflow-y: auto;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 7, 13, 0.98);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.5);
}

.tag-select:focus-within .suggestion-list {
  display: grid;
  gap: 0.25rem;
}

.suggestion-list button {
  min-height: 38px;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 5px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.suggestion-list button:hover {
  background: rgba(227, 69, 255, 0.2);
}

.suggestion-list button[hidden] {
  display: none;
}

.search-submit {
  justify-self: start;
  min-width: 180px;
  padding: 0 1rem;
}

.search-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.search-progress {
  display: grid;
  grid-template-rows: 12px minmax(24px, auto) auto 1.35rem 1.35rem;
  gap: 0.7rem;
  min-height: 132px;
  padding: 1rem;
  border: 1px solid rgba(73, 228, 255, 0.18);
  border-radius: 8px;
  background: rgba(3, 2, 8, 0.62);
  overflow: hidden;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: width 240ms ease;
}

.progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
}

.progress-meta span {
  min-width: 132px;
}

.progress-meta strong {
  min-width: 4ch;
  color: white;
  font-family: Orbitron, Inter, sans-serif;
}

.stop-search-button {
  justify-self: start;
  min-height: 38px;
  padding: 0 0.95rem;
  border: 1px solid rgba(255, 143, 181, 0.55);
  border-radius: 8px;
  background: rgba(255, 69, 117, 0.15);
  color: #ffd6e3;
  font-weight: 700;
}

.stop-search-button:hover {
  background: rgba(255, 69, 117, 0.25);
}

.search-progress p {
  margin: 0;
  color: var(--muted);
}

.search-progress .progress-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-progress .progress-error {
  color: #ff8fb5;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.metric-row article {
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.metric-row strong {
  display: block;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.metric-row span {
  color: var(--muted);
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.search-name-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.search-name-filter button {
  min-height: 38px;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.search-name-filter button.is-active {
  color: var(--cyan);
  border-color: rgba(73, 228, 255, 0.42);
  background: rgba(73, 228, 255, 0.12);
  box-shadow: 0 0 18px rgba(73, 228, 255, 0.12);
}

.search-name-chip-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.search-name-filter .search-name-rename {
  min-height: 38px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  opacity: 0.55;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: none;
}
.search-name-filter .search-name-rename svg {
  width: 12px;
  height: 12px;
}
.search-name-filter .search-name-rename:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}
.search-name-filter .search-name-delete {
  min-height: 38px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  opacity: 0.55;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: none;
}
.search-name-filter .search-name-delete svg { width: 12px; height: 12px; }
.search-name-filter .search-name-delete:hover { opacity: 1; color: #ef4444; background: rgba(239, 68, 68, 0.12); }

.search-name-filter .merge-searches-button {
  min-height: 38px;
  padding: 0 0.85rem;
  border-radius: 6px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.search-name-filter .merge-searches-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.search-name-filter .merge-searches-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(73, 228, 255, 0.18);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
}

.selection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.selection-count {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.75rem;
  border: 1px solid rgba(73, 228, 255, 0.2);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(73, 228, 255, 0.08);
  font-weight: 900;
}

.search-name-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 220px;
  min-height: 28px;
  align-items: center;
  padding: 0 0.55rem;
  border: 1px solid rgba(73, 228, 255, 0.22);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(73, 228, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Platform badge sitting next to the search-name-chip in the influencer list */
.strip-chip-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.strip-chip-row [class^="social-tag-"] {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #e6edf7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.strip-chip-row .social-tag-youtube   { color: #ef4444; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.4); }
.strip-chip-row .social-tag-instagram { color: #ec4899; background: rgba(236, 72, 153, 0.12); border-color: rgba(236, 72, 153, 0.4); }
.strip-chip-row .social-tag-tiktok    { color: #06b6d4; background: rgba(6, 182, 212, 0.12); border-color: rgba(6, 182, 212, 0.4); }
.strip-chip-row .social-tag-twitch    { color: #a855f7; background: rgba(168, 85, 247, 0.12); border-color: rgba(168, 85, 247, 0.4); }
.strip-chip-row .social-tag-kick      { color: #16a34a; background: rgba(22, 163, 74, 0.12); border-color: rgba(22, 163, 74, 0.4); }

.selection-actions button {
  min-height: 42px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: white;
  background: rgba(73, 228, 255, 0.1);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.results-error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 143, 181, 0.28);
  border-radius: 8px;
  color: #ffb1c9;
  background: rgba(255, 80, 130, 0.1);
  font-weight: 800;
}

.influencer-filter {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 640px);
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 820px);
  margin: 0 0 1rem;
}

.influencer-filter label {
  color: var(--lavender);
  font-weight: 800;
}

.influencer-filter input {
  width: 100%;
  min-height: 52px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text);
  background: rgba(3, 2, 8, 0.86);
  font: inherit;
}

.influencer-filter select {
  min-height: 52px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text);
  background: rgba(3, 2, 8, 0.86);
  font: inherit;
}

.result-filter-grid {
  width: 100%;
  grid-template-columns: auto minmax(220px, 1fr) repeat(3, minmax(160px, 220px));
}

.result-filter-grid label:not(:first-child) {
  display: grid;
  gap: 0.3rem;
}

@media (max-width: 720px) {
  .influencer-filter {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.influencer-filter input::placeholder {
  color: rgba(249, 237, 255, 0.42);
}

.view-toggle {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(3, 2, 8, 0.72);
}

.view-toggle button {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.view-toggle button.is-active {
  color: white;
  background: rgba(73, 228, 255, 0.16);
}

.list-icon,
.table-icon {
  display: grid;
  width: 20px;
  height: 18px;
  gap: 4px;
}

.list-icon::before,
.list-icon::after,
.table-icon::before,
.table-icon::after {
  content: "";
}

.list-icon,
.list-icon::before,
.list-icon::after {
  border-top: 3px solid currentColor;
}

.table-icon {
  grid-template-columns: repeat(2, 1fr);
}

.table-icon,
.table-icon::before,
.table-icon::after {
  border: 2px solid currentColor;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.export-actions button {
  min-width: 150px;
  padding: 0 1rem;
}

.results-table-wrap {
  max-height: 68vh;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.results-table {
  width: 100%;
  min-width: 1680px;
  border-collapse: collapse;
  background: rgba(3, 2, 8, 0.55);
}

/* Billing history is only 5 columns — drop the wide min-width so it fits with no
   horizontal scroll, and let the columns size to their content. */
.billing-history-wrap { overflow-x: hidden; }
.billing-history-table { min-width: 0; width: 100%; table-layout: auto; }
.billing-history-table th,
.billing-history-table td { padding: 0.7rem 0.9rem; white-space: nowrap; }

.results-table th,
.results-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.results-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--cyan);
  background: rgba(8, 7, 13, 0.98);
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.results-table th button {
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.results-table .delete-column,
.results-table .delete-cell {
  width: 116px;
  min-width: 116px;
  padding-right: 30px;
  text-align: right;
}

.delete-influencer-button {
  min-height: 32px;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 80, 130, 0.72);
  border-radius: 8px;
  color: #ffe5ed;
  background: rgba(255, 38, 96, 0.22);
  font-weight: 500;
  cursor: pointer;
}

.delete-influencer-button:hover {
  border-color: rgba(255, 128, 166, 0.95);
  background: rgba(255, 38, 96, 0.34);
}

/* Light-mode override: pale-pink text is unreadable on the light pink background,
   so use a dark red instead (only inside .dashboard-shell). */
.dashboard-shell .delete-influencer-button {
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.5);
  background: rgba(254, 226, 226, 0.85);
}
.dashboard-shell .delete-influencer-button:hover {
  color: #991b1b;
  border-color: rgba(185, 28, 28, 0.8);
  background: rgba(254, 202, 202, 0.95);
}

.row-select {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.results-table td span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.results-table .table-link {
  color: var(--text);
  font-weight: 800;
}

.results-table .table-link:hover {
  color: var(--cyan);
}

.results-table tr.is-problem-row td {
  background: rgba(255, 80, 130, 0.08);
}

.admin-key-section {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.admin-key-section h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.admin-api-keys-panel {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
}

.admin-api-keys-panel .admin-replied-table {
  max-height: min(56vh, 560px);
  overflow-y: auto;
  overflow-x: auto;
}

.admin-search-provider-panel {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
}

.search-provider-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.search-provider-summary article {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.search-provider-summary span {
  color: var(--muted);
  font-size: 0.78rem;
}

.search-provider-summary strong {
  overflow-wrap: anywhere;
  color: white;
}

.admin-search-provider-table {
  max-height: min(68vh, 680px);
  overflow-y: auto;
  overflow-x: auto;
}

.table-avatar,
.table-game-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.table-game-thumb {
  width: 42px;
  height: 56px;
}

.description-cell {
  max-width: 320px;
  color: var(--muted);
  line-height: 1.45;
}

.email-status-chip {
  display: inline-block;
  padding: 0.2rem 0.48rem;
  border: 1px solid rgba(73, 228, 255, 0.26);
  border-radius: 999px;
  color: #dbfbff;
  background: rgba(73, 228, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
}

.email-source-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.4rem;
  border: 1px solid rgba(120, 200, 255, 0.35);
  border-radius: 999px;
  color: #cfeaff;
  background: rgba(73, 228, 255, 0.08);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  cursor: help;
}
.email-source-badge.email-source-external-url {
  border-color: rgba(255, 176, 64, 0.55);
  background: rgba(255, 176, 64, 0.16);
  color: #ffd9a8;
}
.dashboard-shell .email-source-badge {
  border-color: var(--ds-border);
  background: var(--ds-surface-2);
  color: var(--ds-muted);
}
.dashboard-shell .email-source-badge.email-source-external-url {
  border-color: rgba(217, 119, 6, 0.4);
  background: rgba(252, 211, 77, 0.22);
  color: #92400e;
}

.influencer-list {
  display: grid;
  gap: 0.8rem;
  max-height: 68vh;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.influencer-strip {
  display: grid;
  grid-template-columns: 72px 86px 140px minmax(0, 1fr) 82px;
  align-items: center;
  min-height: 100px;
  gap: 0.75rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.88rem;
  overflow: hidden;
}

.strip-select {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.strip-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.profile-image-link,
.video-thumb-link {
  display: grid;
  color: white;
}

.profile-image-link {
  justify-items: center;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.profile-image-link img {
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.profile-image-link span {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-thumb-link img {
  width: 140px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
}

.strip-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.strip-details strong {
  flex-basis: 100%;
  min-width: 0;
  color: white;
  overflow-wrap: anywhere;
}

.strip-details a,
.strip-socials a {
  color: var(--cyan);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.strip-socials {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  min-width: 0;
}

.strip-socials .delete-influencer-button {
  width: 74px;
  padding-inline: 0.45rem;
  font-size: 0.78rem;
}

.email-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.email-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.email-compose {
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.email-compose::-webkit-scrollbar {
  width: 10px;
}

.email-compose::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--magenta), var(--violet));
}

.email-recipient-list {
  display: grid;
  gap: 0.55rem;
  max-height: 260px;
  margin-top: 1.2rem;
  overflow-y: auto;
}

.email-recipient-list article {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(120px, 0.7fr) minmax(180px, 1fr) minmax(220px, 1.2fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.email-recipient-list span {
  color: var(--muted);
}

.email-recipient-list a {
  overflow-wrap: anywhere;
  color: var(--cyan);
  font-weight: 800;
}

.test-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 0.7rem;
}

.test-email-row button,
.send-emails-button {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: white;
  background: linear-gradient(135deg, var(--magenta), var(--violet) 56%, #2e49ff);
  font-family: Orbitron, Inter, sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.send-emails-button {
  width: 100%;
  min-height: 64px;
  margin-top: 0.4rem;
  font-size: 1rem;
}

.send-emails-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.test-email-row button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.recipient-count {
  margin: -0.25rem 0 0.35rem;
  color: var(--green);
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.email-channel-count {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 1rem 0 0;
  padding: 0 0.5rem;
  border: 1px solid rgba(60, 255, 176, 0.22);
  border-radius: 999px;
  color: var(--green);
  background: rgba(60, 255, 176, 0.08);
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
}

.email-status,
.email-error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  font-weight: 800;
}

.email-status {
  color: #b7ffe3;
  background: rgba(60, 255, 176, 0.12);
}

.email-error {
  color: #ffb1c9;
  background: rgba(255, 80, 130, 0.1);
}

.email-tokens {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(3, 2, 8, 0.62);
}

.email-token-buttons,
.custom-tag-values {
  display: grid;
  gap: 0.7rem;
}

.email-tokens button {
  min-height: 46px;
  padding: 0 0.85rem;
  border: 1px solid rgba(73, 228, 255, 0.2);
  border-radius: 6px;
  color: white;
  background: rgba(73, 228, 255, 0.1);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.email-tokens label {
  color: var(--lavender);
  font-weight: 800;
}

.email-tokens .custom-tag-textarea {
  width: 100%;
  min-height: 160px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text);
  background: rgba(3, 2, 8, 0.86);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
  resize: vertical;
}

.send-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.campaign-list {
  display: grid;
  gap: 0.75rem;
  max-height: 58vh;
  margin-top: 1.2rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.campaign-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(260px, auto) minmax(120px, 220px) auto;
  align-items: start;
  gap: 0.9rem 1rem;
  padding: 1.78rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.campaign-row__name {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.campaign-row__name strong {
  font-size: 0.98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.campaign-row__name .campaign-row__subject,
.campaign-row__name .campaign-row__date {
  font-size: 0.78rem;
  color: var(--muted);
}
.campaign-row__meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
  min-width: 0;
}
.campaign-row__meta .campaign-status-badge { flex: 0 0 auto; }

.campaign-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.campaign-status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.campaign-status--running {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.35);
}
.campaign-status--complete {
  color: #49e4ff;
  background: rgba(73, 228, 255, 0.12);
  border-color: rgba(73, 228, 255, 0.32);
}
.campaign-status--paused {
  color: #fcd34d;
  background: rgba(252, 211, 77, 0.14);
  border-color: rgba(252, 211, 77, 0.35);
}
.campaign-status--stopped {
  color: #ff9fbd;
  background: rgba(255, 80, 130, 0.14);
  border-color: rgba(255, 143, 181, 0.4);
}
.campaign-status--idle {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}
.dashboard-shell .campaign-status--running { color: #16a34a; background: rgba(22,163,74,0.12); border-color: rgba(22,163,74,0.35); }
.dashboard-shell .campaign-status--complete { color: #2563eb; background: rgba(37,99,235,0.1); border-color: rgba(37,99,235,0.32); }
.dashboard-shell .campaign-status--paused { color: #b45309; background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.35); }
.dashboard-shell .campaign-status--stopped { color: #b91c1c; background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.35); }
.dashboard-shell .campaign-status--idle { color: #6b7280; background: var(--ds-surface-2, #f3f4f6); border-color: var(--ds-border, rgba(0,0,0,0.08)); }

.campaign-followup-button {
  min-height: 32px;
  padding: 0 0.7rem;
  border: 1px solid rgba(73, 228, 255, 0.32);
  border-radius: 999px;
  background: rgba(73, 228, 255, 0.1);
  color: #cfeaff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
}
.campaign-followup-button:hover { background: rgba(73, 228, 255, 0.2); }
.dashboard-shell .campaign-followup-button {
  border-color: var(--ds-primary-200);
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
}
.dashboard-shell .campaign-followup-button:hover { filter: brightness(0.95); }

.email-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.email-template-button {
  padding: 4px 12px;
  border: 1px solid rgba(73, 228, 255, 0.32);
  border-radius: 999px;
  background: rgba(73, 228, 255, 0.1);
  color: #cfeaff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}
.email-template-button:hover { background: rgba(73, 228, 255, 0.2); }
.dashboard-shell .email-template-button {
  border-color: var(--ds-primary-200);
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
}

.campaign-delete-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 143, 181, 0.32);
  border-radius: 50%;
  background: rgba(255, 80, 130, 0.1);
  color: #ff9fbd;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.campaign-delete-button:hover { background: rgba(255, 80, 130, 0.2); }
.dashboard-shell .campaign-delete-button {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.06);
  color: #b91c1c;
}
.dashboard-shell .campaign-delete-button:hover { background: rgba(220, 38, 38, 0.12); }

.campaign-row.is-active {
  border-color: rgba(73, 228, 255, 0.36);
  background: rgba(73, 228, 255, 0.09);
}

.campaign-row strong {
  display: block;
}

.campaign-row span {
  color: var(--muted);
}

.campaign-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.campaign-socials span {
  padding: 0.18rem 0.48rem;
  border: 1px solid rgba(73, 228, 255, 0.26);
  border-radius: 999px;
  color: #dbfbff;
  background: rgba(73, 228, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
}

.campaign-socials a {
  padding: 0.18rem 0.48rem;
  border: 1px solid rgba(73, 228, 255, 0.26);
  border-radius: 999px;
  color: #dbfbff;
  background: rgba(73, 228, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.campaign-socials .social-tag-youtube {
  border-color: rgba(255, 88, 88, 0.5);
  color: #ffe7e7;
  background: rgba(255, 38, 38, 0.24);
}

.campaign-socials .social-tag-kick {
  border-color: rgba(74, 255, 122, 0.5);
  color: #e8ffed;
  background: rgba(28, 192, 76, 0.24);
}

.campaign-socials .social-tag-twitch {
  border-color: rgba(174, 112, 255, 0.52);
  color: #f0e7ff;
  background: rgba(126, 60, 255, 0.26);
}

.campaign-socials .social-tag-instagram {
  border-color: rgba(228, 64, 95, 0.55);
  color: #ffeaf2;
  background: linear-gradient(135deg, rgba(255, 88, 100, 0.28), rgba(247, 119, 55, 0.28));
}

.campaign-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-weight: 800;
}

.campaign-counts button {
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.campaign-new-count.has-new {
  color: #ffffff;
  font-weight: 800;
}

/* Keep the platform tags and the Edit-email button on the same line, to the right
   of the platform names (instead of wrapping the button onto the next line). */
.campaign-row__platforms {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
  min-width: 0;
}
.campaign-row__platforms .campaign-socials { margin-top: 0; }
.campaign-edit-email-button {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid rgba(73, 228, 255, 0.5);
  background: rgba(73, 228, 255, 0.1);
  color: #d6f7ff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.campaign-edit-email-button:hover { background: rgba(73, 228, 255, 0.2); }
/* Light mode: the cyan text is too pale on white — darken it. */
.dashboard-shell .campaign-edit-email-button {
  border-color: var(--ds-primary, #2c6cf5);
  background: var(--ds-primary-soft, #eaf1ff);
  color: var(--ds-primary-hover, #1f5be0);
}
.dashboard-shell .campaign-edit-email-button:hover {
  background: var(--ds-primary-200, #c8daff);
}
.campaign-edit-modal { width: min(600px, 100%); }
.campaign-edit-label { display: block; margin-bottom: 0.8rem; }
.campaign-edit-label > span { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--ds-text-muted, #6b7280); }
.campaign-edit-modal input[type="text"],
.campaign-edit-modal input[type="email"],
.campaign-edit-modal textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--ds-border-strong, #d6d9e1);
  background: var(--ds-surface-2, #f8f9fc);
  color: var(--ds-text, #111);
  font: inherit;
  resize: vertical;
}
.campaign-edit-test {
  margin: 0.4rem 0 0.2rem;
  padding: 0.7rem;
  border: 1px dashed var(--ds-border-strong, #d6d9e1);
  border-radius: 8px;
}
.campaign-edit-test-label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--ds-text-muted, #6b7280); }
.campaign-edit-test-row { display: flex; gap: 8px; }
.campaign-edit-test-row input { flex: 1 1 auto; }
.campaign-edit-test-row button {
  flex: 0 0 auto;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--ds-primary, #2c6cf5);
  background: transparent;
  color: var(--ds-primary, #2c6cf5);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.campaign-edit-test-row button:hover { background: var(--ds-primary-soft, rgba(44,108,245,0.12)); }
.campaign-edit-test-ok { margin: 6px 0 0; font-size: 12.5px; color: var(--ds-success, #16a34a); }

.campaign-progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.campaign-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.campaign-danger-actions {
  display: flex;
  justify-content: flex-start;
}

.campaign-danger-actions button {
  min-height: 36px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 96, 130, 0.42);
  border-radius: 6px;
  color: #ffd7e1;
  background: rgba(255, 80, 130, 0.16);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.campaign-danger-actions button:hover {
  background: rgba(255, 80, 130, 0.26);
}

.campaign-recipient-table {
  margin-top: 1rem;
}

.reply-row {
  cursor: pointer;
}

.reply-row.is-unread td {
  color: white;
  font-weight: 900;
}

.reply-row:hover {
  background: rgba(73, 228, 255, 0.08);
}

.reply-detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr);
  gap: 1.2rem;
  margin-top: 1.2rem;
  min-height: 0;
}

.reply-channel,
.reply-message {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.reply-channel {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.reply-channel img {
  width: 78px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.reply-channel span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.reply-channel a {
  color: var(--cyan);
  font-weight: 800;
}

.reply-message pre {
  max-height: min(58vh, 560px);
  overflow: auto;
  white-space: pre-wrap;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

.reply-message-header {
  display: flex;
  flex: 0 0 auto;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.reply-message-header p {
  margin: 0 0 0.45rem;
}

.reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.reply-actions button,
.reply-compose button {
  min-height: 40px;
  padding: 0 1rem;
  border: 1px solid rgba(73, 228, 255, 0.24);
  border-radius: 6px;
  color: white;
  background: rgba(73, 228, 255, 0.12);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.reply-compose {
  display: grid;
  flex: 0 0 auto;
  gap: 0.65rem;
  margin-top: 1rem;
}

.reply-compose label {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.reply-compose textarea {
  width: 100%;
  min-height: 130px;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text);
  background: rgba(3, 2, 8, 0.86);
  font: inherit;
  resize: vertical;
}

.followup-filter-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto minmax(100px, 130px) auto;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.followup-filter-row label {
  color: var(--lavender);
  font-weight: 800;
}

.followup-filter-row input,
.followup-form input,
.followup-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text);
  background: rgba(3, 2, 8, 0.86);
  font: inherit;
}

.followup-filter-row input,
.followup-form input {
  min-height: 46px;
  padding: 0 0.85rem;
}

.followup-filter-row button {
  min-height: 46px;
  padding: 0 1rem;
}

.followup-days-field {
  display: grid;
  grid-template-columns: 81px auto;
  gap: 0.45rem;
  align-items: center;
}

.followup-days-field input {
  text-align: center;
}

.followup-days-field span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.followup-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(3, 2, 8, 0.68);
}

.followup-mode-toggle label {
  cursor: pointer;
}

.followup-mode-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.followup-mode-toggle span {
  display: grid;
  min-width: 48px;
  min-height: 36px;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.followup-mode-toggle input:checked + span {
  color: white;
  background: rgba(73, 228, 255, 0.16);
}

.followup-open-button {
  width: auto;
  min-width: 150px;
  min-height: 46px;
  margin: 0;
  font-size: 0.86rem;
}

.followup-table td {
  overflow-wrap: anywhere;
}

.followup-modal {
  width: min(94vw, 760px);
}

.followup-form {
  display: grid;
  gap: 0.75rem;
}

.followup-form label {
  color: var(--lavender);
  font-weight: 800;
}

.followup-form textarea {
  min-height: 220px;
  padding: 0.85rem;
  resize: vertical;
}

.followup-token-buttons {
  margin-top: 0;
}

@media (max-width: 760px) {
  .followup-filter-row {
    grid-template-columns: 1fr;
  }

  .followup-open-button,
  .followup-filter-row button {
    width: 100%;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(3, 0, 6, 0.72);
  backdrop-filter: blur(10px);
}

.modal-backdrop.is-front {
  z-index: 140;
}

.template-modal {
  width: min(980px, 100%);
  max-height: min(84vh, 820px);
  overflow: auto;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 80, 130, 0.18), rgba(34, 8, 22, 0.96)),
    #130711;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.template-editor-modal {
  width: min(760px, 100%);
}

.template-modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.template-modal-heading h2 {
  margin: 0;
  font-family: Orbitron, Inter, sans-serif;
}

.template-modal-actions,
.template-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.template-modal button,
.template-editor-form button {
  min-height: 38px;
  padding: 0 0.85rem;
  border: 1px solid rgba(73, 228, 255, 0.24);
  border-radius: 6px;
  color: white;
  background: rgba(73, 228, 255, 0.12);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.template-list {
  display: grid;
  gap: 0.75rem;
}

.template-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.template-list-item strong,
.template-list-item span {
  display: block;
}

.template-list-item p {
  margin: 0.25rem 0;
  color: var(--muted);
}

.template-list-item span {
  color: var(--cyan);
  font-weight: 800;
}

.template-row-actions .template-use-button {
  background: rgba(60, 255, 176, 0.16);
}

.template-row-actions .template-edit-button {
  border-color: rgba(73, 228, 255, 0.45);
  background: rgba(73, 120, 255, 0.24);
}

.template-row-actions .template-delete-button {
  border-color: rgba(255, 96, 130, 0.52);
  background: rgba(255, 38, 96, 0.26);
}

.template-editor-form {
  display: grid;
  gap: 0.65rem;
}

.template-editor-form label {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.template-editor-form input,
.template-editor-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text);
  background: rgba(3, 2, 8, 0.86);
  font: inherit;
}

.template-editor-form textarea {
  resize: vertical;
}

.admin-user-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.admin-replied-table {
  height: min(62vh, 620px);
  overflow: auto;
}

.account-influencer-table {
  height: min(58vh, 560px);
  overflow-y: auto;
  overflow-x: auto;
}

.account-influencer-table td:first-child {
  min-width: 210px;
  padding: 0.55rem;
}

.account-channel-card {
  display: flex;
  align-items: flex-end;
  width: 190px;
  min-height: 86px;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  overflow: hidden;
  color: white;
  background-position: center;
  background-size: cover;
  text-decoration: none;
}

.account-channel-card span {
  display: block;
  width: 100%;
  color: white;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.88);
}

.account-influencers-panel {
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-replied-table a {
  color: var(--cyan);
  font-weight: 900;
}

.account-influencer-table a {
  color: var(--cyan);
  font-weight: 900;
}

.admin-influencer-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 0.6fr));
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
}

.admin-influencer-filters label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-influencer-filters input,
.admin-influencer-filters select {
  min-height: 40px;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text);
  background: rgba(3, 2, 8, 0.78);
  font: inherit;
  text-transform: none;
}

.admin-influencer-filters select {
  cursor: pointer;
}

.admin-shell .tab-panel {
  min-height: 0;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(180px, 0.7fr) minmax(0, 1.4fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-user-plan {
  display: flex;
  align-items: center;
}

.admin-user-plan label {
  display: grid;
  gap: 0.3rem;
  width: 100%;
}

.admin-user-plan label > span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-user-plan select {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font: inherit;
}

.admin-user-plan-badge {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 224, 165, 0.15);
  color: #00e0a5;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .admin-user-row {
    grid-template-columns: 1fr;
  }
}

.admin-user-main {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.admin-user-main img {
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.admin-user-main strong,
.admin-user-main span {
  display: block;
  overflow-wrap: anywhere;
}

.admin-user-main span,
.admin-campaign-list span {
  color: var(--ds-text-muted, var(--muted));
}
.admin-user-main strong { color: var(--ds-text, var(--text)); }
.admin-user-id {
  font-weight: 600;
  font-size: 11.5px;
  color: var(--ds-text-muted, var(--muted));
  opacity: 0.85;
}
.admin-user-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ds-text-muted, var(--muted));
}
.admin-user-stats span { display: inline; }
.admin-user-stats b { color: var(--ds-text, var(--text, #e6edf7)); font-weight: 600; margin-right: 4px; }

.admin-campaign-list {
  display: grid;
  gap: 0.55rem;
}

.admin-campaign-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
}

.admin-campaign-list button {
  display: grid;
  gap: 0.25rem;
  min-height: 54px;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(73, 228, 255, 0.18);
  border-radius: 6px;
  color: white;
  background: rgba(73, 228, 255, 0.08);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-campaign-item button:last-child {
  align-content: center;
  min-width: 92px;
  text-align: center;
}

/* ─── Admin user status + actions ─────────────────────── */
.admin-user-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.admin-status-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.admin-status-badge--active    { background: var(--ds-success-soft, rgba(60,255,176,0.15)); color: var(--ds-success, #16a34a); }
.admin-status-badge--trial     { background: var(--ds-primary-soft, rgba(73,228,255,0.15)); color: var(--ds-primary, #2c6cf5); }
.admin-status-badge--suspended { background: var(--ds-danger-soft, rgba(255,80,80,0.16)); color: var(--ds-danger, #dc2626); }
.admin-status-badge--none      { background: var(--ds-surface-3, rgba(255,255,255,0.08)); color: var(--ds-text-muted, var(--muted)); }
.admin-user-suspend-reason {
  width: 100%;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ds-danger, #dc2626);
}
.admin-user-days {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ds-text-muted, var(--muted));
}
.admin-user-days input {
  width: 56px;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--ds-border-strong, rgba(255,255,255,0.18));
  background: var(--ds-surface-2, rgba(255,255,255,0.05));
  color: var(--ds-text, var(--text));
  font: inherit;
  font-size: 12px;
}
.admin-user-days button {
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--ds-primary, #2c6cf5);
  background: transparent;
  color: var(--ds-primary, #2c6cf5);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.admin-user-days button:hover { background: var(--ds-primary-soft, rgba(44,108,245,0.12)); }
.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.admin-user-actions button {
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--ds-border-strong, rgba(255,255,255,0.18));
  background: var(--ds-surface-2, rgba(255,255,255,0.05));
  color: var(--ds-text, var(--text));
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.admin-user-actions button:hover { background: var(--ds-surface-3, rgba(255,255,255,0.1)); }
.admin-user-actions .admin-action--login { border-color: var(--ds-primary, #2c6cf5); color: var(--ds-primary, #2c6cf5); }
.admin-user-actions .admin-action--suspend { border-color: var(--ds-warning, #d97706); color: var(--ds-warning, #d97706); }
.admin-user-actions .admin-action--unsuspend { border-color: var(--ds-success, #16a34a); color: var(--ds-success, #16a34a); }
.admin-user-actions .admin-action--delete { border-color: var(--ds-danger, #dc2626); color: var(--ds-danger, #dc2626); }
.admin-user-actions .admin-action--telegram { border-color: #229ED9; color: #229ED9; }
.admin-user-actions .admin-action--gmail { border-color: #d93025; color: #d93025; }
.admin-user-actions .admin-action--gmail.is-on { border-color: #1e8e3e; color: #1e8e3e; background: rgba(30, 142, 62, 0.1); }
/* Steam Games admin table: narrower Game column (long names wrap instead of widening). */
/* Steam admin: top tabs (Games / Email link clicks) */
.steam-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.steam-tab {
  padding: 0.55rem 1rem;
  border: none;
  background: transparent;
  color: var(--muted, #9aa);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.steam-tab:hover { color: #fff; }
.steam-tab.is-active { color: #fff; border-bottom-color: #8d22ff; }

/* Steam Games admin table: narrower columns + compact single-row action buttons */
.admin-panel .steam-game-col { width: 21%; max-width: 210px; word-break: break-word; } /* 30% narrower */
.admin-panel .steam-website-col {
  max-width: 120px;          /* 20% narrower than before */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-panel .steam-email-col {
  max-width: 165px;          /* ~25% narrower */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-panel .steam-action-col { white-space: nowrap; }
.admin-panel .steam-action-col .csv-upload-button {
  padding: 0.19rem 0.36rem;  /* 40% smaller than before */
  font-size: 0.43rem;
  margin: 0 0.12rem 0 0;
}
.admin-panel .steam-action-col a { font-size: 0.43rem; }
.admin-panel .steam-score-col { text-align: center; }
.steam-score { display: inline-block; min-width: 2.2em; padding: 0.1rem 0.4rem; border-radius: 999px; font-weight: 700; font-size: 0.8rem; }
.steam-score.is-high { background: rgba(60, 200, 110, 0.18); color: #4ad07f; }
.steam-score.is-mid { background: rgba(255, 190, 60, 0.18); color: #ffcf6b; }
.steam-score.is-low { background: rgba(255, 90, 90, 0.18); color: #ff8585; }

/* Template editor: clickable merge-tag chips */
.template-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
}
.template-tag-label { font-size: 0.8rem; opacity: 0.7; margin-right: 0.2rem; }
.template-tag {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 34, 255, 0.45);
  background: rgba(141, 34, 255, 0.12);
  color: #e9b8ff;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.template-tag:hover { background: rgba(141, 34, 255, 0.25); transform: translateY(-1px); }
.template-tag:active { transform: translateY(0); }

/* Steam outreach: stat strip + row status colors */
.steam-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 14px;
}
.steam-stat {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}
.steam-stat strong { font-weight: 700; }
.steam-stat-sent { border-color: rgba(255, 153, 51, 0.5); background: rgba(255, 153, 51, 0.12); color: #ffce9e; }
.steam-stat-opened { border-color: rgba(255, 120, 190, 0.5); background: rgba(255, 120, 190, 0.12); color: #ffb3d6; }
.steam-stat-clicked { border-color: rgba(60, 255, 176, 0.5); background: rgba(60, 255, 176, 0.12); color: #9effd0; }
.steam-stat-daily { border-color: rgba(120, 170, 255, 0.5); background: rgba(120, 170, 255, 0.12); color: #bcd2ff; }
/* Row status: sent → orange, opened → pink, clicked → green (clicked wins, then opened, then sent). */
.results-table tr.steam-row-sent td { background: rgba(255, 153, 51, 0.13); }
.results-table tr.steam-row-opened td { background: rgba(255, 120, 190, 0.15); }
.results-table tr.steam-row-clicked td { background: rgba(60, 255, 176, 0.15); }
.admin-user-actions .admin-action--telegram:disabled { opacity: 0.6; cursor: default; }

/* ─── Generic admin modal (suspend reason / delete confirm) ─── */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 10, 20, 0.62);
  z-index: 1000;
}
.admin-modal-overlay.is-open { display: flex; }
.admin-modal {
  width: min(440px, 100%);
  background: var(--ds-surface, #fff);
  color: var(--ds-text, #111);
  border: 1px solid var(--ds-border, #e6e8ee);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.admin-modal h2 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.admin-modal p { margin: 0 0 0.9rem; color: var(--ds-text-muted, #6b7280); font-size: 13px; }
.admin-modal textarea {
  width: 100%;
  min-height: 84px;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--ds-border-strong, #d6d9e1);
  background: var(--ds-surface-2, #f8f9fc);
  color: var(--ds-text, #111);
  font: inherit;
  resize: vertical;
}
.admin-modal-error { color: var(--ds-danger, #dc2626); font-size: 12.5px; margin: 0.4rem 0 0; }
.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 1rem;
}
.admin-modal-actions button {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--ds-border-strong, #d6d9e1);
  background: var(--ds-surface-2, #f8f9fc);
  color: var(--ds-text, #111);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.admin-modal-actions .admin-modal-primary { background: var(--ds-danger, #dc2626); border-color: var(--ds-danger, #dc2626); color: #fff; }
.admin-modal-actions .admin-modal-primary--warn { background: var(--ds-warning, #d97706); border-color: var(--ds-warning, #d97706); }
.admin-modal-delete-options { display: grid; gap: 8px; margin-bottom: 0.6rem; }
.admin-modal-delete-options label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 0.6rem;
  border: 1px solid var(--ds-border, #e6e8ee);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.admin-modal-delete-options label small { display: block; color: var(--ds-text-muted, #6b7280); margin-top: 2px; }

/* ─── Suspended page (user-facing) ────────────────────── */
.suspended-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 0%, #1a1230 0%, #0c0a17 60%);
}
.suspended-card {
  width: min(520px, 100%);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 2.2rem;
  text-align: center;
  color: #f9edff;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
}
.suspended-card .suspended-icon { font-size: 2.6rem; margin-bottom: 0.6rem; }
.suspended-card h1 { margin: 0 0 0.6rem; font-size: 1.6rem; }
.suspended-card p { margin: 0 0 1.1rem; color: #cbbfe0; line-height: 1.6; }
.suspended-reason {
  margin: 0 0 1.4rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ffd9d9;
  font-size: 14px;
}
.suspended-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.suspended-actions .suspended-cta {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #49e4ff, #6d59ff);
  color: #0c0a17;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}
.suspended-actions .suspended-cta:disabled { opacity: 0.6; cursor: default; }
.suspended-actions .suspended-secondary {
  color: #b7a7c8;
  font-size: 13px;
  text-decoration: none;
}
.suspended-actions .suspended-secondary:hover { color: #f9edff; }

.admin-campaign-status {
  margin-top: 1.4rem;
}

.admin-campaign-status h2 {
  margin: 0 0 0.8rem;
  font-family: Orbitron, Inter, sans-serif;
}

.admin-detail-page {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
  height: calc(100vh - 132px);
  max-height: none;
  overflow: hidden;
}

.admin-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
}

.admin-detail-heading h1 {
  margin: 0;
}

.admin-detail-heading .dashboard-copy {
  margin: 0;
  margin-right: auto;
}

.admin-run-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-play-button,
.admin-stop-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(73, 228, 255, 0.32);
  border-radius: 50%;
  color: white;
  background: rgba(73, 228, 255, 0.16);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-stop-button {
  border-color: rgba(255, 143, 181, 0.32);
  background: rgba(255, 80, 130, 0.14);
}

.admin-play-button:disabled,
.admin-stop-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.admin-back-button {
  justify-self: start;
  min-height: 38px;
  padding: 0 0.85rem;
  border: 1px solid rgba(73, 228, 255, 0.24);
  border-radius: 6px;
  color: white;
  background: rgba(73, 228, 255, 0.12);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-activity-box {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(73, 228, 255, 0.22);
  border-radius: 8px;
  background: rgba(73, 228, 255, 0.08);
}

.admin-activity-box strong {
  color: white;
  overflow-wrap: anywhere;
}

.admin-activity-box span,
.admin-activity-box small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-activity-log {
  display: grid;
  gap: 0.25rem;
  max-height: 96px;
  overflow: auto;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-activity-log .is-success {
  color: var(--green);
}

.admin-activity-log .is-error {
  color: #ff9fbd;
}

.campaign-run-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.4rem;
}
.campaign-play-button,
.campaign-stop-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(73, 228, 255, 0.32);
  border-radius: 50%;
  color: white;
  background: rgba(73, 228, 255, 0.16);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
}
.campaign-stop-button {
  border-color: rgba(255, 143, 181, 0.32);
  background: rgba(255, 80, 130, 0.14);
}
.campaign-play-button:disabled,
.campaign-stop-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
.dashboard-shell .campaign-play-button {
  border-color: var(--ds-primary-200, rgba(74,134,255,0.35));
  background: var(--ds-primary-soft, rgba(74,134,255,0.12));
  color: var(--ds-primary, #2563eb);
}
.dashboard-shell .campaign-stop-button {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.campaign-activity-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.32rem;
  min-width: 0;
  margin-top: 0.6rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(73, 228, 255, 0.22);
  border-radius: 8px;
  background: rgba(73, 228, 255, 0.08);
}
.campaign-activity-box strong {
  color: white;
  overflow-wrap: anywhere;
}
.campaign-activity-box span,
.campaign-activity-box small {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.campaign-activity-log {
  display: grid;
  gap: 0.22rem;
  max-height: 96px;
  overflow: auto;
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}
.campaign-activity-log .is-success { color: var(--green, #4ade80); }
.campaign-activity-log .is-error { color: #ff9fbd; }
.dashboard-shell .campaign-activity-box {
  border-color: var(--ds-border, rgba(0,0,0,0.08));
  background: var(--ds-surface-2, #f3f4f6);
}
.dashboard-shell .campaign-activity-box strong { color: var(--ds-text, #111); }
.dashboard-shell .campaign-activity-box span,
.dashboard-shell .campaign-activity-box small { color: var(--ds-muted, #6b7280); }
.dashboard-shell .campaign-activity-log { border-top-color: var(--ds-border, rgba(0,0,0,0.08)); }
.dashboard-shell .campaign-activity-log .is-success { color: #16a34a; }
.dashboard-shell .campaign-activity-log .is-error { color: #b91c1c; }

.admin-scroll-table {
  flex: 1 1 auto;
  min-height: 260px;
  height: 100%;
  max-height: none;
  overflow: auto;
  padding-bottom: 1.2rem;
  box-sizing: border-box;
}

.admin-reply-detail-layout {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.send-summary article {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.send-summary strong {
  display: block;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.send-summary span {
  color: var(--muted);
}

.email-form textarea {
  min-height: 128px;
  resize: vertical;
}

.email-form .recipients-textarea {
  min-height: 64px;
  height: 64px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.email-form .email-message-textarea {
  min-height: 170px;
}

.email-form .custom-tag-textarea {
  min-height: 90px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.email-form button {
  width: min(100%, 260px);
  padding: 0 1rem;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 108px 1fr 92px;
  }

  .brand {
    height: 64px;
  }

  .brand img {
    width: 84px;
  }

  .main-nav {
    gap: 1.25rem;
    font-size: 0.72rem;
  }

  .login-link {
    font-size: 0.7rem;
  }

  .hero {
    min-height: 880px;
    padding-top: 126px;
  }

  .creator-avatar {
    opacity: 0.7;
  }

  .avatar-youtube {
    top: 42%;
    right: -1.7rem;
  }

  .avatar-kick {
    top: 68%;
    left: -1rem;
  }

  .avatar-twitch {
    display: none;
  }

  .feature-deck {
    grid-template-columns: 1fr;
    transform: translateY(34px);
  }

  .feature-deck article {
    min-height: auto;
  }

  .insight-band,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer p {
    text-align: left;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-header,
  .blog-nav {
    gap: 1rem;
  }

  .panel-heading,
  .form-grid,
  .search-name-grid,
  .search-category-grid,
  .platform-toggle-group {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    align-items: start;
    flex-direction: column;
  }

  .results-actions {
    justify-content: flex-start;
  }

  .influencer-strip {
    grid-template-columns: 86px 88px 140px minmax(0, 1fr);
  }

  .strip-socials {
    grid-column: 1 / -1;
    justify-items: start;
    display: flex;
  }

  .video-thumb-link img {
    width: 140px;
  }

  .email-recipient-list article {
    grid-template-columns: 1fr;
  }

  .template-list-item,
  .email-layout,
  .test-email-row,
  .send-summary,
  .admin-influencer-filters,
  .campaign-row,
  .reply-detail-layout {
    grid-template-columns: 1fr;
  }

  .email-tokens {
    position: static;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .dashboard-shell .admin-blog-import-form,
  .dashboard-shell .admin-blog-row,
  .dashboard-shell .admin-blog-editor-grid {
    grid-template-columns: 1fr;
  }

  .blog-body img,
  .blog-spotify-embed {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: 86px 1fr 72px;
    min-height: 58px;
  }

  .brand {
    height: 58px;
  }

  .brand img {
    width: 68px;
  }

  .main-nav {
    gap: 0.86rem;
    font-size: 0.66rem;
  }

  .login-link {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .hero {
    min-height: 820px;
    padding-top: 116px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .search-box input,
  .search-box button,
  .dashboard-search input,
  .dashboard-search select,
  .dashboard-search textarea,
  .search-submit {
    min-height: 52px;
  }

  .followers-range {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .followers-range span {
    display: none;
  }

  .search-submit {
    width: 100%;
  }

  .influencer-strip {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .profile-image-link {
    justify-items: start;
    grid-template-columns: 58px 1fr;
    text-align: left;
    align-items: center;
  }

  .video-thumb-link img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .creator-avatar {
    width: 74px;
  }

  .hero::before {
    top: 72%;
  }

  .auth-page::before {
    width: 118vw;
  }

  .login-panel h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .tabs {
    padding: 0.45rem;
  }

  .tab-button {
    min-height: 44px;
    padding: 0 0.8rem;
    font-size: 0.68rem;
  }

  .search-workbench,
  .results-panel,
  .email-panel {
    min-height: 560px;
  }
}

/* Dashboard pages stay fixed; only data lists scroll. */
.dashboard-shell {
  height: 100vh;
  overflow: hidden;
}

.dashboard-main {
  height: calc(100vh - 72px);
  min-height: 0;
  overflow: hidden;
}

.workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.tabs {
  position: relative;
  top: auto;
}

.tab-panel {
  min-height: 0;
  overflow: hidden;
}

.search-workbench,
.results-panel,
.email-panel,
.send-status-panel {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.results-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.send-status-panel.account-influencers-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ===== Billing panel ===== */
.billing-current {
  margin-top: 1rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--ds-border, rgba(255,255,255,.1));
  border-left-width: 4px;
  border-left-color: var(--ds-primary, #2c6cf5);
  border-radius: 12px;
  background: var(--ds-surface-2, rgba(255,255,255,.04));
}
.billing-current--ok      { border-left-color: #16a34a; }
.billing-current--info    { border-left-color: #2c6cf5; }
.billing-current--warn    { border-left-color: #d97706; }
.billing-current--bad     { border-left-color: #dc2626; }
.billing-current--muted   { border-left-color: #6b7280; }
.billing-current-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.billing-current-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.billing-current-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(44, 108, 245, 0.15);
  color: var(--ds-primary, #2c6cf5);
}
.billing-current-tag--ok    { background: rgba(22,163,74,0.15); color: #16a34a; }
.billing-current-tag--info  { background: rgba(44,108,245,0.15); color: #2c6cf5; }
.billing-current-tag--warn  { background: rgba(217,119,6,0.18); color: #d97706; }
.billing-current-tag--bad   { background: rgba(220,38,38,0.18); color: #dc2626; }
.billing-current-tag--muted { background: rgba(107,114,128,0.18); color: #6b7280; }
.billing-current-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem 1.2rem;
}
.billing-current-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.billing-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ds-text-muted, rgba(255,255,255,.6));
  font-weight: 600;
}
.billing-current-grid strong {
  font-size: 0.98rem;
  font-weight: 700;
}
.billing-current-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.billing-upgrade {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--ds-border, rgba(255,255,255,.12));
}
.billing-upgrade h2 { margin: 0.5rem 0; font-size: 1.1rem; }
.billing-upgrade-grid { margin-top: 1rem; }
.billing-history {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--ds-border, rgba(255,255,255,.12));
}
.billing-history h2 { font-size: 1.1rem; margin: 0 0 0.8rem; }
.billing-status {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.billing-status--paid    { background: rgba(22,163,74,0.15); color: #16a34a; }
.billing-status--pending { background: rgba(217,119,6,0.18); color: #d97706; }
.billing-status--failed  { background: rgba(220,38,38,0.18); color: #dc2626; }
.billing-status--refunded{ background: rgba(107,114,128,0.18); color: #6b7280; }

.provider-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.provider-badge--gmail {
  background: rgba(234, 67, 53, 0.15);
  color: #ea4335;
}
.provider-badge--smtp {
  background: rgba(107, 114, 128, 0.18);
  color: #6b7280;
}

.send-status-panel.account-influencers-panel .account-influencer-table {
  height: auto;
  max-height: none;
  overflow-x: auto;
}

.admin-influencers-full-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.admin-influencers-full-toolbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.65rem 0 0.75rem;
}
.admin-influencers-full-toolbar input[type="search"] {
  flex: 1;
  min-height: 38px;
  padding: 0 0.85rem;
  border: 1px solid var(--ds-border, rgba(255,255,255,0.18));
  border-radius: 8px;
  background: var(--ds-surface, rgba(0,0,0,0.4));
  color: inherit;
  font: inherit;
}
.admin-influencers-full-counter {
  color: var(--ds-muted, rgba(255,255,255,0.6));
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.admin-influencers-full-scroller {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--ds-border, rgba(255,255,255,0.12));
  border-radius: 10px;
}
.admin-influencers-full-table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.admin-influencers-full-table th,
.admin-influencers-full-table td {
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--ds-border, rgba(255,255,255,0.08));
  border-right: 1px solid var(--ds-border, rgba(255,255,255,0.06));
  vertical-align: top;
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-influencers-full-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ds-surface-2, #1a1230);
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
.admin-influencers-full-table tbody tr:hover {
  background: var(--ds-surface-2, rgba(255,255,255,0.04));
}
.admin-influencers-full-table .admin-cell-null {
  color: var(--ds-muted, rgba(255,255,255,0.35));
  font-style: italic;
  font-size: 0.72rem;
}
.admin-influencers-full-table a {
  color: var(--cyan, #49e4ff);
  text-decoration: none;
}
.admin-influencers-full-table a:hover { text-decoration: underline; }

.results-panel .panel-heading,
.results-panel .search-name-filter,
.results-panel .influencer-filter,
.results-panel .results-error {
  margin-bottom: 0;
}

.workspace h1.results-count-title {
  font-size: 1.2rem;
  line-height: 1.25;
}

.workspace h1.search-page-title {
  font-size: clamp(0.85rem, 0.9vw, 1rem);
  line-height: 1.18;
}

.workspace h1.email-page-title {
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  line-height: 1.2;
}

.search-workbench,
.email-compose {
  overflow-y: auto;
}

#influencer-results-view {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.results-table-wrap,
.influencer-list {
  height: 100%;
  max-height: none;
}

.email-layout,
.reply-detail-layout {
  height: calc(100% - 132px);
  min-height: 0;
}

.reply-message {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.email-tokens {
  position: static;
}

.campaign-list {
  height: calc(100% - 96px);
  max-height: none;
}

.campaign-recipient-table {
  height: min(42vh, 360px);
}

.reply-message pre {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: none;
}

.email-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
}

.email-layout {
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

.email-compose {
  display: grid;
  height: auto;
  min-height: 0;
  overflow-y: auto;
}

.email-form {
  align-content: start;
  min-height: 100%;
}

@media (max-width: 760px) {
  .dashboard-shell {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .dashboard-header {
    position: relative;
    flex: 0 0 58px;
    min-height: 58px;
  }

  .dashboard-main {
    height: calc(100dvh - 58px);
    min-height: 0;
    padding: 0.65rem;
    overflow: hidden;
  }

  .workspace {
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .tabs {
    flex: 0 0 auto;
  }

  .tab-panel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .search-workbench,
  .results-panel,
  .email-panel,
  .send-status-panel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .search-workbench {
    overflow-y: auto;
  }

  .results-panel {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .results-panel .panel-heading,
  .results-panel .influencer-filter,
  .results-panel .search-name-filter {
    flex: 0 0 auto;
  }

  .results-panel .panel-heading {
    gap: 0.65rem;
  }

  .results-actions,
  .selection-actions,
  .export-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .selection-actions button,
  .export-actions button {
    min-width: 0;
    flex: 1 1 130px;
  }

  .email-panel {
    display: block;
  }

  .email-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0.75rem;
    overflow: hidden;
  }

  .email-compose {
    order: 1;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    padding-right: 0.15rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .email-form {
    min-height: auto;
    margin-top: 0;
    padding-bottom: 0.75rem;
  }

  .email-tokens {
    order: 2;
    flex: 0 0 auto;
    max-height: 24vh;
    padding: 0.7rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .email-token-buttons,
  .custom-tag-values {
    gap: 0.5rem;
  }

  .email-tokens button {
    min-height: 38px;
    padding: 0 0.65rem;
    font-size: 0.78rem;
  }

  .email-tokens .custom-tag-textarea {
    min-height: 86px;
  }

  .test-email-row {
    grid-template-columns: 1fr;
  }

  .email-form button {
    width: 100%;
  }

  #influencer-results-view {
    flex: 1 0 auto;
    min-height: 60vh;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  #influencer-results-view .results-table-wrap,
  #influencer-results-view .influencer-list {
    height: auto;
    min-height: 100%;
    max-height: none;
  }

  #influencer-results-view .influencer-list {
    overflow: visible;
  }

  #influencer-results-view .results-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
  }

  #influencer-results-view .results-table {
    min-width: 980px;
  }

  .results-table-wrap,
  .influencer-list,
  .email-compose,
  .campaign-list,
  .campaign-recipient-table,
  .reply-message pre {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   LIGHT DASHBOARD THEME — override layer
   Reference: blue-sidebar dashboard with white surfaces, soft
   shadows, rounded cards, and colored pill badges.
   Scoped to .dashboard-shell (and .auth-page for auth screens)
   so the marketing landing page keeps its original look.
   ============================================================ */

body:has(.dashboard-shell),
body:has(.auth-page) {
  background: #f4f6fb !important;
  color: #111827;
  scrollbar-color: #cdd3df transparent;
}
html:has(.dashboard-shell),
html:has(.auth-page) {
  scrollbar-color: #cdd3df transparent;
}

.dashboard-shell {
  --ds-bg:            #f4f6fb;
  --ds-surface:       #ffffff;
  --ds-surface-2:     #f8f9fc;
  --ds-surface-3:     #eef1f7;
  --ds-border:        #e6e8ee;
  --ds-border-strong: #d6d9e1;

  --ds-text:          #111827;
  --ds-text-muted:    #6b7280;
  --ds-text-soft:     #9aa3af;

  --ds-primary:       #2c6cf5;
  --ds-primary-hover: #1f5be0;
  --ds-primary-soft:  #eaf1ff;
  --ds-primary-200:   #c8daff;

  --ds-success:       #16a34a;
  --ds-success-soft:  #e6f6ec;
  --ds-warning:       #d97706;
  --ds-warning-soft:  #fff1d6;
  --ds-danger:        #dc2626;
  --ds-danger-soft:   #fde9e9;
  --ds-purple:        #6d59ff;
  --ds-purple-soft:   #ece9ff;

  --ds-sidebar-bg:        #2c6cf5;
  --ds-sidebar-text:      #ffffff;
  --ds-sidebar-muted:     rgba(255,255,255,0.78);
  --ds-sidebar-label:     rgba(255,255,255,0.55);
  --ds-sidebar-active-bg: rgba(255,255,255,0.18);
  --ds-sidebar-hover-bg:  rgba(255,255,255,0.10);

  --ds-radius-sm: 8px;
  --ds-radius:    12px;
  --ds-radius-lg: 16px;
  --ds-radius-xl: 20px;

  --ds-shadow-xs: 0 1px 2px rgba(17,24,39,0.04);
  --ds-shadow-sm: 0 1px 3px rgba(17,24,39,0.06), 0 1px 2px rgba(17,24,39,0.04);
  --ds-shadow-md: 0 4px 12px rgba(17,24,39,0.06), 0 1px 3px rgba(17,24,39,0.04);
  --ds-shadow-lg: 0 12px 32px rgba(17,24,39,0.10), 0 4px 8px rgba(17,24,39,0.06);

  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.dashboard-shell *::-webkit-scrollbar { width: 10px; height: 10px; }
.dashboard-shell *::-webkit-scrollbar-track { background: transparent; }
.dashboard-shell *::-webkit-scrollbar-thumb {
  background: #cdd3df;
  border: 2px solid var(--ds-bg);
  border-radius: 999px;
}
.dashboard-shell *::-webkit-scrollbar-thumb:hover { background: #b6bdcc; }

/* ─── Sidebar ───────────────────────────────────────────── */
.dashboard-shell .dashboard-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 260px;
  height: 100vh;
  padding: 1.3rem 0.85rem 1.4rem;
  background: var(--ds-sidebar-bg);
  color: var(--ds-sidebar-text);
  overflow-y: auto;
}

.dashboard-shell .sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.1rem 0.45rem;
  margin-bottom: 0.25rem;
  color: var(--ds-sidebar-text);
  text-decoration: none;
}
.dashboard-shell .sidebar-brand img {
  width: 132px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.dashboard-shell .sidebar-user {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.7rem;
  border-radius: var(--ds-radius);
  background: rgba(255,255,255,0.10);
}
.dashboard-shell .sidebar-user__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
  color: #fff;
  font-weight: 700;
  overflow: hidden;
}
.dashboard-shell .sidebar-user__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.dashboard-shell .sidebar-avatar-initial { font-size: 1.05rem; }
.dashboard-shell .sidebar-user__info { display: grid; min-width: 0; }
.dashboard-shell .sidebar-user__info strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dashboard-shell .sidebar-user__info span {
  display: block;
  color: var(--ds-sidebar-muted);
  font-size: 0.78rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dashboard-shell .sidebar-section {
  margin: 0.55rem 0.7rem 0.1rem;
  color: var(--ds-sidebar-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-shell .sidebar-nav { display: grid; gap: 2px; }

.sidebar-usage {
  margin: 0.8rem 0.7rem 0;
  padding: 0.85rem 0.85rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.sidebar-usage .sidebar-section { margin: 0 0 0.5rem; padding: 0; }
.sidebar-usage__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.sidebar-usage__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 600;
}
.sidebar-usage__bar {
  height: 4px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.sidebar-usage__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #49e4ff);
  transition: width 240ms ease;
}
.sidebar-usage__upgrade {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--cyan, #49e4ff);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}
.sidebar-usage__upgrade:hover { text-decoration: underline; }
.sidebar-usage__plan {
  margin: 0;
  font-weight: 800;
}
.sidebar-usage__plan--cta {
  color: var(--cyan, #49e4ff);
  text-decoration: none;
}
.sidebar-usage__sub {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
}
.dashboard-shell .sidebar-usage {
  border-color: var(--ds-border);
  background: var(--ds-surface-2);
}
.dashboard-shell .sidebar-usage__row {
  color: var(--ds-text);
}
.dashboard-shell .sidebar-usage__bar {
  background: rgba(0, 0, 0, 0.08);
}
.dashboard-shell .sidebar-usage__plan {
  color: var(--ds-text);
}
.dashboard-shell .sidebar-usage__sub {
  color: var(--ds-text-muted, var(--ds-text));
  opacity: 0.75;
}
/* Card background is light, so the "PLAN" label must override the white sidebar label color. */
.dashboard-shell .sidebar-usage .sidebar-section {
  color: var(--ds-text);
  opacity: 0.7;
}

.dashboard-shell .sidebar-link {
  display: inline-grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 40px;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ds-sidebar-text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.dashboard-shell .sidebar-link:hover:not(:disabled):not(.is-active) {
  background: var(--ds-sidebar-hover-bg);
}
.dashboard-shell .sidebar-link.is-active {
  background: var(--ds-sidebar-active-bg);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.dashboard-shell .sidebar-link:disabled {
  color: rgba(255,255,255,0.45);
  cursor: not-allowed;
}
.dashboard-shell .sidebar-link__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}
.dashboard-shell .sidebar-link__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.dashboard-shell .sidebar-link__label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dashboard-shell .sidebar-link__badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ─── Main area ────────────────────────────────────────── */
.dashboard-shell .dashboard-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  padding: 0;
  background: var(--ds-bg);
}

.dashboard-shell .dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: rgba(244,246,251,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ds-border);
}
.dashboard-shell .topbar-crumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ds-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.dashboard-shell .topbar-crumbs a {
  color: var(--ds-text-muted);
  text-decoration: none;
}
.dashboard-shell .topbar-crumbs a:hover { color: var(--ds-text); }
.dashboard-shell .topbar-crumbs .crumb-sep { color: var(--ds-text-soft); }
.dashboard-shell .topbar-crumbs .is-current {
  color: var(--ds-primary);
  font-weight: 600;
}
.dashboard-shell .topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.dashboard-shell .workspace {
  width: auto;
  max-width: none;
  margin: 40px;
  padding: 0;
  overflow-y: auto;
  min-height: 0;
}
.dashboard-shell .tab-panel { margin: 0; }

/* Hide legacy top header/tabs in dashboard scope (replaced by sidebar) */
.dashboard-shell .dashboard-header { display: none !important; }
.dashboard-shell .workspace > .tabs { display: none !important; }

/* ─── Profile menu (topbar) ────────────────────────────── */
.dashboard-shell .profile-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ds-border);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--ds-shadow-xs);
  cursor: pointer;
  overflow: hidden;
}
.dashboard-shell .profile-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.dashboard-shell .profile-popover {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  display: none;
  width: min(280px, calc(100vw - 2rem));
  padding: 0.9rem;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: var(--ds-surface);
  color: var(--ds-text);
  box-shadow: var(--ds-shadow-lg);
}
.dashboard-shell .profile-menu.is-open .profile-popover {
  display: grid;
  gap: 0.4rem;
}
.dashboard-shell .profile-popover strong { color: var(--ds-text); font-size: 0.92rem; }
.dashboard-shell .profile-popover span { color: var(--ds-text-muted); font-size: 0.82rem; }
.dashboard-shell .profile-popover a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 0.5rem;
  border-radius: 8px;
  color: var(--ds-primary);
  background: var(--ds-primary-soft);
  font-weight: 600;
  text-decoration: none;
}
.dashboard-shell .profile-popover a:hover { background: #dfe9ff; }
.dashboard-shell .profile-popover button[data-open-profile] {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; margin-top: 0.5rem; border: none; border-radius: 8px;
  color: var(--ds-primary); background: var(--ds-primary-soft);
  font-weight: 600; cursor: pointer; font-size: 0.88rem;
}
.dashboard-shell .profile-popover button[data-open-profile]:hover { background: #dfe9ff; }

/* Profile modal */
.profile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.profile-box { background: var(--ds-surface, #fff); color: var(--ds-text, #111827); border-radius: 14px; width: min(460px, 100%); max-height: 90vh; overflow-y: auto; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.profile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.profile-head h2 { margin: 0; font-size: 18px; }
.profile-x { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--ds-text-muted, #6b7280); }
.profile-label { display: block; font-size: 12px; font-weight: 700; color: var(--ds-text-muted, #6b7280); margin: 12px 0 4px; }
.profile-input { width: 100%; font-size: 14px; padding: 9px 12px; border: 1px solid var(--ds-border, #d1d5db); border-radius: 8px; background: #fff; color: #111827; }
.pw-wrap { position: relative; }
.pw-wrap .pw-input { padding-right: 40px; }
.pw-eye { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border: none; background: none; padding: 0; cursor: pointer; color: #9ca3af; }
.pw-eye:hover { color: #4b5563; }
.pw-eye.is-on { color: var(--ds-primary, #2c6cf5); }
.profile-hint { font-size: 12px; color: var(--ds-text-muted, #6b7280); margin: 6px 0 0; }
.profile-actions { margin-top: 14px; }
.profile-actions button { font-size: 13px; font-weight: 700; color: #fff; background: var(--ds-primary, #2c6cf5); border: none; border-radius: 8px; padding: 9px 16px; cursor: pointer; }
.profile-actions button:disabled { opacity: .6; cursor: default; }
.profile-sep { border: none; border-top: 1px solid var(--ds-border, #e5e7eb); margin: 18px 0 4px; }
.profile-subhead { font-size: 15px; margin: 8px 0 2px; }

/* ─── Card surfaces ───────────────────────────────────── */
.dashboard-shell .dashboard-main { display: flex; flex-direction: column; }
.dashboard-shell .workspace { display: flex; flex-direction: column; flex: 1 1 auto; }
.dashboard-shell .tab-panel { display: flex; flex-direction: column; flex: 1 1 auto; }

.dashboard-shell .search-workbench,
.dashboard-shell .results-panel,
.dashboard-shell .email-panel,
.dashboard-shell .send-status-panel,
.dashboard-shell .admin-panel {
  flex: 1 1 auto;
  min-height: calc(100vh - 9rem);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
  color: var(--ds-text);
  box-shadow: var(--ds-shadow-sm);
}
.dashboard-shell .search-workbench { gap: 1.4rem; }

/* ─── Typography ──────────────────────────────────────── */
.dashboard-shell h1,
.dashboard-shell h2,
.dashboard-shell h3,
.dashboard-shell .workspace h1 {
  color: var(--ds-text);
  font-family: inherit;
  font-weight: 700;
}
.dashboard-shell .workspace h1,
.dashboard-shell h1.search-page-title,
.dashboard-shell h1.results-count-title,
.dashboard-shell h1.email-page-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.dashboard-shell .eyebrow {
  margin: 0 0 0.25rem;
  color: var(--ds-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Labels / form fields ────────────────────────────── */
.dashboard-shell .dashboard-search label,
.dashboard-shell .email-form label,
.dashboard-shell .community-field legend,
.dashboard-shell .influencer-filter label {
  color: var(--ds-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.dashboard-shell input[type="text"],
.dashboard-shell input[type="email"],
.dashboard-shell input[type="number"],
.dashboard-shell input[type="search"],
.dashboard-shell input[type="password"],
.dashboard-shell select,
.dashboard-shell textarea,
.dashboard-shell .dashboard-search input,
.dashboard-shell .dashboard-search select,
.dashboard-shell .dashboard-search textarea,
.dashboard-shell .email-form input,
.dashboard-shell .email-form textarea,
.dashboard-shell .influencer-filter input,
.dashboard-shell .influencer-filter select {
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ds-text);
  font: inherit;
  font-size: 0.875rem;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.dashboard-shell input::placeholder,
.dashboard-shell textarea::placeholder { color: var(--ds-text-soft); }
.dashboard-shell input:focus,
.dashboard-shell select:focus,
.dashboard-shell textarea:focus {
  outline: 0;
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px rgba(44,108,245,0.18);
}
.dashboard-shell .dashboard-search select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--ds-text-muted) 50%) calc(100% - 1.1rem) 52% / 0.45rem 0.45rem no-repeat,
    linear-gradient(135deg, var(--ds-text-muted) 50%, transparent 50%) calc(100% - 0.8rem) 52% / 0.45rem 0.45rem no-repeat,
    #fff;
}
.dashboard-shell textarea { min-height: 96px; resize: vertical; }

/* ─── Platform toggles (light theme) ───────────────────── */
.dashboard-shell .platform-toggle {
  min-height: 42px;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ds-text-muted);
  font-weight: 600;
  box-shadow: var(--ds-shadow-xs);
}
.dashboard-shell .platform-toggle.is-on {
  color: var(--ds-primary);
  border-color: var(--ds-primary-200);
  background: var(--ds-primary-soft);
  box-shadow: none;
}
.dashboard-shell .platform-toggle strong {
  color: inherit;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

/* ─── Buttons ──────────────────────────────────────────── */
.dashboard-shell .search-submit,
.dashboard-shell .email-form button,
.dashboard-shell .export-actions button,
.dashboard-shell .previous-results-row button,
.dashboard-shell .csv-import-toggle,
.dashboard-shell .csv-upload-button {
  min-height: 40px;
  padding: 0 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--ds-primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(44,108,245,0.22);
  transition: background 140ms ease, box-shadow 140ms ease;
}
.dashboard-shell .search-submit:hover:not(:disabled),
.dashboard-shell .email-form button:hover:not(:disabled),
.dashboard-shell .export-actions button:hover:not(:disabled),
.dashboard-shell .previous-results-row button:hover:not(:disabled),
.dashboard-shell .csv-import-toggle:hover,
.dashboard-shell .csv-upload-button:hover {
  background: var(--ds-primary-hover);
}
.dashboard-shell .search-submit:disabled,
.dashboard-shell .email-form button:disabled,
.dashboard-shell .export-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dashboard-shell .stop-search-button {
  min-height: 40px;
  padding: 0 0.95rem;
  border: 1px solid #f3c4c4;
  border-radius: 10px;
  background: var(--ds-danger-soft);
  color: var(--ds-danger);
  font-weight: 600;
  cursor: pointer;
}
.dashboard-shell .stop-search-button:hover { background: #fbd9d9; }

.dashboard-shell .selection-actions button,
.dashboard-shell .ai-search-tools button,
.dashboard-shell .search-name-filter button,
.dashboard-shell .admin-back-button {
  min-height: 38px;
  padding: 0 0.85rem;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ds-text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--ds-shadow-xs);
}
.dashboard-shell .selection-actions button:hover,
.dashboard-shell .ai-search-tools button:hover,
.dashboard-shell .search-name-filter button:hover,
.dashboard-shell .admin-back-button:hover { background: var(--ds-surface-2); }
.dashboard-shell .search-name-filter button.is-active {
  border-color: var(--ds-primary-200);
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
  box-shadow: none;
}

.dashboard-shell .view-toggle {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  padding: 4px;
}
.dashboard-shell .view-toggle button {
  min-height: 32px;
  width: 40px;
  border: 0;
  background: transparent;
  color: var(--ds-text-muted);
  padding: 0 0.4rem;
}
.dashboard-shell .view-toggle button.is-active {
  background: #fff;
  color: var(--ds-primary);
  box-shadow: var(--ds-shadow-xs);
}

.dashboard-shell .admin-play-button {
  background: var(--ds-success);
  color: #fff;
  border: 0;
  border-radius: 10px;
  width: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.dashboard-shell .admin-play-button:hover:not(:disabled) { background: #119a44; }
.dashboard-shell .admin-play-button:disabled { opacity: 0.45; cursor: not-allowed; }
.dashboard-shell .admin-stop-button {
  background: var(--ds-danger);
  color: #fff;
  border: 0;
  border-radius: 10px;
  width: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.dashboard-shell .admin-stop-button:hover { background: #c01d1d; }

/* ─── CSV import / AI tools ────────────────────────────── */
.dashboard-shell .csv-import-panel {
  padding: 1rem;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: var(--ds-surface-2);
}
.dashboard-shell .csv-import-controls { border-top: 1px solid var(--ds-border); }
.dashboard-shell .csv-import-panel strong { color: var(--ds-text); }
.dashboard-shell .csv-import-panel span { color: var(--ds-text-muted); }

.dashboard-shell .ai-search-toggle { color: var(--ds-text); }
.dashboard-shell .ai-search-toggle input { accent-color: var(--ds-primary); }
.dashboard-shell .dashboard-search .ai-search-prompt {
  background: var(--ds-primary-soft);
  border-color: var(--ds-primary-200);
}
.dashboard-shell .ai-search-status { color: var(--ds-primary); }
.dashboard-shell .ai-search-error { color: var(--ds-danger); }

/* ─── Tag selects / filter pills ───────────────────────── */
.dashboard-shell .tag-input-shell {
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  min-height: 40px;
  padding: 0.3rem;
}
.dashboard-shell .tag-input-shell:focus-within {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px rgba(44,108,245,0.18);
}
.dashboard-shell .filter-tag {
  background: var(--ds-primary-soft);
  border: 1px solid var(--ds-primary-200);
  color: var(--ds-primary);
  font-weight: 600;
}
.dashboard-shell .filter-tag button {
  background: rgba(44,108,245,0.18);
  color: var(--ds-primary);
}
.dashboard-shell .suggestion-list {
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  box-shadow: var(--ds-shadow-lg);
}
.dashboard-shell .suggestion-list button {
  color: var(--ds-text);
  background: transparent;
}
.dashboard-shell .suggestion-list button:hover {
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
}

/* ─── Followers slider numbers ─────────────────────────── */
.dashboard-shell .followers-range span,
.dashboard-shell .followers-range strong { color: var(--ds-text-muted); }
.dashboard-shell .followers-range strong {
  color: var(--ds-primary);
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0;
}

/* ─── Progress / search progress ───────────────────────── */
.dashboard-shell .search-progress {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
}
.dashboard-shell .progress-track {
  background: var(--ds-surface-3);
  height: 10px;
  border-radius: 999px;
}
.dashboard-shell .progress-track span {
  background: linear-gradient(90deg, var(--ds-primary), #5b86ff);
}
.dashboard-shell .progress-meta { color: var(--ds-text-muted); }
.dashboard-shell .progress-meta strong { color: var(--ds-text); font-family: inherit; }
.dashboard-shell .search-progress p { color: var(--ds-text-muted); }
.dashboard-shell .search-progress .progress-error { color: var(--ds-danger); }

/* ─── Metric cards ─────────────────────────────────────── */
.dashboard-shell .metric-row article {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  box-shadow: var(--ds-shadow-xs);
}
.dashboard-shell .metric-row strong {
  color: var(--ds-text);
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 700;
}
.dashboard-shell .metric-row span { color: var(--ds-text-muted); }

/* ─── Panel heading divider ─────────────────────────────── */
.dashboard-shell .panel-heading {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ds-border);
}

/* ─── Selection bar (chips & counts) ───────────────────── */
.dashboard-shell .selection-count {
  background: var(--ds-primary-soft);
  border: 1px solid var(--ds-primary-200);
  color: var(--ds-primary);
}
.dashboard-shell .search-name-chip {
  background: var(--ds-primary-soft);
  border: 1px solid var(--ds-primary-200);
  color: var(--ds-primary);
}

/* ─── Tables ───────────────────────────────────────────── */
.dashboard-shell .results-table-wrap {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: var(--ds-surface);
  overflow-x: auto;
}
.dashboard-shell .results-table {
  font-size: 0.86rem;
  color: var(--ds-text);
  background: transparent;
}
.dashboard-shell .results-table th,
.dashboard-shell .results-table td {
  border-bottom: 1px solid var(--ds-border);
  background: transparent;
  color: var(--ds-text);
}
.dashboard-shell .results-table thead th {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
}
.dashboard-shell .results-table thead th button {
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.dashboard-shell .results-table tbody tr:hover td {
  background: var(--ds-surface-2);
}
.dashboard-shell .results-table .table-link {
  color: var(--ds-text);
  font-weight: 600;
  text-decoration: none;
}
.dashboard-shell .results-table .table-link:hover { color: var(--ds-primary); }
.dashboard-shell .results-table tr.is-problem-row td { background: var(--ds-danger-soft); }
.dashboard-shell .table-avatar,
.dashboard-shell .table-game-thumb {
  border-radius: 8px;
  background: var(--ds-surface-2);
}

/* ─── Status / pill badges ─────────────────────────────── */
.dashboard-shell .email-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 22px;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  color: var(--ds-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.dashboard-shell .email-status-chip[data-status="sent"],
.dashboard-shell .email-status-chip[data-status="delivered"] {
  background: var(--ds-success-soft);
  border-color: #c6ecd2;
  color: #136d36;
}
.dashboard-shell .email-status-chip[data-status="pending"] {
  background: var(--ds-warning-soft);
  border-color: #f6d99a;
  color: #8b5a07;
}
.dashboard-shell .email-status-chip[data-status="failed"],
.dashboard-shell .email-status-chip[data-status="bounced"] {
  background: var(--ds-danger-soft);
  border-color: #f3c4c4;
  color: var(--ds-danger);
}
.dashboard-shell .email-status-chip[data-status="reply"],
.dashboard-shell .email-status-chip[data-status="replied"] {
  background: var(--ds-purple-soft);
  border-color: #d6d0ff;
  color: #4a37c7;
}

/* ─── Status / error messages ──────────────────────────── */
.dashboard-shell .email-status { color: var(--ds-success); }
.dashboard-shell .email-error,
.dashboard-shell .results-error {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #f3c4c4;
  border-radius: 10px;
  background: var(--ds-danger-soft);
  color: var(--ds-danger);
  font-weight: 600;
}

/* ─── Email panel layout ───────────────────────────────── */
.dashboard-shell .email-recipient-list article {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  color: var(--ds-text);
}
.dashboard-shell .email-recipient-list span { color: var(--ds-text-muted); }
.dashboard-shell .email-recipient-list a { color: var(--ds-primary); }
.dashboard-shell .email-tokens {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
}
.dashboard-shell .email-tokens button {
  border: 1px solid var(--ds-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ds-text);
  padding: 0.25rem 0.65rem;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
}
.dashboard-shell .email-tokens button:hover {
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
  border-color: var(--ds-primary-200);
}
.dashboard-shell .email-channel-count { color: var(--ds-text-muted); }

/* ─── Reply rows ───────────────────────────────────────── */
.dashboard-shell .reply-row.is-unread td { background: var(--ds-primary-soft); }

/* ─── Admin specific surfaces ─────────────────────────── */
.dashboard-shell .admin-user-row,
.dashboard-shell .admin-campaign-item,
.dashboard-shell .admin-activity-box,
.dashboard-shell .admin-key-section,
.dashboard-shell .admin-api-keys-panel {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  color: var(--ds-text);
  box-shadow: var(--ds-shadow-xs);
}
.dashboard-shell .admin-activity-log {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  color: var(--ds-text);
}

/* Anchor links inside dashboard default to primary blue */
.dashboard-shell a { color: var(--ds-primary); }
.dashboard-shell a:hover { color: var(--ds-primary-hover); }
.dashboard-shell .sidebar-link,
.dashboard-shell .sidebar-link:hover,
.dashboard-shell .sidebar-brand,
.dashboard-shell .sidebar-brand:hover,
.dashboard-shell .sidebar-link--logout,
.dashboard-shell .sidebar-link--logout:hover { color: var(--ds-sidebar-text); }

/* ─── Reset legacy text colors that referenced var(--muted)/--lavender ─ */
.dashboard-shell .auth-copy,
.dashboard-shell .dashboard-copy { color: var(--ds-text-muted); }

/* ─── Auth / login (also light theme) ─────────────────── */
.auth-page {
  padding: clamp(2rem, 6vw, 4rem);
  background: #f4f6fb;
  color: #111827;
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
}
.auth-page::before { display: none !important; }
.auth-brand img {
  filter: none;
  width: 132px;
  height: auto;
  object-fit: contain;
}
.login-panel {
  width: min(100%, 480px);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17,24,39,0.08), 0 1px 3px rgba(17,24,39,0.04);
  text-align: center;
}
/* Light mode: the login panel is white, so the email field needs dark text
   (the default white text is meant for the dark theme). Dark mode is untouched. */
html[data-theme="light"] .magic-link-label {
  color: #374151;
}
html[data-theme="light"] .magic-link-form input[type="email"] {
  color: #111827;
  background: #ffffff;
  border-color: #e6e8ee;
}
html[data-theme="light"] .magic-link-form input[type="email"]::placeholder {
  color: #9ca3af;
}
.login-panel .eyebrow {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.login-panel h1 {
  margin: 0.45rem 0 0.6rem;
  color: #111827;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.login-panel .auth-copy {
  margin: 0 auto;
  max-width: 38ch;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.6;
}
.login-panel .google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 48px;
  margin-top: 1.5rem;
  border: 1px solid rgba(73, 228, 255, 0.85);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(73, 228, 255, 0.9), rgba(141, 34, 255, 0.95));
  color: #ffffff;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.94rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.30);
  box-shadow: 0 4px 18px rgba(73, 228, 255, 0.28), 0 0 22px rgba(141, 34, 255, 0.30);
  text-decoration: none;
  transition: filter 140ms ease, box-shadow 140ms ease;
}
.login-panel .google-button:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 22px rgba(73, 228, 255, 0.38), 0 0 26px rgba(141, 34, 255, 0.42);
}
.login-panel .google-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #4285f4;
  background: #ffffff;
  font-weight: 800;
}
.login-panel .linkedin-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 48px;
  margin-top: 0.8rem;
  border: 1px solid #0a66c2;
  border-radius: 12px;
  background: #0a66c2;
  color: #ffffff;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.94rem;
  box-shadow: 0 4px 18px rgba(10, 102, 194, 0.28);
  text-decoration: none;
  transition: filter 140ms ease, box-shadow 140ms ease;
}
.login-panel .linkedin-button:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 22px rgba(10, 102, 194, 0.4);
}
.login-panel .linkedin-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #0a66c2;
  background: #ffffff;
  font-weight: 800;
  font-size: 0.86rem;
  text-transform: lowercase;
}
.login-panel .x-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 48px;
  margin-top: 0.8rem;
  border: 1px solid #000000;
  border-radius: 12px;
  background: #000000;
  color: #ffffff;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.94rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  transition: filter 140ms ease, box-shadow 140ms ease;
}
.login-panel .x-button:hover {
  filter: brightness(1.15);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.42);
}
.login-panel .x-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #000000;
  background: #ffffff;
  font-weight: 800;
  font-size: 1rem;
}
.login-panel .facebook-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 48px;
  margin-top: 0.8rem;
  border: 1px solid #1877f2;
  border-radius: 12px;
  background: #1877f2;
  color: #ffffff;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.94rem;
  box-shadow: 0 4px 18px rgba(24, 119, 242, 0.28);
  text-decoration: none;
  transition: filter 140ms ease, box-shadow 140ms ease;
}
.login-panel .facebook-button:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 22px rgba(24, 119, 242, 0.42);
}
.login-panel .facebook-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #1877f2;
  background: #ffffff;
  font-weight: 900;
  font-size: 1.1rem;
}

/* ─── Responsive: collapse sidebar on small screens ────── */
@media (max-width: 880px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
  .dashboard-shell .dashboard-sidebar {
    position: relative;
    top: auto;
    height: auto;
    width: 100%;
    padding: 1rem;
  }
  .dashboard-shell .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .dashboard-shell .sidebar-section { padding: 0 0.5rem; }
}

/* ============================================================
   THEME TOGGLE + DARK MODE
   Activated by html[data-theme="dark"]. Applies to dashboard,
   auth page, and the theme toggle button itself.
   ============================================================ */

/* ─── Theme toggle button (works in both themes) ──────── */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e6e8ee;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(17,24,39,0.04);
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.theme-toggle:hover { background: #f8f9fc; }
.theme-toggle:focus-visible {
  outline: 0;
  border-color: #2c6cf5;
  box-shadow: 0 0 0 3px rgba(44,108,245,0.18);
}
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; }

/* ─── Body background switch ─────────────────────────── */
html[data-theme="dark"] body:has(.dashboard-shell),
html[data-theme="dark"] body:has(.auth-page) {
  background: #0b1220 !important;
  color: #e6ecf6;
  scrollbar-color: #2a3454 transparent;
}

/* ─── Dark design tokens (scoped to dashboard) ───────── */
html[data-theme="dark"] .dashboard-shell {
  --ds-bg:            #0b1220;
  --ds-surface:       #111a30;
  --ds-surface-2:     #182343;
  --ds-surface-3:     #1f2c52;
  --ds-border:        #243355;
  --ds-border-strong: #344566;

  --ds-text:          #e6ecf6;
  --ds-text-muted:    #9aa6bf;
  --ds-text-soft:     #6b7790;

  --ds-primary:       #4a86ff;
  --ds-primary-hover: #608fff;
  --ds-primary-soft:  rgba(74,134,255,0.16);
  --ds-primary-200:   rgba(74,134,255,0.42);

  --ds-success-soft:  rgba(34,197,94,0.15);
  --ds-warning-soft:  rgba(217,119,6,0.16);
  --ds-danger-soft:   rgba(220,38,38,0.18);
  --ds-purple-soft:   rgba(124,109,255,0.18);

  --ds-sidebar-bg:        #1d3eb5;
  --ds-sidebar-active-bg: rgba(255,255,255,0.16);
  --ds-sidebar-hover-bg:  rgba(255,255,255,0.08);
}

html[data-theme="dark"] .dashboard-shell *::-webkit-scrollbar-thumb {
  background: #2a3454;
  border-color: var(--ds-bg);
}

/* ─── Topbar bg ───────────────────────────────────────── */
html[data-theme="dark"] .dashboard-shell .dashboard-topbar {
  background: rgba(11,18,32,0.86);
  border-bottom-color: var(--ds-border);
}

/* ─── Inputs / textareas / selects / tag shell ────────── */
html[data-theme="dark"] .dashboard-shell input[type="text"],
html[data-theme="dark"] .dashboard-shell input[type="email"],
html[data-theme="dark"] .dashboard-shell input[type="number"],
html[data-theme="dark"] .dashboard-shell input[type="search"],
html[data-theme="dark"] .dashboard-shell input[type="password"],
html[data-theme="dark"] .dashboard-shell select,
html[data-theme="dark"] .dashboard-shell textarea,
html[data-theme="dark"] .dashboard-shell .dashboard-search input,
html[data-theme="dark"] .dashboard-shell .dashboard-search select,
html[data-theme="dark"] .dashboard-shell .dashboard-search textarea,
html[data-theme="dark"] .dashboard-shell .email-form input,
html[data-theme="dark"] .dashboard-shell .email-form textarea,
html[data-theme="dark"] .dashboard-shell .influencer-filter input,
html[data-theme="dark"] .dashboard-shell .influencer-filter select,
html[data-theme="dark"] .dashboard-shell .tag-input-shell {
  background: var(--ds-surface);
  color: var(--ds-text);
  border-color: var(--ds-border);
}
html[data-theme="dark"] .dashboard-shell input::placeholder,
html[data-theme="dark"] .dashboard-shell textarea::placeholder { color: var(--ds-text-soft); }
html[data-theme="dark"] .dashboard-shell .dashboard-search select {
  background:
    linear-gradient(45deg, transparent 50%, var(--ds-text-muted) 50%) calc(100% - 1.1rem) 52% / 0.45rem 0.45rem no-repeat,
    linear-gradient(135deg, var(--ds-text-muted) 50%, transparent 50%) calc(100% - 0.8rem) 52% / 0.45rem 0.45rem no-repeat,
    var(--ds-surface);
}

/* ─── Buttons / toggles with hardcoded white bg ───────── */
html[data-theme="dark"] .dashboard-shell .platform-toggle,
html[data-theme="dark"] .dashboard-shell .selection-actions button,
html[data-theme="dark"] .dashboard-shell .ai-search-tools button,
html[data-theme="dark"] .dashboard-shell .search-name-filter button,
html[data-theme="dark"] .dashboard-shell .admin-back-button,
html[data-theme="dark"] .dashboard-shell .email-tokens button,
html[data-theme="dark"] .dashboard-shell .profile-button {
  background: var(--ds-surface);
  color: var(--ds-text);
  border-color: var(--ds-border);
}
html[data-theme="dark"] .dashboard-shell .selection-actions button:hover,
html[data-theme="dark"] .dashboard-shell .ai-search-tools button:hover,
html[data-theme="dark"] .dashboard-shell .search-name-filter button:hover,
html[data-theme="dark"] .dashboard-shell .admin-back-button:hover {
  background: var(--ds-surface-2);
}
html[data-theme="dark"] .dashboard-shell .email-tokens button:hover {
  background: var(--ds-primary-soft);
  border-color: var(--ds-primary-200);
  color: #95b3ff;
}

/* Theme toggle in dark mode */
html[data-theme="dark"] .theme-toggle {
  background: #111a30;
  border-color: #243355;
  color: #e6ecf6;
}
html[data-theme="dark"] .theme-toggle:hover { background: #182343; }

/* View-toggle */
html[data-theme="dark"] .dashboard-shell .view-toggle {
  background: var(--ds-surface-2);
  border-color: var(--ds-border);
}
html[data-theme="dark"] .dashboard-shell .view-toggle button.is-active {
  background: var(--ds-surface);
  color: #6a96ff;
}

/* Platform toggle ON state */
html[data-theme="dark"] .dashboard-shell .platform-toggle.is-on {
  background: var(--ds-primary-soft);
  border-color: var(--ds-primary-200);
  color: #95b3ff;
}

/* ─── Popovers & suggestion list ──────────────────────── */
html[data-theme="dark"] .dashboard-shell .profile-popover,
html[data-theme="dark"] .dashboard-shell .suggestion-list {
  background: var(--ds-surface);
  border-color: var(--ds-border);
  color: var(--ds-text);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.3);
}
html[data-theme="dark"] .dashboard-shell .profile-popover strong { color: var(--ds-text); }
html[data-theme="dark"] .dashboard-shell .profile-popover span { color: var(--ds-text-muted); }
html[data-theme="dark"] .dashboard-shell .suggestion-list button { color: var(--ds-text); }
html[data-theme="dark"] .dashboard-shell .suggestion-list button:hover {
  background: var(--ds-primary-soft);
  color: #95b3ff;
}

/* ─── Card surfaces in dark ───────────────────────────── */
html[data-theme="dark"] .dashboard-shell .search-workbench,
html[data-theme="dark"] .dashboard-shell .results-panel,
html[data-theme="dark"] .dashboard-shell .email-panel,
html[data-theme="dark"] .dashboard-shell .send-status-panel,
html[data-theme="dark"] .dashboard-shell .admin-panel,
html[data-theme="dark"] .dashboard-shell .admin-user-row,
html[data-theme="dark"] .dashboard-shell .admin-campaign-item,
html[data-theme="dark"] .dashboard-shell .admin-activity-box,
html[data-theme="dark"] .dashboard-shell .admin-key-section,
html[data-theme="dark"] .dashboard-shell .admin-api-keys-panel,
html[data-theme="dark"] .dashboard-shell .metric-row article {
  background: var(--ds-surface);
  border-color: var(--ds-border);
  color: var(--ds-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.35);
}
html[data-theme="dark"] .dashboard-shell .admin-activity-log,
html[data-theme="dark"] .dashboard-shell .csv-import-panel {
  background: var(--ds-surface-2);
  border-color: var(--ds-border);
  color: var(--ds-text);
}
html[data-theme="dark"] .dashboard-shell .csv-import-panel strong { color: var(--ds-text); }
html[data-theme="dark"] .dashboard-shell .csv-import-panel span { color: var(--ds-text-muted); }

/* ─── Tables ──────────────────────────────────────────── */
html[data-theme="dark"] .dashboard-shell .results-table-wrap {
  background: var(--ds-surface);
  border-color: var(--ds-border);
}
html[data-theme="dark"] .dashboard-shell .results-table th,
html[data-theme="dark"] .dashboard-shell .results-table td {
  border-bottom-color: var(--ds-border);
  color: var(--ds-text);
}
html[data-theme="dark"] .dashboard-shell .results-table thead th {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html[data-theme="dark"] .dashboard-shell .results-table tbody tr:hover td { background: var(--ds-surface-2); }
html[data-theme="dark"] .dashboard-shell .results-table tr.is-problem-row td { background: rgba(220,38,38,0.14); }
html[data-theme="dark"] .dashboard-shell .results-table .table-link { color: var(--ds-text); }
html[data-theme="dark"] .dashboard-shell .results-table .table-link:hover { color: #95b3ff; }
html[data-theme="dark"] .dashboard-shell .table-avatar,
html[data-theme="dark"] .dashboard-shell .table-game-thumb { background: var(--ds-surface-2); }

/* ─── Email recipient list & tokens ───────────────────── */
html[data-theme="dark"] .dashboard-shell .email-recipient-list article {
  background: var(--ds-surface-2);
  border-color: var(--ds-border);
  color: var(--ds-text);
}
html[data-theme="dark"] .dashboard-shell .email-recipient-list span { color: var(--ds-text-muted); }
html[data-theme="dark"] .dashboard-shell .email-tokens {
  background: var(--ds-surface-2);
  border-color: var(--ds-border);
}

/* ─── Status chips (dark variant: tinted) ─────────────── */
html[data-theme="dark"] .dashboard-shell .email-status-chip {
  background: var(--ds-surface-2);
  border-color: var(--ds-border);
  color: var(--ds-text-muted);
}
html[data-theme="dark"] .dashboard-shell .email-status-chip[data-status="sent"],
html[data-theme="dark"] .dashboard-shell .email-status-chip[data-status="delivered"] {
  background: rgba(34,197,94,0.14);
  border-color: rgba(34,197,94,0.32);
  color: #7ee29c;
}
html[data-theme="dark"] .dashboard-shell .email-status-chip[data-status="pending"] {
  background: rgba(217,119,6,0.14);
  border-color: rgba(217,119,6,0.32);
  color: #f6c87a;
}
html[data-theme="dark"] .dashboard-shell .email-status-chip[data-status="failed"],
html[data-theme="dark"] .dashboard-shell .email-status-chip[data-status="bounced"] {
  background: rgba(220,38,38,0.16);
  border-color: rgba(220,38,38,0.34);
  color: #ff9a9a;
}
html[data-theme="dark"] .dashboard-shell .email-status-chip[data-status="reply"],
html[data-theme="dark"] .dashboard-shell .email-status-chip[data-status="replied"] {
  background: rgba(124,109,255,0.18);
  border-color: rgba(124,109,255,0.36);
  color: #c4baff;
}

/* Filter pills & chips */
html[data-theme="dark"] .dashboard-shell .filter-tag,
html[data-theme="dark"] .dashboard-shell .search-name-filter button.is-active,
html[data-theme="dark"] .dashboard-shell .selection-count,
html[data-theme="dark"] .dashboard-shell .search-name-chip {
  background: var(--ds-primary-soft);
  border-color: var(--ds-primary-200);
  color: #95b3ff;
}
html[data-theme="dark"] .dashboard-shell .filter-tag button {
  background: rgba(74,134,255,0.25);
  color: #c4d2ff;
}

/* Error / stop buttons */
html[data-theme="dark"] .dashboard-shell .results-error,
html[data-theme="dark"] .dashboard-shell .email-error {
  background: rgba(220,38,38,0.14);
  border-color: rgba(220,38,38,0.3);
  color: #ffadad;
}
html[data-theme="dark"] .dashboard-shell .stop-search-button {
  background: rgba(220,38,38,0.16);
  border-color: rgba(220,38,38,0.32);
  color: #ffadad;
}
html[data-theme="dark"] .dashboard-shell .stop-search-button:hover { background: rgba(220,38,38,0.22); }

/* Reply unread row */
html[data-theme="dark"] .dashboard-shell .reply-row.is-unread td { background: var(--ds-primary-soft); }

/* ─── Progress / search progress ───────────────────────── */
html[data-theme="dark"] .dashboard-shell .search-progress {
  background: var(--ds-surface-2);
  border-color: var(--ds-border);
}
html[data-theme="dark"] .dashboard-shell .progress-track { background: var(--ds-surface-3); }

/* ─── Login / auth page in dark mode ──────────────────── */
html[data-theme="dark"] .auth-page { background: #0b1220; color: #e6ecf6; }
html[data-theme="dark"] .login-panel {
  background: #111a30;
  border-color: #243355;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.4);
}
html[data-theme="dark"] .login-panel h1 { color: #e6ecf6; }
html[data-theme="dark"] .login-panel .eyebrow { color: #9aa6bf; }
html[data-theme="dark"] .login-panel .auth-copy { color: #9aa6bf; }
html[data-theme="dark"] .login-panel .google-button {
  background: linear-gradient(135deg, rgba(73, 228, 255, 0.9), rgba(141, 34, 255, 0.95));
  border-color: rgba(73, 228, 255, 0.7);
  color: #ffffff;
}
html[data-theme="dark"] .login-panel .google-button:hover { filter: brightness(1.08); }

/* ─── Anchor color in dark mode ───────────────────────── */
html[data-theme="dark"] .dashboard-shell a { color: #6a96ff; }
html[data-theme="dark"] .dashboard-shell a:hover { color: #95b3ff; }
html[data-theme="dark"] .dashboard-shell .sidebar-link,
html[data-theme="dark"] .dashboard-shell .sidebar-link--logout,
html[data-theme="dark"] .dashboard-shell .sidebar-link:hover,
html[data-theme="dark"] .dashboard-shell .sidebar-link--logout:hover { color: #ffffff; }

/* ─── Topbar breadcrumb in dark mode ──────────────────── */
html[data-theme="dark"] .dashboard-shell .topbar-crumbs { color: var(--ds-text-muted); }
html[data-theme="dark"] .dashboard-shell .topbar-crumbs a { color: var(--ds-text-muted); }
html[data-theme="dark"] .dashboard-shell .topbar-crumbs a:hover { color: var(--ds-text); }
html[data-theme="dark"] .dashboard-shell .topbar-crumbs .is-current { color: #95b3ff; }

/* ─── Prevent flash of old body background on initial paint
   The inline <head> script sets html[data-theme] synchronously
   before CSS loads, so these rules apply from the first paint —
   eliminating the brief dark/purple flash before app.js renders. */
html[data-theme="light"] body { background: #f4f6fb !important; color: #111827; }
html[data-theme="dark"]  body { background: #0b1220 !important; color: #e6ecf6; }

/* ─── Found Influencers page tweaks ────────────────────── */
.dashboard-shell .results-panel .results-count-title {
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
}
/* Download CSV/Excel — keep blue primary styling now that they
   sit inside .selection-actions instead of .export-actions */
.dashboard-shell .selection-actions button[data-export] {
  background: var(--ds-primary);
  border: 0;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(44,108,245,0.22);
}
.dashboard-shell .selection-actions button[data-export]:hover {
  background: var(--ds-primary-hover);
}
html[data-theme="dark"] .dashboard-shell .selection-actions button[data-export] {
  background: var(--ds-primary);
  color: #ffffff;
  border: 0;
}
html[data-theme="dark"] .dashboard-shell .selection-actions button[data-export]:hover {
  background: var(--ds-primary-hover);
}

/* ─── Email message textarea ──────────────────────────── */
.dashboard-shell .email-form .email-message-textarea {
  min-height: 255px;
}

/* ─── Send Status page — dark red Delete + social tags
   Light mode only (per user request) ──────────────────── */
html[data-theme="light"] .dashboard-shell .campaign-danger-actions button,
html[data-theme="light"] .dashboard-shell .campaign-socials .social-tag {
  color: #991b1b;
}

/* ─── Send Status — campaign-row styling
   Match the reference: ~100px tall row, list starts from top
   of the panel (heading/eyebrow hidden). */
.dashboard-shell .send-status-panel > .eyebrow,
.dashboard-shell .send-status-panel > h1#send-status-title {
  display: none;
}
.dashboard-shell .send-status-panel {
  padding-top: 0.6rem;
  min-height: 0;
  max-height: calc(100vh - 9rem);
  overflow-y: auto;
  flex: 1 1 auto;
  align-self: stretch;
}
.dashboard-shell .send-status-panel .campaign-list {
  margin-top: 0;
  height: auto;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.dashboard-shell .settings-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dashboard-shell .settings-panel .settings-subsection {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.2rem;
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  background: var(--ds-surface);
}
.dashboard-shell .settings-panel h2 {
  margin: 0;
  font-size: 1.1rem;
}
.dashboard-shell .settings-panel h3 {
  margin: 1rem 0 0.5rem;
  font-size: 0.92rem;
}
.dashboard-shell .email-account-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.dashboard-shell .email-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}
.dashboard-shell .email-account-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ds-muted);
}
.dashboard-shell .email-account-grid input {
  min-height: 40px;
  padding: 0 0.85rem;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: var(--ds-surface-2, #fff);
  color: var(--ds-text);
  font: inherit;
  font-weight: 400;
}
.dashboard-shell .email-account-grid input:focus {
  outline: none;
  border-color: var(--ds-primary-200);
  box-shadow: 0 0 0 3px rgba(74, 134, 255, 0.18);
}
.dashboard-shell .email-account-actions {
  display: flex;
  justify-content: flex-end;
}
.dashboard-shell .email-account-csv {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--ds-border);
}
.dashboard-shell .email-account-csv code {
  padding: 1px 6px;
  background: var(--ds-surface-2);
  border-radius: 4px;
  font-size: 0.78rem;
}
.dashboard-shell .email-account-csv input[type="file"] {
  display: none;
}
.dashboard-shell .email-account-list {
  padding-top: 0.8rem;
  border-top: 1px dashed var(--ds-border);
}

.dashboard-shell .send-status-panel .campaign-row {
  height: 150px;
  min-height: 150px;
  max-height: 150px;
  padding: 1.1rem 1.1rem;
  gap: 0.5rem 1.2rem;
  font-size: 0.85rem;
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-xs);
  overflow: hidden;
}
.dashboard-shell .send-status-panel .campaign-activity-wrap {
  margin-top: -0.25rem;
}
.dashboard-shell .send-status-panel .campaign-row__meta .campaign-socials {
  transform: none;
}
.dashboard-shell .send-status-panel .campaign-row.is-active {
  border-color: var(--ds-primary-200);
  background: var(--ds-primary-soft);
}
.dashboard-shell .send-status-panel .campaign-row strong {
  font-size: 0.95rem;
  color: var(--ds-text);
}
.dashboard-shell .send-status-panel .campaign-row span {
  color: var(--ds-text-muted);
  font-size: 0.82rem;
}
.dashboard-shell .send-status-panel .campaign-counts {
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ds-text-muted);
}
.dashboard-shell .send-status-panel .campaign-counts button {
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ds-primary);
  box-shadow: none;
}
.dashboard-shell .send-status-panel .campaign-counts button:hover {
  background: transparent;
  color: var(--ds-primary-hover);
}
.dashboard-shell .send-status-panel .campaign-progress {
  height: 8px;
  background: var(--ds-surface-2);
}
.dashboard-shell .send-status-panel .campaign-progress span {
  background: linear-gradient(90deg, #34d399, #60a5fa);
}
.dashboard-shell .send-status-panel .campaign-danger-actions button {
  min-height: 36px;
  padding: 0 0.9rem;
  font-size: 0.85rem;
}
.dashboard-shell .send-status-panel .campaign-socials { gap: 0.35rem; flex-wrap: nowrap; }
.dashboard-shell .send-status-panel .campaign-row__meta { flex-wrap: nowrap; }
.dashboard-shell .send-status-panel .campaign-socials span { white-space: nowrap; }

.dashboard-shell .admin-blog-import-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin: 1rem 0 1.25rem;
}

.dashboard-shell .admin-blog-import-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ds-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-shell .admin-blog-import-form input {
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  color: var(--ds-text);
  background: var(--ds-surface);
}

.dashboard-shell .admin-blog-import-form button {
  min-height: 44px;
  padding: 0 1rem;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ds-primary);
  font-weight: 800;
  cursor: pointer;
}

.dashboard-shell .admin-blog-import-form button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.dashboard-shell .admin-blog-list {
  display: grid;
  gap: 0.75rem;
}

.dashboard-shell .admin-blog-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: var(--ds-surface);
}

.dashboard-shell .admin-blog-row img,
.dashboard-shell .admin-blog-row .blog-card-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
}

.dashboard-shell .admin-blog-row strong,
.dashboard-shell .admin-blog-row span {
  display: block;
}

.dashboard-shell .admin-blog-row span {
  margin-top: 0.25rem;
  color: var(--ds-text-muted);
  font-size: 0.82rem;
}

.dashboard-shell .admin-blog-row p {
  margin: 0.55rem 0;
  color: var(--ds-text-muted);
  line-height: 1.5;
}

.dashboard-shell .admin-blog-row a {
  color: var(--ds-primary);
  font-weight: 800;
}

.dashboard-shell .admin-blog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.dashboard-shell .admin-blog-actions button,
.dashboard-shell .admin-blog-editor-actions button,
.dashboard-shell .admin-blog-editor .panel-heading button {
  min-height: 34px;
  padding: 0 0.75rem;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  color: var(--ds-text);
  background: var(--ds-surface-2);
  font-weight: 800;
  cursor: pointer;
}

.dashboard-shell .admin-blog-actions button.is-danger {
  color: var(--ds-danger);
  background: var(--ds-danger-soft);
}

.dashboard-shell .admin-blog-editor {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 1rem;
  max-height: calc(100vh - 22.7rem);
  overflow-y: auto;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: var(--ds-surface);
}

.dashboard-shell .admin-blog-editor h2 {
  margin: 0;
  font-size: 1.1rem;
}

.dashboard-shell .admin-blog-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.dashboard-shell .admin-blog-editor-grid label {
  display: grid;
  gap: 0.35rem;
  color: var(--ds-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-shell .admin-blog-editor-grid .is-wide,
.dashboard-shell .admin-blog-editor-grid label.is-wide {
  grid-column: 1 / -1;
}

.dashboard-shell .admin-blog-editor-grid input,
.dashboard-shell .admin-blog-editor-grid textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  color: var(--ds-text);
  background: var(--ds-surface-2);
  font: inherit;
}

.dashboard-shell .admin-blog-editor-grid textarea {
  resize: vertical;
}

.dashboard-shell .admin-blog-cover-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-shell .admin-blog-cover-preview {
  width: 148px;
  height: 84px;
  overflow: hidden;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: var(--ds-surface-2);
}

.dashboard-shell .admin-blog-cover-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-shell .admin-blog-cover-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--ds-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-shell .admin-blog-cover-actions {
  display: flex;
  gap: 0.45rem;
}

.dashboard-shell .admin-blog-cover-actions button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  color: var(--ds-text);
  background: var(--ds-surface-2);
  cursor: pointer;
}

.dashboard-shell .admin-blog-cover-actions button:hover:not(:disabled) {
  border-color: var(--ds-primary);
  color: #ffffff;
  background: var(--ds-primary);
}

.dashboard-shell .admin-blog-cover-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.dashboard-shell .admin-blog-cover-actions svg {
  width: 18px;
  height: 18px;
}

.dashboard-shell .admin-blog-rich-field {
  display: grid;
  gap: 0.45rem;
  color: var(--ds-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-shell .admin-blog-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.45rem;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: var(--ds-surface-2);
}

.dashboard-shell .admin-blog-rich-toolbar button {
  min-height: 32px;
  padding: 0 0.65rem;
  border: 1px solid var(--ds-border);
  border-radius: 6px;
  color: var(--ds-text);
  background: var(--ds-surface);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.dashboard-shell .admin-blog-rich-toolbar button:hover {
  border-color: var(--ds-primary);
}

.dashboard-shell .admin-blog-rich-editor {
  min-height: 440px;
  max-height: 58vh;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  color: var(--ds-text);
  background: var(--ds-surface-2);
  font: 400 1rem/1.6 Georgia, "Times New Roman", serif;
}

.dashboard-shell .admin-blog-rich-editor:focus {
  border-color: var(--ds-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 123, 255, 0.18);
}

.dashboard-shell .admin-blog-rich-editor h2,
.dashboard-shell .admin-blog-rich-editor h3 {
  margin: 1.4rem 0 0.55rem;
  font-family: Inter, Arial, sans-serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.dashboard-shell .admin-blog-rich-editor p {
  margin: 0 0 1rem;
}

.dashboard-shell .admin-blog-rich-editor img,
.dashboard-shell .admin-blog-rich-editor iframe {
  display: block;
  width: 75%;
  max-width: 100%;
  margin: 1.25rem auto;
  border: 0;
  border-radius: 8px;
}

.dashboard-shell .admin-blog-rich-editor iframe {
  min-height: 152px;
}

.dashboard-shell .admin-blog-html-source {
  display: grid;
  gap: 0.5rem;
}

.dashboard-shell .admin-blog-html-source summary {
  width: fit-content;
  cursor: pointer;
}

.dashboard-shell .admin-blog-editor-actions {
  display: flex;
  gap: 0.6rem;
}

.dashboard-shell .admin-blog-editor-actions button[type="submit"] {
  border-color: var(--ds-primary);
  color: #ffffff;
  background: var(--ds-primary);
}

/* ─── Found Influencers — search-name chips 25% smaller ── */
.dashboard-shell .search-name-filter button {
  min-height: 28px;
  padding: 0 0.64rem;
  font-size: 0.64rem;
  border-radius: 8px;
}

.dashboard-shell .search-name-filter .search-name-rename {
  min-height: 28px;
  padding: 0 5px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  color: var(--ds-muted);
  opacity: 0.55;
}
.dashboard-shell .search-name-filter .search-name-rename:hover {
  opacity: 1;
  background: var(--ds-surface-2);
}
.dashboard-shell .search-name-filter .search-name-rename svg {
  width: 11px;
  height: 11px;
}
.dashboard-shell .search-name-filter .search-name-delete {
  min-height: 28px;
  padding: 0 5px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  color: var(--ds-muted);
  opacity: 0.55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
}
.dashboard-shell .search-name-filter .search-name-delete:hover {
  opacity: 1;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}
.dashboard-shell .search-name-filter .search-name-delete svg {
  width: 11px;
  height: 11px;
}

.dashboard-shell .search-name-filter .merge-searches-button {
  min-height: 28px;
  padding: 0 0.7rem;
  font-size: 0.64rem;
  border-radius: 8px;
  border: 1px solid var(--ds-primary-200);
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
  font-weight: 700;
}
.dashboard-shell .search-name-filter .merge-searches-button:hover {
  background: var(--ds-primary-soft);
  filter: brightness(0.96);
}
.dashboard-shell .search-name-filter .merge-searches-button:disabled {
  opacity: 0.5;
  background: var(--ds-surface-2);
  color: var(--ds-muted);
  border-color: var(--ds-border);
  cursor: not-allowed;
}
.dashboard-shell .search-name-filter .merge-searches-button span {
  background: rgba(74, 134, 255, 0.18);
  color: var(--ds-primary);
  font-size: 0.6rem;
}

/* ─── AI search — bigger checkbox + spacing before textarea ─ */
.dashboard-shell .ai-search-toggle input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--ds-primary);
  cursor: pointer;
}
.dashboard-shell .ai-search-tools { margin-bottom: 0.75rem; }
.dashboard-shell .dashboard-search .ai-search-prompt {
  margin-top: 1rem;
}

/* ─── Global font swap: Plus Jakarta Sans
   Override "Inter" usage throughout the project. ──────── */
body,
.dashboard-shell,
.dashboard-shell *,
.auth-page,
.auth-page *,
.home-page,
.home-page *,
input, select, textarea, button {
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif !important;
}

/* ─── Email Influencers — "X selected channels" red ───── */
.dashboard-shell .recipient-count {
  color: #dc2626;
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Public contact page (/contact) — reuses the home header + nav.
   --------------------------------------------------------------------------- */
.contact-page {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(123, 80, 255, 0.35), transparent 60%),
              radial-gradient(1000px 500px at 100% 0%, rgba(73, 228, 255, 0.18), transparent 55%),
              linear-gradient(180deg, #0a0f24 0%, #0b1026 100%);
  min-height: 100vh;
}

.contact-section {
  display: flex;
  justify-content: center;
  padding: clamp(7rem, 13vh, 9.5rem) clamp(1.1rem, 5vw, 3rem) clamp(3rem, 8vh, 5rem);
}

.contact-card {
  width: min(620px, 100%);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(13, 18, 40, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  color: #eef1ff;
}

.contact-card .eyebrow {
  color: #b69cff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
}

.contact-card h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 900;
  color: #ffffff;
}

.contact-intro {
  margin: 0 0 1.6rem;
  color: #c4c9e6;
  font-size: 0.96rem;
  line-height: 1.55;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-field > span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cdd2f0;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f6ff;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(220, 224, 245, 0.45);
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #8757ff;
  box-shadow: 0 0 0 3px rgba(135, 87, 255, 0.25);
}

/* Honeypot — kept in the DOM for bots, never shown to humans. */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-captcha {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
}

.contact-captcha-field {
  flex: 1;
}

.contact-captcha-refresh {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #d6dbff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 160ms ease;
}

.contact-captcha-refresh:hover {
  background: rgba(135, 87, 255, 0.22);
}

.contact-submit {
  margin-top: 0.4rem;
  align-self: flex-start;
  cursor: pointer;
  border: none;
}

.contact-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.contact-status {
  margin: 0.2rem 0 0;
  min-height: 1.2em;
  font-size: 0.9rem;
}

.contact-error {
  color: #ff9d9d;
  font-weight: 600;
}

.contact-success {
  color: #7ef0c0;
  font-weight: 600;
}

/* Admin contact-messages table: keep long message text readable. */
.admin-contact-table .admin-contact-message {
  max-width: 420px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* The app shell scrolls with the page (all screen sizes) so tall content — like the
   full dashboard with every metric row — is always reachable. The base layout pinned
   the shell/main/workspace to a fixed viewport height with overflow:hidden, which
   clipped everything past the first screen. The sticky sidebar/topbar stay in place. */
.dashboard-shell { height: auto !important; min-height: 100vh; overflow: visible !important; }
.dashboard-shell .dashboard-main { height: auto !important; min-height: 100vh; overflow: visible !important; }
.dashboard-shell .workspace { height: auto !important; min-height: 0 !important; overflow: visible !important; }
@media (max-width: 760px) {
  .dashboard-shell { position: relative !important; min-height: 100dvh; }
}

/* ─── Admin panels: render flush in the workspace (no outer boxed section) ───
   Overrides the boxed look set by `.dashboard-shell .admin-panel` and its dark/
   api-keys variants. Placed last so it wins on source order at equal specificity.
   Inner sub-boxes (admin-user-row, admin-key-section, tables, etc.) are untouched. */
.dashboard-shell .admin-panel,
.dashboard-shell .admin-api-keys-panel,
.dashboard-shell .admin-search-provider-panel,
.dashboard-shell .admin-influencers-full-panel {
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  min-height: 0;
}
html[data-theme="dark"] .dashboard-shell .admin-panel,
html[data-theme="dark"] .dashboard-shell .admin-api-keys-panel {
  background: none;
  border: none;
  box-shadow: none;
}

/* ─── Admin: single scroll — table scrolls inside the panel, not the whole page ───
   The admin shell is pinned to the viewport and the results table flex-fills the
   remaining height (scrolling internally), so the workspace itself doesn't add a
   second scrollbar. The workspace keeps overflow:auto as a fallback so panels that
   aren't table-shaped (forms, multi-section) are never clipped. Admin-only. */
.admin-shell.dashboard-shell { height: 100vh !important; min-height: 0 !important; overflow: hidden !important; }
.admin-shell.dashboard-shell .dashboard-main { height: 100vh !important; min-height: 0 !important; overflow: hidden !important; }
.admin-shell.dashboard-shell .workspace { overflow-y: auto !important; overflow-x: hidden !important; min-height: 0 !important; height: auto !important; }
.admin-shell .tab-panel { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.admin-shell .admin-panel { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.admin-shell .results-table-wrap { max-height: none; min-height: 140px; flex: 1 1 auto; overflow: auto; }
/* Full-height tables (Unlimited Users, Admin Users): show every row, no internal scroll. */
.results-table-wrap--full,
.admin-shell .results-table-wrap--full { max-height: none; min-height: 0; flex: none; overflow: visible; }

/* ─── App pages: render flush in the workspace (no outer boxed section), matching admin ───
   The non-admin dashboard views are wrapped in .search-workbench / .results-panel /
   .email-panel / .send-status-panel — strip their boxed look so content sits directly in
   the workspace. The dashboard (dash-* blocks) isn't one of these, so it's left as-is.
   Placed last so it wins on source order at equal specificity. */
.dashboard-shell .search-workbench,
.dashboard-shell .results-panel,
.dashboard-shell .email-panel,
.dashboard-shell .send-status-panel {
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  min-height: 0;
}
html[data-theme="dark"] .dashboard-shell .search-workbench,
html[data-theme="dark"] .dashboard-shell .results-panel,
html[data-theme="dark"] .dashboard-shell .email-panel,
html[data-theme="dark"] .dashboard-shell .send-status-panel {
  background: none;
  border: none;
  box-shadow: none;
}

/* Email page: size the working area to its content — no forced height (which left empty space
   under the Send button) and no inner-scroll cap (which showed a needless scrollbar). The page
   scrolls as one document if the form is tall. */
.dashboard-shell .email-layout { min-height: 0; height: auto; align-items: start; }
.dashboard-shell .email-compose { max-height: none; overflow: visible; height: auto; }

/* Campaign Replies: normal font, but the table container fills the window height (width unchanged). */
.replies-table-lg { height: calc((100vh - 160px) * 0.9); max-height: calc((100vh - 160px) * 0.9); }

/* Content lightbox: reply-email thread shown under a tracked video's detail. */
.li-reply-thread { margin-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 0.8rem; }
.li-reply-title { margin: 0 0 0.5rem; font-size: 0.95rem; }
.li-reply-msg { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0.7rem 0.8rem; margin-bottom: 0.6rem; }
.li-reply-meta { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.82rem; opacity: 0.85; }
.li-reply-meta strong { word-break: break-all; }
.li-reply-subj { font-weight: 600; margin: 0.25rem 0; }
.li-reply-cc { font-size: 0.78rem; opacity: 0.7; margin-bottom: 0.3rem; word-break: break-all; }
.li-reply-body { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 0.85rem; margin: 0.3rem 0 0; max-height: 240px; overflow: auto; }
.li-reply-replied { margin-top: 0.4rem; font-size: 0.8rem; color: #4ad07f; }

/* AI Content Studio — "Your article topics" lightbox title: dark green in light mode, dark blue in dark mode. */
.cs-topics-title { color: #15803d; }
html[data-theme="dark"] .cs-topics-title { color: #1f5be0; }

/* ===== AI Content Studio — content calendar ===== */
.cs-calendar { margin-top: 14px; }
.cs-cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; }
.cs-cal-head > div { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ds-text-muted, #6b7280); padding-left: 4px; }
.cs-cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; }
.cs-cal-cell { min-height: 132px; background: var(--ds-surface, #fff); border: 1px solid var(--ds-border, #e6e8ee); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.cs-cal-cell.cs-today { border-color: var(--ds-primary, #2c6cf5); box-shadow: 0 0 0 1px var(--ds-primary, #2c6cf5) inset; }
.cs-cal-daynum { font-size: 13px; font-weight: 600; color: var(--ds-text, #111827); display: flex; align-items: center; gap: 6px; }
.cs-cal-mon { font-size: 10px; font-weight: 700; color: var(--ds-text-muted, #6b7280); text-transform: uppercase; }
.cs-cal-today { margin-left: auto; font-size: 9px; font-weight: 700; text-transform: uppercase; color: #fff; background: var(--ds-primary, #2c6cf5); border-radius: 999px; padding: 1px 6px; }
.cs-day-card { border: 1px solid var(--ds-border, #e6e8ee); border-radius: 8px; padding: 7px; background: var(--ds-bg, #f4f6fb); display: flex; flex-direction: column; gap: 5px; }
.cs-status-pill { align-self: flex-start; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #fff; border-radius: 999px; padding: 1px 7px; }
.cs-day-topic { font-size: 12.5px; line-height: 1.3; color: var(--ds-text, #111827); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cs-day-topic.cs-dim { opacity: .55; }
.cs-day-cost { font-size: 11px; font-weight: 600; color: var(--ds-text-muted, #6b7280); }
.cs-day-card { position: relative; }
/* Articles the user built directly from their own content get a distinct background. */
.cs-day-card--from-content { background: rgba(124, 58, 237, 0.12); border-color: rgba(124, 58, 237, 0.45); }
html[data-theme="dark"] .cs-day-card--from-content { background: rgba(124, 58, 237, 0.22); }
.cs-from-content-tag { align-self: flex-start; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: #fff; background: #7c3aed; border-radius: 999px; padding: 1px 7px; }

/* Live generation progress (calendar card) */
.cs-progress { margin: 2px 0 2px; }
.cs-progress-label { font-size: 11px; font-weight: 600; color: var(--ds-primary, #2c6cf5); margin-bottom: 4px; }
.cs-progress-track { height: 5px; border-radius: 999px; background: rgba(120,120,120,.18); overflow: hidden; }
.cs-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2c6cf5, #7c3aed); transition: width .5s ease; }
.cs-progress-indeterminate { width: 40%; animation: cs-prog-slide 1.1s ease-in-out infinite; }
@keyframes cs-prog-slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.cs-share-icon { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; display: grid; place-items: center; border: none; border-radius: 6px; background: var(--ds-border, #eef2f7); color: var(--ds-primary, #2c6cf5); cursor: pointer; }
.cs-share-icon:hover { background: var(--ds-primary, #2c6cf5); color: #fff; }

/* Content Studio share lightbox */
.cs-share-box { background: var(--ds-surface, #fff); color: var(--ds-text, #111827); border-radius: 14px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 18px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.cs-share-image { margin: 6px 0 10px; }
.cs-share-image img { width: 100%; border-radius: 10px; }
.cs-share-topic { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.cs-share-platforms { display: flex; gap: 10px; margin-bottom: 12px; }
.cs-share-pl { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 1px solid var(--ds-border, #d1d5db); border-radius: 10px; background: #fff; color: #111827; font-weight: 700; cursor: pointer; }
.cs-share-pl.is-active { border-color: var(--ds-primary, #2c6cf5); box-shadow: 0 0 0 2px rgba(44,108,245,.18); }
.cs-share-pl-mark { width: 24px; height: 24px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.cs-share-pl-mark.li { background: #0a66c2; }
.cs-share-pl-mark.x { background: #000; }
.cs-share-pl-mark.md { background: #000; font-family: Georgia, "Times New Roman", serif; }
.cs-share-pl-mark.hn { background: #2962ff; }
.cs-share-text { width: 100%; resize: vertical; font-size: 14px; line-height: 1.5; padding: 11px; border: 1px solid var(--ds-border, #d1d5db); border-radius: 8px; background: #fff; color: #111827; white-space: pre-wrap; }
.cs-share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cs-share-actions button { font-size: 13px; font-weight: 700; border: none; border-radius: 8px; padding: 9px 16px; cursor: pointer; background: var(--ds-border, #e5e7eb); color: var(--ds-text, #111827); }
.cs-share-actions button:disabled { opacity: .6; cursor: default; }
.cs-share-go.linkedin { background: #0a66c2; color: #fff; }
.cs-share-go.x { background: #000; color: #fff; }
.cs-share-go.medium { background: #000; color: #fff; }
.cs-share-go.hashnode { background: #2962ff; color: #fff; }

/* Generate Article from Content lightbox */
.cs-from-content-btn { background: #7c3aed; }
.cs-fc-image { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cs-fc-image img { width: 160px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--ds-border, #d1d5db); }
.cs-fc-image-empty { font-size: 13px; color: var(--ds-text-muted, #6b7280); }
.cs-fc-upload-btn, .cs-fc-remove-btn { font-size: 12px; font-weight: 700; border: 1px solid var(--ds-border, #d1d5db); border-radius: 8px; padding: 7px 12px; cursor: pointer; background: #fff; color: #111827; }
.cs-fc-remove-btn { color: #b91c1c; }
.cs-fc-check { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 13px; color: var(--ds-text, #111827); cursor: pointer; }
.cs-fc-content { width: 100%; resize: vertical; font-size: 14px; line-height: 1.6; padding: 12px; border: 1px solid var(--ds-border, #d1d5db); border-radius: 8px; background: #fff; color: #111827; }
.cs-fc-linkrow { display: flex; gap: 8px; margin-bottom: 8px; }
.cs-fc-linkrow input { flex: 1; font-size: 13px; padding: 8px 10px; border: 1px solid var(--ds-border, #d1d5db); border-radius: 8px; background: #fff; color: #111827; }
.cs-day-actions { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; }
.cs-day-actions a, .cs-day-actions button { font-size: 11px; color: var(--ds-primary, #2c6cf5); background: none; border: none; padding: 0; cursor: pointer; font-weight: 600; }
.cs-day-actions .cs-del { color: #b91c1c; }
.cs-day-actions .cs-del-icon { display: inline-grid; place-items: center; color: #b91c1c; padding: 0; }
.cs-day-actions .cs-del-icon:hover { color: #7f1d1d; }
/* Not-yet-posted blog destinations: a muted "publish to it" button. */
.cs-day-actions .cs-blog-pub { color: var(--ds-text-muted, #9ca3af); font-weight: 600; }
.cs-day-actions .cs-blog-pub:hover { color: var(--ds-primary, #2c6cf5); }
.cs-day-card.cs-locked { background-image: repeating-linear-gradient(45deg, rgba(120,120,120,.08), rgba(120,120,120,.08) 6px, rgba(120,120,120,.16) 6px, rgba(120,120,120,.16) 12px); border-style: dashed; align-items: flex-start; }
.cs-lock-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; border-radius: 999px; padding: 1px 7px; }
.cs-upgrade-btn { font-size: 11px; font-weight: 700; color: #fff; background: var(--ds-primary, #2c6cf5); border: none; border-radius: 6px; padding: 4px 9px; cursor: pointer; }
.cs-upgrade-inline { font-size: inherit; color: var(--ds-primary, #2c6cf5); background: none; border: none; padding: 0; cursor: pointer; font-weight: 700; text-decoration: underline; }
.cs-plan-note { display: inline-block; margin-top: 4px; color: var(--ds-text-muted, #6b7280); }

/* Auto-publish vs manual-review toggle + new-article button */
.cs-publish-mode { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 2px; }
.cs-publish-mode-label { font-size: 13px; color: var(--ds-text, #111827); }
.cs-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; }
.cs-switch input { opacity: 0; width: 0; height: 0; }
.cs-switch-slider { position: absolute; inset: 0; cursor: pointer; background: #cbd5e1; border-radius: 999px; transition: background .2s; }
.cs-switch-slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.cs-switch input:checked + .cs-switch-slider { background: var(--ds-primary, #2c6cf5); }
.cs-switch input:checked + .cs-switch-slider::before { transform: translateX(20px); }
.cs-gen-buttons { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-new-article-btn { font-size: 12px; font-weight: 700; color: #fff; background: var(--ds-primary, #2c6cf5); border: none; border-radius: 7px; padding: 7px 13px; cursor: pointer; }
.cs-new-article-btn:disabled { opacity: .6; cursor: default; }
.cs-spinner { margin-left: auto; width: 18px; height: 18px; flex: 0 0 auto; border: 2px solid rgba(44,108,245,.25); border-top-color: var(--ds-primary, #2c6cf5); border-radius: 50%; animation: cs-spin .7s linear infinite; }
.cs-spinner + .cs-new-article-btn { margin-left: 8px; }
@keyframes cs-spin { to { transform: rotate(360deg); } }
.cs-review-btn { color: #0891b2 !important; font-weight: 700 !important; }

/* Review lightbox */
.cs-review-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.cs-review-box { background: var(--ds-surface, #fff); color: var(--ds-text, #111827); border-radius: 14px; width: min(960px, 100%); height: 80vh; display: flex; flex-direction: column; padding: 18px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.cs-review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cs-review-head h3 { margin: 0; font-size: 18px; }
.cs-review-x { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--ds-text-muted, #6b7280); }
.cs-review-hint { font-size: 12px; color: var(--ds-text-muted, #6b7280); margin: 6px 0 0; }
.cs-review-label { display: block; font-size: 12px; font-weight: 700; color: var(--ds-text-muted, #6b7280); margin: 10px 0 4px; text-transform: uppercase; letter-spacing: .03em; }
.cs-review-title { width: 100%; font-size: 15px; font-weight: 600; padding: 9px 12px; border: 1px solid var(--ds-border, #d1d5db); border-radius: 8px; background: #fff; color: #111827; }
.cs-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid var(--ds-border, #d1d5db); border-bottom: none; border-radius: 8px 8px 0 0; background: var(--ds-surface-2, #f8fafc); }
.cs-editor-toolbar button { font-size: 13px; min-width: 32px; padding: 5px 9px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #111827; cursor: pointer; }
.cs-editor-toolbar button:hover { background: #e8f1ff; }
html[data-theme="dark"] .cs-editor-toolbar button { background: #fff; color: #111827; border-color: #cbd5e1; }
html[data-theme="dark"] .cs-editor-toolbar button:hover { background: #e8f1ff; }
.cs-editor { flex: 1; overflow-y: auto; width: 100%; padding: 14px 16px; border: 1px solid var(--ds-border, #d1d5db); border-radius: 0 0 8px 8px; background: #eaf3ff; color: #111827; font-size: 15px; line-height: 1.6; outline: none; }
.cs-editor:focus { border-color: var(--ds-primary, #2c6cf5); }
.cs-editor img { max-width: 100%; height: auto; border-radius: 8px; }
.cs-editor h2 { font-size: 20px; margin: 18px 0 8px; color: #000; }
.cs-editor p { margin: 0 0 12px; }
.cs-editor a { color: #1d4ed8; border-radius: 3px; transition: background .12s; }
.cs-editor a:hover { background: #bcd8ff; }
.cs-media-del { position: fixed; display: none; align-items: center; justify-content: center; width: 26px; height: 26px; z-index: 1100; background: rgba(220,38,38,.95); color: #fff; border: 2px solid #fff; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.cs-media-del:hover { background: #b91c1c; }
.cs-editor .game-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 14px 0; }
.cs-editor .game-video iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
.cs-review-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.cs-review-actions button { font-size: 13px; font-weight: 700; border: none; border-radius: 8px; padding: 9px 16px; cursor: pointer; }
.cs-review-delete { color: #b91c1c; background: #fee2e2; }
.cs-review-save { color: var(--ds-text, #111827); background: var(--ds-border, #e5e7eb); }
.cs-review-publish { color: #fff; background: #16a34a; }
.cs-review-actions button:disabled { opacity: .6; cursor: default; }

/* Admin: generated LinkedIn post modal */
.admin-li-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.admin-li-box { background: var(--ds-surface, #fff); color: var(--ds-text, #111827); border-radius: 14px; width: min(620px, 100%); max-height: 90vh; overflow-y: auto; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.admin-li-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.admin-li-head h2 { margin: 0; font-size: 18px; }
.admin-li-x { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--ds-text-muted, #6b7280); }
.admin-li-text { width: 100%; resize: vertical; font-size: 14px; line-height: 1.6; padding: 12px; border: 1px solid var(--ds-border, #d1d5db); border-radius: 8px; background: #fff; color: #111827; white-space: pre-wrap; }
.admin-li-image { margin-top: 12px; }
.admin-li-image img { max-width: 100%; border-radius: 8px; }
.admin-li-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.admin-li-actions button { font-size: 13px; font-weight: 700; border: none; border-radius: 8px; padding: 9px 16px; cursor: pointer; background: var(--ds-border, #e5e7eb); color: var(--ds-text, #111827); }
.admin-li-actions .admin-li-share { background: #0a66c2; color: #fff; }
.admin-li-actions .admin-x-share { background: #000; color: #fff; }
.admin-li-hint { font-size: 12px; color: var(--ds-text-muted, #6b7280); margin: 12px 0 0; }

/* Footer on server-rendered pages (blog, games, articles, legal) */
.ssr-site-footer { margin: 48px auto 0; padding: 24px 20px 40px; max-width: 1100px; border-top: 1px solid rgba(255, 255, 255, 0.14); text-align: center; color: rgba(244, 238, 252, 0.7); }
.ssr-footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-bottom: 10px; }
.ssr-footer-links a { color: rgba(244, 238, 252, 0.78); text-decoration: none; font-size: 14px; font-weight: 600; }
.ssr-footer-links a:hover { color: #49e4ff; text-decoration: underline; }
.ssr-site-footer p { font-size: 13px; margin: 0; }

/* Legal pages (/privacy, /terms) — sit on the dark .blog-shell background, so text is light */
.legal-page { max-width: 760px; margin: 0 auto; padding: 24px 20px 8px; color: #f4eefc; line-height: 1.7; }
.legal-page h1 { font-size: 30px; margin: 0 0 4px; color: #ffffff; }
.legal-page .legal-updated { color: rgba(244, 238, 252, 0.65); font-size: 14px; margin: 0 0 20px; }
.legal-page h2 { font-size: 19px; margin: 26px 0 8px; color: #ffffff; }
.legal-page p { margin: 0 0 14px; color: #f4eefc; }
.legal-page a { color: #49e4ff; }

/* Legal links in the landing-page footer */
.home-footer-legal { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 6px 0; }
.home-footer-legal a { color: var(--ds-text-muted, #9aa4b2); text-decoration: none; font-size: 13px; font-weight: 600; }
.home-footer-legal a:hover { color: var(--ds-primary, #2c6cf5); text-decoration: underline; }

@media (max-width: 760px) {
  .cs-cal-head { display: none; }
  .cs-cal-row { grid-template-columns: 1fr 1fr; }
  .cs-cal-cell { min-height: auto; }
}
