:root {
  --violet-900: #19045e;
  --violet-800: #2b087f;
  --violet-700: #4d08d7;
  --violet-600: #6716f2;
  --violet-500: #7c3cff;
  --violet-100: #f0e9ff;
  --violet-050: #faf7ff;
  --ink: #070536;
  --muted: #717096;
  --line: #e9e7f5;
  --soft: #f7f7fb;
  --card: #ffffff;
  --success: #0f9f63;
  --danger: #ef3d57;
  --warning: #f5a623;
  --shadow: 0 18px 48px rgba(49, 30, 110, 0.1);
  --shadow-soft: 0 10px 28px rgba(25, 4, 94, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(124, 60, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfbff 0%, #f5f6fb 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  font-weight: 800;
  color: var(--violet-700);
}

.brand-mark,
.icon-bubble {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--violet-700), var(--violet-500));
  color: #fff;
  box-shadow: 0 12px 26px rgba(103, 22, 242, 0.28);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.area-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.nav-btn,
.screen-tab,
.seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--violet-900);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-btn.active,
.screen-tab.active,
.seg-btn.active {
  border-color: transparent;
  background: var(--violet-700);
  color: #fff;
  box-shadow: 0 10px 22px rgba(103, 22, 242, 0.22);
}

.main {
  padding: 26px 28px 38px;
}

.hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--violet-700);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

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

.workspace {
  display: grid;
  grid-template-columns: minmax(220px, 285px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.screen-list,
.panel,
.phone {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.screen-list {
  position: sticky;
  top: 92px;
  padding: 14px;
}

.screen-list h3 {
  margin: 6px 8px 12px;
  font-size: 14px;
}

.screen-tab {
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 8px;
  border-radius: 14px;
}

.stage {
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(100%, 378px);
  min-height: 740px;
  padding: 14px;
  border-radius: 34px;
}

.phone-screen {
  position: relative;
  min-height: 710px;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
}

.phone-status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.status-icons {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.status-icons span {
  display: block;
  width: 12px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.9;
}

.phone-content {
  position: relative;
  z-index: 1;
  padding: 20px 20px 18px;
}

.phone-content.flush {
  padding-top: 0;
}

.phone-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.phone h2 {
  margin-bottom: 5px;
  font-size: 25px;
  line-height: 1.12;
}

.phone h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 4px solid #fff;
  border-radius: 50%;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(135deg, #20144d 0%, #6e4b2b 48%, #ffc966 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.avatar.large {
  width: 118px;
  height: 118px;
  font-size: 28px;
}

.avatar.small {
  width: 38px;
  height: 38px;
  border-width: 2px;
  font-size: 11px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(25, 4, 94, 0.06);
}

.soft-card {
  border: 1px solid #eee8ff;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f8f2ff);
}

.card-pad {
  padding: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat {
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--violet-900);
  font-size: 18px;
}

.stat span {
  color: var(--muted);
  font-size: 11px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-btn {
  background: linear-gradient(135deg, var(--violet-700), var(--violet-600));
  color: #fff;
  box-shadow: 0 14px 26px rgba(103, 22, 242, 0.24);
}

.secondary-btn {
  border: 1px solid var(--violet-500);
  background: #fff;
  color: var(--violet-700);
}

.ghost-btn {
  background: transparent;
  color: var(--violet-700);
}

.danger-btn {
  border: 1px solid #ffd1d9;
  background: #fff5f7;
  color: var(--danger);
}

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

.stack {
  display: grid;
  gap: 12px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border-bottom: 0;
}

.label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.price,
.violet {
  color: var(--violet-700);
  font-weight: 800;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--violet-100);
  color: var(--violet-700);
  font-size: 12px;
  font-weight: 800;
}

.pill.success {
  background: #e8fbf3;
  color: var(--success);
}

.pill.warning {
  background: #fff7e8;
  color: #a86500;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid #dedbed;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.input {
  height: 46px;
  padding: 0 14px;
}

.textarea {
  min-height: 76px;
  padding: 12px 14px;
  resize: none;
}

.choice {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.radio-dot {
  width: 19px;
  height: 19px;
  border: 2px solid #bdb7d8;
  border-radius: 50%;
}

.choice.active {
  border-color: var(--violet-500);
  background: var(--violet-050);
}

.choice.active .radio-dot {
  border: 6px solid var(--violet-700);
}

.summary {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.summary .list-row {
  padding: 9px 0;
}

.summary .total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed #d8d3ea;
  font-size: 16px;
}

.visual-card {
  min-height: 178px;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(103, 22, 242, 0.14), rgba(15, 159, 99, 0.11)),
    repeating-linear-gradient(32deg, transparent 0 21px, rgba(255, 255, 255, 0.9) 22px 24px),
    #edf0f7;
}

.pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50% 50% 50% 8px;
  background: var(--violet-700);
  color: #fff;
  transform: rotate(-45deg);
  box-shadow: 0 14px 26px rgba(103, 22, 242, 0.28);
}

.pin span {
  transform: rotate(45deg);
  font-weight: 900;
}

.visual-area {
  position: relative;
  min-height: 240px;
  border-radius: 22px;
  background:
    linear-gradient(130deg, rgba(103, 22, 242, 0.1), transparent 42%),
    repeating-linear-gradient(45deg, #fff 0 18px, #f0f1f6 19px 22px);
  overflow: hidden;
}

.visual-area:before {
  content: "";
  position: absolute;
  inset: 46% -10% auto -8%;
  height: 5px;
  border-top: 4px dashed var(--violet-600);
  transform: rotate(-12deg);
}

.scooter {
  position: absolute;
  right: 38px;
  top: 88px;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 24px;
  background: var(--violet-700);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 18px 34px rgba(103, 22, 242, 0.28);
}

.purple-hero {
  margin: -40px -20px 16px;
  padding: 68px 20px 34px;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.24) 0 23%, transparent 24% 39%, rgba(255, 255, 255, 0.12) 40% 54%, transparent 55%),
    linear-gradient(145deg, var(--violet-600), var(--violet-900));
  color: #fff;
  text-align: center;
}

.success-hero {
  margin: -40px -20px 18px;
  padding: 72px 20px 42px;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(145deg, #10a96a, #07874f);
  color: #fff;
  text-align: center;
}

.checkmark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  color: var(--success);
  font-size: 42px;
  font-weight: 900;
}

.message-grid {
  display: grid;
  gap: 8px;
}

.quick-msg {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--violet-900);
  font-weight: 700;
}

.tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 10px 10px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.tab-bar button {
  display: grid;
  gap: 3px;
  place-items: center;
  min-height: 42px;
  background: transparent;
  color: #9a96b3;
  font-size: 10px;
  font-weight: 700;
}

.tab-bar button.active {
  color: var(--violet-700);
}

.info-panel {
  display: grid;
  gap: 16px;
}

.info-panel .panel {
  padding: 18px;
}

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

.feature {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.feature strong {
  display: block;
  margin-bottom: 5px;
}

.desktop-panel {
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dash-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 720px;
}

.dash-sidebar {
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  background: #fcfbff;
}

.dash-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-weight: 800;
  color: var(--violet-700);
}

.dash-menu {
  display: grid;
  gap: 6px;
}

.dash-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: transparent;
  color: #58547b;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.dash-menu button.active {
  background: var(--violet-100);
  color: var(--violet-700);
}

.dash-content {
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 60, 255, 0.05), transparent 30%),
    #fff;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.dash-head h2 {
  margin-bottom: 4px;
  font-size: 24px;
}

.dash-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.metric-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(25, 4, 94, 0.05);
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  color: var(--violet-900);
  font-size: 24px;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 14px;
}

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

.dash-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(25, 4, 94, 0.05);
}

.dash-card h3 {
  margin-bottom: 14px;
  font-size: 15px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.chart {
  position: relative;
  min-height: 220px;
  border-radius: 14px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    repeating-linear-gradient(180deg, transparent 0 43px, #ece9f7 44px 45px);
  overflow: hidden;
}

.bars {
  position: absolute;
  inset: 38px 14px 18px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.bar {
  flex: 1;
  min-width: 8px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--violet-500), var(--violet-700));
}

.line-chart:before,
.line-chart:after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  height: 70px;
  border-bottom: 4px solid var(--violet-600);
  border-radius: 50%;
}

.line-chart:before {
  top: 58px;
  transform: rotate(-3deg);
}

.line-chart:after {
  top: 82px;
  border-color: #ee4aa2;
  transform: rotate(5deg);
}

.donut {
  width: 160px;
  height: 160px;
  margin: 10px auto;
  border-radius: 50%;
  background: conic-gradient(var(--violet-700) 0 76%, #ef4f69 76% 88%, #ffbf3f 88% 95%, #d7d8f6 95% 100%);
  box-shadow: inset 0 0 0 42px #fff;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece8f7;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet-700), var(--violet-500));
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--violet-700);
  font-size: 12px;
  font-weight: 800;
}

.footer-note {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, 1fr) 1.1fr;
  gap: 18px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
}

.footer-note h3 {
  margin-bottom: 10px;
  color: var(--violet-700);
}

.footer-note ul {
  margin: 0;
  padding-left: 18px;
  color: var(--violet-900);
  font-size: 12px;
  line-height: 1.8;
}

.business-box {
  padding: 18px;
  border: 1px solid #e4dbff;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #fbf8ff);
}

.business-box strong {
  display: block;
  color: var(--violet-700);
  font-size: 26px;
}

@media (max-width: 1180px) {
  .workspace,
  .stage,
  .dash-grid,
  .wide-grid {
    grid-template-columns: 1fr;
  }

  .screen-list {
    position: static;
  }

  .screen-list .screen-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .screen-tab {
    margin-bottom: 0;
  }

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

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

@media (max-width: 760px) {
  .topbar {
    display: block;
    padding: 14px;
  }

  .brand {
    margin-bottom: 12px;
  }

  .main {
    padding: 18px 12px 28px;
  }

  .hero-row,
  .dash-head {
    display: grid;
  }

  .phone {
    min-height: auto;
    padding: 8px;
    border-radius: 28px;
  }

  .phone-screen {
    min-height: 680px;
  }

  .phone-content {
    padding-inline: 16px;
  }

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

  .dash-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .dash-content {
    padding: 16px;
  }

  .metric-grid,
  .feature-grid,
  .footer-note {
    grid-template-columns: 1fr;
  }

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