/* SONARA — Manager-specific dashboard additions */

/* ─────────── Topbar: status pill ─────────── */
.mgr-status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 150ms var(--ease-out);
  white-space: nowrap;
}
.mgr-status-pill:hover { background: var(--muted); border-color: var(--muted-foreground); }
.mgr-status-pill .ic {
  color: #22c55e;
  font-size: 10px;
  text-shadow: 0 0 8px rgba(34,197,94,0.4);
  animation: ip-pulse 2.4s ease-in-out infinite;
}
.mgr-status-pill.open .label { color: var(--foreground); }
.mgr-status-pill.paused .ic { color: #f59e0b; text-shadow: 0 0 8px rgba(245,158,11,0.4); }

/* ─────────── Roster card list ─────────── */
.roster-list { display: flex; flex-direction: column; gap: 10px; }

.roster-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms var(--ease-out), background 160ms;
  position: relative;
  overflow: hidden;
}
.roster-row:hover {
  border-color: rgba(123,85,208,0.45);
  background: color-mix(in oklab, var(--card) 92%, var(--violet-bright, #7b55d0) 8%);
}
.roster-row.urgent {
  border-color: rgba(123,85,208,0.55);
  background: linear-gradient(90deg, rgba(123,85,208,0.08) 0%, rgba(123,85,208,0.02) 60%, transparent 100%), var(--card);
  box-shadow: inset 3px 0 0 0 var(--violet-bright, #7b55d0);
  padding-left: 18px;
}
.roster-row.stale {
  opacity: 0.85;
  border-style: dashed;
}

.rost-av {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6b4bb8, #2e1866);
  color: white;
  font-family: var(--font-display); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.rost-body {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.rost-row1 {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px;
  flex-wrap: wrap;
}
.rost-name { font-family: var(--font-display); font-weight: 600; color: var(--foreground); letter-spacing: -0.005em; }
.rost-handle { color: var(--muted-foreground); font-size: 13px; }
.rost-sep { color: color-mix(in oklab, var(--muted-foreground) 50%, transparent); }
.rost-rel {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.rost-rel.excl { background: rgba(123,85,208,0.16); color: var(--violet-bright, #7b55d0); border: 1px solid rgba(123,85,208,0.28); }
.rost-rel.nonexcl { background: var(--muted); color: var(--muted-foreground); border: 1px solid var(--border); }
.rost-rel.proj { background: rgba(245,158,11,0.14); color: #f59e0b; border: 1px solid rgba(245,158,11,0.28); }

.rost-row2 {
  font-size: 12px;
  color: var(--muted-foreground);
  display: inline-flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.rost-genres { color: var(--foreground); font-weight: 500; }

.rost-activity {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  margin-top: 2px;
}
.rost-activity .rost-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
}
.rost-activity.violet { color: var(--violet-bright, #7b55d0); }
.rost-activity.success { color: #22c55e; }
.rost-activity.warning { color: #f59e0b; }
.rost-activity.neutral { color: var(--muted-foreground); }
.rost-activity .rost-act-text { font-weight: 500; }
.rost-activity .rost-act-time {
  margin-left: 4px;
  font-size: 11.5px;
  color: var(--muted-foreground);
  font-weight: 400;
}

.rost-actions {
  display: inline-flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}

.rost-rel-mini {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(123,85,208,0.10);
  color: var(--violet-bright, #7b55d0);
  border: 1px solid rgba(123,85,208,0.22);
  font-weight: 500;
}

@media (max-width: 720px) {
  .roster-row { grid-template-columns: 40px 1fr; }
  .rost-actions { grid-column: 1 / 3; justify-content: flex-end; padding-top: 4px; border-top: 1px dashed var(--border); margin-top: 6px; }
}

/* ─────────── Role tag in messages (manager) ─────────── */
.role-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 4px;
}
.role-tag.artista { background: rgba(245,158,11,0.14); color: #f59e0b; }
.role-tag.producer { background: rgba(34,197,94,0.14); color: #22c55e; }
.role-tag.roster { background: rgba(123,85,208,0.18); color: var(--violet-bright, #7b55d0); }

/* ─────────── Discover Talents grid ─────────── */
.tal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 1180px) { .tal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .tal-grid { grid-template-columns: 1fr; } }

.tal-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: all 180ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
.tal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(123,85,208,0.45);
  box-shadow: 0 12px 28px -14px rgba(65,34,142,0.28);
}

.tal-head { display: flex; align-items: center; gap: 10px; }
.tal-av {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600;
  color: white;
  font-size: 13px;
  flex-shrink: 0;
}
.tal-av.g1 { background: linear-gradient(135deg, #41228e, #6b4bb8); }
.tal-av.g2 { background: linear-gradient(135deg, #2e1866, #f59e0b); }
.tal-av.g3 { background: linear-gradient(135deg, #6b4bb8, #16a34a); }
.tal-av.g4 { background: linear-gradient(135deg, #41228e, #ec4899); }
.tal-av.g5 { background: linear-gradient(135deg, #2e1866, #41228e); }

.tal-meta { flex: 1; min-width: 0; }
.tal-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em; color: var(--foreground); }
.tal-handle { font-size: 12px; color: var(--muted-foreground); margin-top: 1px; }

.tal-match {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(123,85,208,0.14);
  color: var(--violet-bright, #7b55d0);
  border: 1px solid rgba(123,85,208,0.28);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.tal-genres {
  display: flex; gap: 5px; flex-wrap: wrap;
}
.tal-chip {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--muted);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-weight: 500;
}

.tal-foot {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px;
  flex-wrap: wrap;
}
.tal-stat {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--muted-foreground);
}
.tal-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tal-badge.verified { background: rgba(123,85,208,0.16); color: var(--violet-bright, #7b55d0); }
.tal-badge.active { background: rgba(34,197,94,0.14); color: #22c55e; }
.tal-looking {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(245,158,11,0.16);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.28);
  margin-left: auto;
}

.tal-cta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px dashed var(--border);
  transition: color 180ms;
}
.tal-card:hover .tal-cta { color: var(--violet-bright, #7b55d0); border-top-color: rgba(123,85,208,0.32); }

/* ─────────── Stats card additions ─────────── */
.stat-sub {
  font-size: 11px;
  color: var(--muted-foreground);
  margin-top: 2px;
}
.stat.highlight {
  background: linear-gradient(135deg, rgba(123,85,208,0.10) 0%, transparent 80%), var(--background);
  border-color: rgba(123,85,208,0.32);
}
.stat.highlight .num {
  background: var(--gradient-text-violet);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─────────── Esplora — tabs + filter chrome ─────────── */
.tabs-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 18px;
  width: fit-content;
}
.tabs-bar .tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: 0;
  text-decoration: none;
  transition: all 150ms;
}
.tabs-bar .tab:hover { color: var(--foreground); }
.tabs-bar .tab.active {
  background: var(--violet);
  color: white;
  box-shadow: var(--shadow-violet-sm);
}
.tabs-bar .tab .count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
}
.tabs-bar .tab.active .count {
  background: rgba(255,255,255,0.20);
  color: white;
}

.filters-row {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 12.5px;
  color: var(--foreground);
  cursor: pointer;
  transition: all 150ms;
}
.filter-chip:hover { background: var(--muted); border-color: var(--muted-foreground); }
.filter-chip.active { background: rgba(123,85,208,0.10); border-color: rgba(123,85,208,0.38); color: var(--violet-bright, #7b55d0); }
.filter-chip svg { color: var(--muted-foreground); }
.filter-chip .v { color: var(--muted-foreground); font-size: 11.5px; }
.filter-chip.active .v { color: var(--violet-bright, #7b55d0); }

.filter-search {
  flex: 1; min-width: 220px; max-width: 320px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  color: var(--muted-foreground);
}
.filter-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--foreground); font-size: 13px; }
.filter-search input::placeholder { color: var(--muted-foreground); }

/* ─────────── Esplora — Artist cards (manager view, dense) ─────────── */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 1200px) { .artists-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .artists-grid { grid-template-columns: 1fr; } }

.artist-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0;
  overflow: hidden;
  transition: all 200ms var(--ease-out);
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.artist-card.clickable { cursor: pointer; }
.artist-card:hover {
  transform: translateY(-2px);
  border-color: rgba(123,85,208,0.45);
  box-shadow: 0 14px 32px -14px rgba(65,34,142,0.28);
}
.artist-cover {
  height: 110px;
  position: relative;
  display: flex; align-items: flex-end;
  padding: 16px;
  overflow: hidden;
}
.artist-cover.c1 { background: linear-gradient(135deg, #41228e 0%, #6b4bb8 60%, #f59e0b 100%); }
.artist-cover.c2 { background: linear-gradient(135deg, #2e1866 0%, #41228e 50%, #16a34a 100%); }
.artist-cover.c3 { background: linear-gradient(135deg, #6b4bb8 0%, #2e1866 60%, #ec4899 100%); }
.artist-cover.c4 { background: linear-gradient(135deg, #f59e0b 0%, #41228e 70%); }
.artist-cover.c5 { background: linear-gradient(135deg, #16a34a 0%, #2e1866 70%); }
.artist-cover.c6 { background: linear-gradient(135deg, #6b4bb8 0%, #ec4899 80%); }
.artist-cover::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 70% 20%, rgba(255,255,255,0.18), transparent 60%);
}
.artist-cover .look-tag {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: #41228e;
  z-index: 2;
}
.artist-av {
  position: relative;
  z-index: 2;
  width: 54px; height: 54px;
  border-radius: 999px;
  background: var(--card);
  color: var(--violet);
  border: 3px solid var(--card);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.artist-info {
  padding: 12px 16px 14px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.artist-info .nm-row {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.artist-info .nm {
  font-family: var(--font-display); font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.artist-info .hd { font-size: 12.5px; color: var(--muted-foreground); }
.artist-info .ct { font-size: 12px; color: var(--muted-foreground); }

.artist-genres {
  display: flex; gap: 5px; flex-wrap: wrap;
}

.artist-stats {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--muted-foreground);
  padding-top: 8px;
  margin-top: auto;
  border-top: 1px dashed var(--border);
}
.artist-stats > * { display: inline-flex; align-items: center; gap: 4px; }
.artist-stats .sep { color: color-mix(in oklab, var(--muted-foreground) 40%, transparent); }
.artist-stats .check { color: #22c55e; }

.artist-actions {
  display: flex; gap: 6px;
  padding: 0 14px 14px;
}
.artist-actions .ip-btn { flex: 1; justify-content: center; }

/* manager-view banner inside artist profile (UC-M3) */
.mgr-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.30);
  color: var(--foreground);
  font-size: 13px;
  margin-bottom: 14px;
}
.mgr-banner.neutral {
  background: var(--muted);
  border-color: var(--border);
  color: var(--muted-foreground);
}
.mgr-banner .ic {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(34,197,94,0.18);
  color: #22c55e;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mgr-banner.neutral .ic { background: var(--card); color: var(--muted-foreground); }

/* ─────────── Roster page — sub-tabs (mirrors tabs-bar but smaller) ─────────── */
.sub-tabs {
  display: flex; align-items: center; gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: var(--muted);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  width: fit-content;
}
.sub-tabs .stab {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: all 150ms;
  display: inline-flex; align-items: center; gap: 6px;
}
.sub-tabs .stab.active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}
.sub-tabs .stab .c { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); }
.sub-tabs .stab.active .c { background: rgba(123,85,208,0.16); color: var(--violet-bright, #7b55d0); }

/* page header summary line (e.g. Roster recap) */
.page-summary {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-bottom: 18px;
}
.page-summary strong { color: var(--foreground); font-weight: 600; }
.page-summary .sep { color: color-mix(in oklab, var(--muted-foreground) 40%, transparent); margin: 0 8px; }

/* simple page heading */
.page-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 8px;
}
.page-heading h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--foreground);
}
.page-heading .sub { font-size: 14px; color: var(--muted-foreground); margin-top: 4px; }
.page-heading .right { display: flex; gap: 8px; align-items: center; }

/* ─────────── Roster: pending message blockquote ─────────── */
.pending-msg {
  margin: 8px 0 0;
  padding: 10px 14px;
  border-left: 3px solid rgba(123,85,208,0.50);
  background: rgba(123,85,208,0.06);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--foreground);
  font-style: italic;
  line-height: 1.5;
}

/* ─────────── Empty / informational footer card ─────────── */
.empty-add {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: var(--card);
  font-size: 13px;
  color: var(--muted-foreground);
}
.empty-add strong { color: var(--foreground); font-weight: 600; }
.empty-add a, .empty-add button {
  text-decoration: none;
}

/* ─────────── INVITE MODAL ─────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: modal-fade-in 180ms var(--ease-out);
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-card {
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 48px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.45);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: modal-slide-up 220ms var(--ease-spring);
}
@keyframes modal-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-head {
  display: flex; align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
  display: inline-flex; align-items: center; gap: 10px;
}
.modal-icon {
  width: 30px; height: 30px;
  border-radius: 10px;
  background: rgba(123,85,208,0.14);
  color: var(--violet-bright, #7b55d0);
  border: 1px solid rgba(123,85,208,0.28);
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-close {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
  transition: all 120ms;
}
.modal-close:hover { background: var(--border); color: var(--foreground); }

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-foot {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--background);
  flex-shrink: 0;
}
.modal-foot .ip-btn { padding: 9px 16px; font-size: 13px; }

/* Invite-specific */
.invite-artist {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--background);
  margin-bottom: 22px;
}
.invite-av {
  width: 50px; height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6b4bb8, #2e1866);
  color: white;
  font-family: var(--font-display); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.invite-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.invite-nm { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--foreground); letter-spacing: -0.01em; }
.invite-hd { font-size: 13px; color: var(--muted-foreground); }
.invite-warn, .invite-good {
  display: inline-flex; align-items: flex-start; gap: 6px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1.4;
  margin-top: 2px;
}
.invite-warn {
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.28);
  color: #b87a08;
}
:root.dark .invite-warn { color: #fbbf24; }
.invite-warn svg { color: #f59e0b; flex-shrink: 0; margin-top: 2px; }
.invite-good {
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.28);
  color: #15803d;
}
:root.dark .invite-good { color: #22c55e; }
.invite-good svg { color: #22c55e; flex-shrink: 0; margin-top: 2px; }

.invite-section { margin-bottom: 22px; }
.invite-section:last-child { margin-bottom: 0; }

.invite-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 10px;
}
.invite-label-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.invite-label-row .invite-label { margin-bottom: 0; }

.invite-radios { display: flex; flex-direction: column; gap: 8px; }
.invite-radio {
  display: grid;
  grid-template-columns: 1fr 18px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--background);
  cursor: pointer;
  transition: border-color 140ms, background 140ms;
}
.invite-radio:hover { border-color: var(--muted-foreground); }
.invite-radio input { display: none; }
.invite-radio.active {
  border-color: var(--violet-bright, #7b55d0);
  background: rgba(123,85,208,0.06);
}
.invite-radio-meta { min-width: 0; }
.invite-radio-t {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 2px;
}
.invite-radio-s {
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 1.4;
}
.invite-radio-dot {
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--card);
  transition: all 140ms;
  position: relative;
  justify-self: end;
}
.invite-radio.active .invite-radio-dot {
  border-color: var(--violet-bright, #7b55d0);
  background: var(--violet-bright, #7b55d0);
  box-shadow: inset 0 0 0 3px var(--card);
}

.invite-templates { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.invite-tpl {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 140ms;
}
.invite-tpl:hover { background: var(--muted); color: var(--foreground); }
.invite-tpl.active {
  background: rgba(123,85,208,0.14);
  border-color: rgba(123,85,208,0.34);
  color: var(--violet-bright, #7b55d0);
}

.invite-textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  min-height: 130px;
  outline: 0;
  transition: border-color 140ms;
}
.invite-textarea:focus { border-color: var(--violet-bright, #7b55d0); }
.invite-textarea::placeholder { color: var(--muted-foreground); }

.invite-help-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.invite-counter {
  font-size: 12px;
  color: var(--muted-foreground);
  font-weight: 500;
}
.invite-counter.warn { color: #f59e0b; }
.invite-help {
  font-size: 11.5px;
  color: var(--muted-foreground);
}

.invite-info-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--muted);
  border: 1px solid var(--border);
}
.invite-info-row {
  display: inline-flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.invite-info-row svg { color: var(--violet-bright, #7b55d0); margin-top: 2px; flex-shrink: 0; }
.invite-info-row strong { color: var(--foreground); font-weight: 600; }

/* Success state */
.modal-success {
  padding: 42px 32px 32px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.modal-success-ic {
  width: 72px; height: 72px;
  border-radius: 999px;
  background: rgba(34,197,94,0.14);
  color: #22c55e;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid rgba(34,197,94,0.30);
  margin-bottom: 6px;
  animation: pop-in 240ms var(--ease-spring);
}
@keyframes pop-in {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-success-t {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.modal-success-s {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 440px;
}
.modal-success-s strong { color: var(--foreground); font-weight: 600; }
.modal-success-actions {
  display: flex; gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.modal-success-actions .ip-btn { padding: 10px 18px; font-size: 13px; text-decoration: none; }
