:root {
  --bg: #070b10;
  --panel: #101820;
  --line: #243040;
  --text: #eef4f8;
  --muted: #8fa0b3;
  --accent: #2dd4bf;
  --accent-2: #5eead4;
  --bad: #ff6b6b;
  --ok: #5ee0a0;
  --ink: #05080c;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(900px 500px at 0% -10%, #13242a, transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
}
a { color: var(--accent); text-decoration: none; }
.brand {
  font-family: "Syne", "IBM Plex Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  font-size: 1.15rem;
}
.top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  background: rgba(7,11,16,.88);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 40;
}
nav { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; align-items: center; }
nav a { color: var(--muted); font-size: .9rem; font-weight: 500; }
nav a:hover { color: var(--text); }
.logout button, .btn {
  appearance: none; border: 0; border-radius: 10px;
  background: var(--accent); color: #042f2e; font-weight: 700;
  padding: 10px 14px; cursor: pointer; font-size: .9rem;
  font-family: inherit;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.98); }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: #4a1f1f; color: #ffc9c9; }
.wrap {
  max-width: 1100px; margin: 0 auto;
  padding: 20px 16px calc(64px + var(--safe-bottom));
}
.login { max-width: 360px; margin: 12vh auto; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.center { justify-content: center; margin-top: 12px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; flex: 1; min-width: 120px; }
input, select {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; font-size: 1rem;
  font-family: inherit;
  min-height: 44px;
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 12px 0; }
.grid.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat { font-size: 1.4rem; font-weight: 700; margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.err { color: var(--bad); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 8px; background: #1b2430; border: 1px solid var(--line); font-size: .78rem; }
.pill.ok { color: var(--ok); }
.pill.bad { color: var(--bad); }
.bar { height: 6px; background: #1b2430; border-radius: 99px; overflow: hidden; margin: 8px 0; }
.bar span { display: block; height: 100%; background: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .75rem; }
.log {
  background: #070a0e; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; max-height: 260px; overflow: auto; font-family: ui-monospace, monospace;
  font-size: .78rem; white-space: pre-wrap;
}
.events { list-style: none; padding: 0; }
.events li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.swiper { position: relative; min-height: 50vh; }
.slide { display: none; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.slide.active { display: block; }
.slide video { width: 100%; max-height: 70vh; background: #000; display: block; }
.slide-bar { display: flex; justify-content: space-between; gap: 10px; padding: 12px; background: var(--panel); flex-wrap: wrap; }
.inline { display: inline; }
h1, h2, h3 { font-family: "Syne", "IBM Plex Sans", sans-serif; letter-spacing: -0.02em; }
h1 { font-size: 1.35rem; margin: 0 0 8px; }
h2 { font-size: 1.05rem; margin: 20px 0 10px; }
h3 { font-size: .95rem; margin: 8px 0; }
.page-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.sticky-filters { position: sticky; top: 56px; z-index: 15; background: rgba(7,11,16,.92); backdrop-filter: blur(8px); padding: 8px 0; }
.camp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.camp-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.camp-card:hover { border-color: #3a4a5e; transform: translateY(-2px); }
.camp-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0a0e14; }
.camp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.camp-thumb-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 2rem; font-weight: 700; color: var(--muted); background: linear-gradient(135deg, #1a2430, #0f151c);
}
.camp-type {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(0,0,0,.65); color: #fff; font-size: .7rem;
  padding: 3px 8px; border-radius: 8px; text-transform: uppercase; letter-spacing: .04em;
}
.camp-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.camp-title { margin: 0; font-size: .98rem; line-height: 1.35; }
.camp-title a { color: var(--text); }
.camp-title a:hover { color: var(--accent); }
.camp-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
  margin-top: 4px;
}
@media (min-width: 420px) {
  .camp-stats { grid-template-columns: repeat(4, 1fr); }
}
.camp-stats strong.warn { color: #f0b429; }
.camp-stats strong.bad { color: var(--bad); }
.camp-stats strong.ok { color: var(--ok); }
.camp-stats div { display: flex; flex-direction: column; gap: 2px; }
.camp-stats strong { font-size: .9rem; }
.camp-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.camp-niche label { margin-top: 4px; }
.trend-boards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 900px) {
  .trend-boards { grid-template-columns: 1fr; }
}
.trend-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  min-height: 200px;
}
.trend-col h2 { margin: 0 0 10px; font-size: .95rem; }
.trend-list { display: flex; flex-direction: column; gap: 8px; }
.trend-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px; border-radius: 10px; border: 1px solid var(--line);
  background: #10161e; color: var(--text);
  transition: border-color .15s ease;
}
.trend-item:hover { border-color: var(--accent); }
.trend-item strong { font-size: .88rem; line-height: 1.35; font-weight: 600; }
.hidden { display: none !important; }
#cloud { scroll-margin-top: 72px; }
.home-hero {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 8px 0 18px; align-items: flex-start;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .72rem;
  color: var(--accent); margin: 0 0 6px;
  font-family: "Syne", "IBM Plex Sans", sans-serif;
}
.lede { color: var(--muted); max-width: 52ch; margin: 8px 0 0; line-height: 1.45; }
.hero-sync { text-align: right; }
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 8px 0 18px;
}
.stat-strip.compact { margin-bottom: 10px; }
.stat-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  display: flex; flex-direction: column; gap: 4px;
  text-align: left;
  cursor: pointer;
  appearance: none;
  font: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
a.stat-tile { text-decoration: none; }
.stat-tile:hover, .stat-tile[data-active="1"] { border-color: var(--accent); transform: translateY(-1px); }
.stat-tile strong { font-size: 1.25rem; }
.niche-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.niche-bar {
  display: block; color: var(--text); padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: #10161e;
}
.niche-bar:hover { border-color: var(--accent); }
.niche-bar-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .88rem; }
.home-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 900px) {
  .home-split { grid-template-columns: 1fr; }
}
.niche-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px;
}
.pill.chip {
  cursor: pointer; appearance: none; font: inherit; color: var(--muted);
  background: #121820;
}
.pill.chip.active, .pill.chip:hover { color: var(--accent); border-color: var(--accent); }

/* Mobile app nav */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .app-top { flex-wrap: nowrap; position: relative; }
  .nav-toggle { display: flex; }
  .app-nav {
    display: none;
    position: absolute;
    left: 12px; right: 12px; top: calc(100% + 6px);
    flex-direction: column;
    gap: 0;
    background: rgba(10, 16, 22, .97);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
  }
  .app-nav.open { display: flex; }
  .app-nav a {
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 1rem;
  }
  .app-nav a:active { background: #152028; }
  .camp-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .home-hero { flex-direction: column; }
  .hero-sync { text-align: left; width: 100%; }
}

/* Landing — ikto */
.land-body {
  --bg: #0c0f0d;
  --ink: #0c0f0d;
  --panel: #141a16;
  --line: #2a342c;
  --text: #eef2ea;
  --muted: #8b9688;
  --accent: #c8f542;
  --accent-2: #dff57a;
  background:
    linear-gradient(180deg, #101510 0%, var(--bg) 40%, #0a0d0b 100%);
  overflow-x: hidden;
}
.land-body .btn {
  background: var(--accent);
  color: #12160f;
  border-radius: 8px;
}
.land-body .btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.land-top {
  background: rgba(12, 15, 13, 0.85);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  left: 0; right: 0;
  width: 100%;
  max-width: none;
  z-index: 30;
  backdrop-filter: blur(10px);
}
.land-nav { justify-content: flex-end; }
.land-top-cta { flex-shrink: 0; padding: 8px 14px; min-height: 40px; }
.wrap-land {
  max-width: none;
  padding: 0;
  margin: 0;
}
.wrap-auth {
  max-width: 380px;
  padding-top: 12vh;
  padding-bottom: calc(48px + var(--safe-bottom));
}

.land {
  min-height: calc(100dvh - 58px);
  display: flex;
  justify-content: center;
  padding: 28px 16px calc(48px + var(--safe-bottom));
}
.land-shell {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: land-in .55s ease both;
}
.land-hero {
  padding-top: 18px;
}
.land-brand {
  font-family: "Syne", "IBM Plex Sans", sans-serif;
  font-size: clamp(3.4rem, 18vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin: 0 0 16px;
  color: var(--text);
  animation: land-brand .7s cubic-bezier(.22,1,.36,1) both;
}
.land-hero h1 {
  font-family: "Syne", "IBM Plex Sans", sans-serif;
  font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
  max-width: 16ch;
}
.land-lede {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  margin: 12px 0 0;
  max-width: 32ch;
}
.land-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}
.land-cta .btn {
  width: 100%;
  text-align: center;
  min-height: 46px;
}
.land-price {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  animation: land-in .65s ease .08s both;
}
.land-price h2 {
  font-family: "Syne", "IBM Plex Sans", sans-serif;
  margin: 0 0 4px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.land-price > .muted { margin: 0 0 14px; }
.land-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.land-list li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.4;
}
.land-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}
.land-price > .btn {
  width: 100%;
  text-align: center;
  min-height: 46px;
}

.auth-panel { animation: land-in .5s ease both; }
.auth-brand {
  font-size: clamp(2.4rem, 12vw, 3rem) !important;
  margin-bottom: 12px !important;
}
.auth-actions { margin-top: 18px; }
.auth-actions .btn { width: 100%; text-align: center; }

@keyframes land-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes land-brand {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .land-top { padding-inline: 14px; }
  .land-nav { display: none; }
  .land-top-cta { padding: 8px 12px; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .land-shell, .land-price, .land-brand, .auth-panel { animation: none; }
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.choice {
  appearance: none;
  text-align: left;
  background: #0c1218;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .15s ease, background .15s ease;
}
.choice:hover { border-color: #3a5166; }
.choice.selected {
  border-color: var(--accent);
  background: #0f1c1c;
  box-shadow: inset 0 0 0 1px rgba(45,212,191,.25);
}
.choice-inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: .9rem;
  color: var(--text);
  min-width: auto;
}
.choice-inline input { min-height: auto; width: auto; }
.wizard-step { margin-bottom: 8px; }
.tip-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tip-q {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0c1218;
  color: var(--muted);
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.tip-q:hover, .tip-q[aria-expanded="true"] {
  color: var(--accent);
  border-color: var(--accent);
}
.tip-box {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c1218;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

/* Accounts intelligence */
.acct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.acct-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: land-in .4s ease both;
}
.acct-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.acct-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.acct-head h2 a { color: var(--text); }
.acct-head h2 a:hover { color: var(--accent); }
.acct-health {
  text-align: right;
  min-width: 52px;
}
.acct-health strong {
  display: block;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}
.acct-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-stats { margin: 0; }
.acct-niche { align-items: flex-end; margin: 0; }
.acct-niche .btn { flex: 0; min-width: auto; }
.acct-suggest h3 { margin: 0; font-size: .95rem; }
.suggest-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.suggest-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c1218;
  color: var(--text);
  transition: border-color .15s ease;
}
.suggest-item:hover { border-color: var(--accent); }
.suggest-item strong { font-size: .88rem; line-height: 1.35; }
.suggest-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.suggest-item p { margin: 0; }
@media (max-width: 760px) {
  .acct-grid { grid-template-columns: 1fr; }
}
