/* =====================================================================
   Prime Influencer — Data-Poetic Prototype
   Tokens lifted from apps/web/src/app/globals.css (Poki-inspired)
   ===================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #F5F7F7;
  --bg-canvas: #FAFAFC;
  --ink: #002B50;            /* navy text */
  --ink-soft: #738A9E;       /* steel gray */
  --line: #E6E9EE;
  --line-strong: #CCCCCC;

  --cyan: #009CFF;
  --cyan-dark: #0082CC;
  --indigo: #1C1CC9;
  --indigo-soft: #6464E8;
  --lavender: #EAC2FB;
  --lavender-deep: #C9A3E8;
  --pink: #FFC3D6;
  --pink-hot: #FF6FA3;
  --mint: #79FEE7;
  --mint-deep: #1FD6B4;
  --yellow: #FEE960;
  --yellow-deep: #F2C411;
  --coral: #FF7A59;
  --red: #FF4444;

  --shadow-sm: 0 4px 14px rgba(0, 43, 80, 0.06);
  --shadow-md: 0 12px 36px rgba(0, 43, 80, 0.10);
  --shadow-lg: 0 24px 60px rgba(0, 43, 80, 0.16);
  --shadow-pop: 0 30px 80px rgba(28, 28, 201, 0.22);

  --r-pill: 999px;
  --r-button: 30px;
  --r-input: 8px;
  --r-card: 18px;
  --r-card-lg: 28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

.font-display {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Top app chrome (screen switcher) ---------- */
.app-chrome {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(0,43,80,0.06);
}
.app-chrome button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: color .2s, background .2s, transform .2s;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.app-chrome button:hover { color: var(--ink); }
.app-chrome button.active {
  background: var(--ink);
  color: white;
  box-shadow: 0 6px 18px rgba(0,43,80,0.25);
}

/* ---------- Screen container ---------- */
.screen {
  min-height: 100vh;
  width: 100%;
}

/* ---------- Animated background (decorative) ---------- */
.bg-poetry {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-poetry .blob {
  position: absolute;
  width: 540px; height: 540px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: blob-float 24s ease-in-out infinite;
}
.bg-poetry .blob.b1 { background: var(--lavender); top: -180px; left: -120px; }
.bg-poetry .blob.b2 { background: var(--mint); bottom: -200px; right: -150px; animation-delay: -8s; }
.bg-poetry .blob.b3 { background: var(--pink); top: 40%; left: 50%; animation-delay: -16s; opacity: 0.30; }

@keyframes blob-float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(60px,-40px) scale(1.08); }
  66%     { transform: translate(-40px,30px) scale(0.94); }
}

/* dotted background */
.bg-dots {
  background-image: radial-gradient(rgba(0,43,80,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--r-button);
  padding: 12px 22px;
  font-weight: 700; font-size: 14px;
  transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 30px rgba(0,43,80,0.25);
}
.btn-primary:hover { background: #001a33; box-shadow: 0 14px 36px rgba(0,43,80,0.32); }
.btn-cyan {
  background: var(--cyan);
  color: white;
  box-shadow: 0 12px 30px rgba(0, 156, 255, 0.36);
}
.btn-cyan:hover { background: var(--cyan-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(0,43,80,0.16);
}
.btn-ghost:hover { background: rgba(0,43,80,0.04); }
.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(254,233,96,0.55);
}

.btn-sm { padding: 8px 14px; font-size: 12.5px; }

/* ---------- Reveal animations (scroll-triggered) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i,0) * 80ms); }

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.shimmer {
  background: linear-gradient(90deg, #EAE9EE 0%, #F6F5F9 50%, #EAE9EE 100%);
  background-size: 800px 100%;
  animation: shimmer 1.6s linear infinite;
}

/* ---------- Sidebar (app shell) ---------- */
.app-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--line);
  background: white;
  padding: 18px 14px;
  display: flex; flex-direction: column;
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
}
.sidebar .logo {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 18px;
  font-weight: 800; font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.sidebar .nav-group { margin-top: 18px; }
.sidebar .nav-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-soft);
  padding: 8px 10px;
}
.sidebar .nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; margin-bottom: 2px;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink);
  transition: background .15s;
  cursor: pointer;
}
.sidebar .nav-item:hover { background: var(--bg-soft); }
.sidebar .nav-item.active {
  background: var(--ink);
  color: white;
}
.sidebar .nav-item.active .nav-icon { color: var(--mint); }
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--mint);
  color: var(--ink);
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
}

.workspace-card {
  margin-top: auto;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lavender), var(--pink));
  font-size: 12px;
  color: var(--ink);
}
.workspace-card .ws-name { font-weight: 700; }

/* ---------- Main content ---------- */
.main {
  background: var(--bg-canvas);
  padding: 24px 32px 80px;
  position: relative;
  min-width: 0;
}
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 24px;
}
.topbar .search {
  flex: 1; max-width: 480px;
  display: flex; align-items: center; gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  color: var(--ink-soft);
  font-size: 13px;
}
.topbar .search input {
  border: 0; outline: 0; background: transparent;
  flex: 1; color: var(--ink); font-family: inherit; font-size: 13px;
}
.topbar .avatar {
  width: 38px; height: 38px; border-radius: 999px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  color: white; font-weight: 700;
  display: grid; place-items: center;
  font-size: 13px;
}
.topbar .bell {
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center;
  background: white;
  border: 1px solid var(--line);
  position: relative;
}
.topbar .bell::after {
  content: '';
  position: absolute; top: 9px; right: 10px;
  width: 8px; height: 8px; background: var(--coral); border-radius: 999px;
  border: 2px solid white;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px; font-weight: 700; letter-spacing: -0.025em;
  margin: 0;
}
.page-subtitle {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 4px;
}

/* ---------- Cards ---------- */
.card {
  background: white;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: 20px;
}
.card-elevated {
  background: white;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  padding: 20px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card-elevated:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0,43,80,0.08); }

/* ---------- KPI card ---------- */
.kpi {
  position: relative;
  background: white;
  border-radius: var(--r-card);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.kpi:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.kpi .kpi-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.kpi .kpi-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1;
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}
.kpi .kpi-foot {
  margin-top: 12px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-soft);
}
.kpi-delta {
  display: inline-flex; align-items: center; gap: 2px;
  font-weight: 700; font-size: 12px;
  padding: 2px 8px; border-radius: 999px;
}
.kpi-delta.up   { background: rgba(31,214,180,0.18); color: #0a8a72; }
.kpi-delta.down { background: rgba(255,68,68,0.12); color: #B12B2B; }

.kpi-decor {
  position: absolute;
  right: -16px; top: -16px;
  width: 110px; height: 110px;
  border-radius: 50%;
  opacity: 0.10;
  filter: blur(6px);
}

/* ---------- Pill / Badge ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.01em;
}
.pill-cyan   { background: rgba(0,156,255,0.12); color: var(--cyan-dark); }
.pill-mint   { background: rgba(31,214,180,0.18); color: #0a8a72; }
.pill-yellow { background: rgba(242,196,17,0.16); color: #856200; }
.pill-pink   { background: rgba(255,111,163,0.16); color: #B0457A; }
.pill-lav    { background: rgba(201,163,232,0.20); color: #5E3A8A; }
.pill-ink    { background: rgba(0,43,80,0.08); color: var(--ink); }
.pill-dark   { background: rgba(255,255,255,0.14); color: white; backdrop-filter: blur(8px); }

/* ---------- Sparkline ---------- */
.spark {
  width: 100%; height: 44px;
  display: block;
}
.spark .area { fill: url(#sparkFill); }
.spark .line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* draw-on animations */
.draw-on {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  animation: draw 1.4s cubic-bezier(.5,.05,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* bar grow */
.grow-h {
  transform-origin: bottom;
  animation: grow-h 1.1s cubic-bezier(.4,.05,.2,1) forwards;
  animation-delay: var(--d, 0s);
  transform: scaleY(0);
}
@keyframes grow-h { to { transform: scaleY(1); } }

/* ---------- AI thinking ---------- */
.ai-thinking {
  display: inline-flex; gap: 4px;
  align-items: center;
}
.ai-thinking .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--indigo);
  animation: think 1s ease-in-out infinite;
}
.ai-thinking .dot:nth-child(2) { animation-delay: 0.15s; background: var(--cyan); }
.ai-thinking .dot:nth-child(3) { animation-delay: 0.3s; background: var(--pink-hot); }
@keyframes think {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-6px); opacity: 1; }
}

/* ---------- AI orb (decorative) ---------- */
.orb {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cyan), var(--indigo), var(--pink-hot), var(--yellow), var(--cyan));
  animation: spin 8s linear infinite;
  filter: blur(0.5px);
}
.orb::after {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 50%;
  background: white;
}
.orb::before {
  content: '';
  position: absolute; inset: -10px;
  border-radius: 50%;
  background: inherit;
  filter: blur(18px);
  opacity: 0.6;
  z-index: -1;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* small variant */
.orb-sm { width: 32px; height: 32px; }
.orb-sm::after { inset: 4px; }

/* ---------- Form ---------- */
.input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--r-input);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: white;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,156,255,0.16);
}
.label {
  font-size: 12px; font-weight: 600;
  color: var(--ink); display: block; margin-bottom: 6px;
}

/* ---------- Table ---------- */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-soft);
  text-align: left; padding: 12px 14px;
  background: var(--bg-soft);
}
.tbl th:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.tbl th:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
.tbl td { padding: 14px; font-size: 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--bg-soft); }

/* ---------- Match score circle ---------- */
.match-circle { transform: rotate(-90deg); }
.match-circle .track { fill: none; stroke: var(--line); stroke-width: 5; }
.match-circle .fill { fill: none; stroke-linecap: round; stroke-width: 5; }

/* ---------- Marquee for landing ---------- */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  gap: 56px;
}

/* avatar stack */
.avatar-stack { display: flex; }
.avatar-stack .av {
  width: 28px; height: 28px; border-radius: 999px;
  border: 2px solid white;
  margin-left: -8px;
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  color: white; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.avatar-stack .av:first-child { margin-left: 0; }

/* hover floating */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-y { animation: float 4.5s ease-in-out infinite; }
.float-y.d1 { animation-delay: -1s; }
.float-y.d2 { animation-delay: -2s; }
.float-y.d3 { animation-delay: -3s; }

/* hidden scrollbars */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* utility */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 28px; } .mb-8 { margin-bottom: 40px; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: var(--ink-soft); }
.bold { font-weight: 700; }
.semibold { font-weight: 600; }
.title-xl { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.title-lg { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.title-md { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
.cap-label { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* ─────────────────────────────────────────────────────────────────────
   User menu (popover) — anchored to the topbar avatar
   ───────────────────────────────────────────────────────────────────── */
.um-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .12s;
}
.um-trigger:hover { border-color: rgba(0,43,80,0.18); box-shadow: 0 4px 14px rgba(0,43,80,0.06); }
.um-trigger:active { transform: translateY(1px); }
.um-trigger.open { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,43,80,0.08); }
.um-trigger .av {
  width: 30px; height: 30px; border-radius: 999px;
  color: white; font-weight: 800; font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  display: grid; place-items: center;
  letter-spacing: -0.02em;
  position: relative;
}
.um-trigger .av::after {
  content: ''; position: absolute; right: -1px; bottom: -1px;
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--mint-deep); border: 2px solid white;
}
.um-trigger .who { text-align: left; }
.um-trigger .who .nm { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.um-trigger .who .role {
  font-size: 10px; color: var(--ink-soft); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 1px;
}
.um-trigger .who .role .b {
  font-size: 8.5px; font-weight: 800;
  background: var(--bg-soft); color: var(--ink);
  padding: 0 5px; border-radius: 4px;
  letter-spacing: 0.06em;
}
.um-trigger .chev { color: var(--ink-soft); opacity: 0.7; }
@media (max-width: 1180px) {
  .um-trigger .who { display: none; }
  .um-trigger { padding: 4px; }
}

.um-pop {
  position: fixed;
  z-index: 1000;
  width: 320px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,43,80,0.22), 0 4px 14px rgba(0,43,80,0.08);
  overflow: hidden;
  animation: umIn .18s cubic-bezier(.4,0,.2,1);
  transform-origin: top right;
}
@keyframes umIn {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.um-pop .um-head {
  position: relative;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, rgba(0,156,255,0.06), rgba(28,28,201,0.06));
  border-bottom: 1px solid var(--line);
}
.um-pop .um-head::before {
  content: '';
  position: absolute; left: -40px; top: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,111,163,0.18), transparent 65%);
  filter: blur(8px);
  pointer-events: none;
}
.um-pop .um-head .top {
  display: flex; gap: 12px; align-items: center;
  position: relative;
}
.um-pop .um-head .av {
  width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 17px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.um-pop .um-head .meta { flex: 1; min-width: 0; }
.um-pop .um-head .meta .nm {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 15px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  display: flex; align-items: center; gap: 5px;
}
.um-pop .um-head .meta .verified { color: var(--cyan); display: inline-grid; place-items: center; }
.um-pop .um-head .meta .email {
  font-size: 11.5px; color: var(--ink-soft);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.um-pop .um-head .ws-chip {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
}
.um-pop .um-head .ws-chip .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--cyan);
}
.um-pop .um-head .ws-chip.creator .dot { background: var(--mint-deep); }
.um-pop .um-head .ws-chip .role-tag {
  margin-left: auto;
  font-size: 9px; font-weight: 800;
  background: var(--ink); color: white;
  padding: 2px 6px; border-radius: 4px;
  letter-spacing: 0.08em;
}

.um-pop .um-plan {
  margin: 10px 0 0;
  padding: 8px 10px;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 10px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  position: relative;
}
.um-pop .um-plan svg { color: var(--yellow-deep); }
.um-pop .um-plan b { color: var(--ink); font-weight: 700; }
.um-pop .um-plan .upgrade {
  margin-left: auto;
  color: var(--cyan-dark);
  font-weight: 700;
  cursor: pointer;
}

.um-list { padding: 6px; }
.um-list .item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: background .12s;
}
.um-list .item:hover { background: var(--bg-soft); }
.um-list .item .ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.um-list .item:hover .ic { color: var(--ink); }
.um-list .item .kbd {
  margin-left: auto;
  font-size: 10px;
  font-family: 'Inter', monospace;
  color: var(--ink-soft);
  background: var(--bg-soft);
  padding: 2px 6px; border-radius: 5px;
  font-weight: 600;
}
.um-list .item .pill {
  margin-left: auto;
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 5px;
}
.um-list .item .pill.new { background: var(--mint); color: var(--ink); }
.um-list .item .pill.count { background: var(--coral); color: white; }
.um-list .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.um-list .group-label {
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 10px 10px 4px;
}

.um-list .item.danger { color: #B12B2B; }
.um-list .item.danger .ic { background: rgba(255,68,68,0.10); color: #B12B2B; }
.um-list .item.danger:hover { background: rgba(255,68,68,0.06); }

.um-list .switch {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(31,214,180,0.10), rgba(0,156,255,0.10));
  border-radius: 10px;
  border: 1px solid rgba(31,214,180,0.25);
  cursor: pointer;
  transition: transform .12s, box-shadow .15s;
}
.um-list .switch:hover { box-shadow: 0 6px 18px -10px rgba(0,43,80,0.18); transform: translateY(-1px); }
.um-list .switch .ic {
  width: 30px; height: 30px; border-radius: 8px;
  background: white;
  display: grid; place-items: center;
  color: var(--indigo);
  flex-shrink: 0;
}
.um-list .switch .copy { font-size: 12px; line-height: 1.3; }
.um-list .switch .copy b { font-weight: 700; color: var(--ink); }
.um-list .switch .copy span { font-size: 10.5px; color: var(--ink-soft); display: block; }
.um-list .switch .arr { margin-left: auto; color: var(--indigo); }

.um-foot {
  padding: 8px 14px 12px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px; color: var(--ink-soft);
}
.um-foot a { color: var(--ink); font-weight: 600; }

/* Backdrop (transparent, just catches outside clicks) */
.um-backdrop {
  position: fixed; inset: 0; z-index: 999;
}

/* Sign-out modal styling overrides */
.um-signout-modal {
  text-align: left;
}
.um-signout-modal .so-warn {
  display: flex; gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255,233,96,0.18), rgba(255,122,89,0.10));
  border: 1px solid rgba(242,196,17,0.30);
  border-radius: 12px;
  margin-top: 14px;
}
.um-signout-modal .so-warn .ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--yellow);
  display: grid; place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}
.um-signout-modal .so-warn .copy { font-size: 12px; line-height: 1.5; }
.um-signout-modal .so-warn .copy b { color: var(--ink); font-weight: 700; }

/* ---------- Responsive ---------- */
/* Auth side-by-side collapses */
@media (max-width: 980px) {
  .screen[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* App-shell narrows sidebar then collapses */
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 224px 1fr; }
  .main { padding: 20px 22px 80px; }
}
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
