/* fala. portal: white, Stamp-minimal, TikTok-charged */
:root {
  --bg: #ffffff;
  --bg2: #f5f5f8;
  --card: #ffffff;
  --line: #ececf1;
  --line2: #dddde5;
  --txt: #0b0b0f;
  --mut: #6b7280;
  --mut2: #9aa0ab;
  --pink: #fe2c55;
  --pink-soft: rgba(254, 44, 85, 0.08);
  --cyan: #25f4ee;
  --cyan-soft: rgba(37, 244, 238, 0.14);
  --teal: #00a39d;
  --green: #16a34a;
  --black: #0b0b0f;
  --radius: 22px;
  --font: "Inter", -apple-system, sans-serif;
  --font-display: "Poppins", "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --shadow-duo: -6px 8px 24px rgba(37, 244, 238, 0.18), 6px 8px 24px rgba(254, 44, 85, 0.14);
  /* duo-glitch signature for dark text on white, matching the landing display face */
  --glitch: -1.5px 1px 0 rgba(37, 244, 238, 0.85), 1.5px -1px 0 rgba(254, 44, 85, 0.75);
  --glitch-sm: -1px 0.5px 0 rgba(37, 244, 238, 0.6), 1px -0.5px 0 rgba(254, 44, 85, 0.5);
  /* soft layered card shadow for a more premium lift */
  --shadow-card: 0 1px 2px rgba(11, 11, 15, 0.04), 0 8px 24px rgba(11, 11, 15, 0.05);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
}
/* Fresh display face for headings; Inter for body, JetBrains Mono for data. */
.view-head h1, .gate-brand h2, .modal h2, .prof-head h2, .cprof-grid .prof-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(800px 460px at 88% -10%, rgba(254, 44, 85, 0.05), transparent 60%),
    radial-gradient(700px 460px at -8% 110%, rgba(37, 244, 238, 0.06), transparent 60%);
  pointer-events: none; z-index: 0;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mut);
}

/* ---------- logo ---------- */
.logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px; letter-spacing: -0.04em;
  color: var(--black); user-select: none;
  text-shadow: -1.5px 1px 0 rgba(37, 244, 238, 0.85), 1.5px -1px 0 rgba(254, 44, 85, 0.75);
}

/* ---------- login gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; grid-template-columns: 1fr 1fr;
}
.gate-brand {
  position: relative; display: flex; flex-direction: column;
  justify-content: center; padding: 60px 48px;
  background: var(--black); color: #fff; overflow: hidden;
}
.gate-brand::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(500px 400px at 80% 10%, rgba(254, 44, 85, 0.3), transparent 60%),
    radial-gradient(500px 400px at 10% 90%, rgba(37, 244, 238, 0.25), transparent 60%);
  pointer-events: none;
}
.gate-brand > * { position: relative; }
.gate-brand .logo { color: #fff; font-size: 36px; margin-bottom: 28px;
  text-shadow: -2px 1.5px 0 rgba(37, 244, 238, 0.9), 2px -1.5px 0 rgba(254, 44, 85, 0.8);
}
.gate-brand h2 {
  font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.12; margin-bottom: 18px; max-width: 420px;
}
.gate-brand h2 .grad {
  background: linear-gradient(95deg, var(--cyan), var(--pink), var(--cyan));
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
}
.gate-brand p { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 380px; line-height: 1.6; margin-bottom: 28px; }
.gate-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 380px;
}
.gate-stat {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 14px 16px;
}
.gate-stat .v {
  font-family: var(--mono); font-size: 22px; font-weight: 700;
  text-shadow: -1px 0.5px 0 rgba(37, 244, 238, 0.7), 1px -0.5px 0 rgba(254, 44, 85, 0.6);
}
.gate-stat .l { font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.gate-foot {
  position: absolute; bottom: 28px; left: 48px;
  font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.3); letter-spacing: .06em;
}
.gate-right {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 40px 32px; overflow-y: auto;
}
.gate-right::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(640px 420px at 72% 16%, rgba(254, 44, 85, 0.04), transparent 60%),
    radial-gradient(640px 420px at 22% 92%, rgba(37, 244, 238, 0.05), transparent 60%);
  pointer-events: none;
}
.gate-card {
  position: relative; width: 380px; max-width: 100%;
  animation: pop 0.3s ease;
  display: flex; flex-direction: column;
}
/* Role-aware gate: TikTok-first for creators, Google + email-first for brands.
   Order is set by physically reordering the DOM in setGateRole (so keyboard tab
   order always matches the visual order), not by CSS `order`. */
.gate-card #demoBtn { margin-top: 8px; }
.gate-card .g-email { display: flex; flex-direction: column; }
.gate-card .g-email .btn-primary { margin-top: 14px; }
/* creator: TikTok is the visual hero */
.gate-card.role-creator .sso-tiktok { padding: 15px 14px; font-size: 14.5px; }
/* brand: TikTok login is not for brands */
.gate-card.role-brand .sso-tiktok { display: none; }
.gate-card .logo { font-size: 26px; margin-bottom: 2px; display: none; }
.gate-sub { color: var(--mut); font-size: 13px; margin-bottom: 20px; }
.gate-card label { display: block; font-size: 12px; color: var(--mut); margin: 14px 0 6px; }
.gate-card input {
  width: 100%; background: var(--bg2); border: 1px solid var(--line2);
  border-radius: 14px; padding: 11px 13px; color: var(--txt); font-size: 14px;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.gate-card input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.gate-note {
  margin-top: 18px; font-size: 11px; color: var(--mut2);
  font-family: var(--mono); line-height: 1.6;
}
.gate-lang { position: absolute; top: 20px; right: 20px; }

@media (max-width: 900px) {
  .gate { grid-template-columns: 1fr; }
  .gate-brand { display: none; }
  .gate-card .logo { display: block; }
  .gate-right { padding: 40px 20px; }
}

.btn-social {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 12px 14px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line2); margin-bottom: 9px; transition: all 0.15s;
  background: #fff; color: var(--txt);
}
.btn-social:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11, 11, 15, 0.08); }
.sso-tiktok { background: var(--black); color: #fff; border-color: var(--black); }
.sso-tiktok:hover { box-shadow: var(--shadow-duo); }
.sso-tiktok svg { filter: drop-shadow(1px 0 0 var(--pink)) drop-shadow(-1px 0 0 var(--cyan)); }
.btn-social.connecting { opacity: 0.6; pointer-events: none; }
.gate-divider {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 2px;
  color: var(--mut2); font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.gate-divider::before, .gate-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gate-hint { font-size: 12px; color: var(--mut); margin: -8px 0 16px; text-align: center; line-height: 1.5; }
.gate-err { color: var(--pink); font-size: 12px; min-height: 16px; margin-top: 8px; font-weight: 600; }
.auth-toggle { text-align: center; margin-top: 12px; font-size: 12.5px; color: var(--mut); }
.auth-toggle button { background: none; border: 0; color: var(--txt); font-weight: 700; font-size: 12.5px; padding: 0 0 0 5px; text-decoration: underline; text-underline-offset: 2px; }
.auth-toggle button:hover { color: var(--pink); }
.btn-social { position: relative; }
.btn-social .soon {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em;
  color: var(--mut2); border: 1px solid var(--line2); background: var(--bg);
  border-radius: 999px; padding: 2px 7px;
}
.sso-tiktok .soon { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.2); background: transparent; }
.btn-social.soon-off { opacity: 0.72; }

/* ---------- roles ---------- */
.role-tabs {
  display: flex; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; margin-bottom: 18px;
}
.role-tabs button {
  flex: 1; background: transparent; border: 0; color: var(--mut);
  font-size: 12.5px; font-weight: 600; padding: 9px; border-radius: 999px;
  transition: all 0.15s;
}
.role-tabs button.on {
  background: var(--black); color: #fff;
  box-shadow: -2px 3px 10px rgba(37, 244, 238, 0.25), 2px 3px 10px rgba(254, 44, 85, 0.2);
}
body[data-role="brand"] .r-creator { display: none; }
body[data-role="creator"] .r-brand { display: none; }

/* ---------- layout ---------- */
.app { position: relative; z-index: 1; display: none; }
.app.in { display: block; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px; height: 60px;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .spacer { flex: 1; }
.badge-demo {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--teal); border: 1px solid rgba(0, 163, 157, 0.35);
  background: var(--cyan-soft); border-radius: 999px; padding: 3px 10px;
}
.countdown-chip {
  font-family: var(--mono); font-size: 11.5px; color: var(--pink);
  background: var(--pink-soft); border: 1px solid rgba(254, 44, 85, 0.25);
  border-radius: 999px; padding: 6px 14px; white-space: nowrap;
}
.countdown-chip { animation: pulseDot 2.4s ease-in-out infinite; }
.plan-chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  border: 1px solid var(--line2); background: #fff; color: var(--mut);
  border-radius: 999px; padding: 4px 12px; cursor: pointer; transition: all 0.15s;
}
.plan-chip:hover { border-color: var(--mut2); transform: translateY(-1px); }
.plan-chip.pro {
  color: #fff; background: var(--black); border-color: var(--black);
  box-shadow: -2px 3px 10px rgba(37, 244, 238, 0.25), 2px 3px 10px rgba(254, 44, 85, 0.2);
}
body[data-role="creator"] .plan-chip { display: none; }
.lang-switch { display: flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; background: #fff; }
.lang-switch button {
  background: transparent; border: 0; color: var(--mut);
  font-family: var(--mono); font-size: 11px; padding: 6px 11px;
}
.lang-switch button.on { background: var(--black); color: #fff; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), #c01340);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}

.shell { display: flex; min-height: calc(100vh - 60px); }
.sidebar {
  width: 222px; flex-shrink: 0; padding: 20px 12px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg);
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  background: transparent; border: 0; color: var(--mut);
  font-size: 13.5px; font-weight: 500; text-align: left;
  padding: 10px 13px; border-radius: 999px; width: 100%;
  transition: background 0.13s, color 0.13s;
}
.nav-item:hover { color: var(--txt); background: var(--bg2); }
.nav-item.active { color: #fff; background: var(--black); }
.nav-item.active .nav-dot { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.nav-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--line2);
  flex-shrink: 0; transition: background 0.13s;
}
.sidebar .push { flex: 1; }

.main { flex: 1; padding: 30px 32px 70px; max-width: 1240px; background: var(--bg); }
.view { display: none; }
.view.active { display: block; animation: fadeUp 0.25s ease; }

.view-head { margin-bottom: 22px; }
.view-head h1 { font-family: var(--font-display); font-size: 29px; font-weight: 600; letter-spacing: -0.035em; }
.view-head p { color: var(--mut); margin-top: 4px; }

/* ---------- cards / KPI ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.kpi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi-row .kpi { animation: fadeUp 0.45s ease backwards; }
.kpi-row .kpi:nth-child(2) { animation-delay: 0.06s; }
.kpi-row .kpi:nth-child(3) { animation-delay: 0.12s; }
.kpi-row .kpi:nth-child(4) { animation-delay: 0.18s; }
.kpi-row .kpi:nth-child(5) { animation-delay: 0.24s; }
.kpi { padding: 16px 18px; }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(11, 11, 15, 0.06); }
.kpi .k-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut2); }
.kpi .k-val { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .k-sub { font-size: 11.5px; color: var(--mut2); margin-top: 2px; }
.kpi .k-pending { font-size: 12.5px; font-weight: 600; color: var(--mut2); font-family: var(--font); }
.kpi.hot { border-color: rgba(254, 44, 85, 0.3); }
.kpi.hot .k-val {
  background: linear-gradient(95deg, var(--teal), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.banner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(95deg, rgba(254, 44, 85, 0.07), rgba(37, 244, 238, 0.09));
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 18px;
}
.banner .b-count {
  font-family: var(--mono); font-size: 30px; font-weight: 700; white-space: nowrap;
  color: var(--black);
  text-shadow: -1.5px 1px 0 rgba(37, 244, 238, 0.8), 1.5px -1px 0 rgba(254, 44, 85, 0.7);
}
.banner .b-txt { flex: 1; min-width: 220px; }
.banner .b-txt strong { display: block; font-size: 15px; }
.banner .b-txt span { color: var(--mut); font-size: 13px; }

.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.card h3 { font-size: 13.5px; font-weight: 700; margin-bottom: 14px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.bar-row .b-name { width: 110px; font-size: 12px; color: var(--mut); flex-shrink: 0; }
.bar-row .b-track { flex: 1; height: 8px; background: var(--bg2); border-radius: 4px; overflow: hidden; }
.bar-row .b-fill { height: 100%; border-radius: 4px; }
.bar-row .b-val { width: 26px; text-align: right; font-family: var(--mono); font-size: 11px; color: var(--mut); }

.mover { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mover:last-child { border-bottom: 0; }
.mover .m-meta { flex: 1; min-width: 0; }
.mover .m-name { font-size: 13px; font-weight: 600; }
.mover .m-handle { font-size: 11.5px; color: var(--mut2); font-family: var(--mono); }
.mover .m-growth { font-family: var(--mono); font-size: 12.5px; color: var(--green); white-space: nowrap; }

/* ---------- avatars ---------- */
.cavatar {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: rgba(11, 11, 15, 0.74);
}
.cavatar.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.cavatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }

/* ---------- quick-start checklist ---------- */
.steps-strip { padding: 14px 18px; margin-bottom: 18px; }
.ss-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ss-head h3 { margin: 0; }
.ss-count { font-family: var(--mono); font-size: 11px; color: var(--mut2); }
.ss-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ss-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; font-size: 12.5px; font-weight: 600; color: var(--txt);
  text-align: left; transition: all 0.15s;
}
.ss-item:hover { border-color: var(--mut2); transform: translateY(-1px); }
.ss-item.done { color: var(--mut2); background: #fff; }
.ss-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px;
  border: 1px solid var(--line2); background: #fff;
}
.ss-item.done .ss-num { background: rgba(22, 163, 74, 0.1); color: var(--green); border-color: rgba(22, 163, 74, 0.35); }
@media (max-width: 820px) { .ss-items { grid-template-columns: 1fr; } }

/* ---------- discover ---------- */
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.preset-row .pr-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mut2);
}
.preset {
  background: linear-gradient(95deg, rgba(37, 244, 238, 0.12), rgba(254, 44, 85, 0.08));
  border: 1px solid var(--line2); color: var(--txt);
  font-size: 12px; font-weight: 600; padding: 7px 15px; border-radius: 999px;
  transition: all 0.13s;
}
.preset:hover { transform: translateY(-1px); border-color: var(--pink); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.filters input[type="text"], .filters select {
  background: #fff; border: 1px solid var(--line2); border-radius: 999px;
  padding: 9px 14px; color: var(--txt); font-size: 13px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filters input[type="text"] { width: 250px; }
.filters input[type="text"]:focus, .filters select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.filters select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%239aa0ab'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.check-pill {
  display: flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line2); border-radius: 999px;
  padding: 9px 14px; font-size: 12.5px; color: var(--mut); cursor: pointer; user-select: none;
  transition: all 0.15s;
}
.check-pill input { accent-color: var(--pink); }
.check-pill.on { border-color: var(--pink); color: var(--txt); background: var(--pink-soft); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.chip {
  background: #fff; border: 1px solid var(--line2); color: var(--mut);
  font-size: 12px; font-weight: 500; padding: 6px 14px; border-radius: 999px;
  transition: all 0.13s;
}
.chip:hover { color: var(--txt); transform: translateY(-1px); }
.chip.on { background: var(--black); border-color: var(--black); color: #fff; }
.result-count { font-family: var(--mono); font-size: 11.5px; color: var(--mut2); margin-bottom: 12px; }

.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ccard { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ccard:hover { border-color: var(--line2); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(11, 11, 15, 0.07); }
.ccard .c-top { display: flex; gap: 12px; align-items: center; }
.ccard .c-id { min-width: 0; flex: 1; }
.ccard .c-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard .c-handle { font-family: var(--mono); font-size: 11.5px; color: var(--mut2); }
.cat-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; margin-top: 4px;
}
.shop-badge {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em;
  color: var(--teal); border: 1px solid rgba(0, 163, 157, 0.4);
  background: var(--cyan-soft);
  border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.score-pill {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  border-radius: 999px; padding: 2px 8px; white-space: nowrap; cursor: help;
}
.score-pill.s-hi { color: var(--green); border: 1px solid rgba(22, 163, 74, 0.35); background: rgba(22, 163, 74, 0.07); }
.score-pill.s-mid { color: var(--teal); border: 1px solid rgba(0, 163, 157, 0.4); background: var(--cyan-soft); }
.score-pill.s-low { color: #b45309; border: 1px solid rgba(180, 83, 9, 0.35); background: rgba(250, 204, 21, 0.12); }
.badge-stack { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.claimed-badge { font-family: var(--mono); font-size: 10px; color: var(--teal); margin-top: 7px; cursor: help; }
.c-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.c-metrics div { background: var(--bg2); border-radius: 11px; padding: 8px 7px; min-width: 0; overflow: hidden; text-align: center; }
.c-metrics .ml { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.c-metrics .mv { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.c-metrics .ml { font-size: 9.5px; color: var(--mut2); margin-top: 1px; }
.c-foot { display: flex; align-items: center; gap: 8px; }
.c-price { font-family: var(--mono); font-size: 13px; font-weight: 700; flex: 1; }
.c-price span { color: var(--mut2); font-size: 10.5px; font-weight: 400; }

/* ---------- buttons ---------- */
.btn {
  border: 0; border-radius: 999px; font-size: 13px; font-weight: 600;
  padding: 10px 18px; transition: all 0.15s; color: var(--txt);
}
.btn-primary { background: var(--black); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-duo); }
.btn-ghost { background: #fff; border: 1px solid var(--line2); }
.btn-ghost:hover { border-color: var(--mut2); transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: 11.5px; }
.btn-cyan { background: var(--cyan-soft); border: 1px solid rgba(0, 163, 157, 0.4); color: var(--teal); }
.btn-cyan:hover { background: rgba(37, 244, 238, 0.25); }
.btn-block { width: 100%; padding: 12px; font-size: 14px; }
.btn-icon {
  background: #fff; border: 1px solid var(--line2); color: var(--mut);
  border-radius: 999px; width: 26px; height: 26px; font-size: 12px; line-height: 1;
  transition: all 0.13s;
}
.btn-icon:hover { color: var(--txt); border-color: var(--mut2); }

/* ---------- campaigns ---------- */
.camp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.camp-card { padding: 20px; cursor: pointer; }
.camp-card:hover { border-color: rgba(254, 44, 85, 0.45); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(254, 44, 85, 0.08); }
.camp-card .cc-name { font-size: 15px; font-weight: 800; }
.camp-card .cc-brand { color: var(--mut); font-size: 12.5px; margin-top: 2px; }
.camp-card .cc-stats { display: flex; gap: 18px; margin-top: 14px; }
.camp-card .cc-stat .v { font-family: var(--mono); font-size: 14px; font-weight: 700; }
.camp-card .cc-stat .l { font-size: 10.5px; color: var(--mut2); }
.empty {
  text-align: center; padding: 60px 20px; color: var(--mut);
  border: 1px dashed var(--line2); border-radius: var(--radius);
}
.camp-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.camp-head .ch-meta { flex: 1; min-width: 240px; }
.camp-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: start; }
.stage-col { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 120px; }
.stage-col h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mut); padding: 4px 6px 10px; display: flex; justify-content: space-between;
}
.stage-col h4 .n { color: var(--txt); }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.pcard .p-top { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.pcard .p-name { font-size: 12px; font-weight: 600; line-height: 1.3; min-width: 0; }
.pcard .p-handle { font-family: var(--mono); font-size: 10px; color: var(--mut2); }
.pcard .p-actions { display: flex; gap: 5px; }
.back-link { background: none; border: 0; color: var(--mut); font-size: 12.5px; padding: 0; margin-bottom: 14px; display: inline-flex; gap: 6px; }
.back-link:hover { color: var(--txt); }

/* ---------- modal ---------- */
.modal-wrap {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: flex-start; justify-content: center;
  background: rgba(11, 11, 15, 0.34); backdrop-filter: blur(6px);
  padding: 6vh 20px; overflow-y: auto;
}
.modal-wrap.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 28px; width: 560px; max-width: 100%;
  box-shadow: 0 30px 90px rgba(11, 11, 15, 0.18), var(--shadow-duo);
  animation: pop 0.22s ease;
}
.modal .m-close { float: right; background: none; border: 0; color: var(--mut2); font-size: 20px; line-height: 1; }
.modal .m-close:hover { color: var(--txt); }
.modal h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.modal label { display: block; font-size: 12px; color: var(--mut); margin: 14px 0 6px; }
.modal input, .modal select, .modal textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--line2);
  border-radius: 12px; padding: 10px 12px; color: var(--txt); font-size: 13.5px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.modal input:focus, .modal textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.modal textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.prof-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.prof-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.prof-metrics div { background: var(--bg2); border-radius: 12px; padding: 11px 9px; min-width: 0; text-align: center; }
.prof-metrics .v { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.prof-metrics .l { font-size: 9.5px; color: var(--mut2); margin-top: 2px; }
.prof-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.aud-pill { background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: 11.5px; color: var(--mut); }

/* ---------- creator intelligence panels ---------- */
.prof-section { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 14px; }
.ps-head { font-size: 12.5px; font-weight: 800; margin-bottom: 14px; }
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.aud-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut2); margin-bottom: 9px; }
.split-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--bg2); }
.split-bar .sb-f { background: var(--pink); }
.split-bar .sb-m { background: var(--cyan); }
.split-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--mut); margin-top: 8px; }
.split-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 5px; vertical-align: middle; }
.split-legend .dot-f { background: var(--pink); }
.split-legend .dot-m { background: var(--cyan); }
.age-row { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.age-l { width: 64px; font-size: 11px; color: var(--mut); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.age-track { flex: 1; height: 7px; background: var(--bg2); border-radius: 4px; overflow: hidden; }
.age-track span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.age-v { width: 34px; text-align: right; font-family: var(--mono); font-size: 11px; color: var(--txt); flex-shrink: 0; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; }
.auth-num { font-family: var(--mono); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--green); line-height: 1.1; }
.auth-num span { font-size: 14px; color: var(--mut2); }
.auth-sub { font-size: 11px; color: var(--mut); margin-top: 4px; line-height: 1.5; }
.spark-svg { width: 100%; height: 34px; margin: 2px 0 4px; }
.spark-svg polyline { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .aud-grid { grid-template-columns: 1fr; gap: 14px; } .prof-metrics { grid-template-columns: repeat(3, 1fr); } }
.gmv-box {
  background: linear-gradient(95deg, rgba(37, 244, 238, 0.12), rgba(254, 44, 85, 0.07));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 18px;
}
.gmv-box .gv { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--teal); }
.gmv-box .gl { font-size: 11px; color: var(--mut); }
.fine { font-size: 10.5px; color: var(--mut2); line-height: 1.5; margin-top: 10px; }
.camp-pick { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.camp-pick button {
  text-align: left; background: var(--bg2); border: 1px solid var(--line2);
  border-radius: 12px; padding: 12px 14px; color: var(--txt); font-size: 13px;
  transition: all 0.13s;
}
.camp-pick button:hover { border-color: var(--pink); background: #fff; }
.camp-pick button span { display: block; font-size: 11px; color: var(--mut2); margin-top: 2px; }

/* ---------- calculator ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.slider-row { margin-bottom: 18px; }
.slider-row .s-head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 7px; }
.slider-row .s-head .s-val { font-family: var(--mono); color: var(--pink); font-weight: 700; }
input[type="range"] { width: 100%; accent-color: var(--pink); height: 4px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-out div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.calc-out .v { font-family: var(--mono); font-size: 19px; font-weight: 700; }
.calc-out .l { font-size: 10.5px; color: var(--mut2); margin-top: 3px; }
.calc-out div.big { grid-column: 1 / -1; border-color: rgba(0, 163, 157, 0.4); background: linear-gradient(95deg, rgba(37, 244, 238, 0.1), rgba(254, 44, 85, 0.05)); }
.calc-out div.big .v { color: var(--teal); font-size: 26px; }

/* ---------- compliance ---------- */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.comp-card { padding: 22px; }
.comp-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(11, 11, 15, 0.05); }
.comp-card .ci { font-size: 20px; margin-bottom: 10px; }
.comp-card h3 { margin-bottom: 6px; }
.comp-card p { color: var(--mut); font-size: 12.5px; line-height: 1.6; }

/* ---------- offers ---------- */
.offer-card { padding: 18px 20px; margin-bottom: 10px; display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.offer-card .o-meta { flex: 1; min-width: 220px; }
.offer-card .o-brand { font-size: 15px; font-weight: 800; }
.offer-card .o-camp { font-size: 12.5px; color: var(--mut); margin-top: 2px; }
.offer-card .o-note { font-size: 12.5px; color: var(--mut); margin-top: 8px; line-height: 1.5; }
.offer-card .o-terms { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.o-term { background: var(--bg2); border-radius: 11px; padding: 7px 12px; }
.o-term .v { font-family: var(--mono); font-size: 13.5px; font-weight: 700; }
.o-term .l { font-size: 9.5px; color: var(--mut2); }
.o-term.hot { background: var(--cyan-soft); }
.o-term.hot .v { color: var(--teal); }
.offer-actions { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.status-chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  border-radius: 999px; padding: 4px 10px; white-space: nowrap; display: inline-block;
}
.status-chip.new { color: var(--pink); border: 1px solid rgba(254, 44, 85, 0.35); background: var(--pink-soft); }
.status-chip.accepted { color: var(--green); border: 1px solid rgba(22, 163, 74, 0.35); background: rgba(22, 163, 74, 0.07); }
.status-chip.declined { color: var(--mut2); border: 1px solid var(--line2); }
.status-chip.escrow { color: var(--teal); border: 1px solid rgba(0, 163, 157, 0.4); background: var(--cyan-soft); }
.status-chip.negotiating { color: #b45309; border: 1px solid rgba(180, 83, 9, 0.35); background: rgba(250, 204, 21, 0.12); }
.offer-card.is-declined { opacity: 0.55; }
.o-counter { margin-top: 10px; font-size: 12px; color: var(--mut); }
.o-counter b { color: var(--txt); font-family: var(--mono); }
.doc-links { display: flex; gap: 10px; flex-wrap: wrap; }
.doc-links a { font-size: 13px; font-weight: 600; color: var(--txt); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 14px; text-decoration: none; transition: border-color .15s; }
.doc-links a:hover { border-color: var(--txt); }

/* ---------- earnings ---------- */
.etable { width: 100%; border-collapse: collapse; font-size: 13px; }
.etable th {
  text-align: left; font-family: var(--mono); font-size: 9.5px; color: var(--mut2);
  text-transform: uppercase; letter-spacing: 0.1em; padding: 9px 12px;
  border-bottom: 1px solid var(--line2);
}
.etable td { padding: 12px; border-bottom: 1px solid var(--line); }
.etable td.amt { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.etable tr:last-child td { border-bottom: 0; }

/* ---------- creator profile ---------- */
.cprof-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: start; }
.rate-row { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.rate-row input {
  width: 140px; background: var(--bg2); border: 1px solid var(--line2);
  border-radius: 12px; padding: 10px 12px; color: var(--txt); font-size: 14px;
  font-family: var(--mono); outline: none;
}
.rate-row input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }

/* ---------- monetization ---------- */
.pw-kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--pink); margin-bottom: 8px;
}
.pw-list { list-style: none; margin: 16px 0 6px; }
.pw-list li { padding: 7px 0 7px 24px; position: relative; color: var(--mut); font-size: 13.5px; }
.pw-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.pw-price { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 18px; }
.pw-price .v {
  font-family: var(--mono); font-size: 32px; font-weight: 700; color: var(--black);
  text-shadow: -1.5px 1px 0 rgba(37, 244, 238, 0.6), 1.5px -1px 0 rgba(254, 44, 85, 0.5);
}
.pw-price .l { font-size: 12px; color: var(--mut2); }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; }
.pay-opt {
  background: var(--bg2); border: 1px solid var(--line2); border-radius: 16px;
  padding: 20px 14px; text-align: center; transition: all 0.15s;
}
.pay-opt:hover { border-color: var(--pink); background: #fff; transform: translateY(-2px); }
.pay-opt b { display: block; font-size: 16px; margin-bottom: 3px; }
.pay-opt span { font-size: 11px; color: var(--mut2); }
.chk-processing { text-align: center; padding: 34px 10px; color: var(--mut); font-size: 13.5px; }
.spin {
  width: 28px; height: 28px; border: 3px solid var(--line2); border-top-color: var(--pink);
  border-radius: 50%; animation: rot 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes rot { to { transform: rotate(360deg); } }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.plan-box { display: flex; flex-direction: column; }
.plan-box.current { border: 1.5px solid var(--black); box-shadow: var(--shadow-duo); }
.plan-box .pb-name { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.plan-box .pb-price { font-family: var(--mono); font-size: 24px; font-weight: 700; margin: 8px 0 2px; }
.plan-box .pb-price span { font-size: 11px; color: var(--mut2); font-weight: 400; }
.plan-box ul { list-style: none; flex: 1; margin: 10px 0 16px; }
.plan-box li { font-size: 12.5px; color: var(--mut); padding: 5px 0 5px 20px; position: relative; }
.plan-box li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.yours-chip {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  background: var(--black); color: #fff; border-radius: 999px; padding: 3px 9px;
}
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; } }

/* ---------- account / settings ---------- */
.acct-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: start; }
.acct-card { padding: 24px; }
.acct-card h3 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.acct-card .ac-sub { font-size: 12.5px; color: var(--mut); margin-bottom: 16px; }
.acct-card label { display: block; font-size: 12px; color: var(--mut); margin: 14px 0 6px; }
.acct-card input, .acct-card select {
  width: 100%; background: var(--bg2); border: 1px solid var(--line2);
  border-radius: 12px; padding: 11px 13px; color: var(--txt); font-size: 14px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.acct-card input:focus, .acct-card select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.acct-card input:disabled { color: var(--mut2); background: #fafafb; }
.acct-card select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%239aa0ab'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.acct-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.acct-id-avatar { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--pink), #c01340); flex-shrink: 0; }
.acct-id-avatar.creator { background: linear-gradient(135deg, var(--teal), #0b8f8a); }
.acct-meta .nm { font-size: 16px; font-weight: 800; }
.acct-meta .em { font-family: var(--mono); font-size: 12px; color: var(--mut2); }
.acct-plan-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; border: 1px solid var(--line2); border-radius: 999px; padding: 6px 14px; margin-top: 4px; }
.acct-plan-pill.pro { background: var(--black); color: #fff; border-color: var(--black); }
.acct-danger { margin-top: 14px; border-color: rgba(254,44,85,0.25); }
.acct-danger h3 { color: var(--pink); }
.acct-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn-danger { background: #fff; border: 1px solid rgba(254,44,85,0.4); color: var(--pink); }
.btn-danger:hover { background: var(--pink-soft); transform: translateY(-1px); }
.acct-note { font-size: 11.5px; color: var(--mut2); line-height: 1.6; margin-top: 14px; font-family: var(--mono); }
.acct-demo-banner {
  background: linear-gradient(95deg, rgba(254,44,85,0.07), rgba(37,244,238,0.09));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 16px;
}
.acct-demo-banner strong { display: block; font-size: 14px; margin-bottom: 3px; }
.acct-demo-banner span { font-size: 12.5px; color: var(--mut); }

/* ---------- AI guide ---------- */
.guide-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 80;
  width: 54px; height: 54px; border-radius: 50%; border: 0;
  background: var(--black); color: #fff; display: none;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-duo), 0 10px 30px rgba(11,11,15,0.2);
  transition: transform 0.15s;
}
.app.in ~ .guide-fab { display: flex; }
.guide-fab:hover { transform: translateY(-2px) scale(1.04); }
.guide-fab::after {
  content: ""; position: absolute; top: 10px; right: 11px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan); animation: pulseDot 2.2s ease-in-out infinite;
}
.guide-panel {
  position: fixed; bottom: 90px; right: 24px; z-index: 81;
  width: 380px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 130px);
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(11,11,15,0.22), var(--shadow-duo);
  display: none; flex-direction: column; overflow: hidden; animation: pop 0.22s ease;
}
.guide-panel.open { display: flex; }
.guide-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.guide-title { font-size: 14px; font-weight: 800; }
.guide-sub { font-family: var(--mono); font-size: 10px; color: var(--mut2); margin-top: 2px; letter-spacing: 0.06em; }
.guide-close { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--mut2); }
.guide-close:hover { color: var(--txt); }
.guide-body { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.g-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.g-msg.user { align-self: flex-end; background: var(--black); color: #fff; border-bottom-right-radius: 4px; }
.g-msg.bot { align-self: flex-start; background: var(--bg2); color: var(--txt); border-bottom-left-radius: 4px; }
.g-msg.bot.thinking { color: var(--mut2); }
.g-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.g-chip { background: #fff; border: 1px solid var(--line2); color: var(--mut); font-size: 11.5px; padding: 6px 12px; border-radius: 999px; transition: all 0.13s; }
.g-chip:hover { border-color: var(--pink); color: var(--txt); }
.guide-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.guide-input input { flex: 1; background: var(--bg2); border: 1px solid var(--line2); border-radius: 999px; padding: 10px 14px; color: var(--txt); font-size: 13px; outline: none; }
.guide-input input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--black); color: #fff; border-radius: 999px; padding: 12px 20px; font-size: 13px;
  box-shadow: var(--shadow-duo); animation: pop 0.22s ease;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .camp-stats-row { grid-template-columns: repeat(2, 1fr); }
  .cprof-grid { grid-template-columns: 1fr; }
  .acct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .sidebar { width: 62px; padding: 20px 8px; }
  .nav-item span:not(.nav-dot) { display: none; }
  .nav-item { justify-content: center; }
  .nav-item .nav-dot { width: 9px; height: 9px; }
  .main { padding: 20px 16px 60px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .countdown-chip { display: none; }
}
@media (max-width: 560px) {
  /* declutter the top bar so the language switch and avatar never clip */
  .topbar { gap: 10px; padding: 0 14px; }
  .plan-chip { display: none; }
  .prof-metrics { grid-template-columns: repeat(3, 1fr); }
  .modal { padding: 22px 18px; border-radius: 20px; }
  .guide-panel { right: 12px; left: 12px; width: auto; bottom: 84px; }
  .guide-fab { bottom: 18px; right: 18px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { text-align: center; }
}

/* ============================================================
   APP POLISH. Bring the in-app screens up to the bold, fresh,
   premium feel of the new landing page. White and clean stays;
   this layer only sharpens hierarchy, rounds + softens cards,
   and uses the duo-glitch signature on a few key numbers.
   Loaded last so it refines the rules above without removing them.
   ============================================================ */

/* ---------- headings: bolder, Poppins display, tighter ---------- */
.view-head { margin-bottom: 26px; }
.view-head h1 {
  font-family: var(--font-display);
  font-size: 31px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.08;
}
.view-head p { font-size: 13.5px; margin-top: 6px; }

/* card / panel titles get the display face and more weight */
.card h3,
.acct-card h3,
.comp-card h3,
.ss-head h3 {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: -0.02em; font-size: 14px;
}
.ps-head, .guide-title {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: -0.02em;
}
.modal h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; font-size: 19px; }

/* ---------- cards: rounder, softer, crisper hover ---------- */
.card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.card:hover { border-color: var(--line2); }
/* KPI cards: bolder values, clear hierarchy, confident lift */
.kpi { border-radius: 20px; }
.kpi .k-label { letter-spacing: 0.12em; }
.kpi .k-val { font-size: 29px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.kpi:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(11, 11, 15, 0.08); }
/* the single highlighted KPI on each screen carries the duo-glitch */
.kpi.hot { border-color: rgba(254, 44, 85, 0.28); box-shadow: -3px 5px 20px rgba(37, 244, 238, 0.12), 3px 5px 20px rgba(254, 44, 85, 0.1); }

/* ---------- banner (T-1 / LIVE): rounder, stronger glitch count ---------- */
.banner { border-radius: var(--radius); }
.banner .b-count { text-shadow: var(--glitch); }
.banner .b-txt strong { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }

/* ---------- checklist "3 kroki do startu": softer, livelier ---------- */
.steps-strip { border-radius: var(--radius); }
.ss-item { border-radius: 14px; }
.ss-item:hover { border-color: var(--pink); box-shadow: 0 6px 16px rgba(254, 44, 85, 0.06); }

/* ---------- discover: crisper creator cards + score signature ---------- */
.ccard { border-radius: 18px; }
.ccard .c-name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 14.5px; }
.ccard:hover { box-shadow: 0 16px 38px rgba(11, 11, 15, 0.08); }
.c-metrics .mv { font-size: 13px; }
/* the fala/nafali Score pill is a signature element: give the strong tier a subtle glitch */
.score-pill { padding: 3px 9px; }
.score-pill.s-hi { text-shadow: var(--glitch-sm); }
.c-price { font-size: 13.5px; }

/* ---------- campaigns: rounder cards, display name ---------- */
.camp-card { border-radius: var(--radius); }
.camp-card .cc-name { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; }
.stage-col { border-radius: 16px; }
.pcard { border-radius: 14px; }

/* ---------- creator profile modal: panels + key numbers ---------- */
.prof-section { border-radius: 18px; }
.prof-head h2, .cprof-grid .prof-head h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; }
.auth-num { text-shadow: var(--glitch-sm); }
.gmv-box { border-radius: 16px; }
.gmv-box .gv { text-shadow: var(--glitch-sm); }

/* ---------- offers / Negocjuj flow: rounder, bolder brand ---------- */
.offer-card { border-radius: var(--radius); }
.offer-card .o-brand { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; }
.o-term { border-radius: 12px; }

/* ---------- earnings table: clearer amounts ---------- */
.etable td.amt { font-size: 13.5px; }

/* ---------- compliance (Zgodność): warmer hover ---------- */
.comp-card { border-radius: var(--radius); }
.comp-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(11, 11, 15, 0.07); }

/* ---------- account / settings: rounder fields + cards ---------- */
.acct-card { border-radius: var(--radius); }

/* ---------- monetization / plans: keep the locked feel premium ---------- */
.plan-box .pb-name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.plan-box .pb-price { text-shadow: var(--glitch-sm); }
.pw-price .v { text-shadow: var(--glitch-sm); }

/* ---------- AI guide panel: rounder bubbles, display title ---------- */
.guide-panel { border-radius: var(--radius); }
.g-msg { border-radius: 16px; }
.g-msg.user { border-bottom-right-radius: 5px; }
.g-msg.bot { border-bottom-left-radius: 5px; }

/* ---------- empty states: more confident, on-brand ---------- */
.empty {
  border-radius: var(--radius);
  border-color: var(--line2);
  background: linear-gradient(180deg, var(--bg2), #fff);
  padding: 56px 24px; font-size: 13.5px;
}
