:root {
  --bg: #f6f8fc;
  --panel: #ffffff;
  --text: #0b1730;
  --muted: #667085;
  --line: #e4eaf2;
  --primary: #0f766e;
  --primary-dark: #0b625b;
  --blue: #0b5ed7;
  --danger: #b91c1c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.topbar {
  min-height: 56px;
  padding: 0 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(16, 24, 40, .04);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.brand {
  color: var(--blue);
  font-size: 22px;
  font-weight: 650;
  white-space: nowrap;
}

.brand:hover {
  color: var(--blue);
}

.mainnav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mainnav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 8px;
  color: #475467;
  font-size: 14px;
  font-weight: 520;
  white-space: nowrap;
}

.mainnav a:hover {
  background: #f2f6fb;
  color: var(--text);
}

.mainnav a.active,
.sidebar-nav a.active {
  background: rgba(15, 118, 110, .12);
  color: var(--primary-dark);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #475467;
  font-size: 14px;
}

.topnav form {
  margin: 0;
}

.topbar-balance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
}

.topbar-balance.positive {
  background: #e8f1ff;
  color: #0b5ed7;
}

.topbar-balance.positive:hover {
  background: #dbeafe;
  color: #0b5ed7;
}

.topbar-balance.warning {
  background: #fffbeb;
  color: #b45309;
}

.topbar-balance.warning:hover {
  background: #fef3c7;
  color: #92400e;
}

.topbar-balance.empty {
  background: #fff1f1;
  color: var(--danger);
}

.topbar-balance.empty:hover {
  background: #fee2e2;
  color: var(--danger);
}

.topbar-balance strong {
  font-size: 15px;
  font-weight: 650;
}

.page {
  max-width: 1216px;
  margin: 0 auto;
  padding: 84px 20px 48px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-head .back-link {
  order: -1;
}

.page-head:has(.back-link) {
  align-items: flex-start;
  justify-content: flex-start;
}

.page-head:has(.back-link) .back-link {
  position: fixed;
  top: 30px;
  left: 312px;
  z-index: 35;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .02em;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 650;
}

h2 {
  margin: 28px 0 14px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 620;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .05);
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.metric-value {
  color: var(--text);
  font-size: 30px;
  font-weight: 650;
}

.metric.primary {
  border-color: #b7ebd4;
  background: #f2fbf7;
}

.metric.warning {
  border-color: #fcd58a;
  background: #fffbeb;
}

.metric.warning .metric-value {
  color: #b45309;
}

.metric.danger {
  border-color: #ffd0d0;
  background: #fff7f7;
}

.metric.danger .metric-value {
  color: var(--danger);
}

.metric-link {
  color: var(--text);
}

.metric-link:hover {
  color: var(--text);
  border-color: rgba(15, 118, 110, .32);
  box-shadow: 0 14px 36px rgba(16, 24, 40, .08);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

.button:hover,
button:hover {
  background: var(--primary-dark);
  color: #fff;
}

.button.secondary {
  background: #eef7f6;
  color: var(--primary-dark);
}

.button.secondary:hover {
  background: #dff0ee;
}

.button.danger {
  background: #fff1f1;
  color: var(--danger);
}

.button.danger:hover {
  background: #fee2e2;
  color: #991b1b;
}

.ghost-button {
  background: #eef2f7;
  color: #344054;
}

.ghost-button:hover {
  background: #e3e9f1;
  color: #344054;
}

.table-card {
  overflow-x: auto;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #475467;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  min-width: 86px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #e8f6ff;
  color: #056094;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.leads-campaign-form table {
  min-width: 980px;
}

.leads-campaign-form th:first-child,
.leads-campaign-form td:first-child {
  width: 52px;
  text-align: center;
  vertical-align: middle;
}

.leads-campaign-form th:first-child input,
.leads-campaign-form td:first-child input {
  display: block;
  margin: 0 auto;
}

.leads-campaign-form th:nth-child(6),
.leads-campaign-form td:nth-child(6) {
  width: 130px;
}

.status.status-paused {
  background: #fffbeb;
  color: #b45309;
}

.status.status-limit {
  background: #fff1f1;
  color: #b91c1c;
}

.status.status-queued {
  background: #e8f6ff;
  color: #056094;
}

.status.status-sent {
  background: #ecfdf5;
  color: #047857;
}

.status.status-default {
  background: #f2f4f7;
  color: #667085;
}

.leads-campaign-form {
  display: grid;
  gap: 0;
}

.campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.tasks-panel {
  display: grid;
  gap: 14px;
}

.tasks-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tasks-panel-head h2 {
  margin: 0;
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(16, 24, 40, .05);
}

.task-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.task-actions form {
  margin: 0;
}

.task-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.task-title-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 620;
}

.task-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.task-progress,
.task-detail-progress {
  display: grid;
  gap: 8px;
}

.task-detail-progress {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.task-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #475467;
  font-size: 13px;
}

.task-progress-meta strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.task-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.task-progress-track span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #22a39a);
}

.task-progress p,
.task-detail-progress p {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.task-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.task-stats div {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
}

.task-stats span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.task-stats strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
}

.leads-panel {
  margin-top: 28px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(16, 24, 40, .06);
}

.leads-panel-head {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.leads-panel-head h2 {
  margin: 0;
}

.campaign-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.campaign-state {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.campaign-state.active {
  background: #ecfdf5;
  color: #047857;
}

.campaign-state.paused {
  background: #fffbeb;
  color: #b45309;
}

.lead-filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f8fc;
}

.lead-filter-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 8px;
  color: #475467;
  font-size: 13px;
  font-weight: 560;
}

.lead-filter-tabs a.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 131, 122, .18);
}

.lead-filter-tabs span {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(102, 112, 133, .12);
  text-align: center;
  font-size: 12px;
}

.lead-filter-tabs a.active span {
  background: rgba(255, 255, 255, .2);
}

.leads-table-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.empty-table-cell {
  padding: 22px 16px;
  color: var(--muted);
  text-align: center;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.pagination-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pagination-links a,
.pagination-links span,
.pagination-links strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
}

.pagination-links a {
  background: #eef7f6;
  color: var(--primary-dark);
  font-weight: 560;
}

.pagination-links a:hover {
  background: #dff0ee;
}

.pagination-links span {
  color: #98a2b3;
}

.pagination-links strong {
  color: var(--text);
  font-weight: 600;
}

.billing-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.billing-summary div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .04);
}

.billing-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.billing-summary strong {
  font-size: 26px;
  font-weight: 650;
}

.client-stats-filter {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(2, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.client-stats-filter select,
.client-stats-filter input {
  width: 100%;
}

.client-stats-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-stats-card {
  margin-bottom: 28px;
}

.client-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
}

.client-stats-head h2 {
  margin: 0;
}

.client-stats-head span {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef7f6;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 650;
}

.line-chart {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  min-height: 280px;
  padding: 18px 10px 0 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.line-y-axis {
  position: relative;
  height: 230px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.line-y-axis span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  white-space: nowrap;
}

.line-plot {
  position: relative;
  min-width: 0;
  height: 260px;
  padding-bottom: 30px;
  overflow: visible;
}

.line-plot svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.line-chart polyline,
.line-chart path:not(.line-area) {
  stroke: #f2b77f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-chart polyline.line-success,
.line-chart path.line-success {
  stroke: #34d399;
}

.line-chart polyline.line-failed,
.line-chart path.line-failed {
  stroke: #f87171;
}

.line-chart path.line-area {
  stroke: none;
  pointer-events: none;
}

.line-legend {
  position: absolute;
  top: -6px;
  right: 0;
  z-index: 5;
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.line-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.line-legend span::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 999px;
}

.line-legend .success::before { background: #34d399; }
.line-legend .failed::before { background: #f87171; }

.line-grid {
  position: absolute;
  inset: 0 0 30px;
  z-index: 1;
  pointer-events: none;
}

.line-grid span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(16, 24, 40, .08);
}

.line-grid span:nth-child(1) { top: 12%; }
.line-grid span:nth-child(2) { top: 52%; }
.line-grid span:nth-child(3) { top: 92%; }

.line-hover-points {
  position: absolute;
  inset: 0 0 30px;
  z-index: 4;
}

.line-hover-points span {
  position: absolute;
  top: 0;
  width: max(24px, var(--hit-width, 24px));
  height: 230px;
  transform: translate(-50%, 0);
  cursor: default;
}

.line-hover-points span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(16, 24, 40, .14);
  opacity: 0;
  transform: translateX(-50%);
}

.line-hover-points span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--point-top, 0);
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, .14);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.line-hover-points b,
.line-hover-points em {
  position: absolute;
  left: 50%;
  z-index: 5;
  display: none;
  min-width: 72px;
  padding: 0 9px;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  font-style: normal;
}

.line-hover-points b {
  top: -28px;
  color: var(--muted);
  font-size: 11px;
}

.line-hover-points em {
  top: -7px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .12);
  font-size: 12px;
  font-weight: 650;
}

.line-hover-points span:hover::before,
.line-hover-points span:hover::after,
.line-hover-points span:focus::before,
.line-hover-points span:focus::after {
  opacity: 1;
}

.line-hover-points span:hover b,
.line-hover-points span:focus b {
  display: block;
}

.line-hover-points span:hover em,
.line-hover-points span:focus em {
  display: inline-flex;
}

.line-chart-labels {
  display: flex;
  justify-content: space-between;
  min-width: 0;
  height: 22px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  overflow: hidden;
}

.line-chart-labels span {
  min-width: 0;
  max-width: 46px;
  flex: 0 1 auto;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.line-chart-labels span:first-child {
  text-align: left;
}

.line-chart-labels span:last-child {
  text-align: right;
}

.client-stats-daily-table {
  margin-bottom: 0;
}

.amount {
  display: inline-flex;
  min-width: 44px;
  margin-right: 8px;
  font-weight: 650;
}

.amount.positive {
  color: #047857;
}

.amount.negative {
  color: var(--danger);
}

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.messages li {
  background: #ecfdf5;
  border: 1px solid #b7ebd4;
  color: #065f46;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.low-balance-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: -44px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 12px;
  background: rgba(255, 251, 235, .94);
  color: #92400e;
}

.low-balance-banner strong {
  color: #78350f;
}

.low-balance-banner span {
  color: #a16207;
}

.low-balance-banner .button {
  margin-left: auto;
}

.low-balance-banner .button.secondary {
  border: 1px solid rgba(180, 83, 9, .28);
  background: #f2b77f;
  color: #1b1726;
}

.low-balance-banner .button.secondary:hover {
  background: #ffd0a0;
  color: #1b1726;
}

.auth-shell {
  min-height: calc(100vh - 96px);
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.auth-card {
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(16, 24, 40, .12);
}

.auth-brand {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .02em;
}

.auth-card h1 {
  margin-bottom: 22px;
  font-size: 26px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field label {
  color: #344054;
  font-size: 13px;
}

.auth-field input {
  max-width: none;
  margin: 0;
  min-height: 44px;
  border-radius: 9px;
  font-size: 14px;
}

.auth-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border-radius: 9px;
}

.auth-error {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 9px;
  background: #fff7f7;
  color: var(--danger);
  font-size: 13px;
}

.required-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 23, 48, .38);
}

.required-modal {
  width: min(520px, 100%);
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, .22);
}

.required-modal h1 {
  margin-bottom: 10px;
}

.modal-form {
  margin-top: 18px;
}

.modal-form p {
  margin: 0 0 12px;
}

.modal-form input {
  max-width: none;
}

.payment-head {
  align-items: center;
}

.payment-head .muted {
  max-width: 640px;
  margin: 8px 0 0;
}

.payment-warning {
  margin-bottom: 18px;
  border-color: #fecaca;
  background: #fff7f7;
  color: #991b1b;
}

.payment-result-card {
  display: grid;
  gap: 22px;
  max-width: 760px;
}

.payment-result-card h2 {
  margin: 0 0 8px;
}

.payment-result-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-result-grid > div {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 14px;
}

.payment-result-grid span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.payment-result-grid strong {
  color: var(--text);
  font-size: 20px;
}

.payment-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.package-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(16, 24, 40, .06);
}

.package-card-featured {
  border-color: #7dd3fc;
  box-shadow: 0 18px 52px rgba(14, 116, 144, .13);
}

.package-top {
  display: flex;
  min-height: 58px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.package-kicker {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.package-card h2 {
  margin: 0;
  font-size: 22px;
}

.package-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.package-discount {
  width: fit-content;
  min-height: 28px;
  margin-top: 14px;
}

.package-discount-empty {
  visibility: hidden;
}

.package-price {
  margin-top: 14px;
  font-size: 34px;
  font-weight: 650;
  line-height: 1.1;
}

.package-calls {
  margin-top: 8px;
  color: #344054;
  font-size: 16px;
  font-weight: 600;
}

.package-description {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.package-pay-form {
  margin-top: auto;
  padding-top: 24px;
}

.package-pay-button {
  width: 100%;
  min-height: 44px;
}

.package-pay-button:disabled {
  cursor: not-allowed;
  background: #cbd5e1;
}

.empty-packages {
  max-width: 620px;
}

.dashboard-empty-state {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.dashboard-empty-state h2 {
  margin: 0;
}

.dashboard-empty-state .button {
  width: fit-content;
}

.landing-header {
  min-height: 68px;
  padding: 0 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 18px rgba(16, 24, 40, .05);
}

.landing-brand {
  color: var(--text);
  font-size: 24px;
  font-weight: 720;
  letter-spacing: 0;
}

.landing-brand:hover {
  color: var(--text);
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.landing-nav a {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 7px;
  color: #475467;
  font-size: 14px;
  font-weight: 560;
  white-space: nowrap;
}

.landing-nav a:hover {
  background: #f2f6fb;
  color: var(--text);
}

.landing-nav .landing-login {
  margin-left: 8px;
  background: var(--primary);
  color: #fff;
}

.landing-nav .landing-login:hover {
  background: var(--primary-dark);
  color: #fff;
}

.landing-hero {
  min-height: calc(100vh - 128px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: center;
  gap: 48px;
  padding: 42px 0 58px;
}

.landing-hero-copy {
  max-width: 660px;
}

.landing-kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.landing-hero h1 {
  font-size: clamp(48px, 7vw, 86px);
  line-height: .95;
  letter-spacing: 0;
}

.landing-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #344054;
  font-size: 20px;
  line-height: 1.55;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.landing-primary {
  background: #0b5ed7;
}

.landing-primary:hover {
  background: #084aa9;
}

.voice-demo {
  position: relative;
  min-height: 440px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #d9e3ef;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(11, 94, 215, .10)),
    #ffffff;
  box-shadow: 0 24px 70px rgba(16, 24, 40, .12);
}

.voice-demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #475467;
  font-size: 13px;
}

.voice-demo-top strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
}

.voice-wave {
  height: 196px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.voice-wave span {
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0b5ed7, #0f766e);
}

.voice-wave span:nth-child(1) { height: 58px; }
.voice-wave span:nth-child(2) { height: 122px; }
.voice-wave span:nth-child(3) { height: 86px; }
.voice-wave span:nth-child(4) { height: 150px; }
.voice-wave span:nth-child(5) { height: 104px; }
.voice-wave span:nth-child(6) { height: 68px; }

.voice-flow {
  display: grid;
  gap: 10px;
}

.voice-flow div {
  padding: 14px;
  border: 1px solid rgba(207, 216, 230, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}

.voice-flow span,
.landing-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.voice-flow strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.voice-flow p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.landing-section {
  padding: 58px 0;
}

.landing-split,
.landing-band {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.landing-section h2,
.landing-cta h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: 0;
}

.landing-split > p,
.landing-cta p {
  margin: 0;
  color: #344054;
  font-size: 17px;
  line-height: 1.65;
}

.landing-section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.landing-card,
.tariff-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(16, 24, 40, .06);
}

.landing-card {
  padding: 20px;
}

.landing-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

.landing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.landing-band {
  padding: 34px;
  border: 1px solid #c7d7ea;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #eef7f6);
}

.automation-list {
  display: grid;
  gap: 12px;
}

.automation-list p {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid #0b5ed7;
  background: rgba(255, 255, 255, .78);
  color: #344054;
  line-height: 1.5;
}

.landing-tariffs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tariff-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.tariff-card.featured {
  border-color: #7dd3fc;
  box-shadow: 0 18px 52px rgba(14, 116, 144, .13);
}

.tariff-card p {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.tariff-card h3 {
  min-height: 54px;
  margin: 0;
  font-size: 22px;
  line-height: 1.22;
}

.tariff-card strong {
  margin-top: 18px;
  color: var(--text);
  font-size: 30px;
  line-height: 1.1;
}

.tariff-card span {
  margin: 16px 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.tariff-card .button {
  margin-top: auto;
}

.landing-cta {
  margin: 36px 0 12px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 8px;
  background: #0b1730;
  color: #fff;
}

.landing-cta h2 {
  color: #fff;
}

.landing-cta p {
  max-width: 760px;
  margin-top: 10px;
  color: rgba(255, 255, 255, .78);
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 42px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}

.landing-footer p,
.landing-footer-details {
  margin: 0;
}

.landing-footer p {
  color: #fff;
  font-weight: 520;
}

.landing-footer-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

body:has(.auth-shell),
body:has(.topbar) {
  --bg: #171423;
  --panel: rgba(35, 31, 52, .78);
  --text: #f8f4ee;
  --muted: #aaa2b7;
  --line: rgba(255, 232, 206, .13);
  --primary: #f2b77f;
  --primary-dark: #d9945a;
  --blue: #f2b77f;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 8%, rgba(242, 183, 127, .14), transparent 28%),
    radial-gradient(circle at 10% 100%, rgba(88, 74, 119, .26), transparent 32%),
    repeating-linear-gradient(100deg, rgba(242, 183, 127, .055) 0 1px, transparent 1px 18px),
    #171423;
}

body:has(.auth-shell)::before,
body:has(.topbar)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(13, 11, 22, .68);
  pointer-events: none;
}

body:has(.topbar) .topbar {
  width: min(1240px, calc(100% - 40px));
  min-height: 68px;
  margin: 24px auto 0;
  padding: 0 22px;
  border: 1px solid rgba(255, 232, 206, .12);
  border-radius: 18px;
  background: rgba(26, 23, 39, .78);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .34);
  backdrop-filter: blur(22px);
}

body:has(.topbar) .brand {
  color: #fff8ef;
}

body:has(.topbar) .mainnav a,
body:has(.topbar) .topnav {
  color: rgba(248, 244, 238, .72);
}

body:has(.topbar) .mainnav a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff8ef;
}

body:has(.topbar) .topbar-balance.positive,
body:has(.topbar) .button.secondary,
body:has(.topbar) .ghost-button {
  background: rgba(242, 183, 127, .12);
  color: #ffd4a4;
}

body:has(.topbar) .topbar-balance.positive {
  background: rgba(59, 130, 246, .16);
  color: #bfdbfe;
}

body:has(.topbar) .topbar-balance.warning {
  background: rgba(245, 158, 11, .18);
  color: #fde68a;
}

body:has(.topbar) .topbar-balance.empty {
  background: rgba(255, 112, 112, .12);
  color: #ffb4b4;
}

body:has(.topbar) .page {
  max-width: 1240px;
  padding-top: 34px;
}

body:has(.topbar) .page-head,
body:has(.topbar) .tasks-panel-head,
body:has(.topbar) .leads-panel-head,
body:has(.topbar) .payment-head {
  padding: 18px 20px;
  border: 1px solid rgba(255, 232, 206, .10);
  border-radius: 18px;
  background: rgba(26, 23, 39, .52);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .20);
}

body:has(.topbar) h1,
body:has(.topbar) h2,
body:has(.topbar) h3,
body:has(.topbar) .metric-value,
body:has(.topbar) .task-stats strong,
body:has(.topbar) .task-title-row h3 {
  color: #fff8ef;
}

body:has(.topbar) .eyebrow,
body:has(.topbar) .package-kicker {
  color: #f2b77f;
}

body:has(.topbar) .muted,
body:has(.topbar) .task-main p,
body:has(.topbar) .task-progress p,
body:has(.topbar) .task-detail-progress p,
body:has(.topbar) .payment-head .muted {
  color: rgba(248, 244, 238, .62);
}

body:has(.topbar) .card,
body:has(.topbar) .task-card,
body:has(.topbar) .leads-panel,
body:has(.topbar) .table-card,
body:has(.topbar) .package-card,
body:has(.topbar) .billing-summary div,
body:has(.topbar) .payment-warning,
body:has(.topbar) .required-modal {
  border: 1px solid rgba(255, 232, 206, .12);
  border-radius: 18px;
  background: rgba(35, 31, 52, .78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

body:has(.topbar) .metric.primary,
body:has(.topbar) .metric.warning,
body:has(.topbar) .metric.danger {
  background: rgba(35, 31, 52, .78);
}

body:has(.topbar) .task-stats div,
body:has(.topbar) .campaign-actions,
body:has(.topbar) .task-detail-progress,
body:has(.topbar) th,
body:has(.topbar) table,
body:has(.topbar) .pagination-bar {
  background: rgba(255, 255, 255, .045);
}

body:has(.topbar) td,
body:has(.topbar) th,
body:has(.topbar) .campaign-actions,
body:has(.topbar) .task-detail-progress,
body:has(.topbar) .leads-panel-head,
body:has(.topbar) .pagination-bar {
  border-color: rgba(255, 232, 206, .10);
}

body:has(.topbar) th {
  color: rgba(248, 244, 238, .62);
}

body:has(.topbar) td {
  color: rgba(248, 244, 238, .82);
}

body:has(.topbar) .button,
body:has(.topbar) button,
body:has(.auth-shell) .auth-submit {
  min-height: 40px;
  border-radius: 999px;
  background: #f2b77f;
  color: #1b1726;
  box-shadow: 0 12px 30px rgba(242, 183, 127, .24);
}

body:has(.topbar) .button:hover,
body:has(.topbar) button:hover,
body:has(.auth-shell) .auth-submit:hover {
  background: #ffd0a0;
  color: #1b1726;
}

body:has(.topbar) .button.danger {
  background: rgba(255, 112, 112, .14);
  color: #ffb4b4;
}

body:has(.topbar) .task-progress-track,
body:has(.topbar) .limit-bar {
  background: rgba(255, 255, 255, .10);
}

body:has(.topbar) .task-progress-track span,
body:has(.topbar) .limit-bar span {
  background: linear-gradient(90deg, #f2b77f, #8f7af3);
}

body:has(.topbar) input,
body:has(.topbar) select,
body:has(.topbar) textarea {
  border-color: rgba(255, 232, 206, .14);
  background: rgba(16, 14, 27, .52);
  color: #fff8ef;
}

body:has(.topbar) input::placeholder,
body:has(.topbar) textarea::placeholder {
  color: rgba(248, 244, 238, .42);
}

body:has(.topbar) .status,
body:has(.topbar) .campaign-state,
body:has(.topbar) .lead-filter-tabs,
body:has(.topbar) .pagination-links a {
  border: 1px solid rgba(255, 232, 206, .10);
  background: rgba(255, 255, 255, .07);
  color: #ffd4a4;
}

body:has(.topbar) .lead-filter-tabs a {
  color: rgba(248, 244, 238, .68);
}

body:has(.topbar) .lead-filter-tabs a.active {
  background: #f2b77f;
  color: #1b1726;
  box-shadow: 0 12px 28px rgba(242, 183, 127, .22);
}

body:has(.topbar) .lead-filter-tabs a:not(.active) {
  background: rgba(255, 255, 255, .045);
}

body:has(.topbar) .lead-filter-tabs a:not(.active):hover {
  background: rgba(242, 183, 127, .10);
  color: #ffe8ce;
}

body:has(.auth-shell) .page {
  max-width: none;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

body:has(.auth-shell) .auth-shell {
  width: min(390px, 100%);
  min-height: 720px;
  place-items: stretch;
  padding: 0;
}

body:has(.auth-shell) .auth-card {
  width: 100%;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 30px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 236, 219, .36), rgba(255, 255, 255, .10)),
    rgba(202, 199, 189, .36);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .35);
  backdrop-filter: blur(28px);
}

body:has(.auth-shell) .auth-brand {
  margin-bottom: 24px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

body:has(.auth-shell) .auth-card h1 {
  max-width: 260px;
  margin-bottom: 32px;
  color: #fff;
  font-size: 34px;
  line-height: 1.08;
}

body:has(.auth-shell) .auth-field {
  gap: 0;
}

body:has(.auth-shell) .auth-field label {
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 560;
}

body:has(.auth-shell) .auth-field input {
  min-height: 46px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .72);
  border-radius: 0;
  background: transparent;
  color: #fff;
}

body:has(.auth-shell) .auth-field input:focus {
  outline: 0;
  border-color: #fff;
}

body:has(.auth-shell) .auth-submit {
  min-height: 50px;
  margin-top: 22px;
  background: #171722;
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .24);
}

body:has(.auth-shell) .auth-submit:hover {
  background: #232436;
  color: #fff;
}

body:has(.auth-shell) .auth-error {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(120, 24, 24, .22);
  color: #fff;
}

input,
select,
textarea {
  width: 100%;
  max-width: 520px;
  min-height: 38px;
  padding: 9px 11px;
  margin: 4px 0 14px;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: auto;
  margin-right: 6px;
}

label {
  display: block;
  font-weight: 600;
  color: #344054;
}

code {
  word-break: break-all;
}

@media (max-width: 900px) {
  .topbar {
    padding: 14px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .topbar-left {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .mainnav {
    flex-wrap: wrap;
  }

  .topnav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .tasks-panel-head,
  .task-main,
  .task-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .task-actions {
    justify-content: flex-start;
  }

  .task-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-head {
    flex-direction: column;
  }

  .leads-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .campaign-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .lead-filter-tabs {
    width: 100%;
  }

  .lead-filter-tabs a {
    flex: 1 1 145px;
    justify-content: center;
  }

  .pagination-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .page {
    padding: 24px 14px 36px;
  }

  .packages-grid {
    grid-template-columns: 1fr;
  }

  .payment-result-grid {
    grid-template-columns: 1fr;
  }

  .billing-summary {
    grid-template-columns: 1fr;
  }

  .client-stats-filter {
    grid-template-columns: 1fr;
  }

  .client-stats-summary {
    grid-template-columns: 1fr;
  }

  .line-chart {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 240px;
    padding-right: 8px;
  }

  .line-y-axis,
  .line-hover-points span,
  .line-plot svg {
    height: 190px;
  }

  .line-plot {
    height: 220px;
  }

  .line-legend {
    position: static;
    justify-content: flex-end;
    margin-bottom: 6px;
  }

  .landing-header {
    padding: 14px 18px;
    align-items: stretch;
    flex-direction: column;
  }

  .landing-nav {
    flex-wrap: wrap;
  }

  .landing-nav a {
    flex: 1 1 130px;
    text-align: center;
  }

  .landing-nav .landing-login {
    margin-left: 0;
  }

  .landing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0 42px;
  }

  .landing-lead {
    font-size: 17px;
  }

  .voice-demo {
    min-height: 380px;
  }

  .landing-section {
    padding: 38px 0;
  }

  .landing-split,
  .landing-band {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .landing-section h2,
  .landing-cta h2 {
    font-size: 26px;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-footer-details {
    justify-content: flex-start;
  }

  .landing-grid,
  .landing-tariffs {
    grid-template-columns: 1fr;
  }

  .landing-band,
  .landing-cta {
    padding: 22px;
  }

  .landing-cta {
    align-items: stretch;
    flex-direction: column;
  }
}

body:has(.landing-header) {
  --bg: #171423;
  --panel: rgba(35, 31, 52, .78);
  --text: #f8f4ee;
  --muted: #aaa2b7;
  --line: rgba(255, 232, 206, .13);
  --primary: #f2b77f;
  --primary-dark: #d9945a;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 10%, rgba(242, 183, 127, .18), transparent 28%),
    radial-gradient(circle at 12% 96%, rgba(88, 74, 119, .30), transparent 34%),
    repeating-linear-gradient(102deg, rgba(242, 183, 127, .05) 0 1px, transparent 1px 18px),
    #171423;
}

body:has(.landing-header)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(13, 11, 22, .70);
}

body:has(.landing-header) .landing-header {
  width: min(1240px, calc(100% - 40px));
  min-height: 68px;
  margin: 24px auto 0;
  padding: 0 22px;
  border: 1px solid rgba(255, 232, 206, .12);
  border-radius: 18px;
  background: rgba(26, 23, 39, .78);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .34);
  backdrop-filter: blur(22px);
}

body:has(.landing-header) .landing-brand,
body:has(.landing-header) .landing-hero h1,
body:has(.landing-header) .landing-section h2,
body:has(.landing-header) .landing-card h3,
body:has(.landing-header) .tariff-card h3,
body:has(.landing-header) .tariff-card strong {
  color: #fff8ef;
}

body:has(.landing-header) .landing-nav a {
  color: rgba(248, 244, 238, .72);
}

body:has(.landing-header) .landing-nav a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff8ef;
}

body:has(.landing-header) .landing-nav .landing-login,
body:has(.landing-header) .landing-primary {
  background: #f2b77f;
  color: #1b1726;
}

body:has(.landing-header) .landing-lead,
body:has(.landing-header) .landing-split > p,
body:has(.landing-header) .landing-card p,
body:has(.landing-header) .tariff-card span,
body:has(.landing-header) .automation-list p {
  color: rgba(248, 244, 238, .68);
}

body:has(.landing-header) .voice-demo,
body:has(.landing-header) .landing-card,
body:has(.landing-header) .tariff-card,
body:has(.landing-header) .landing-band,
body:has(.landing-header) .landing-cta {
  border: 1px solid rgba(255, 232, 206, .12);
  border-radius: 18px;
  background: rgba(35, 31, 52, .78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

body:has(.landing-header) .voice-flow div,
body:has(.landing-header) .automation-list p {
  border-color: rgba(255, 232, 206, .10);
  background: rgba(255, 255, 255, .055);
}

body:has(.landing-header) .voice-wave span {
  background: linear-gradient(180deg, #f2b77f, #8f7af3);
}

body:has(.app-sidebar) {
  padding-left: 292px;
  transition: padding-left .2s ease;
}

body:has(.app-sidebar).sidebar-collapsed {
  padding-left: 104px;
}

.app-sidebar {
  position: fixed;
  inset: 24px auto 24px 24px;
  z-index: 40;
  width: 244px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid rgba(255, 232, 206, .12);
  border-radius: 22px;
  background: rgba(26, 23, 39, .82);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .34);
  backdrop-filter: blur(22px);
  transition: width .2s ease, padding .2s ease;
}

.sidebar-head,
.sidebar-brand,
.sidebar-nav a,
.sidebar-balance,
.sidebar-user,
.sidebar-logout {
  display: flex;
  align-items: center;
}

.sidebar-head {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.sidebar-brand {
  min-width: 0;
  gap: 12px;
  color: #fff8ef;
  font-size: 18px;
  font-weight: 740;
}

.sidebar-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 232, 206, .10);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: #ffd4a4;
  font-weight: 700;
}

.sidebar-toggle,
.sidebar-logout {
  border: 1px solid rgba(255, 232, 206, .10);
  background: rgba(255, 255, 255, .06);
  color: #ffd4a4;
}

.sidebar-toggle {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 12px;
  font-size: 24px;
  box-shadow: none;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a,
.sidebar-balance,
.sidebar-user,
.sidebar-logout {
  gap: 12px;
  min-height: 46px;
  padding: 4px;
  border-radius: 14px;
  color: rgba(248, 244, 238, .72);
  font-size: 14px;
  font-weight: 560;
}

.sidebar-nav a:hover,
.sidebar-logout:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff8ef;
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.sidebar-footer form {
  margin: 0;
}

.sidebar-logout {
  width: 100%;
  justify-content: flex-start;
  box-shadow: none;
}

.sidebar-balance {
  border: 1px solid rgba(255, 232, 206, .10);
}

.sidebar-balance.positive {
  background: rgba(66, 196, 133, .14);
  color: #9de8bd;
  box-shadow: inset 0 0 0 1px rgba(66, 196, 133, .14), 0 14px 36px rgba(66, 196, 133, .10);
}

.sidebar-balance.positive .sidebar-icon {
  background: rgba(66, 196, 133, .14);
  color: #9de8bd;
}

.sidebar-balance.empty {
  background: rgba(236, 93, 93, .12);
  color: #ffaaa5;
  box-shadow: inset 0 0 0 1px rgba(236, 93, 93, .12), 0 14px 36px rgba(236, 93, 93, .08);
}

.sidebar-balance.empty .sidebar-icon {
  background: rgba(236, 93, 93, .12);
  color: #ffaaa5;
}

.sidebar-balance strong {
  color: inherit;
  font-size: 18px;
}

.sidebar-user {
  color: rgba(248, 244, 238, .56);
}

.sidebar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity .15s ease, width .2s ease;
}

body.sidebar-collapsed .app-sidebar {
  width: 76px;
  padding: 16px;
}

body.sidebar-collapsed .sidebar-label {
  width: 0;
  opacity: 0;
}

body.sidebar-collapsed .sidebar-toggle {
  transform: rotate(180deg);
}

body.sidebar-collapsed .sidebar-head,
body.sidebar-collapsed .sidebar-brand,
body.sidebar-collapsed .sidebar-nav a,
body.sidebar-collapsed .sidebar-balance,
body.sidebar-collapsed .sidebar-user,
body.sidebar-collapsed .sidebar-logout {
  justify-content: center;
}

body.sidebar-collapsed .sidebar-head {
  flex-direction: column;
  align-items: center;
}

body:has(.app-sidebar) .page {
  max-width: 1180px;
  margin-left: 0;
  margin-right: auto;
}

body:has(.auth-shell) .auth-shell {
  width: min(940px, 100%);
  min-height: 640px;
}

body:has(.auth-shell) .auth-card {
  position: relative;
  min-height: 640px;
  padding: 64px 54px;
  justify-content: center;
  overflow: hidden;
}

body:has(.auth-shell) .auth-card::after {
  content: "";
  position: absolute;
  inset: 30px 30px 30px auto;
  width: min(42%, 360px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 48% 36%, rgba(255, 255, 255, .42), transparent 0 34%),
    linear-gradient(145deg, rgba(242, 183, 127, .30), rgba(143, 122, 243, .16)),
    rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 90px rgba(255, 255, 255, .08);
}

body:has(.auth-shell) .auth-brand,
body:has(.auth-shell) .auth-card h1,
body:has(.auth-shell) .auth-form,
body:has(.auth-shell) .auth-error {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
}

@media (max-width: 900px) {
  body:has(.app-sidebar),
  body:has(.app-sidebar).sidebar-collapsed {
    padding-left: 0;
    padding-bottom: 86px;
  }

  .app-sidebar {
    inset: auto 14px 14px;
    width: auto;
    height: 64px;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
  }

  .sidebar-head {
    margin: 0;
  }

  .sidebar-brand .sidebar-label,
  .sidebar-toggle,
  .sidebar-footer .sidebar-user {
    display: none;
  }

  .sidebar-nav {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .sidebar-footer {
    display: flex;
    margin-top: 0;
  }

  .sidebar-label {
    display: none;
  }

  body:has(.app-sidebar) .page {
    margin: 0 auto;
  }

  body:has(.auth-shell) .auth-shell,
  body:has(.auth-shell) .auth-card {
    min-height: 720px;
  }

  body:has(.auth-shell) .auth-card::after {
    display: none;
  }
}

body:has(.app-sidebar),
body:has(.app-sidebar).sidebar-collapsed {
  padding-left: 292px;
}

body:has(.app-sidebar) {
  --bg: #171423;
  --panel: rgba(35, 31, 52, .78);
  --text: #f8f4ee;
  --muted: #aaa2b7;
  --line: rgba(255, 232, 206, .13);
  --primary: #f2b77f;
  --primary-dark: #d9945a;
  --blue: #f2b77f;
  background:
    radial-gradient(circle at 78% 8%, rgba(242, 183, 127, .16), transparent 28%),
    radial-gradient(circle at 20% 92%, rgba(88, 74, 119, .28), transparent 34%),
    repeating-linear-gradient(102deg, rgba(242, 183, 127, .045) 0 1px, transparent 1px 18px),
    #171423;
}

body:has(.app-sidebar)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(13, 11, 22, .70);
}

body:has(.app-sidebar) .page {
  width: min(1180px, calc(100vw - 332px));
  max-width: none;
  margin: 0 auto 0 0;
}

body:has(.app-sidebar).sidebar-collapsed .page {
  width: min(1180px, calc(100vw - 332px));
}

body:has(.app-sidebar) .page-head,
body:has(.app-sidebar) .tasks-panel-head,
body:has(.app-sidebar) .leads-panel-head,
body:has(.app-sidebar) .payment-head {
  padding: 18px 20px;
  border: 1px solid rgba(255, 232, 206, .10);
  border-radius: 18px;
  background: rgba(26, 23, 39, .52);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .20);
}

body:has(.app-sidebar) h1,
body:has(.app-sidebar) h2,
body:has(.app-sidebar) h3,
body:has(.app-sidebar) .task-title-row h3,
body:has(.app-sidebar) .task-stats strong,
body:has(.app-sidebar) .metric-value,
body:has(.app-sidebar) .package-card h2,
body:has(.app-sidebar) .package-price,
body:has(.app-sidebar) .billing-summary strong {
  color: #fff8ef;
}

body:has(.app-sidebar) .muted,
body:has(.app-sidebar) .task-main p,
body:has(.app-sidebar) .task-progress p,
body:has(.app-sidebar) .task-detail-progress p,
body:has(.app-sidebar) .metric-label,
body:has(.app-sidebar) .package-description,
body:has(.app-sidebar) .package-calls,
body:has(.app-sidebar) .billing-summary span {
  color: rgba(248, 244, 238, .62);
}

body:has(.app-sidebar) .card,
body:has(.app-sidebar) .task-card,
body:has(.app-sidebar) .leads-panel,
body:has(.app-sidebar) .table-card,
body:has(.app-sidebar) .package-card,
body:has(.app-sidebar) .billing-summary div,
body:has(.app-sidebar) .payment-warning,
body:has(.app-sidebar) .required-modal {
  border: 1px solid rgba(255, 232, 206, .12);
  border-radius: 18px;
  background: rgba(35, 31, 52, .78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

body:has(.app-sidebar) .task-stats div,
body:has(.app-sidebar) table,
body:has(.app-sidebar) th,
body:has(.app-sidebar) .campaign-actions,
body:has(.app-sidebar) .task-detail-progress,
body:has(.app-sidebar) .pagination-bar {
  background: rgba(255, 255, 255, .045);
}

body:has(.app-sidebar) td,
body:has(.app-sidebar) th,
body:has(.app-sidebar) .campaign-actions,
body:has(.app-sidebar) .task-detail-progress,
body:has(.app-sidebar) .leads-panel-head,
body:has(.app-sidebar) .pagination-bar {
  border-color: rgba(255, 232, 206, .10);
}

body:has(.app-sidebar) td {
  color: rgba(248, 244, 238, .82);
}

body:has(.app-sidebar) th {
  color: rgba(248, 244, 238, .62);
}

body:has(.app-sidebar) .button,
body:has(.app-sidebar) button,
body:has(.landing-header) .button,
body:has(.landing-header) button {
  border: 1px solid rgba(255, 255, 255, .20);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08)),
    rgba(242, 183, 127, .78);
  color: #1b1726;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 14px 34px rgba(242, 183, 127, .18);
  backdrop-filter: blur(14px);
}

body:has(.app-sidebar) .button:hover,
body:has(.app-sidebar) button:hover,
body:has(.landing-header) .button:hover,
body:has(.landing-header) button:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .12)),
    rgba(255, 208, 160, .86);
  color: #1b1726;
}

body:has(.app-sidebar) .button.secondary,
body:has(.app-sidebar) .ghost-button {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)),
    rgba(255, 255, 255, .06);
  color: #ffe2bd;
}

body:has(.app-sidebar) .task-progress-track {
  background: rgba(255, 255, 255, .10);
}

body:has(.app-sidebar) .task-progress-track span {
  background: linear-gradient(90deg, #f2b77f, #8f7af3);
}

body:has(.app-sidebar) .client-stats-filter,
body:has(.app-sidebar) .line-chart {
  border-color: rgba(255, 232, 206, .12);
  background: rgba(35, 31, 52, .78);
}

body:has(.app-sidebar) .client-stats-head span {
  background: rgba(242, 183, 127, .14);
  color: #ffe0bd;
}

body:has(.app-sidebar) .line-grid span {
  background: rgba(255, 232, 206, .08);
}

body:has(.app-sidebar) .line-hover-points span::before {
  background: rgba(255, 232, 206, .18);
}

body:has(.app-sidebar) .line-hover-points em {
  border-color: rgba(255, 232, 206, .18);
  color: #fff8ef;
  background: rgba(20, 17, 31, .92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .30);
}

body:has(.app-sidebar) input,
body:has(.app-sidebar) select,
body:has(.app-sidebar) textarea {
  border-color: rgba(255, 232, 206, .14);
  background: rgba(16, 14, 27, .52);
  color: #fff8ef;
}

.sidebar-icon svg,
.sidebar-toggle svg,
.panel-nav-icon svg,
.panel-sidebar-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.sidebar-icon,
.panel-nav-icon {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05)),
    rgba(255, 255, 255, .06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 12px 30px rgba(0, 0, 0, .16);
}

.brand-mark {
  color: #f8d2a8;
  font-size: 17px;
}

.sidebar-toggle {
  display: inline-grid;
  place-items: center;
  color: #ffe2bd;
}

body:has(.auth-shell) .auth-shell {
  width: min(560px, 100%);
}

body:has(.auth-shell) .auth-card {
  min-height: 650px;
  padding: 64px 54px;
  background:
    radial-gradient(circle at 24% 78%, rgba(242, 183, 127, .24), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .24), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .10)),
    rgba(178, 174, 166, .40);
}

body:has(.auth-shell) .auth-card::after {
  display: none;
}

body:has(.auth-shell) .auth-brand,
body:has(.auth-shell) .auth-card h1,
body:has(.auth-shell) .auth-form,
body:has(.auth-shell) .auth-error {
  width: 100%;
}

body:has(.auth-shell) .auth-submit {
  border: 1px solid rgba(255, 255, 255, .16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)),
    #171722;
  color: #fff;
}

@media (min-width: 1500px) {
  body:has(.app-sidebar) .page {
    width: min(1320px, calc(100vw - 352px));
  }

  body:has(.app-sidebar).sidebar-collapsed .page {
    width: min(1320px, calc(100vw - 352px));
  }
}

@media (max-width: 900px) {
  body:has(.app-sidebar),
  body:has(.app-sidebar).sidebar-collapsed {
    padding-left: 0;
  }

  body:has(.app-sidebar) .page,
  body:has(.app-sidebar).sidebar-collapsed .page {
    width: auto;
  }
}

/* Final overrides: keep user filters and lead statuses above shared button rules. */
.task-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 16px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
    rgba(23, 19, 36, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.task-filter-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 13px;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)),
    rgba(255, 255, 255, .035);
}

.task-filter-tabs a:hover,
.task-filter-tabs a.active {
  color: #211a29;
  border-color: rgba(255, 226, 189, .62);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .11)),
    rgba(242, 183, 127, .82);
}

.task-filter-tabs span {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, .16);
}

.sidebar-balance {
  display: none !important;
}

body:has(.app-sidebar) .status.status-new,
body:has(.app-sidebar) .pill.status-new,
body:has(.app-sidebar) .status.status-default,
body:has(.app-sidebar) .pill.status-default {
  color: #d6d3e3;
  background: rgba(255, 255, 255, .08);
}

body:has(.app-sidebar) .status.status-paused,
body:has(.app-sidebar) .pill.status-paused {
  color: #ffe2bd;
  background: rgba(242, 183, 127, .22);
  border-color: rgba(242, 183, 127, .34);
}

body:has(.app-sidebar) .status.status-queued,
body:has(.app-sidebar) .pill.status-queued {
  color: #a8d8ff;
  background: rgba(61, 140, 219, .20);
  border-color: rgba(118, 181, 245, .32);
}

body:has(.app-sidebar) .status.status-sent,
body:has(.app-sidebar) .pill.status-sent {
  color: #a7f3d0;
  background: rgba(16, 185, 129, .18);
  border-color: rgba(52, 211, 153, .34);
}

body:has(.app-sidebar) .status.status-failed,
body:has(.app-sidebar) .pill.status-failed,
body:has(.app-sidebar) .status.status-limit,
body:has(.app-sidebar) .pill.status-limit {
  color: #fecaca;
  background: rgba(239, 68, 68, .18);
  border-color: rgba(248, 113, 113, .35);
}

body:has(.app-sidebar) .status.status-duplicate,
body:has(.app-sidebar) .pill.status-duplicate {
  color: #ddd6fe;
  background: rgba(139, 92, 246, .18);
  border-color: rgba(167, 139, 250, .32);
}

body:has(.client-conversations-layout) .page,
body:has(.client-conversations-layout).sidebar-collapsed .page {
  width: min(1540px, calc(100vw - 332px));
}

.client-conversations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.client-conversations-list,
.client-conversation-filter-card {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(23, 20, 34, .78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px);
}

.client-conversations-list {
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
}

.client-conversations-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.client-conversations-toolbar h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.client-conversations-toolbar p {
  margin: 0;
  font-size: 13px;
}

.client-conversations-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(242, 183, 127, .14);
  color: #ffd6a3;
  font-size: 13px;
  font-weight: 700;
}

.client-conversation-cards {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.client-conversation-card {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  overflow: hidden;
}

.client-conversation-card summary {
  display: grid;
  grid-template-columns: 12px minmax(180px, 1fr) minmax(220px, auto);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.client-conversation-card summary::-webkit-details-marker {
  display: none;
}

.client-conversation-card summary::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #ffd6a3;
}

.client-conversation-card[open] summary::before {
  transform: rotate(90deg);
}

.client-conversation-summary-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.client-conversation-summary-main strong {
  color: #fff;
  font-size: 16px;
}

.client-conversation-summary-main span,
.client-conversation-summary-meta time {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.client-conversation-summary-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.client-stage-pill,
.client-duration-pill,
.client-autoresponder-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.client-stage-pill {
  border: 1px solid rgba(242, 183, 127, .32);
  background: rgba(242, 183, 127, .12);
  color: #ffd6a3;
}

.client-duration-pill {
  border: 1px solid rgba(94, 234, 212, .30);
  background: rgba(20, 184, 166, .12);
  color: #a7f3d0;
}

.client-autoresponder-badge {
  border: 1px solid rgba(125, 211, 252, .30);
  background: rgba(14, 165, 233, .13);
  color: #bae6fd;
}

.client-conversation-expanded {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 14px;
  padding: 0 16px 16px 38px;
}

.client-conversation-section {
  min-width: 0;
}

.client-conversation-section h3 {
  margin: 10px 0 10px;
  font-size: 14px;
}

.client-conversation-group,
.client-record-card,
.client-conversations-empty {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 10px;
  background: rgba(10, 9, 18, .26);
}

.client-conversation-group {
  padding: 12px;
}

.client-conversation-group + .client-conversation-group {
  margin-top: 10px;
}

.client-conversation-group-head,
.client-record-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.client-conversation-group-head strong,
.client-record-card-head strong {
  color: #fff;
  font-size: 13px;
}

.client-chat {
  display: grid;
  gap: 8px;
}

.client-chat-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
}

.client-chat-message.speaker-client,
.client-chat-message.speaker-contact,
.client-chat-message.speaker-user {
  justify-self: end;
  background: rgba(242, 183, 127, .13);
}

.client-chat-message-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
}

.client-chat-message p {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.client-record-list {
  display: grid;
  gap: 10px;
}

.client-record-card {
  padding: 12px;
}

.client-record-card-head span {
  color: rgba(255, 255, 255, .60);
  font-size: 12px;
}

.client-record-card audio {
  width: 100%;
  height: 38px;
}

.client-conversations-empty {
  padding: 26px;
  text-align: center;
}

.client-conversations-empty h2 {
  margin-top: 0;
}

.client-conversation-pagination {
  border-color: rgba(255, 255, 255, .10);
  background: rgba(10, 9, 18, .20);
}

.client-conversations-filters {
  position: sticky;
  top: 92px;
  min-width: 0;
}

.client-conversation-filter-card {
  display: grid;
  gap: 12px;
  border-radius: 14px;
  padding: 16px;
}

.client-filter-field {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.client-filter-field > span {
  color: rgba(255, 255, 255, .72);
  font-weight: 650;
}

.client-filter-field input {
  width: 100%;
}

.client-filter-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.client-filter-title a {
  color: #ffd6a3;
  font-size: 12px;
  font-weight: 650;
}

.client-stage-filter-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.client-stage-filter-list label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  line-height: 1.35;
}

.client-stage-filter-list input {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  accent-color: #f2b77f;
}

.client-duration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.client-duration-grid label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.client-duration-grid input {
  width: 100%;
}

.client-conversation-filter-card input[type="date"] {
  cursor: pointer;
}

.client-conversation-filter-card input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

.client-conversation-filter-card button {
  width: 100%;
}

@media (max-width: 1100px) {
  body:has(.client-conversations-layout) .page,
  body:has(.client-conversations-layout).sidebar-collapsed .page {
    width: min(1180px, calc(100vw - 332px));
  }

  .client-conversations-layout {
    grid-template-columns: 1fr;
  }

  .client-conversations-filters {
    position: static;
    order: -1;
  }
}

@media (max-width: 760px) {
  .client-conversation-card summary,
  .client-conversation-expanded {
    grid-template-columns: 1fr;
  }

  .client-conversation-summary-meta {
    justify-content: flex-start;
  }

  .client-conversation-expanded {
    padding-left: 16px;
  }

  .client-chat-message {
    max-width: 100%;
  }
}

/* Last landing spacing override. Must stay below repeated landing rules. */
body:has(.landing-header) .landing-header {
  margin-top: 12px !important;
}

body:has(.landing-header) .page {
  padding-top: 0 !important;
}

body:has(.landing-header) .landing-hero {
  min-height: auto !important;
  padding: clamp(96px, 12vh, 150px) 0 clamp(72px, 9vh, 112px) !important;
  align-items: center !important;
}

body:has(.landing-header) .landing-hero-copy {
  transform: translateY(-8px);
}

@media (max-width: 760px) {
  body:has(.landing-header) .landing-header {
    margin-top: 10px !important;
  }

  body:has(.landing-header) .landing-hero {
    padding: 72px 0 56px !important;
  }

  body:has(.landing-header) .landing-hero-copy {
    transform: none;
  }
}

/* Compact landing hero spacing. Keep the first screen dense instead of viewport-tall. */
body:has(.landing-header) .landing-header {
  margin-top: 12px !important;
}

body:has(.landing-header) .page {
  padding-top: 0 !important;
}

body:has(.landing-header) .landing-hero {
  min-height: auto !important;
  padding: clamp(96px, 12vh, 150px) 0 clamp(72px, 9vh, 112px) !important;
  align-items: center !important;
}

body:has(.landing-header) .landing-hero-copy {
  transform: translateY(-8px);
}

@media (max-width: 760px) {
  body:has(.landing-header) .landing-header {
    margin-top: 10px !important;
  }

  body:has(.landing-header) .landing-hero {
    padding: 72px 0 56px !important;
  }

  body:has(.landing-header) .landing-hero-copy {
    transform: none;
  }
}

/* Final performance pass for authenticated client/admin-like pages.
   Avoid Safari scroll jank from fixed backgrounds, blur and large shadows. */
html:has(.app-sidebar),
body:has(.app-sidebar),
body:has(.topbar) {
  background-attachment: scroll !important;
}

body:has(.app-sidebar)::before,
body:has(.app-sidebar)::after,
body:has(.topbar)::before,
body:has(.topbar)::after {
  display: none !important;
}

body:has(.app-sidebar) .app-sidebar,
body:has(.app-sidebar) .account-topbar,
body:has(.app-sidebar) .card,
body:has(.app-sidebar) .task-card,
body:has(.app-sidebar) .leads-panel,
body:has(.app-sidebar) .table-card,
body:has(.app-sidebar) .package-card,
body:has(.app-sidebar) .billing-summary div,
body:has(.app-sidebar) .payment-warning,
body:has(.app-sidebar) .required-modal,
body:has(.app-sidebar) .button,
body:has(.app-sidebar) button,
body:has(.topbar) .topbar,
body:has(.topbar) .card,
body:has(.topbar) .task-card,
body:has(.topbar) .leads-panel,
body:has(.topbar) .table-card,
body:has(.topbar) .package-card,
body:has(.topbar) .billing-summary div,
body:has(.topbar) .payment-warning,
body:has(.topbar) .required-modal,
body:has(.topbar) .button,
body:has(.topbar) button {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

body:has(.app-sidebar) .card,
body:has(.app-sidebar) .task-card,
body:has(.app-sidebar) .leads-panel,
body:has(.app-sidebar) .table-card,
body:has(.app-sidebar) .package-card,
body:has(.app-sidebar) .billing-summary div,
body:has(.app-sidebar) .payment-warning,
body:has(.topbar) .card,
body:has(.topbar) .task-card,
body:has(.topbar) .leads-panel,
body:has(.topbar) .table-card,
body:has(.topbar) .package-card,
body:has(.topbar) .billing-summary div,
body:has(.topbar) .payment-warning {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset !important;
  contain: paint;
}

body:has(.app-sidebar) .app-sidebar,
body:has(.app-sidebar) .account-topbar,
body:has(.app-sidebar) .button,
body:has(.app-sidebar) button,
body:has(.topbar) .topbar,
body:has(.topbar) .button,
body:has(.topbar) button,
.toast-message {
  box-shadow: none !important;
}

body:has(.app-sidebar) .page,
body:has(.topbar) .page {
  transform: none !important;
}

body:has(.landing-header) .landing-hero {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  text-align: center !important;
}

body:has(.landing-header) .landing-hero-copy {
  margin-right: auto !important;
  margin-left: auto !important;
}

body:has(.landing-header) .landing-actions {
  justify-content: center !important;
}

body:has(.landing-header) .landing-hero {
  min-height: calc(100vh - 128px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 42px 0 58px;
}

body:has(.landing-header) .landing-hero-copy {
  width: min(100%, 760px);
  margin: 0 auto;
}

body:has(.landing-header) .landing-lead {
  max-width: 100%;
  margin: 20px auto 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  color: rgba(248, 244, 238, .86);
}

body:has(.landing-header) .landing-actions {
  justify-content: center;
}

body .low-balance-banner .button.secondary,
body:has(.topbar) .low-balance-banner .button.secondary,
body:has(.app-sidebar) .low-balance-banner .button.secondary {
  border: 1px solid rgba(120, 53, 15, .28) !important;
  background: #f2b77f !important;
  color: #1b1726 !important;
  opacity: 1 !important;
}

body .low-balance-banner .button.secondary:hover,
body:has(.topbar) .low-balance-banner .button.secondary:hover,
body:has(.app-sidebar) .low-balance-banner .button.secondary:hover {
  background: #ffd0a0 !important;
  color: #1b1726 !important;
}

body:has(.app-sidebar) .low-balance-banner {
  width: min(100%, calc(100vw - 292px - 340px - 48px));
  max-width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
}

body:has(.app-sidebar).sidebar-collapsed .low-balance-banner {
  width: min(100%, calc(100vw - 104px - 340px - 48px));
}

.low-balance-banner strong,
.low-balance-banner span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.low-balance-banner span {
  flex: 1 1 260px;
}

.low-balance-banner .button {
  flex: 0 0 auto;
}

@media (max-width: 1180px) {
  body:has(.app-sidebar) .low-balance-banner,
  body:has(.app-sidebar).sidebar-collapsed .low-balance-banner {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .low-balance-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .low-balance-banner span {
    flex: 0 1 auto;
  }

  .low-balance-banner .button {
    width: 100%;
    margin-left: 0;
  }
}

/* Final-final background guard: keep one continuous backdrop after all duplicated theme rules. */
html:has(.app-sidebar),
body:has(.app-sidebar) {
  min-height: 100%;
  background-color: #171423 !important;
  background-image:
    radial-gradient(circle at 78% 8%, rgba(242, 183, 127, .16), transparent 28%),
    radial-gradient(circle at 20% 92%, rgba(88, 74, 119, .28), transparent 34%),
    repeating-linear-gradient(102deg, rgba(242, 183, 127, .045) 0 1px, transparent 1px 18px) !important;
  background-attachment: fixed, fixed, fixed !important;
  background-repeat: no-repeat, no-repeat, repeat !important;
  background-size: 100vw 100vh, 100vw 100vh, auto !important;
}

body:has(.app-sidebar) {
  min-height: 100vh;
}

body:has(.app-sidebar)::before,
body:has(.app-sidebar)::after {
  display: none !important;
}

body:has(.app-sidebar) .page {
  background: transparent !important;
}

/* Final background guard: one continuous client/admin-like backdrop, no seams below content. */
html:has(.app-sidebar),
body:has(.app-sidebar) {
  min-height: 100%;
  background-color: #171423 !important;
  background-image:
    radial-gradient(circle at 78% 8%, rgba(242, 183, 127, .16), transparent 28%),
    radial-gradient(circle at 20% 92%, rgba(88, 74, 119, .28), transparent 34%),
    repeating-linear-gradient(102deg, rgba(242, 183, 127, .045) 0 1px, transparent 1px 18px) !important;
  background-attachment: fixed, fixed, fixed !important;
  background-repeat: no-repeat, no-repeat, repeat !important;
  background-size: 100vw 100vh, 100vw 100vh, auto !important;
}

body:has(.app-sidebar) {
  min-height: 100vh;
}

body:has(.app-sidebar)::before,
body:has(.app-sidebar)::after {
  display: none !important;
}

body:has(.app-sidebar) .page {
  background: transparent !important;
}

/* Final client layout guard: keep the client area aligned with the admin panel. */
body:has(.app-sidebar),
body:has(.app-sidebar).sidebar-collapsed {
  padding-left: 292px;
  padding-bottom: 0;
}

body:has(.app-sidebar) .app-sidebar {
  position: fixed;
  inset: 24px auto 24px 24px;
  z-index: 40;
  width: 244px;
  padding: 16px;
}

body:has(.app-sidebar).sidebar-collapsed .app-sidebar,
body.sidebar-collapsed .app-sidebar {
  width: 76px;
  padding: 16px;
}

body:has(.app-sidebar) .page,
body:has(.app-sidebar).sidebar-collapsed .page {
  width: min(1180px, calc(100vw - 332px));
  max-width: none;
  margin: 0 auto 0 0;
  padding: 32px 20px 56px;
  transform: none;
}

body:has(.app-sidebar) .account-topbar {
  position: absolute;
  top: 30px;
  right: 20px;
  z-index: 45;
}

body:has(.app-sidebar) .page-account-spacer {
  min-height: 64px;
}

.page-head:has(.back-link) .back-link {
  position: fixed;
  top: 30px;
  left: 312px;
  z-index: 35;
}

@media (min-width: 1500px) {
  body:has(.app-sidebar) .page,
  body:has(.app-sidebar).sidebar-collapsed .page {
    width: min(1320px, calc(100vw - 352px));
  }
}

@media (max-width: 900px) {
  body:has(.app-sidebar),
  body:has(.app-sidebar).sidebar-collapsed {
    padding-left: 0;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  body:has(.app-sidebar) .account-topbar {
    position: static;
    width: auto;
    max-width: 560px;
    margin: 14px auto 0;
  }

  body:has(.app-sidebar) .page,
  body:has(.app-sidebar).sidebar-collapsed .page {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 20px 18px calc(120px + env(safe-area-inset-bottom));
  }

  body:has(.app-sidebar) .app-sidebar,
  body:has(.app-sidebar).sidebar-collapsed .app-sidebar,
  body.sidebar-collapsed .app-sidebar {
    position: fixed;
    inset: auto 16px calc(14px + env(safe-area-inset-bottom));
    width: auto;
    height: 72px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 22px;
  }

  .page-head:has(.back-link) .back-link {
    left: 14px;
  }
}

html:has(.app-sidebar),
body:has(.app-sidebar) {
  min-height: 100%;
  background-color: #171423;
}

body:has(.app-sidebar) {
  min-height: 100vh;
  background-attachment: fixed;
  background-repeat: no-repeat, no-repeat, repeat, no-repeat;
}

body:has(.app-sidebar) .page,
body:has(.app-sidebar).sidebar-collapsed .page {
  padding-top: 30px;
}

@media (max-width: 760px) {
  body:has(.app-sidebar) .page,
  body:has(.app-sidebar).sidebar-collapsed .page {
    padding-top: 30px;
  }

  .page-head:has(.back-link) .back-link {
    left: 14px;
  }
}

/* Scroll performance: large glass surfaces repaint heavily on wheel/trackpad scroll. */
body:has(.landing-header)::before,
body:has(.app-sidebar)::before {
  display: none;
}

body:has(.landing-header) .voice-demo,
body:has(.landing-header) .landing-card,
body:has(.landing-header) .tariff-card,
body:has(.landing-header) .landing-band,
body:has(.landing-header) .landing-cta,
body:has(.app-sidebar) .card,
body:has(.app-sidebar) .task-card,
body:has(.app-sidebar) .leads-panel,
body:has(.app-sidebar) .table-card,
body:has(.app-sidebar) .package-card,
body:has(.app-sidebar) .billing-summary div,
body:has(.app-sidebar) .payment-warning,
body:has(.app-sidebar) .required-modal {
  backdrop-filter: none;
}

body:has(.landing-header) .landing-header,
body:has(.app-sidebar) .app-sidebar {
  backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
  body:has(.landing-header) {
    overflow-x: hidden;
  }

  body:has(.landing-header) .page {
    width: min(100%, 560px);
    padding: 18px 18px 40px;
  }

  body:has(.landing-header) .landing-header {
    width: 100%;
    margin: 0 0 26px;
    padding: 18px;
    gap: 18px;
    border-radius: 22px;
  }

  body:has(.landing-header) .landing-brand {
    font-size: 28px;
    line-height: 1;
  }

  body:has(.landing-header) .landing-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  body:has(.landing-header) .landing-nav a {
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    white-space: normal;
  }

  body:has(.landing-header) .landing-nav .landing-login {
    margin-left: 0;
  }

  body:has(.landing-header) .landing-hero {
    gap: 26px;
    padding: 0 0 34px;
  }

  body:has(.landing-header) .landing-hero h1 {
    font-size: 56px;
    line-height: .98;
  }

  body:has(.landing-header) .landing-lead {
    max-width: none;
    font-size: 20px;
    line-height: 1.45;
  }

  body:has(.landing-header) .landing-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body:has(.landing-header) .landing-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
    white-space: normal;
  }

  body:has(.landing-header) .voice-demo {
    min-height: auto;
    padding: 18px;
    border-radius: 18px;
  }

  body:has(.landing-header) .voice-wave {
    height: 230px;
    transform: scale(.86);
  }

  body:has(.landing-header) .voice-flow {
    gap: 10px;
  }

  body:has(.landing-header) .voice-flow div {
    padding: 16px 18px;
  }

  body:has(.landing-header) .landing-grid,
  body:has(.landing-header) .landing-tariffs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  body:has(.landing-header) .page {
    padding-inline: 14px;
  }

  body:has(.landing-header) .landing-hero h1 {
    font-size: 48px;
  }

  body:has(.landing-header) .landing-lead {
    font-size: 18px;
  }

  body:has(.landing-header) .landing-actions {
    grid-template-columns: 1fr;
  }
}

.package-discount,
.tariff-discount {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  margin-top: 14px;
  border: 1px solid rgba(52, 211, 153, .34);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, .18);
  font-size: 12px;
  font-style: normal;
  font-weight: 520;
}

.tariff-discount-empty {
  visibility: hidden;
}

.package-calls {
  line-height: 1.35;
}

.tariff-card small {
  display: block;
  margin-top: 8px;
  color: rgba(248, 244, 238, .62);
  font-size: 13px;
}

body:has(.landing-header) .page {
  padding-top: 10px;
}

body:has(.landing-header) .landing-hero {
  min-height: calc(100vh - 112px);
  padding-top: 10px;
}

body:has(.landing-header) .voice-demo-top {
  justify-content: flex-start;
}

body:has(.landing-header) .landing-tariffs {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

body:has(.landing-header) .tariff-card {
  min-width: 0;
}

.toast-stack {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 2000;
  width: min(1140px, calc(100vw - 40px));
  display: grid;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast-message {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border: 1px solid rgba(167, 243, 208, .45);
  border-radius: 12px;
  color: #a7f3d0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)),
    rgba(16, 185, 129, .16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 18px 54px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  animation: toast-in .24s ease both;
}

.toast-message.error,
.toast-message.warning {
  border-color: rgba(248, 113, 113, .42);
  color: #fecaca;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)),
    rgba(239, 68, 68, .16);
}

.toast-message.info {
  border-color: rgba(118, 181, 245, .42);
  color: #a8d8ff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)),
    rgba(61, 140, 219, .16);
}

.toast-message.is-hiding {
  animation: toast-out .22s ease both;
}

.toast-close {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: inherit;
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
}

.toast-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

.task-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 16px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
    rgba(23, 19, 36, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.task-filter-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 13px;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)),
    rgba(255, 255, 255, .035);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.task-filter-tabs a:hover,
.task-filter-tabs a.active {
  color: #211a29;
  border-color: rgba(255, 226, 189, .62);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .11)),
    rgba(242, 183, 127, .82);
}

.task-filter-tabs span {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, .16);
}

.sidebar-balance {
  display: none !important;
}

body:has(.app-sidebar) .status,
body:has(.app-sidebar) .pill {
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

body:has(.app-sidebar) .status.status-new,
body:has(.app-sidebar) .pill.status-new,
body:has(.app-sidebar) .status.status-default,
body:has(.app-sidebar) .pill.status-default {
  color: #d6d3e3;
  background: rgba(255, 255, 255, .08);
}

body:has(.app-sidebar) .status.status-paused,
body:has(.app-sidebar) .pill.status-paused {
  color: #ffe2bd;
  background: rgba(242, 183, 127, .22);
  border-color: rgba(242, 183, 127, .34);
}

body:has(.app-sidebar) .status.status-queued,
body:has(.app-sidebar) .pill.status-queued {
  color: #a8d8ff;
  background: rgba(61, 140, 219, .20);
  border-color: rgba(118, 181, 245, .32);
}

body:has(.app-sidebar) .status.status-sent,
body:has(.app-sidebar) .pill.status-sent {
  color: #a7f3d0;
  background: rgba(16, 185, 129, .18);
  border-color: rgba(52, 211, 153, .34);
}

body:has(.app-sidebar) .status.status-failed,
body:has(.app-sidebar) .pill.status-failed,
body:has(.app-sidebar) .status.status-limit,
body:has(.app-sidebar) .pill.status-limit {
  color: #fecaca;
  background: rgba(239, 68, 68, .18);
  border-color: rgba(248, 113, 113, .35);
}

body:has(.app-sidebar) .status.status-duplicate,
body:has(.app-sidebar) .pill.status-duplicate {
  color: #ddd6fe;
  background: rgba(139, 92, 246, .18);
  border-color: rgba(167, 139, 250, .32);
}

body:has(.app-sidebar) .page .button,
body:has(.app-sidebar) .page button,
body:has(.landing-header) .button,
body:has(.landing-header) button,
body:has(.auth-shell) .auth-submit {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .20);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .09)),
    rgba(242, 183, 127, .74);
  color: #1b1726;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .36),
    0 14px 34px rgba(242, 183, 127, .18);
  backdrop-filter: blur(14px);
}

body:has(.app-sidebar) .page .button:hover,
body:has(.app-sidebar) .page button:hover,
body:has(.landing-header) .button:hover,
body:has(.landing-header) button:hover,
body:has(.auth-shell) .auth-submit:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .40), rgba(255, 255, 255, .13)),
    rgba(255, 208, 160, .88);
  color: #1b1726;
}

body:has(.app-sidebar) .page .button.secondary,
body:has(.app-sidebar) .page .ghost-button,
body:has(.landing-header) .button.secondary {
  color: #ffe2bd;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)),
    rgba(255, 255, 255, .07);
}

.account-topbar {
  position: absolute;
  top: 24px;
  right: 20px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px;
  border: 1px solid rgba(255, 232, 206, .12);
  border-radius: 16px;
  background: rgba(26, 23, 39, .72);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.account-email {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
  color: rgba(248, 244, 238, .74);
  font-size: 14px;
  font-weight: 360;
}

.account-icon-button,
button.account-icon-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)),
    rgba(255, 255, 255, .07);
  color: #ffe2bd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.account-icon-button svg,
button.account-icon-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.account-topbar form {
  margin: 0;
}

.account-balance {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 430;
}

.account-balance.positive {
  border: 1px solid rgba(59, 130, 246, .30);
  background: rgba(59, 130, 246, .16);
  color: #bfdbfe;
}

.account-balance.warning {
  border: 1px solid rgba(245, 158, 11, .35);
  background: rgba(245, 158, 11, .18);
  color: #fde68a;
}

.account-balance.empty {
  border: 1px solid rgba(236, 93, 93, .24);
  background: rgba(236, 93, 93, .12);
  color: #ffaaa5;
}

.account-balance strong {
  color: inherit;
  font-size: 15px;
}

.sidebar-footer:empty {
  display: none;
}

@media (max-width: 900px) {
  .account-topbar {
    position: static;
    width: calc(100% - 28px);
    margin: 14px auto 0;
  }
}

body:has(.app-sidebar) .account-topbar {
  top: 30px;
  right: 20px;
  background: rgba(26, 23, 39, .54);
  box-shadow: none;
}

@media (max-width: 900px) {
  body:has(.app-sidebar) .account-topbar {
    position: static;
    width: calc(100% - 28px);
    margin: 14px auto 0;
  }
}

body:has(.app-sidebar) .page {
  position: relative;
}

.page-account-spacer {
  min-height: 64px;
}

.page-head > div > p:not(.eyebrow),
.payment-head > div > p:not(.eyebrow) {
  display: none;
}

body:has(.app-sidebar),
body:has(.app-sidebar).sidebar-collapsed {
  padding-left: 292px;
}

.app-sidebar {
  width: 244px;
  padding: 16px;
}

.sidebar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
}

.sidebar-nav,
.sidebar-footer {
  justify-items: stretch;
}

.sidebar-icon,
.sidebar-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  padding: 0;
}

.sidebar-nav a,
.sidebar-balance,
.sidebar-user,
.sidebar-logout {
  min-height: 52px;
  padding: 4px;
}

body.sidebar-collapsed .app-sidebar {
  width: 76px;
  padding: 16px;
}

body.sidebar-collapsed .sidebar-head {
  display: grid;
  grid-template-columns: 44px;
  justify-content: center;
  justify-items: center;
  margin-bottom: 22px;
}

body.sidebar-collapsed .sidebar-brand {
  display: none;
}

body.sidebar-collapsed .sidebar-nav,
body.sidebar-collapsed .sidebar-footer {
  justify-items: center;
}

body.sidebar-collapsed .sidebar-nav a,
body.sidebar-collapsed .sidebar-balance,
body.sidebar-collapsed .sidebar-user,
body.sidebar-collapsed .sidebar-logout {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
}

body.sidebar-collapsed .sidebar-label {
  display: none;
}

body.sidebar-collapsed .sidebar-toggle {
  transform: none;
}

body:has(.app-sidebar) .page,
body:has(.app-sidebar).sidebar-collapsed .page {
  width: min(1180px, calc(100vw - 332px));
  max-width: none;
  margin-left: 0;
  transform: none;
}

body:has(.app-sidebar) .button,
body:has(.app-sidebar) button,
body:has(.app-sidebar) .button.secondary,
body:has(.app-sidebar) .ghost-button,
body:has(.landing-header) .button,
body:has(.landing-header) button,
body:has(.landing-header) .button.secondary {
  border: 1px solid rgba(255, 255, 255, .20);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .09)),
    rgba(242, 183, 127, .74);
  color: #1b1726;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .36),
    0 14px 34px rgba(242, 183, 127, .18);
  backdrop-filter: blur(14px);
}

body:has(.app-sidebar) .button:hover,
body:has(.app-sidebar) button:hover,
body:has(.landing-header) .button:hover,
body:has(.landing-header) button:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .40), rgba(255, 255, 255, .13)),
    rgba(255, 208, 160, .88);
  color: #1b1726;
}

body:has(.app-sidebar) .button.secondary,
body:has(.app-sidebar) .ghost-button,
body:has(.landing-header) .button.secondary {
  color: #ffe2bd;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)),
    rgba(255, 255, 255, .07);
}

body:has(.app-sidebar) .sidebar-toggle,
body:has(.app-sidebar) .sidebar-logout {
  color: #ffe2bd;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05)),
    rgba(255, 255, 255, .07);
}

@media (max-width: 900px) {
  body:has(.app-sidebar),
  body:has(.app-sidebar).sidebar-collapsed {
    padding-left: 0;
  }

  body:has(.app-sidebar) .page,
  body:has(.app-sidebar).sidebar-collapsed .page {
    width: auto;
    margin: 0 auto;
  }
}

body {
  font-weight: 300;
}

h1,
h2,
h3,
.brand,
.landing-brand,
.sidebar-brand,
.auth-card h1,
.metric-value,
.task-stats strong,
.package-price,
.billing-summary strong {
  font-weight: 520;
}

.button,
button,
.mainnav a,
.landing-nav a,
.sidebar-nav a,
.sidebar-balance,
.sidebar-user,
.sidebar-logout,
label,
th {
  font-weight: 430;
}

.eyebrow,
.landing-kicker,
.auth-brand {
  font-weight: 520;
}

body:has(.auth-shell) .auth-brand {
  width: fit-content;
  margin-bottom: 22px;
  color: transparent;
  background: linear-gradient(135deg, #fff7ed 0%, #f2b77f 48%, #9d8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 28px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 14px 34px rgba(242, 183, 127, .28);
}

body:has(.app-sidebar),
body:has(.app-sidebar).sidebar-collapsed {
  padding-left: 292px;
}

body:has(.app-sidebar) .page,
body:has(.app-sidebar).sidebar-collapsed .page {
  width: min(1180px, calc(100vw - 332px));
  transform: none;
}

body.sidebar-collapsed .app-sidebar {
  width: 76px;
}

body.sidebar-collapsed .sidebar-head {
  display: grid;
  place-items: center;
}

body.sidebar-collapsed .sidebar-brand {
  display: none;
}

body.sidebar-collapsed .sidebar-toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  transform: none;
}

body.sidebar-collapsed .sidebar-toggle svg {
  width: 24px;
  height: 24px;
}

body.sidebar-collapsed .sidebar-nav a,
body.sidebar-collapsed .sidebar-balance,
body.sidebar-collapsed .sidebar-user,
body.sidebar-collapsed .sidebar-logout {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

body.sidebar-collapsed .sidebar-footer {
  justify-items: center;
}

body.sidebar-collapsed .sidebar-icon {
  margin: 0;
}

@media (max-width: 900px) {
  body:has(.app-sidebar),
  body:has(.app-sidebar).sidebar-collapsed {
    padding-left: 0;
  }

  body:has(.app-sidebar) .page,
  body:has(.app-sidebar).sidebar-collapsed .page {
    width: auto;
  }
}

/* Final overrides: keep user filters and lead statuses above shared button rules. */
.task-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 16px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
    rgba(23, 19, 36, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.task-filter-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 13px;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)),
    rgba(255, 255, 255, .035);
}

.task-filter-tabs a:hover,
.task-filter-tabs a.active {
  color: #211a29;
  border-color: rgba(255, 226, 189, .62);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .11)),
    rgba(242, 183, 127, .82);
}

.task-filter-tabs span {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, .16);
}

.sidebar-balance {
  display: none !important;
}

body:has(.app-sidebar) .status.status-new,
body:has(.app-sidebar) .pill.status-new,
body:has(.app-sidebar) .status.status-default,
body:has(.app-sidebar) .pill.status-default {
  color: #d6d3e3;
  background: rgba(255, 255, 255, .08);
}

body:has(.app-sidebar) .status.status-paused,
body:has(.app-sidebar) .pill.status-paused {
  color: #ffe2bd;
  background: rgba(242, 183, 127, .22);
  border-color: rgba(242, 183, 127, .34);
}

body:has(.app-sidebar) .status.status-queued,
body:has(.app-sidebar) .pill.status-queued {
  color: #a8d8ff;
  background: rgba(61, 140, 219, .20);
  border-color: rgba(118, 181, 245, .32);
}

body:has(.app-sidebar) .status.status-sent,
body:has(.app-sidebar) .pill.status-sent {
  color: #a7f3d0;
  background: rgba(16, 185, 129, .18);
  border-color: rgba(52, 211, 153, .34);
}

body:has(.app-sidebar) .status.status-failed,
body:has(.app-sidebar) .pill.status-failed,
body:has(.app-sidebar) .status.status-limit,
body:has(.app-sidebar) .pill.status-limit {
  color: #fecaca;
  background: rgba(239, 68, 68, .18);
  border-color: rgba(248, 113, 113, .35);
}

body:has(.app-sidebar) .status.status-duplicate,
body:has(.app-sidebar) .pill.status-duplicate {
  color: #ddd6fe;
  background: rgba(139, 92, 246, .18);
  border-color: rgba(167, 139, 250, .32);
}
body:has(.client-conversations-layout) .page,
body:has(.client-conversations-layout).sidebar-collapsed .page {
  width: min(1540px, calc(100vw - 332px));
  max-width: none;
}

.page-head .eyebrow,
.payment-head .eyebrow {
  display: none !important;
}

@media (max-width: 1100px) {
  body:has(.client-conversations-layout) .page,
  body:has(.client-conversations-layout).sidebar-collapsed .page {
    width: min(1180px, calc(100vw - 332px));
  }
}
