﻿:root {
  --bg: #f2f3f5;
  --surface: #ffffff;
  --line: #dbdde2;
  --text: #13161d;
  --muted: #6b7280;
  --primary: #101215;
  --accent: #8be85a;
  --sidebar-w: 250px;
  --announce-h: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  font-family: "Plus Jakarta Sans", "Manrope", "Avenir Next", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

.announcement {
  height: var(--announce-h);
  background: #090d12;
  color: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.brand {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.8px;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.brand-logo-toggle {
  cursor: pointer;
}

.top-links {
  display: flex;
  gap: 16px;
  font-size: 16px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfc;
  padding: 8px 10px;
  min-width: 320px;
}

.search-wrap input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  font-size: 14px;
}

.icon-btn,
.ghost-btn,
.primary-btn {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  padding: 9px 12px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
}

.promo-pill {
  border: 3px solid transparent;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 15px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(90deg, #ff7300, #f2ea00, #1bbf24, #3364ff, #8a2be2) border-box;
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.timer {
  background: #111;
  color: #fff;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 14px;
  letter-spacing: 0.6px;
}

.layout {
  height: calc(100vh - var(--announce-h));
  display: flex;
  min-height: 0;
}

.sidebar {
  width: var(--sidebar-w);
  background: #e9eaec;
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: width 180ms ease;
}

.sidebar-brand {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

body.sidebar-collapsed .sidebar {
  width: 80px;
}

.store-switch-wrap {
  position: relative;
}

.store-switch {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9f9f8;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  cursor: pointer;
}

.store-main {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.store-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.store-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-caret {
  font-size: 16px;
  color: #4c4f56;
  transition: transform 160ms ease;
}

.store-switch[aria-expanded="true"] .store-caret {
  transform: rotate(180deg);
}

.store-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 340px;
  max-width: min(340px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(20, 24, 30, 0.18);
  z-index: 30;
  padding: 8px;
}

.store-current {
  background: #f0f0ea;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.store-current-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}

.store-status {
  margin-left: 32px;
  color: #656a72;
  font-size: 15px;
}

.store-action {
  width: 100%;
  border: 0;
  background: transparent;
  border-top: 1px solid #eceef2;
  padding: 12px 10px;
  text-align: left;
  font-size: 17px;
  color: #20242d;
  cursor: pointer;
}

.store-action.add-store {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.add-plus {
  font-size: 30px;
  line-height: 1;
  color: #333841;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  border-radius: 10px;
  padding: 10px 12px;
  color: #3f4651;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 24px;
  height: 24px;
  border: 1px solid #c9ced6;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #4a5260;
  flex: 0 0 auto;
}

.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item.active {
  background: #fff;
  color: #111;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: #3f4651;
  font-weight: 700;
}

body.sidebar-collapsed .store-switch,
body.sidebar-collapsed .nav-item,
body.sidebar-collapsed .sidebar-footer {
  font-size: 0;
  padding-left: 8px;
  padding-right: 8px;
}

body.sidebar-collapsed .store-switch .store-main,
body.sidebar-collapsed .store-switch .store-caret {
  display: none;
}

body.sidebar-collapsed .nav-item {
  justify-content: center;
  padding-left: 6px;
  padding-right: 6px;
}

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

body.sidebar-collapsed .store-menu {
  display: none;
}

body.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding-right: 8px;
}

.content {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-section {
  display: none;
  flex-direction: column;
  gap: 18px;
}

.page-section.page-section-active {
  display: flex;
}

.onboard-head h1 {
  margin: 0;
  font-size: 44px;
}

.onboard-shell {
  border: 1px solid #e7e7de;
  border-radius: 14px;
  background: #f6f6ef;
  padding: 16px;
}

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

.onboard-title {
  margin: 0;
  font-size: 26px;
}

.steps-complete {
  color: #5a6471;
  font-weight: 600;
}

.steps-subtitle {
  margin: 8px 0 10px;
  color: #4f5968;
  font-size: 17px;
}

.steps-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  margin-bottom: 12px;
}

.track-line {
  position: absolute;
  left: 2%;
  right: 2%;
  height: 3px;
  background: #d8e2eb;
  border-radius: 999px;
}

.track-dot {
  justify-self: center;
  width: 28px;
  height: 28px;
  border: 1px solid #cad4dd;
  border-radius: 50%;
  background: #fff;
  color: #6a7480;
  font-weight: 700;
  cursor: pointer;
  z-index: 1;
}

.track-dot.active {
  background: #70a5c3;
  border-color: #70a5c3;
  color: #fff;
}

.journey-grid {
  display: flex;
  gap: 10px;
  min-height: 300px;
}

.journey-step {
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fbfbfb;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
  transition: flex 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.journey-step.active {
  flex: 2.4 1 0;
  background: #f2f7fb;
  border-color: #71a7c8;
}

.step-head {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.step-kicker {
  font-size: 13px;
  color: #23262b;
}

.journey-step h3 {
  margin: 0;
  font-size: 42px;
  line-height: 1.18;
}

.step-detail {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.journey-step.active .step-detail {
  display: flex;
}

.full {
  width: 100%;
  justify-content: center;
}

.step-status {
  color: #8a93a0;
  font-size: 16px;
}

.journey-step p {
  margin: 0;
  color: #3c4958;
  font-size: 16px;
}

.journey-step:not(.active) .step-head h3 {
  font-size: 22px;
  color: #8b96a2;
}

.next-block {
  margin-top: 14px;
}

.next-block h3 {
  margin: 0;
  font-size: 38px;
}

.next-block p {
  margin: 6px 0 10px;
  color: #606975;
}

.next-list {
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
}

.next-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px dashed #d9d9d9;
}

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

.next-row strong {
  font-size: 18px;
}

.next-row span {
  color: #5f6875;
}

.link-btn {
  border: 0;
  background: transparent;
  color: #151a24;
  font-size: 18px;
  cursor: pointer;
}

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

.orders-head h1 {
  margin: 0;
  font-size: 42px;
}

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

.orders-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  border: 1px solid #cfd6df;
  background: #fff;
  color: #2a3441;
  border-radius: 999px;
  font-size: 14px;
  padding: 7px 12px;
  cursor: pointer;
}

.filter-pill.active {
  background: #11171e;
  border-color: #11171e;
  color: #fff;
}

.orders-search {
  min-width: 320px;
}

.orders-search input {
  width: 100%;
  border: 1px solid #ced6df;
  border-radius: 10px;
  background: #fff;
  padding: 9px 12px;
  font-size: 14px;
  outline: 0;
}

.orders-table-wrap {
  border: 1px solid #d6dce5;
  border-radius: 12px;
  background: #fff;
  overflow: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.orders-table th,
.orders-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #eceff3;
  font-size: 14px;
}

.orders-table th {
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #627080;
  font-weight: 700;
}

.orders-table tbody tr:hover {
  background: #f7f9fb;
}

.orders-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}

.status-prod {
  background: #e6f3ff;
  color: #145e9a;
}

.status-ship {
  background: #e5f7eb;
  color: #22693b;
}

.status-pending {
  background: #fff4dd;
  color: #815b10;
}

.status-cancel {
  background: #ffe6e6;
  color: #8f1b1b;
}

.row-link {
  border: 0;
  background: transparent;
  color: #1d5f95;
  font-weight: 700;
  cursor: pointer;
}

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.stat-card h3 {
  margin: 0;
  font-size: 22px;
}

.stat-value {
  margin: 10px 0 0;
  font-size: 44px;
  font-weight: 800;
}

.stat-note {
  margin: 6px 0 0;
  color: var(--muted);
}

.setup-card,
.news-card,
.bestsellers {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.setup-head h2,
.news-head h2,
.section-head h2 {
  margin: 0;
  font-size: 42px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e8ecf0;
  margin: 14px 0;
}

.progress-fill {
  display: block;
  width: 33%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6ab7ff, #4dd2a7);
}

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

.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fafbfc;
}

.step h3 {
  margin: 0;
  font-size: 26px;
}

.step p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.active-step {
  border-color: #8cb6d8;
  background: #f0f7ff;
}

.step-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.connector-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.connector-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.inline-link-btn {
  border: 0;
  background: transparent;
  color: #1c2431;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 4px;
  align-self: center;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.news-visual {
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 25%, #8cf15b 0, #8cf15b 14%, transparent 15%),
    linear-gradient(130deg, #bfc6bf 5%, #6c87c8 52%, #f79441 92%);
  min-height: 220px;
}

.news-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge {
  background: #caf1ff;
  color: #0d5069;
  border-radius: 5px;
  padding: 2px 8px;
  width: fit-content;
  font-size: 13px;
  font-weight: 700;
}

.news-copy h3 {
  margin: 10px 0 8px;
  font-size: 40px;
}

.news-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.4;
}

.section-head a {
  color: #444;
  font-weight: 700;
}

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

.product-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.product-image {
  height: 140px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.tone-a { background: linear-gradient(135deg, #f9d2df, #ffe5a8); }
.tone-b { background: linear-gradient(135deg, #d2f5e8, #b7d6ff); }
.tone-c { background: linear-gradient(135deg, #f9d2d2, #d4dcff); }
.tone-d { background: linear-gradient(135deg, #c5f1ff, #ffd9b7); }

.product-card h4 {
  margin: 0;
  font-size: 22px;
}

.product-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.chat-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

@media (max-width: 1280px) {
  .journey-grid {
    flex-direction: column;
    min-height: 0;
  }

  .journey-step,
  .journey-step.active {
    flex: initial;
  }

  .journey-step .step-detail {
    display: none;
  }

  .journey-step.active .step-detail {
    display: flex;
  }
}

@media (max-width: 760px) {
  .announcement {
    display: none;
  }

  .layout {
    height: 100vh;
  }

  .sidebar {
    position: fixed;
    z-index: 50;
    height: 100vh;
    transform: translateX(-100%);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .content {
    padding: 14px;
  }

  .onboard-head h1,
  .onboard-title,
  .next-block h3 {
    font-size: 30px;
  }

  .steps-track {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 10px;
  }

  .next-row {
    grid-template-columns: 1fr;
  }

  .orders-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-search {
    min-width: 0;
  }
}

.orders-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.orders-head h1 {
  margin: 0;
  font-size: 42px;
}

.orders-subtitle {
  margin: 6px 0 0;
  color: #5d6675;
  font-size: 16px;
}

.orders-head-actions {
  display: flex;
  gap: 8px;
}

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

.orders-kpi {
  background: #fff;
  border: 1px solid #d9dde5;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-label {
  color: #657082;
  font-size: 13px;
}

.kpi-value {
  font-size: 30px;
  line-height: 1;
}

.kpi-note {
  color: #6f7887;
  font-size: 13px;
}

.order-id-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-id-cell strong {
  font-size: 14px;
}

.order-id-cell span {
  color: #707a8a;
  font-size: 12px;
}

.status-hold {
  background: #f0e8ff;
  color: #53308c;
}

@media (max-width: 1280px) {
  .orders-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .orders-head {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-head-actions {
    width: 100%;
  }

  .orders-head-actions .ghost-btn,
  .orders-head-actions .primary-btn {
    flex: 1;
  }

  .orders-kpi-grid {
    grid-template-columns: 1fr;
  }
}
