:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --surface-hot: #fff2ee;
  --ink: #151a22;
  --muted: #667085;
  --quiet: #8a94a6;
  --line: #e3e7ed;
  --line-strong: #d1d8e3;
  --red: #e42a18;
  --red-2: #ff5a2f;
  --green: #16a34a;
  --green-soft: #eaf8ee;
  --teal: #008f94;
  --teal-soft: #e7f7f7;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(18, 25, 38, 0.08);
  --sidebar: 248px;
  --radius: 8px;
  --speed: 160ms;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

.auth-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 520px);
  background: #fff;
}

.auth-visual {
  display: grid;
  align-content: center;
  gap: 24px;
  padding: clamp(32px, 7vw, 92px);
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 90, 47, 0.18), transparent 28%),
    linear-gradient(135deg, #101828, #192333 68%, #101317);
  color: #fff;
}

.auth-visual h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
}

.auth-visual p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.55;
}

.auth-proof {
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 780;
}

.auth-proof span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-proof svg {
  width: 18px;
  height: 18px;
  color: #59d07d;
}

.auth-panel {
  display: grid;
  align-content: center;
  padding: clamp(24px, 5vw, 54px);
}

.auth-card {
  display: grid;
  gap: 16px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.auth-card h2 {
  margin: 0;
  font-size: 28px;
}

.auth-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-error {
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fff1f2;
  color: #b42318;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 760;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 24px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--red), var(--red-2));
  color: #fff;
}

.workspace-card,
.usage-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.workspace-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.workspace-avatar,
.user-avatar {
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.workspace-name,
.user-name,
.table-title,
.metric-value,
.section-title {
  overflow-wrap: anywhere;
}

.workspace-name {
  font-size: 14px;
  font-weight: 750;
}

.workspace-plan,
.user-role,
.small-label,
.muted {
  color: var(--muted);
}

.workspace-plan,
.user-role {
  margin-top: 1px;
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 5px;
  padding: 4px 0;
}

.nav-group {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  border-radius: 6px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  padding: 11px 10px;
  text-align: left;
  transition:
    background var(--speed),
    color var(--speed);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.nav-item span {
  min-width: 0;
  font-size: 15px;
  font-weight: 650;
}

.nav-item.active {
  background: #fff0ed;
  color: var(--red);
  box-shadow: inset -2px 0 0 var(--red);
}

.usage-card {
  margin-top: auto;
  padding: 14px;
}

.usage-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.status-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.status-pill {
  padding: 6px 8px;
}

.status-live,
.status-danger {
  background: var(--red);
  color: #fff;
}

.status-success,
.status-green {
  background: var(--green-soft);
  color: var(--green);
}

.status-warn {
  background: #fff7e6;
  color: #b45309;
}

.status-teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.status-neutral {
  background: #edf1f5;
  color: #4b5565;
}

.usage-line {
  margin-top: 14px;
}

.usage-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.meter {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1f5;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #62c44c);
}

.page {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 420px) auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 248, 0.94);
  padding: 17px 28px;
  backdrop-filter: blur(18px);
}

.page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 850;
}

.search-box {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 9px 12px;
}

.search-box svg {
  width: 18px;
  height: 18px;
  color: #475467;
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.shortcut {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 750;
}

.top-actions,
.user-chip,
.icon-row,
.button-row {
  display: flex;
  align-items: center;
}

.top-actions {
  justify-content: flex-end;
  gap: 14px;
}

.icon-btn {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: #344054;
  cursor: pointer;
  transition:
    transform var(--speed),
    border var(--speed),
    color var(--speed);
}

.icon-btn:hover,
.btn:hover,
.nav-item:hover {
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.user-chip {
  gap: 10px;
  min-width: 172px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  overflow: hidden;
  background: #121212;
}

.user-name {
  font-size: 14px;
  font-weight: 800;
}

.content {
  display: grid;
  gap: 18px;
  padding: 22px 28px 34px;
}

.grid {
  display: grid;
  gap: 18px;
}

.kpi-grid {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
}

.kpi-card,
.panel,
.stat-card,
.form-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.kpi-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  min-height: 102px;
  padding: 18px;
}

.kpi-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal);
}

.kpi-icon svg {
  width: 24px;
  height: 24px;
}

.kpi-title {
  color: #475467;
  font-size: 13px;
  font-weight: 760;
}

.kpi-number {
  min-width: 0;
  margin-top: 4px;
  font-size: clamp(22px, 1.65vw, 27px);
  font-weight: 860;
  line-height: 1;
  overflow-wrap: anywhere;
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.kpi-sub {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(380px, 0.95fr);
  align-items: start;
}

.panel {
  min-width: 0;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

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

.panel-title h2,
.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 850;
}

.panel-link {
  color: var(--teal);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.campaign-main {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.media-card {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 36%, rgba(255, 90, 47, 0.28), transparent 22%),
    linear-gradient(135deg, #111827, #05070b 62%, #1b1f29);
  color: #fff;
}

.media-card::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  width: 122px;
  height: 152px;
  border-radius: 58px 58px 0 0;
  background:
    radial-gradient(circle at 50% 18%, #f4b896 0 18px, transparent 19px),
    linear-gradient(#111827 0 46px, #262b35 46px 100%);
  content: "";
  opacity: 0.94;
}

.media-card::before {
  position: absolute;
  right: 52px;
  bottom: 105px;
  z-index: 1;
  width: 52px;
  height: 28px;
  border-radius: 50% 50% 44% 44%;
  background: #191919;
  content: "";
}

.media-copy {
  position: relative;
  z-index: 2;
  max-width: 64%;
  padding: 26px 18px;
}

.media-copy h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  text-transform: uppercase;
}

.media-copy p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.live-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-2);
  content: "";
}

.campaign-info {
  display: grid;
  align-content: center;
  gap: 12px;
}

.campaign-info h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
}

.campaign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.campaign-meta strong {
  color: var(--red);
}

.campaign-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.button-row {
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
  transition:
    transform var(--speed),
    background var(--speed),
    border-color var(--speed),
    color var(--speed),
    box-shadow var(--speed);
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(228, 42, 24, 0.22);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: #1f2937;
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  padding-inline: 8px;
}

.btn-success {
  background: var(--green);
  color: #fff;
}

.btn-full {
  width: 100%;
}

.btn-small {
  min-height: 34px;
  padding: 8px 11px;
  font-size: 13px;
}

.campaign-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}

.stat-cell {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 18px;
}

.stat-cell:last-child {
  border-right: 0;
}

.stat-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.stat-cell strong {
  display: block;
  margin-top: 8px;
  font-size: 21px;
  font-weight: 880;
}

.stat-cell em {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.room-preview {
  padding: 18px;
}

.webinar-stage {
  overflow: hidden;
  border-radius: 8px;
  background: #05070b;
  color: #fff;
}

.stage-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 0;
  font-size: 12px;
  font-weight: 850;
}

.stage-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 0;
  padding: 12px;
}

.video-frame {
  position: relative;
  min-height: 236px;
  overflow: hidden;
  border: 1px solid #222936;
  border-radius: 7px 0 0 7px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 133, 79, 0.16), transparent 18%),
    linear-gradient(135deg, #131821, #06070a 72%);
}

.speaker {
  position: absolute;
  right: 23%;
  bottom: 0;
  width: 125px;
  height: 186px;
  border-radius: 64px 64px 0 0;
  background:
    radial-gradient(circle at 50% 17%, #e7aa86 0 26px, transparent 27px),
    linear-gradient(#0f172a 0 58px, #202837 58px 100%);
}

.speaker::before {
  position: absolute;
  left: 36px;
  top: 18px;
  width: 54px;
  height: 30px;
  border-radius: 50% 50% 42% 42%;
  background: #141414;
  content: "";
}

.progress-track {
  position: absolute;
  right: 12px;
  bottom: 11px;
  left: 12px;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.progress-track span {
  display: block;
  height: 100%;
  width: var(--progress, 38%);
  background: var(--red-2);
}

.chat-panel {
  display: grid;
  min-height: 236px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid #222936;
  border-left: 0;
  border-radius: 0 7px 7px 0;
  background: #10141d;
}

.chat-head,
.chat-input {
  padding: 10px;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 850;
}

.chat-list {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: hidden;
  padding: 2px 10px 8px;
}

.chat-message {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
}

.chat-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7b58e, #e4775f);
}

.chat-message b {
  display: block;
  font-size: 11px;
}

.chat-message span {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.64);
}

.chat-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 6px;
  border-top: 1px solid #222936;
}

.chat-input input {
  min-width: 0;
  border: 1px solid #2a3140;
  border-radius: 5px;
  background: #090d14;
  color: #fff;
  padding: 8px;
  font-size: 11px;
}

.chat-input button {
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
}

.preview-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.lower-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr) minmax(420px, 1.35fr);
}

.list-card {
  padding: 12px 12px 14px;
}

.webinar-row,
.automation-row,
.lead-row,
.event-row,
.integration-row {
  display: grid;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.webinar-row {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.webinar-row:last-child,
.automation-row:last-child,
.lead-row:last-child,
.event-row:last-child,
.integration-row:last-child {
  border-bottom: 0;
}

.date-badge {
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 54px;
  border-radius: 7px;
  background: #fff4f1;
  color: var(--red);
  text-align: center;
  font-weight: 850;
}

.date-badge small {
  color: #8a94a6;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.date-badge span {
  font-size: 20px;
  line-height: 1;
}

.row-title {
  font-weight: 820;
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.automation-list {
  padding: 12px 18px 18px;
}

.automation-row {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.step-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--green);
}

.step-icon svg {
  width: 17px;
  height: 17px;
}

.automation-row.warn .step-icon {
  color: var(--red);
}

.chart-panel {
  padding: 18px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 12px 0;
  color: #475467;
  font-size: 13px;
  font-weight: 750;
}

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

.legend i {
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
}

.line-chart {
  width: 100%;
  height: 210px;
}

.line-chart text {
  fill: #667085;
  font-size: 12px;
  font-weight: 700;
}

.line-chart .gridline {
  stroke: #eef1f5;
}

.line-chart .teal-line {
  stroke: var(--teal);
}

.line-chart .orange-line {
  stroke: var(--red-2);
}

.line-chart .green-line {
  stroke: var(--green);
}

.chart-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.chart-kpis > div {
  border-right: 1px solid var(--line);
  padding: 13px 10px 0;
}

.chart-kpis > div:last-child {
  border-right: 0;
}

.chart-kpis span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.chart-kpis strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
  font-weight: 880;
}

.table-panel {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

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

.data-table th {
  color: #667085;
  font-size: 12px;
  font-weight: 820;
}

.data-table td {
  font-size: 14px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #344054;
  font-weight: 700;
}

.status-dot::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.status-dot.warn::before {
  background: var(--amber);
}

.status-dot.danger::before {
  background: var(--red);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px;
}

.quick-card {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
  padding: 14px;
  color: #344054;
  font-weight: 820;
}

.quick-card svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.form-shell {
  padding: 20px;
}

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

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

.field.full {
  grid-column: 1 / -1;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 11px 12px;
  font-size: 14px;
  transition:
    border var(--speed),
    box-shadow var(--speed);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(0, 143, 148, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 143, 148, 0.13);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.preview-phone {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1118;
  padding: 14px;
  box-shadow: var(--shadow);
}

.phone-screen {
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}

.public-hero {
  display: grid;
  min-height: 320px;
  align-content: center;
  gap: 14px;
  padding: 32px;
  background:
    radial-gradient(circle at 78% 20%, rgba(228, 42, 24, 0.12), transparent 28%),
    linear-gradient(135deg, #101828, #1e293b);
  color: #fff;
}

.public-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.02;
  max-width: 850px;
}

.public-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.registration-page {
  display: grid;
  min-height: 100vh;
  background: #fff;
}

.registration-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 520px);
}

.registration-form {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 44px;
  background: #fff;
}

.bullet-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  display: flex;
  gap: 10px;
  color: #e6edf8;
  line-height: 1.45;
}

.bullet-list li::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--red-2);
  content: "";
  margin-top: 8px;
}

.room-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) 370px;
  background: #080b10;
  color: #fff;
}

.room-main {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 34px;
}

.room-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 750;
}

.room-video {
  position: relative;
  min-height: min(62vh, 650px);
  overflow: hidden;
  border: 1px solid #212936;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 113, 77, 0.15), transparent 20%),
    linear-gradient(135deg, #121722, #05070a 76%);
}

.room-video .speaker {
  right: 35%;
  width: 170px;
  height: 250px;
}

.room-progress {
  display: grid;
  gap: 9px;
}

.room-side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-left: 1px solid #212936;
  background: #10141d;
}

.room-offer {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid #212936;
  padding: 22px;
}

.room-offer .muted {
  color: rgba(255, 255, 255, 0.64);
}

.room-chat {
  overflow: auto;
  padding: 18px 22px;
}

.room-chat .chat-message {
  margin-bottom: 14px;
  font-size: 13px;
}

.room-chat .chat-message b {
  font-size: 13px;
}

.room-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  border-top: 1px solid #212936;
  padding: 16px;
}

.room-compose input {
  min-width: 0;
  border: 1px solid #2a3140;
  border-radius: 7px;
  background: #090d14;
  color: #fff;
  outline: none;
  padding: 12px;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 260px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow);
  padding: 13px 15px;
  font-size: 14px;
  font-weight: 720;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms,
    transform 180ms;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.mobile-top {
  display: none;
}

@media (max-width: 1240px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }

  .dashboard-grid,
  .lower-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 42vh;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .sidebar > .brand {
    display: none;
  }

  .sidebar.collapsed .workspace-card,
  .sidebar.collapsed .nav,
  .sidebar.collapsed .nav-group,
  .sidebar.collapsed .usage-card {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr;
    position: static;
  }

  .top-actions {
    justify-content: space-between;
  }

  .content {
    padding: 18px;
  }

  .campaign-main,
  .registration-shell,
  .room-page {
    grid-template-columns: 1fr;
  }

  .campaign-stats,
  .preview-actions,
  .chart-kpis,
  .quick-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stat-cell,
  .chart-kpis > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-cell:last-child,
  .chart-kpis > div:last-child {
    border-bottom: 0;
  }

  .stage-body {
    grid-template-columns: 1fr;
  }

  .video-frame,
  .chat-panel {
    border-radius: 7px;
  }

  .chat-panel {
    border: 1px solid #222936;
    border-top: 0;
  }

  .registration-form {
    padding: 24px;
  }

  .room-main {
    padding: 20px;
  }

  .room-side {
    border-left: 0;
    border-top: 1px solid #212936;
  }
}

@media (max-width: 640px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .top-actions {
    flex-wrap: wrap;
  }

  .campaign-main,
  .panel-header,
  .form-shell {
    padding: 14px;
  }

  .public-hero {
    padding: 24px;
  }

  .public-hero p {
    font-size: 16px;
  }
}
