@charset "UTF-8";

:root {
  --ink: #0b1014;
  --muted: #687078;
  --line: #e4e6e8;
  --lime: #ed1c24;
  --green: #b1141b;
  --persa-red: #ed1c24;
  --persa-red-dark: #aa1118;
  --persa-black: #080d11;
  --persa-soft-red: #fff0f1;
  --radius: 12px;
}

body {
  color: #171b1f;
  background: #f2f3f4;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-color: rgba(237, 28, 36, .5);
}

#app {
  background:
    radial-gradient(circle at 80% 0, rgba(237, 28, 36, .055), transparent 30rem),
    #f2f3f4;
}

.sidebar {
  background:
    radial-gradient(circle at 30% 14%, rgba(237, 28, 36, .13), transparent 10rem),
    linear-gradient(180deg, #090e12 0%, #11161a 100%);
  border-top: 4px solid var(--persa-red);
  box-shadow: 12px 0 35px rgba(5, 8, 10, .09);
  animation: v2-sidebar-in .34s cubic-bezier(.2, .75, .2, 1) both;
}

.brand {
  letter-spacing: .4px;
  font-style: italic;
}

.brand-logo {
  width: 52px;
  height: 52px;
  padding: 2px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 24px rgba(0, 0, 0, .28);
  transform: rotate(-1deg);
}

.brand-logo img {
  border-radius: 8px;
}

.brand > div > span {
  color: #b2b7bb;
  letter-spacing: 2px;
  font-style: normal;
}

.workspace-label {
  color: #777f85;
}

.nav-item {
  color: #b9bec2;
  border-left: 2px solid transparent;
  border-radius: 7px;
  transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .055);
  transform: translateX(3px);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(100deg, var(--persa-red), #c5121a);
  border-left-color: #fff;
  box-shadow: 0 8px 18px rgba(237, 28, 36, .2);
}

.nav-item.active b {
  color: #fff;
  background: rgba(0, 0, 0, .2);
}

.green-dot,
.demo-badge > span {
  background: var(--persa-red);
  box-shadow: 0 0 0 0 rgba(237, 28, 36, .45);
  animation: v2-pulse 2.2s ease-out infinite;
}

.profile-avatar {
  color: #fff;
  border-color: var(--persa-red);
  background: rgba(237, 28, 36, .12);
}

.reset:hover {
  color: #fff;
}

.topbar {
  color: #fff;
  background: var(--persa-black);
  border-bottom-color: rgba(255, 255, 255, .08);
  animation: v2-fade-down .28s ease-out both;
}

.breadcrumb,
.breadcrumb strong {
  color: #d5d9dc;
}

.breadcrumb span {
  color: var(--persa-red);
}

.demo-badge {
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
}

.page-heading {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(110deg, #0b1014 0%, #11171b 58%, #200b0e 100%);
  padding-top: 31px;
  padding-bottom: 31px;
  animation: v2-reveal .38s .03s ease-out both;
}

.page-heading::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -115px;
  width: 280px;
  height: 280px;
  border: 34px solid rgba(237, 28, 36, .09);
  border-radius: 50%;
  pointer-events: none;
}

.page-heading::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--persa-red) 0 22%, transparent 65%);
}

.page-heading > * {
  position: relative;
  z-index: 1;
}

.page-heading h1 {
  letter-spacing: -.9px;
}

.page-heading p,
.heading-stat span {
  color: #adb3b7;
}

.eyebrow {
  color: #ff4a50;
}

.heading-stat strong {
  color: #fff;
}

.inbox-layout,
.metrics-surface,
.followup-surface {
  animation: v2-surface-in .4s .07s cubic-bezier(.2, .75, .2, 1) both;
}

.inbox-layout {
  margin-top: 22px;
  border-color: #dedfe1;
  border-top: 2px solid var(--persa-red);
  box-shadow: 0 15px 45px rgba(11, 16, 20, .08);
}

.conversation-column,
.detail-column,
.chat-header,
.composer-wrap {
  background: #fff;
}

.search {
  background: #f4f5f6;
  border-color: #e7e8ea;
}

.channel-filters button {
  transition: color .16s ease, border-color .16s ease;
}

.channel-filters button.selected {
  color: var(--persa-red-dark);
  border-bottom-color: var(--persa-red);
}

.conversation {
  transition: transform .17s ease, background .17s ease, box-shadow .17s ease;
}

.conversation:hover {
  z-index: 1;
  background: #fafafa;
  box-shadow: 0 7px 18px rgba(10, 14, 17, .06);
  transform: translateX(3px);
}

.conversation.selected {
  background: linear-gradient(90deg, var(--persa-soft-red), #fff 84%);
}

.conversation.selected::before {
  width: 4px;
  background: var(--persa-red);
}

.unread {
  background: var(--persa-red);
  box-shadow: 0 0 0 0 rgba(237, 28, 36, .4);
  animation: v2-pulse 2.2s ease-out infinite;
}

.chat-column {
  background: #f7f7f7;
}

.messages {
  background-color: #f7f7f7;
  background-image:
    linear-gradient(rgba(237, 28, 36, .018), rgba(237, 28, 36, .018)),
    radial-gradient(rgba(12, 16, 19, .055) 1px, transparent 1px);
}

.bubble {
  border-color: #e3e4e5;
  box-shadow: 0 5px 16px rgba(10, 14, 17, .045);
  animation: v2-message-in .22s ease-out both;
}

.message:nth-last-child(2) .bubble {
  animation-delay: .04s;
}

.message:last-child .bubble {
  animation-delay: .08s;
}

.out .bubble {
  color: #fff;
  background: linear-gradient(135deg, #252a2e, #111619);
  border-color: #161b1e;
}

.out .message-time {
  color: #bfc4c7;
}

#message-form:focus-within {
  border-color: rgba(237, 28, 36, .55);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, .08);
}

.send-button {
  color: #fff;
  background: var(--persa-red);
  box-shadow: 0 7px 15px rgba(237, 28, 36, .2);
}

.send-button:hover {
  transform: translateY(-1px) rotate(-2deg);
}

.detail-heading {
  border-top: 3px solid var(--persa-red);
  padding-top: 19px;
}

.detail-heading > span {
  color: #a8171d;
}

.button.primary {
  color: #fff;
  background: linear-gradient(105deg, var(--persa-red), #c41119);
  border-color: #d5131b;
  box-shadow: 0 7px 15px rgba(237, 28, 36, .15);
}

.button.primary:hover {
  box-shadow: 0 10px 22px rgba(237, 28, 36, .23);
  transform: translateY(-2px);
}

.button.secondary:hover {
  color: var(--persa-red-dark);
  border-color: rgba(237, 28, 36, .42);
  background: var(--persa-soft-red);
}

.text-button {
  color: var(--persa-red-dark);
}

.conversion-confirmed {
  color: #a5141a;
  background: var(--persa-soft-red);
  border: 1px solid #f5c9cb;
  animation: v2-confirm .34s cubic-bezier(.2, .8, .2, 1) both;
}

.linked-channels button.active {
  color: var(--persa-red-dark);
  border-color: rgba(237, 28, 36, .5);
  background: var(--persa-soft-red);
}

.metrics-surface,
.followup-surface {
  margin-top: 22px;
}

.kpi,
.analytics-card,
.followup-surface {
  border-color: #dfe1e3;
  box-shadow: 0 8px 25px rgba(11, 16, 20, .035);
}

.kpi {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.kpi::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 3px;
  background: var(--persa-red);
  transition: width .22s ease;
}

.kpi:hover {
  border-color: rgba(237, 28, 36, .3);
  box-shadow: 0 14px 30px rgba(11, 16, 20, .09);
  transform: translateY(-3px);
}

.kpi:hover::after {
  width: 100%;
}

.kpi.highlight {
  background:
    radial-gradient(circle at 90% 15%, rgba(237, 28, 36, .22), transparent 8rem),
    var(--persa-black);
  border-color: var(--persa-black);
}

.highlight .kpi-label,
.highlight .kpi-sub {
  color: #c8cccf;
}

.highlight > strong {
  color: #ff3038;
}

.bar {
  transform-origin: left center;
  animation: v2-bar-grow .58s .15s cubic-bezier(.2, .75, .2, 1) both;
}

.bar.total {
  background: #11161a;
}

.bar.won {
  background: linear-gradient(90deg, var(--persa-red), #ff4a50);
}

.bar.open {
  background: #888f94;
}

.bar.lost {
  background: #d6d8da;
}

.table-open,
.complete-task {
  color: var(--persa-red-dark);
  background: var(--persa-soft-red);
  border-color: #f0c5c7;
  transition: transform .17s ease, background .17s ease;
}

.table-open:hover,
.complete-task:hover {
  color: #fff;
  background: var(--persa-red);
  transform: translateX(2px);
}

.task-card {
  transition: background .17s ease, transform .17s ease;
}

.task-card:hover {
  background: #fafafa;
  transform: translateX(3px);
}

.toast {
  color: #fff;
  background: #0c1115;
  border-left: 4px solid var(--persa-red);
  box-shadow: 0 12px 35px rgba(4, 7, 9, .28);
}

dialog {
  border-top: 4px solid var(--persa-red);
}

dialog::backdrop {
  background: rgba(3, 6, 8, .72);
  backdrop-filter: blur(3px);
}

* {
  scrollbar-color: #b71920 #eceeef;
  scrollbar-width: thin;
}

@keyframes v2-sidebar-in {
  from { opacity: .7; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes v2-fade-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes v2-reveal {
  from { opacity: .72; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes v2-surface-in {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes v2-message-in {
  from { opacity: 0; transform: translateY(6px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes v2-bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes v2-confirm {
  0% { opacity: 0; transform: scale(.96); }
  70% { transform: scale(1.015); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes v2-pulse {
  0%, 45% { box-shadow: 0 0 0 0 rgba(237, 28, 36, .4); }
  75%, 100% { box-shadow: 0 0 0 6px rgba(237, 28, 36, 0); }
}

@media (max-width: 1200px) {
  .brand-logo {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 600px) {
  .sidebar {
    border-top-width: 3px;
  }

  .page-heading {
    padding-top: 24px;
    padding-bottom: 25px;
  }

  .inbox-layout,
  .metrics-surface,
  .followup-surface {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .topbar,
  .page-heading,
  .inbox-layout,
  .metrics-surface,
  .followup-surface,
  .bubble,
  .bar,
  .conversion-confirmed,
  .green-dot,
  .demo-badge > span,
  .unread {
    animation: none !important;
  }
}
