:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #12172a;
  --muted: #747b8f;
  --line: #e8ebf2;
  --line-strong: #dfe3ec;
  --soft: #f3f5f9;
  --purple: #7c3aed;
  --purple-2: #6d5dfc;
  --purple-soft: #f0e9ff;
  --green: #16a064;
  --red: #ef4d2f;
  --blue-soft: #eaf4ff;
  --orange-soft: #fff0df;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(22, 28, 45, .05);
}

/* Desktop owner workspace */
@media (min-width: 1040px) {
  body:has(.app-sidebar) {
    padding-left: 276px;
    background:
      linear-gradient(90deg, #0c0c0d 0 244px, transparent 244px),
      var(--bg);
  }

  body:has(.app-sidebar) .mobile-app-header,
  body:has(.app-sidebar) .menu-overlay,
  body:has(.app-sidebar) .drawer-close {
    display: none;
  }

  body:has(.app-sidebar) .app-sidebar {
    position: fixed;
    inset: 16px auto 16px 16px;
    z-index: 70;
    width: 244px;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    align-content: start;
    align-items: stretch;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(18, 23, 42, .06);
    transform: none;
  }

  body:has(.app-sidebar) .brand-mark {
    grid-template-columns: 34px 1fr;
    padding-right: 0;
  }

  body:has(.app-sidebar) .brand-mark strong {
    font-size: 28px;
  }

  body:has(.app-sidebar) .brand-mark span {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  body:has(.app-sidebar) .app-nav {
    display: grid;
    align-content: start;
    justify-content: stretch;
    gap: 6px;
  }

  body:has(.app-sidebar) .app-nav a {
    min-height: 44px;
    justify-content: flex-start;
    padding: 0 12px;
    border-radius: 14px;
    color: #303a58;
    font-size: 15px;
  }

  body:has(.app-sidebar) .app-nav a span {
    display: block;
    width: 22px;
  }

  body:has(.app-sidebar) .logout-form {
    display: flex;
    justify-content: flex-start;
  }

  body:has(.app-sidebar) .shell {
    width: min(100%, 1180px);
    margin: 0;
    padding: 28px 28px 56px;
  }

  body:has(.app-sidebar) .owner-shell {
    padding-top: 28px;
  }
}

/* Public content and blog */
.public-content-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 72px;
}
.public-article,
.blog-head {
  max-width: 820px;
  margin: 54px auto 0;
}

.blog-head {
  max-width: 940px;
  margin-top: 44px;
}

.help-head {
  max-width: 860px;
  margin: 42px auto 34px;
  text-align: center;
}

.help-head h1 {
  max-width: 760px;
  margin: 16px auto 14px;
  color: #0c0c0d;
  font-size: clamp(38px, 7vw, 68px);
  line-height: .98;
}

.help-head p {
  max-width: 620px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 750;
}

.help-email-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #bdf5dd;
  border-radius: 999px;
  background: #eefaf5;
  color: #047857;
  text-decoration: none;
  font-weight: 900;
}

.help-layout {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
  margin: 0 auto 72px;
}

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

.help-item,
.help-contact-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.help-item {
  overflow: hidden;
}

.help-item summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  color: #0c0c0d;
  font-size: 18px;
  font-weight: 950;
  list-style: none;
}

.help-item summary::-webkit-details-marker {
  display: none;
}

.help-item summary::after {
  content: "+";
  width: 32px;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eefaf5;
  color: #047857;
  font-size: 20px;
  font-weight: 950;
}

.help-item[open] summary::after {
  content: "-";
}

.help-item .rich-content {
  padding: 0 22px 22px;
}

.help-contact-card {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 12px;
  padding: 22px;
}

.help-contact-card strong {
  color: #0c0c0d;
  font-size: 22px;
  line-height: 1.1;
}

.help-contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 750;
}

.help-contact-card .primary-btn {
  width: 100%;
}
.public-article h1,
.blog-head h1 {
  margin: 0;
  color: #0c0c0d;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  letter-spacing: 0;
}
.article-lead,
.blog-head > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.rich-content {
  margin-top: 28px;
  color: #2b2d32;
  font-size: 17px;
  line-height: 1.75;
}
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
  margin: 30px 0 10px;
  color: #0c0c0d;
  line-height: 1.15;
}
.rich-content p,
.rich-content ul,
.rich-content ol {
  margin: 0 0 16px;
}
.public-article .rich-content ul,
.public-article .rich-content ol,
.help-item .rich-content ul,
.help-item .rich-content ol {
  padding-left: 1.35em;
}
.public-article .rich-content li,
.help-item .rich-content li {
  margin: 0 0 8px;
}
.rich-content a {
  color: var(--green);
  font-weight: 850;
}
.blog-categories {
  max-width: 940px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px auto 0;
}
.blog-categories a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #0c0c0d;
  text-decoration: none;
  font-weight: 850;
}
.blog-categories a.active,
.blog-categories a:hover {
  background: rgba(72, 213, 152, .14);
  border-color: rgba(72, 213, 152, .34);
  color: var(--green);
}
.blog-grid {
  max-width: 940px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px auto 0;
}
.blog-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: #0c0c0d;
  text-decoration: none;
  background: #fff;
}
.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: var(--soft);
}
.blog-card div {
  padding: 16px;
}
.blog-card span,
.blog-back-link {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}
.blog-card h2 {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.18;
}
.blog-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.blog-empty-text {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.blog-cover {
  width: 100%;
  margin-top: 26px;
  border-radius: 24px;
  object-fit: cover;
}
@media (max-width: 860px) {
  .public-content-page {
    padding: 14px 16px 54px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Landing */
.landing {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 56%, #eef7f2 100%);
}
.landing-header {
  width: min(calc(100% - 32px), 1160px);
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: 14px 0;
}
.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 21px;
  font-weight: 950;
}
.landing-brand span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #12172a;
}
.landing-brand span::after {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: #2ed37e;
}
.landing-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.landing-nav a {
  color: #515b72;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}
.landing-header-cta {
  white-space: nowrap;
}
.landing-hero {
  width: min(calc(100% - 32px), 1160px);
  min-height: calc(100vh - 136px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, .8fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  margin: 0 auto;
  padding: 34px 0 70px;
}
.landing-hero-copy {
  max-width: 690px;
}
.landing-kicker {
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid #dcefe5;
  border-radius: 999px;
  background: #f1fbf6;
  color: #127747;
  font-size: 13px;
  font-weight: 900;
}
.landing-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #101525;
  font-size: clamp(38px, 7vw, 76px);
  line-height: .96;
  letter-spacing: 0;
}
.landing-hero-copy > p:not(.landing-kicker) {
  max-width: 610px;
  margin-bottom: 26px;
  color: #505a70;
  font-size: clamp(17px, 2vw, 21px);
}
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.landing-actions .primary-btn,
.landing-actions .secondary-btn,
.landing-final .primary-btn {
  min-height: 52px;
  border-radius: 16px;
  padding: 0 20px;
}
.landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.landing-proof span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #3d465d;
  font-size: 13px;
  font-weight: 850;
}
.landing-phone {
  justify-self: center;
  width: min(100%, 410px);
  padding: 14px;
  border: 1px solid #dfe4eb;
  border-radius: 36px;
  background: #111827;
  box-shadow: 0 26px 70px rgba(18, 23, 42, .18);
}
.landing-phone-screen {
  min-height: 640px;
  overflow: hidden;
  border-radius: 26px;
  background: #fbfcfd;
}
.landing-shop-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 20px 18px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.landing-shop-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #2ed37e;
  color: #0d3421;
  font-weight: 950;
}
.landing-shop-head strong,
.landing-shop-head span {
  display: block;
}
.landing-shop-head strong {
  margin-bottom: 3px;
  color: #12172a;
  font-size: 17px;
}
.landing-shop-head span {
  color: #758095;
  font-size: 13px;
  font-weight: 700;
}
.landing-search-row {
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: center;
  gap: 10px;
  margin: 16px 16px 12px;
  padding: 12px 12px 12px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: #9aa3b4;
  font-size: 13px;
  font-weight: 800;
}
.landing-search-row b {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #2ed37e;
}
.landing-tabs {
  display: flex;
  gap: 8px;
  overflow: hidden;
  padding: 0 16px 12px;
}
.landing-tabs span {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  background: #eef1f6;
  color: #5e687c;
  font-size: 13px;
  font-weight: 850;
}
.landing-tabs .active {
  background: #12172a;
  color: #fff;
}
.landing-products {
  display: grid;
  gap: 12px;
  padding: 0 16px 18px;
}
.landing-products article {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 13px;
  align-items: center;
  min-height: 136px;
  padding: 10px;
  border: 1px solid #e8ebf2;
  border-radius: 20px;
  background: #fff;
}
.landing-product-img {
  height: 116px;
  border-radius: 16px;
}
.landing-product-img-a {
  background:
    radial-gradient(circle at 35% 38%, #fff 0 13%, transparent 14%),
    linear-gradient(135deg, #e6e1ff, #b8f4d4);
}
.landing-product-img-b {
  background:
    radial-gradient(circle at 52% 42%, #ffffff 0 18%, transparent 19%),
    linear-gradient(135deg, #e9f7ff, #bee9ff);
}
.landing-product-img-c {
  background:
    radial-gradient(circle at 46% 42%, #fff 0 14%, transparent 15%),
    linear-gradient(135deg, #fff2cf, #ffd8c2);
}
.landing-products h2 {
  margin-bottom: 10px;
  color: #12172a;
  font-size: 17px;
  line-height: 1.18;
}
.landing-products strong {
  color: #127747;
  font-size: 16px;
}
.landing-strip,
.landing-section,
.landing-final {
  width: min(calc(100% - 32px), 1160px);
  margin: 0 auto;
}
.landing-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 20px 0 56px;
  color: #12172a;
  font-size: clamp(20px, 3vw, 30px);
}
.landing-strip span {
  color: #566074;
}
.landing-section {
  padding: 54px 0;
}
.landing-section-head {
  max-width: 640px;
  margin-bottom: 26px;
}
.landing-section h2,
.landing-final h2 {
  margin-bottom: 14px;
  color: #12172a;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.03;
}
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.landing-steps article {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.landing-steps span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  border-radius: 12px;
  background: #12172a;
  color: #fff;
  font-weight: 950;
}
.landing-steps h3 {
  margin: 0 0 10px;
  color: #12172a;
  font-size: 20px;
}
.landing-steps p {
  margin-bottom: 0;
}
.landing-fit {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, .8fr);
  gap: 34px;
  align-items: center;
}
.landing-fit > div:first-child p:not(.landing-kicker) {
  max-width: 560px;
  font-size: 18px;
}
.landing-fit-list {
  display: grid;
  gap: 10px;
}
.landing-fit-list span {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #27304a;
  font-weight: 850;
}
.landing-final {
  margin-bottom: 48px;
  padding: clamp(34px, 7vw, 68px);
  border-radius: 8px;
  background: #12172a;
  text-align: center;
}
.landing-final h2 {
  color: #fff;
}
.landing-final p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: #c9d1df;
  font-size: 18px;
}

@media (max-width: 860px) {
  .landing-header {
    grid-template-columns: 1fr auto;
  }

  .landing-nav {
    display: none;
  }

  .landing-hero,
  .landing-fit,
  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 24px;
  }

  .landing-phone {
    width: min(100%, 380px);
  }

  .landing-phone-screen {
    min-height: 560px;
  }
}

@media (max-width: 560px) {
  .landing-header {
    width: min(calc(100% - 24px), 1160px);
  }

  .landing-header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .landing-hero,
  .landing-strip,
  .landing-section,
  .landing-final {
    width: min(calc(100% - 24px), 1160px);
  }

  .landing-hero h1 {
    font-size: 42px;
  }

  .landing-actions {
    display: grid;
  }

  .landing-products article {
    grid-template-columns: 96px 1fr;
  }

  .landing-product-img {
    height: 96px;
  }

  .landing-final {
    padding: 32px 18px;
  }
}

/* Landing refresh */
.landing {
  --landing-dark: #07101f;
  --landing-green: #36d38a;
  --landing-muted: #586176;
  --landing-soft: #f5f7fb;
  background: #fff;
}

.landing-header {
  width: min(calc(100% - 56px), 1360px);
  min-height: 84px;
  position: relative;
  grid-template-columns: auto 1fr auto auto;
  padding: 18px 0 10px;
}

.landing-brand {
  gap: 0;
  color: var(--landing-dark);
  font-size: 0;
}

.landing-brand span {
  width: 162px;
  height: 40px;
  border-radius: 0;
  background: url("/img/main-logo.png") left center / contain no-repeat;
}

.landing-brand span::after {
  content: none;
}

.landing-nav {
  gap: 38px;
}

.landing-nav a,
.landing-login-link {
  color: #38425a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
}

.landing-login-link {
  white-space: nowrap;
}

.landing-header-cta,
.landing-actions .primary-btn,
.landing-final .primary-btn {
  background: var(--landing-dark);
  color: #fff;
  box-shadow: 0 14px 32px rgba(7, 16, 31, .18);
}

.landing-header-cta {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
}

.landing-mobile-actions,
.landing-mobile-menu {
  display: none;
}

.landing-icon-link,
.landing-menu-toggle {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid #e8ecf3;
  border-radius: 13px;
  background: #fff;
  color: var(--landing-dark);
  box-shadow: none;
}

.landing-icon-link span,
.landing-menu-toggle span {
  width: 20px;
  height: 20px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--mobile-header-icon) center / contain no-repeat;
  mask: var(--mobile-header-icon) center / contain no-repeat;
}

.landing-icon-link {
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.landing-icon-link span {
  --mobile-header-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-5 0-9 2.7-9 6a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2c0-3.3-4-6-9-6Z'/%3E%3C/svg%3E");
}

.landing-menu-toggle span {
  --mobile-header-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 7a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Zm0 5a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Zm1 4a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2H5Z'/%3E%3C/svg%3E");
}

.landing-hero {
  width: min(calc(100% - 56px), 1360px);
  min-height: calc(100vh - 94px);
  grid-template-columns: minmax(0, 1fr) minmax(460px, .92fr);
  gap: clamp(34px, 5vw, 76px);
  padding: 42px 0 70px;
}

.landing-hero-copy {
  max-width: 705px;
  position: relative;
  padding-top: 16px;
}

.landing-hero-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: var(--landing-green);
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 10px 16px;
  border-color: #caf6e0;
  background: #effdf6;
  color: #118257;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(54, 211, 138, .08);
}

.landing-kicker span {
  width: 15px;
  height: 15px;
  display: inline-block;
  border-radius: 5px;
  background: var(--landing-green);
}

.landing-hero .landing-kicker {
  min-height: 36px;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid #d8f4e6;
  background: #fff;
  box-shadow: none;
}

.landing-hero .landing-kicker span {
  width: 11px;
  height: 11px;
  border-radius: 4px;
}

.landing-hero h1 {
  max-width: 720px;
  margin: 0 0 22px;
  color: var(--landing-dark);
  font-size: clamp(48px, 5.9vw, 80px);
  line-height: .96;
  letter-spacing: 0;
}

.landing-hero h1 strong {
  display: block;
  width: fit-content;
  background: linear-gradient(90deg, var(--landing-green), #4fa3ff, #7567ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero-copy > p:not(.landing-kicker) {
  max-width: 640px;
  margin: 0 0 34px;
  color: var(--landing-muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.38;
  font-weight: 650;
}

.landing-actions {
  gap: 18px;
  margin-bottom: 28px;
}

.landing-actions .primary-btn,
.landing-actions .secondary-btn {
  min-height: 58px;
  border-radius: 13px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 950;
}

.landing-actions .primary-btn {
  gap: 16px;
}

.landing-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 640px;
  margin-bottom: 0;
}

.landing-proof span {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5a6378;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.landing-proof b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #eafcf3;
  border: 1px solid #d4f6e4;
}

.landing-proof b::before {
  content: "";
  display: block;
  background: #18b875;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.landing-proof b::before {
  width: 21px;
  height: 21px;
}

.landing-proof span:nth-child(1) b {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 5a1 1 0 1 0-2 0v5c0 .31.14.6.38.79l3.5 2.8a1 1 0 0 0 1.24-1.57L13 11.52V7Z'/%3E%3C/svg%3E");
}

.landing-proof span:nth-child(2) b {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3H4Zm0 2h16a1 1 0 0 1 1 1v1H3V8a1 1 0 0 1 1-1Zm-1 5h18v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-4Zm3 2a1 1 0 1 0 0 2h3a1 1 0 1 0 0-2H6Z'/%3E%3C/svg%3E");
  background: #f2ecff;
  border-color: #e6dcff;
}

.landing-proof span:nth-child(2) b::before {
  background: #7a5cf2;
}

.landing-proof span:nth-child(3) b {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3H8Zm0 2h8a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm2 13a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-4Z'/%3E%3C/svg%3E");
  background: #fff5e6;
  border-color: #ffe8c1;
}

.landing-proof span:nth-child(3) b::before {
  background: #f3a72b;
}

.landing-visual {
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
}

.landing-phone {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  padding: 14px;
  border: 10px solid #07101f;
  border-radius: 44px;
  background: #07101f;
  transform: rotate(3deg);
  box-shadow: 0 36px 90px rgba(7, 16, 31, .25);
}

.landing-phone-art {
  width: min(100%, 430px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-phone-art img {
  width: 100%;
  max-height: 700px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 36px 72px rgba(7, 16, 31, .24));
}

.landing-phone-screen {
  min-height: 600px;
  border-radius: 28px;
  background: #fbfcff;
}

.landing-shop-head {
  grid-template-columns: 52px 1fr;
  padding: 24px 22px 16px;
}

.landing-shop-logo {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--landing-green);
  color: #082415;
}

.landing-search-row {
  grid-template-columns: 1fr 42px;
  margin: 18px 22px 14px;
  min-height: 54px;
  border-radius: 15px;
}

.landing-search-row b {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--landing-green);
}

.landing-tabs {
  padding: 0 22px 14px;
}

.landing-tabs span {
  background: #eef2f7;
}

.landing-tabs .active {
  background: var(--landing-dark);
}

.landing-products {
  padding: 0 22px 18px;
}

.landing-products article {
  min-height: 118px;
  grid-template-columns: 100px 1fr;
  border-radius: 18px;
}

.landing-product-img {
  height: 98px;
}

.landing-phone-screen > button {
  width: calc(100% - 44px);
  min-height: 54px;
  margin: 4px 22px 22px;
  border: 0;
  border-radius: 14px;
  background: var(--landing-dark);
  color: #fff;
  font: inherit;
  font-weight: 950;
}

.landing-floating-card,
.landing-side-card {
  position: absolute;
  z-index: 3;
  border: 1px solid #edf0f5;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 18px 46px rgba(7, 16, 31, .08);
  backdrop-filter: blur(12px);
}

.landing-floating-card {
  width: 190px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  color: var(--landing-dark);
  font-size: 13px;
  line-height: 1.25;
}

.landing-floating-card span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--landing-green);
}

.landing-floating-card span::before {
  content: "";
  width: 15px;
  height: 15px;
  display: block;
  background: #fff;
  -webkit-mask: var(--floating-icon) center / contain no-repeat;
  mask: var(--floating-icon) center / contain no-repeat;
}

.landing-floating-card-a {
  --floating-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 4h8a2 2 0 0 1 2 2v1h1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1V6a2 2 0 0 1 2-2Zm0 3h8V6H8v1Zm1.7 8.7 6-6a1 1 0 0 0-1.4-1.4L9 13.6l-2.3-2.3a1 1 0 0 0-1.4 1.4l3 3a1 1 0 0 0 1.4 0Z'/%3E%3C/svg%3E");
  top: 170px;
  left: 0;
}

.landing-floating-card-b {
  --floating-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7v3.2l-1.7 2.55A1.5 1.5 0 0 0 4.55 17H19.45a1.5 1.5 0 0 0 1.25-2.25L19 12.2V9a7 7 0 0 0-7-7Zm0 20a3.2 3.2 0 0 0 3.05-2.25h-6.1A3.2 3.2 0 0 0 12 22Z'/%3E%3C/svg%3E");
  left: 22px;
  bottom: 160px;
}

.landing-side-card {
  width: 126px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  transform: rotate(8deg);
}

.landing-side-card div {
  aspect-ratio: 1 / .86;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255, 246, 224, .22), rgba(218, 255, 237, .22)),
    var(--side-card-image) center / cover no-repeat;
}

.landing-side-card-a {
  --side-card-image: url("/img/landing-candle.jpg");
}

.landing-side-card-b {
  --side-card-image: url("/img/landing-dried-flowers.jpg");
}

.landing-side-card strong {
  color: var(--landing-dark);
  font-size: 13px;
  line-height: 1.15;
}

.landing-side-card span {
  color: #118257;
  font-size: 13px;
  font-weight: 950;
}

.landing-side-card-a {
  top: 230px;
  right: 2px;
}

.landing-side-card-b {
  right: 10px;
  bottom: 120px;
  transform: rotate(-7deg);
}

.landing-strip,
.landing-section,
.landing-final {
  width: min(calc(100% - 56px), 1160px);
}

.landing-strip {
  padding: 34px 0;
  font-size: clamp(22px, 3vw, 34px);
}

.landing-work-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  margin-top: 0;
  margin-bottom: 34px;
  padding: 34px 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font-size: 16px;
}

.landing-work-intro::before {
  content: "";
  position: absolute;
  left: 0;
  top: 34px;
  bottom: 34px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--landing-green), #4fa3ff);
}

.landing-work-intro strong {
  display: block;
  margin-top: 14px;
  padding-left: 24px;
  color: var(--landing-dark);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.04;
}

.landing-work-intro p {
  max-width: 650px;
  margin: 10px 0 0;
  padding-left: 24px;
  color: #586176;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 750;
  line-height: 1.45;
}

.landing-strip-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-left: 24px;
  padding: 0 14px;
  border: 1px solid rgba(48, 211, 139, .28);
  border-radius: 999px;
  background: rgba(48, 211, 139, .1);
  color: #118257;
  font-size: 13px;
  font-weight: 950;
}

.landing-strip-label::before,
.landing-work-intro li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--landing-green);
}

.landing-strip-label::before {
  display: none;
}

.landing-work-intro li::before {
  background:
    var(--landing-green)
    url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.4 8.1 6.5 11 12.6 5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
}

.landing-work-intro ul {
  width: min(100%, 330px);
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-work-intro li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 2px;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  color: var(--landing-dark);
  font-weight: 900;
  box-shadow: none;
}

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

#how.landing-section {
  padding-top: 34px;
  padding-bottom: 46px;
}

#features.landing-section {
  padding-top: 30px;
  padding-bottom: 52px;
}

.landing-section h2,
.landing-final h2 {
  color: var(--landing-dark);
  font-size: clamp(34px, 4vw, 54px);
}

.landing-section-copy {
  max-width: 620px;
  margin: 14px 0 0;
  color: #586176;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.landing-fit {
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  padding-top: 54px;
  padding-bottom: 54px;
  border-top: 1px solid #e8ecf3;
  border-bottom: 1px solid #e8ecf3;
}

.landing-fit > div:first-child {
  max-width: 560px;
}

.landing-fit > div:first-child p:not(.landing-kicker) {
  max-width: 530px;
  margin-bottom: 18px;
  color: #687286;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.55;
}

.landing-fit-note {
  display: block;
  max-width: 520px;
  color: var(--landing-dark);
  font-size: 17px;
  line-height: 1.45;
}

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

.landing-fit-list span {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
  border: 1px solid #e8ecf3;
  border-radius: 20px;
  background: #fff;
  color: var(--landing-dark);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.32;
  box-shadow: 0 18px 46px rgba(7, 16, 31, .04);
}

.landing-fit-list b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eafcf3;
}

.landing-fit-list b::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: #18b875;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.4 8.1 6.5 11 12.6 5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.4 8.1 6.5 11 12.6 5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.landing-steps article,
.landing-feature-grid article,
.landing-pricing-grid article {
  border: 1px solid #e8ecf3;
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 46px rgba(7, 16, 31, .04);
}

.landing-steps article {
  min-height: 198px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  padding: 24px;
  border-top: 3px solid rgba(54, 211, 138, .74);
}

.landing-steps span {
  width: 38px;
  height: 38px;
  position: relative;
  z-index: 2;
  background: var(--landing-dark);
  margin-bottom: 22px;
}

.landing-steps article::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 34px;
  height: 34px;
  background: rgba(48, 211, 139, .18);
  -webkit-mask: var(--step-icon) center / 24px 24px no-repeat;
  mask: var(--step-icon) center / 24px 24px no-repeat;
}

.landing-steps h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.landing-steps p {
  max-width: 300px;
  margin: 0;
  color: #6a7282;
  font-size: 16px;
  font-weight: 650;
}

.landing-steps article:nth-child(1) {
  --step-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M5 7l1 12h12l1-12'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3Cpath d='M9 12h6'/%3E%3C/svg%3E");
}

.landing-steps article:nth-child(2) {
  --step-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='14' rx='2'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 13h4'/%3E%3Cpath d='M16 13h.01'/%3E%3C/svg%3E");
}

.landing-steps article:nth-child(3) {
  --step-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2l-7 20-4-9-9-4 20-7z'/%3E%3C/svg%3E");
}

@media (min-width: 861px) {
  .landing-steps {
    position: relative;
  }

  .landing-steps::before {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    top: 45px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(48, 211, 139, .42), transparent);
  }

  .landing-steps article {
    z-index: 1;
  }
}

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

.landing-feature-grid article,
.landing-pricing-grid article {
  padding: 24px;
}

.landing-feature-grid article {
  min-height: 222px;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.landing-feature-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(54, 211, 138, .55);
  box-shadow: 0 24px 60px rgba(7, 16, 31, .07);
}

.landing-feature-grid article > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 14px;
  background: #eafcf3;
  border: 1px solid #d4f6e4;
}

.landing-feature-grid article > span::before {
  content: "";
  width: 22px;
  height: 22px;
  display: block;
  background: #18b875;
  -webkit-mask: var(--feature-icon) center / contain no-repeat;
  mask: var(--feature-icon) center / contain no-repeat;
}

.landing-feature-grid article:nth-child(1) {
  --feature-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5Zm3 1v4h10V6H7Zm0 7v2h4v-2H7Zm7 0v2h3v-2h-3Zm-7 4v1h10v-1H7Z'/%3E%3C/svg%3E");
}

.landing-feature-grid article:nth-child(2) {
  --feature-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h3.4l3.9 2.8a1.2 1.2 0 0 0 1.4 0l3.9-2.8H20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM6 8h12v2H6V8Zm0 4h8v2H6v-2Z'/%3E%3C/svg%3E");
}

.landing-feature-grid article:nth-child(3) {
  --feature-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V7Zm2 3h14V7a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v3Zm0 3v4a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-4H5Zm2 2h5v1.5H7V15Z'/%3E%3C/svg%3E");
}

.landing-feature-grid article:nth-child(4) {
  --feature-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a10 10 0 0 0 0 20 10 10 0 0 0 0-20Zm6.9 9h-3.1a15 15 0 0 0-1.2-5 8.03 8.03 0 0 1 4.3 5ZM12 4.1c.7 1 1.4 3.1 1.7 6.9h-3.4c.3-3.8 1-5.9 1.7-6.9ZM4.3 13h3.8c.1 2 .4 3.7.9 5.1A8.02 8.02 0 0 1 4.3 13Zm3.8-2H4.3A8.02 8.02 0 0 1 9 5.9 17.8 17.8 0 0 0 8.1 11Zm3.9 8.9c-.7-1-1.4-3.1-1.7-6.9h3.4c-.3 3.8-1 5.9-1.7 6.9Zm3-.8c.5-1.4.8-3.1.9-5.1h3.8a8.02 8.02 0 0 1-4.7 5.1Z'/%3E%3C/svg%3E");
}

.landing-feature-grid h3,
.landing-pricing-grid h3 {
  margin: 0 0 10px;
  color: var(--landing-dark);
  font-size: 21px;
}

.landing-feature-grid p,
.landing-pricing-grid p {
  margin: 0;
  color: var(--landing-muted);
  font-weight: 650;
  line-height: 1.5;
}

.landing-pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-pricing-grid article {
  min-height: 330px;
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: start;
}

.landing-pricing-grid article > span {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eafcf3;
  color: #118257;
  font-size: 12px;
  font-weight: 950;
}

.landing-pricing-grid article strong {
  display: block;
  margin: 12px 0 6px;
  color: var(--landing-dark);
  font-size: 32px;
  line-height: 1;
}

.landing-pricing-grid article p {
  margin-bottom: 24px;
}

.landing-pricing-grid article .landing-price-note {
  min-height: 38px;
  margin: 0 0 10px;
  color: var(--landing-muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 850;
}

.landing-pricing-grid article ul {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--landing-muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}

.landing-pricing-grid article li {
  position: relative;
  padding-left: 24px;
}

.landing-pricing-grid article li::before {
  content: "";
  position: absolute;
  top: .38em;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #eafcf3;
  box-shadow: inset 0 0 0 4px #25c783;
}

.landing-pricing-grid article .primary-btn,
.landing-pricing-grid article .secondary-btn {
  width: 100%;
  min-height: 48px;
  align-self: end;
  margin-top: auto;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 950;
}

.landing-pricing-grid article .secondary-btn {
  border-color: #dfe5ee;
  color: var(--landing-dark);
  background: #fff;
}

.landing-pricing-grid article .secondary-btn:hover {
  border-color: rgba(54, 211, 138, .5);
  background: #f5fff9;
}

.landing-pricing-grid .popular {
  border-color: #7be7b4;
  box-shadow: 0 24px 70px rgba(54, 211, 138, .12);
}

.landing-faq {
  padding-top: 58px;
}

.landing-faq-list {
  display: grid;
  gap: 10px;
}

.landing-faq details {
  border: 1px solid #e8ecf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(7, 16, 31, .035);
}

.landing-faq summary {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 18px;
  padding: 0 18px 0 22px;
  color: var(--landing-dark);
  cursor: pointer;
  font-size: 18px;
  font-weight: 950;
  list-style: none;
}

.landing-faq summary::-webkit-details-marker {
  display: none;
}

.landing-faq summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eafcf3;
  color: #118257;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
}

.landing-faq details[open] {
  border-color: rgba(54, 211, 138, .44);
}

.landing-faq details[open] summary::after {
  content: "−";
}

.landing-faq details p {
  max-width: 820px;
  margin: -6px 58px 20px 22px;
  color: #586176;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
}

.landing-final {
  border-radius: 28px;
  background: var(--landing-dark);
}

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

.landing-final .primary-btn {
  background: #fff;
  color: var(--landing-dark);
  box-shadow: none;
}

.landing-final .primary-btn:hover {
  background: #eafcf3;
}

.landing-footer {
  width: min(calc(100% - 56px), 1160px);
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 34px;
  margin: 34px auto 0;
  padding: 34px 0 42px;
  border-top: 1px solid #e8ecf3;
}

.landing-footer > div {
  max-width: 380px;
}

.landing-footer .landing-brand {
  width: fit-content;
  margin-bottom: 14px;
}

.landing-footer p {
  margin: 0;
  color: #687286;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.landing-footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.landing-footer strong {
  margin-bottom: 4px;
  color: var(--landing-dark);
  font-size: 14px;
  font-weight: 950;
}

.landing-footer a:not(.landing-brand) {
  color: #596276;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.landing-footer a:not(.landing-brand):hover {
  color: #118257;
}

@media (max-width: 1080px) {
  .landing-header,
  .landing-hero,
  .landing-strip,
  .landing-section,
  .landing-final,
  .landing-footer {
    width: min(calc(100% - 32px), 1160px);
  }

  .landing-header {
    grid-template-columns: auto 1fr auto;
  }

  .landing-login-link {
    display: none;
  }

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

  .landing-visual {
    min-height: 650px;
  }

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

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

@media (max-width: 760px) {
  .help-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .help-contact-card {
    position: static;
  }

  .help-head {
    text-align: left;
  }

  .help-head h1,
  .help-head p {
    margin-left: 0;
  }

  .landing-header {
    min-height: 68px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding-top: 12px;
  }

  .landing-brand {
    font-size: 0;
  }

  .landing-brand span {
    width: 138px;
    height: 34px;
  }

  .landing-nav,
  .landing-login-link,
  .landing-header-cta {
    display: none !important;
  }

  .landing-mobile-actions {
    display: inline-flex;
    justify-content: end;
    gap: 8px;
  }

  .landing-icon-link,
  .landing-menu-toggle {
    display: inline-flex;
  }

  .landing-mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    width: min(100%, 260px);
    display: none;
    padding: 10px;
    border: 1px solid #e8ecf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(7, 16, 31, .12);
  }

  .landing-header.is-menu-open .landing-mobile-menu {
    display: grid;
    gap: 4px;
  }

  .landing-mobile-menu a:not(.primary-btn) {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 12px;
    color: #38425a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
  }

  .landing-mobile-menu a:not(.primary-btn):hover {
    background: #f5f7fb;
    color: var(--landing-dark);
  }

  .landing-mobile-menu .primary-btn {
    min-height: 44px;
    margin-top: 6px;
    border-radius: 12px;
    font-size: 14px;
  }

  .landing-hero {
    padding: 28px 0 46px;
  }

  .landing-hero-copy {
    padding-top: 14px;
  }

  .landing-hero-copy::before {
    width: 56px;
    height: 3px;
  }

  .landing-hero .landing-kicker {
    min-height: 34px;
    margin-bottom: 16px;
    font-size: 13px;
  }

  .landing-hero .landing-kicker span {
    display: none;
  }

  .landing-hero h1 {
    font-size: clamp(36px, 10.8vw, 50px);
    line-height: 1;
  }

  .landing-hero-copy > p:not(.landing-kicker) {
    font-size: 16px;
    line-height: 1.45;
  }

  .landing-actions .primary-btn {
    min-height: 56px;
    padding: 0 16px;
    font-size: 14px;
    gap: 10px;
    white-space: nowrap;
  }

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

  .landing-actions {
    display: grid;
  }

  .landing-visual {
    min-height: 620px;
    padding: 74px 0 64px;
  }

  .landing-phone {
    width: min(76vw, 300px);
    transform: none;
  }

  .landing-phone-art {
    width: min(76vw, 300px);
  }

  .landing-phone-art img {
    max-height: 560px;
  }

  .landing-floating-card {
    width: min(48vw, 162px);
    grid-template-columns: 22px 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.25;
  }

  .landing-floating-card span {
    width: 22px;
    height: 22px;
  }

  .landing-floating-card span::before {
    width: 12px;
    height: 12px;
  }

  .landing-floating-card-a {
    top: 18px;
    left: 0;
  }

  .landing-floating-card-b {
    left: 0;
    bottom: 18px;
  }

  .landing-side-card {
    width: min(28vw, 94px);
    gap: 6px;
    padding: 7px;
    border-radius: 14px;
  }

  .landing-side-card div {
    border-radius: 10px;
  }

  .landing-side-card strong,
  .landing-side-card span {
    font-size: 11px;
  }

  .landing-side-card-a {
    top: 120px;
    right: 0;
    transform: rotate(7deg);
  }

  .landing-side-card-b {
    right: 0;
    bottom: 118px;
    transform: rotate(-6deg);
  }

  .landing-phone-screen {
    min-height: 540px;
  }

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

  .landing-work-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 0;
    padding: 28px 0 28px 28px;
    border-radius: 0;
  }

  .landing-work-intro ul {
    width: 100%;
    min-width: 0;
  }

  .landing-strip-label,
  .landing-work-intro strong,
  .landing-work-intro p {
    margin-left: 0;
    padding-left: 0;
  }

  .landing-strip-label {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #118257;
    font-size: 12px;
  }

  .landing-work-intro::before {
    top: 28px;
    bottom: 28px;
    height: auto;
  }

  .landing-section-copy {
    font-size: 16px;
  }

  .landing-feature-grid,
  .landing-pricing-grid,
  .landing-fit,
  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-fit {
    gap: 26px;
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .landing-fit-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .landing-fit-list span {
    min-height: 0;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 16px;
    font-size: 16px;
  }

  .landing-fit-list b {
    width: 30px;
    height: 30px;
  }

  .landing-faq {
    padding-top: 46px;
  }

  .landing-faq summary {
    min-height: 58px;
    gap: 12px;
    padding: 0 14px 0 16px;
    font-size: 16px;
  }

  .landing-faq details p {
    margin: -2px 48px 18px 16px;
    font-size: 15px;
  }

  .landing-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 34px;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; letter-spacing: 0; }
h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: 22px; line-height: 1.15; }
p { color: var(--muted); line-height: 1.5; }

input, textarea, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  font-weight: 600;
}
textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(124, 58, 237, .45);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .08);
}
label {
  display: grid;
  gap: 8px;
  color: #27304a;
  font-size: 13px;
  font-weight: 800;
}

.primary-btn, .secondary-btn, .danger-btn, .ghost-btn, button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 800;
}
.primary-btn {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  box-shadow: 0 10px 22px rgba(124, 58, 237, .16);
}
.secondary-btn, .ghost-btn {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.danger-btn { background: #fff2ef; color: #bf2c15; }

.flash {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
}
.flash-success { background: #eaf8f1; color: #13794d; }
.flash-error { background: #fff0ee; color: #b42318; }

/* Auth */
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-card {
  width: min(100%, 420px);
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin-bottom: 8px; }
.auth-card p { margin-bottom: 20px; }
.auth-card a { color: var(--purple); font-weight: 800; }
.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.auth-links a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.auth-legal-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.auth-card .auth-legal-note a {
  color: #20845f;
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.auth-login-link {
  display: inline-block;
  margin-top: 12px;
}

.auth-card .google-auth-btn {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: #0c0c0d;
  text-decoration: none;
  font-weight: 900;
}

.google-auth-btn span {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #4285f4;
  font-weight: 950;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.form-stack { display: grid; gap: 14px; }
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Super admin */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: min(calc(100% - 24px), 1080px);
  margin: 12px auto 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.brand { font-weight: 900; text-decoration: none; }
.topbar nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.topbar nav a {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: #48516a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}
.link-btn { background: transparent; min-height: auto; padding: 0; }
.admin-mobile-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
}
.admin-mobile-brand {
  color: #0c0c0d;
  text-decoration: none;
  font-weight: 950;
}
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: min(312px, calc(100vw - 52px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 14px;
  background: #0c0c0d;
  color: #fff;
  transform: translateX(-110%);
  transition: transform .2s ease;
}
body.menu-open .admin-sidebar {
  transform: translateX(0);
}
.admin-brand-mark {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 8px 10px 18px;
  color: #fff;
  text-decoration: none;
}
.admin-brand-mark span {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #48d598;
}
.admin-brand-mark strong {
  font-size: 22px;
  line-height: 1;
}
.admin-brand-mark small {
  color: rgba(255, 255, 255, .58);
  font-weight: 850;
}
.admin-side-nav {
  display: grid;
  gap: 7px;
}
.admin-side-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}
.admin-side-nav a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.admin-side-nav a.active {
  background: #fff;
  color: #0c0c0d;
}
.admin-side-nav a span {
  width: 20px;
  opacity: .78;
}
.admin-logout-form {
  margin-top: auto;
}
.admin-logout-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  background: #18181b;
  color: #fff;
  font-weight: 950;
}
.admin-shell {
  padding-top: 84px;
}
.admin-users-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.admin-create-details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.admin-create-details summary {
  cursor: pointer;
  padding: 14px 16px;
  color: #0c0c0d;
  font-weight: 950;
}
.admin-create-details form {
  padding: 0 16px 16px;
}
.admin-user-list {
  display: grid;
  gap: 10px;
}
.admin-user-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(180px, .9fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.admin-user-main {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0c0c0d;
  text-decoration: none;
}
.admin-user-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #0c0c0d;
  color: #fff;
  font-weight: 950;
}
.admin-user-avatar.large {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 24px;
}
.admin-user-main strong,
.admin-user-main small,
.admin-user-meta span,
.admin-user-meta small {
  display: block;
}
.admin-user-main small,
.admin-user-meta small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}
.admin-profile-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.admin-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.admin-profile-head h2,
.admin-profile-head p {
  margin: 0;
}
.admin-profile-head p {
  color: var(--muted);
  font-weight: 750;
}
.admin-detail-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.admin-detail-list span {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.admin-detail-list strong {
  color: var(--muted);
  font-size: 13px;
}
.admin-detail-list em {
  color: #0c0c0d;
  font-style: normal;
  font-weight: 850;
}
.admin-profile-plan {
  justify-content: flex-start;
  margin-top: 16px;
}
.admin-mini-stats {
  margin-top: 14px;
}
.admin-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.admin-plan-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-plan-form select,
.admin-plan-form input {
  min-height: 38px;
  border-radius: 12px;
}
.admin-row-thumb {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--soft);
}
.admin-row-title {
  color: #0c0c0d;
  text-decoration: none;
}
.admin-row-title:hover {
  color: var(--green);
}
.admin-products-list .row-card {
  grid-template-columns: 74px minmax(0, 1fr) auto auto;
  align-items: center;
}
.admin-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr);
  gap: 16px;
  margin-bottom: 16px;
}
.admin-product-media,
.admin-product-side {
  display: grid;
  gap: 14px;
  align-content: start;
}
.admin-product-main-image {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--soft);
}
.admin-product-main-image img {
  width: 100%;
  max-height: 520px;
  display: block;
  object-fit: contain;
}
.admin-product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}
.admin-product-gallery a {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.admin-product-gallery img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
}
.admin-product-side .primary-btn,
.admin-product-side .danger-btn,
.admin-product-side .secondary-btn {
  width: 100%;
}
.admin-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.admin-product-description {
  color: #23262d;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.checkout-shell,
.order-result-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 34px 16px 54px;
}
.checkout-head {
  max-width: 720px;
  margin-bottom: 22px;
}
.checkout-head h1 {
  margin: 8px 0;
}
.checkout-head p {
  color: var(--muted);
  font-weight: 700;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 16px;
  align-items: start;
}
.checkout-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.checkout-card:first-of-type {
  grid-row: span 3;
}
.checkout-card h2 {
  margin: 0;
}
.checkout-options {
  display: grid;
  gap: 8px;
}
.checkout-options label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #0c0c0d;
  font-size: 15px;
  font-weight: 850;
}

.checkout-options .checkout-payment-online {
  min-height: auto;
  align-items: center;
  padding: 14px 12px;
}

.checkout-payment-copy {
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.checkout-payment-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  justify-content: flex-end;
}

.checkout-payment-logos img {
  width: auto;
  height: 28px;
  display: block;
  object-fit: contain;
}

.checkout-payment-logos img[alt="Apple Pay"] {
  height: 24px;
}

.checkout-options input {
  width: 18px;
  min-height: 18px;
}
.delivery-service-logo {
  max-width: 118px;
  width: auto;
  height: 28px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.delivery-service-logo-nova_poshta {
  height: 26px;
}

.delivery-service-logo-ukrposhta {
  height: 30px;
}
.checkout-submit {
  width: 100%;
}
.catalog-header-link {
  color: #0c0c0d;
  font-weight: 900;
  text-decoration: none;
}
.order-result-shell {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding-inline: 12px;
}
.order-result-card {
  width: min(100%, 620px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(18px, 5vw, 28px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  text-align: center;
}
.order-result-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
  font-size: 30px;
  font-weight: 950;
}
.order-result-card.is-failure .order-result-icon {
  background: #fff2ef;
  color: #bf2c15;
}
.order-result-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.order-result-details {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 8px 0;
  text-align: left;
}
.order-result-details span {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.order-result-details strong {
  color: var(--muted);
  font-size: 13px;
}
.order-result-details em {
  color: #0c0c0d;
  font-style: normal;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.order-result-card > .accent-btn {
  width: 100%;
  max-width: 320px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.2;
}

.admin-status-stack {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-inline-edit {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, .7fr) minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}
.admin-editor-form {
  max-width: 920px;
}
.rich-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.rich-toolbar button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: #f4f4f5;
  color: #0c0c0d;
  font-size: 12px;
  font-weight: 950;
}
.rich-editor {
  min-height: 320px;
  font-family: inherit;
}
.rich-editor-hidden {
  display: none;
}
.rich-wysiwyg {
  height: 420px;
  min-height: 420px;
  max-height: 420px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.55;
  outline: none;
}
.rich-wysiwyg,
.rich-wysiwyg * {
  color: var(--text) !important;
}
.rich-wysiwyg:focus {
  border-color: #48d598;
  box-shadow: 0 0 0 3px rgba(72, 213, 152, .14);
}
.rich-wysiwyg h2,
.rich-wysiwyg h3,
.rich-wysiwyg h4 {
  margin: 1.1em 0 .45em;
  line-height: 1.15;
}
.rich-wysiwyg p {
  margin: 0 0 1em;
}
.rich-wysiwyg ul,
.rich-wysiwyg ol {
  margin: 0 0 1em 1.25em;
  padding-left: 1.1em;
}
.rich-wysiwyg a {
  color: #087451;
  font-weight: 850;
}
.admin-cover-preview {
  display: block;
  width: min(100%, 360px);
  max-height: 200px;
  margin: 8px 0;
  border-radius: 16px;
  object-fit: cover;
}
@media (max-width: 760px) {
  .admin-products-list .row-card,
  .admin-product-layout {
    grid-template-columns: 1fr;
  }
  .admin-products-list .row-card {
    align-items: start;
  }
  .admin-row-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .admin-detail-list span {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-shell {
    padding: 28px 0px 44px;
  }
  .checkout-card {
    padding: 14px;
  }
  .checkout-options .checkout-payment-online {
    display: flex;
    gap: 10px;
  }
  .checkout-payment-logos {
    margin-left: auto;
    justify-content: flex-end;
  }
  .checkout-card:first-of-type {
    grid-row: auto;
  }
  .order-result-details span {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .order-result-shell {
    min-height: auto;
    padding: 24px 0px 36px;
  }
  .order-result-card {
    border-radius: 22px;
  }
  .order-result-card > .accent-btn {
    max-width: none;
  }
  .admin-actions,
  .admin-status-stack {
    justify-items: start;
    justify-content: flex-start;
  }
  .admin-plan-form {
    justify-content: flex-start;
  }
  .admin-inline-edit {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1040px) {
  body:has(.admin-sidebar) {
    padding-left: 276px;
  }
  body:has(.admin-sidebar) .admin-mobile-header,
  body:has(.admin-sidebar) .menu-overlay,
  body:has(.admin-sidebar) .drawer-close {
    display: none;
  }
  body:has(.admin-sidebar) .admin-sidebar {
    width: 244px;
    transform: none;
  }
  body:has(.admin-sidebar) .shell {
    width: min(100%, 1240px);
    margin: 0;
    padding: 32px 28px 56px;
  }
  body:has(.admin-sidebar) .admin-shell {
    padding-top: 32px;
  }
  .admin-profile-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }
}
@media (max-width: 920px) {
  .admin-user-card {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .admin-actions {
    justify-items: start;
  }
}

/* App navigation */
.mobile-app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-sizing: border-box;
  height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  padding: 10px 15px 10px 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  backdrop-filter: blur(16px);
}
.mobile-brand {
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 18px;
  font-weight: 900;
}
.mobile-preview, .menu-toggle {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
}
.mobile-preview {
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
}
.menu-toggle {
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(18, 23, 42, .28);
  backdrop-filter: blur(6px);
}
.menu-overlay[hidden] { display: none; }
body.drawer-open { overflow: hidden; }
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: min(84vw, 310px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border-right: 1px solid var(--line);
  transform: translateX(-104%);
  transition: transform .22s ease;
}
body.drawer-open .app-sidebar { transform: translateX(0); }
.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 12px;
  background: var(--soft);
  color: var(--purple);
  font-size: 24px;
}
.brand-mark {
  width: 150px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding-right: 40px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.store-switcher, .sidebar-user {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
}
.store-switcher img, .store-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}
.store-avatar {
  display: grid;
  place-items: center;
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 900;
}
.store-switcher strong, .sidebar-user strong {
  display: block;
  font-size: 14px;
}
.store-switcher small, .sidebar-user small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.app-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}
.app-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  color: #303a58;
  text-decoration: none;
  font-weight: 800;
}
.app-nav a span {
  width: 22px;
  color: var(--purple);
  text-align: center;
}
.app-nav a.active {
  background: var(--purple-soft);
  color: var(--purple);
}

.sidebar-shop-link {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.sidebar-shop-link span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.sidebar-shop-link a {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-shop-link button {
  width: 40px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.sidebar-shop-link button.copied {
  grid-column: 1 / -1;
  width: 100%;
  color: var(--green);
  font-size: 13px;
}
.sidebar-arrow {
  width: 30px;
  min-height: 30px;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 24px;
}
.logout-form {
  display: flex;
  justify-content: flex-end;
}
.logout-button {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 18px;
}

/* Layout */
.shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 88px 15px 32px;
}
.owner-shell { padding-top: 88px; }
.narrow-shell { width: min(100%, 760px); }
.page-heading, .dashboard-head {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.page-heading h1, .dashboard-head h1 { margin-bottom: 6px; }
.page-heading p, .dashboard-head p { margin-bottom: 0; }
.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
}

.hero-card, .form-section, .toolbar-card, .preview-card, .panel,
.dashboard-panel, .row-card, .lead-card, .product-admin-card, .stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 16px;
}
.pill-link {
  width: fit-content;
  padding: 10px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
}

/* Dashboard */
.dashboard-stats, .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.stat {
  min-height: 110px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: none;
}
.stat-purple::after { background: var(--purple-soft); }
.stat-green::after { background: #ddf7e9; }
.stat-blue::after { background: var(--blue-soft); }
.stat-orange::after { background: var(--orange-soft); }
.stat span {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}
.stat strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  line-height: 1;
}
.stat small {
  display: block;
  margin-top: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.stat-link {
  color: inherit;
  text-decoration: none;
}
.stat-link:hover {
  border-color: rgba(72, 213, 152, .34);
  box-shadow: 0 14px 38px rgba(12, 12, 13, .08);
}
.dashboard-share-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  align-items: center;
  gap: 18px;
  margin: 16px 0 18px;
  padding: 18px;
  border: 1px solid rgba(19, 143, 89, .18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(71, 211, 145, .12), rgba(255, 255, 255, .96) 54%);
  box-shadow: var(--shadow);
}
.dashboard-share-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.dashboard-share-copy span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(71, 211, 145, .16);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}
.dashboard-share-copy strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.22;
}
.dashboard-share-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.dashboard-share-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.dashboard-share-url {
  min-height: 38px;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-share-url:hover {
  border-color: rgba(19, 143, 89, .28);
  color: var(--green);
}
.dashboard-share-actions .copied {
  border-color: rgba(19, 143, 89, .28);
  background: rgba(71, 211, 145, .14);
  color: var(--green);
}
.dashboard-panel {
  margin-top: 18px;
  padding: 16px;
}
.setup-panel {
  padding: 18px;
}
.setup-progress {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0f1f3;
}
.setup-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}
.setup-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.setup-step {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
}
.setup-step:hover {
  border-color: rgba(72, 213, 152, .4);
  box-shadow: 0 12px 34px rgba(12, 12, 13, .06);
}
.setup-step-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f4f4f5;
  color: #0c0c0d;
  font-size: 13px;
  font-weight: 950;
}
.setup-step strong,
.setup-step small {
  display: block;
  min-width: 0;
}
.setup-step strong {
  font-size: 15px;
  line-height: 1.2;
}
.setup-step small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.setup-step em {
  justify-self: end;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #0c0c0d;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.setup-step.done {
  background: rgba(72, 213, 152, .07);
}
.setup-step.done .setup-step-icon,
.setup-step.done em {
  background: rgba(72, 213, 152, .18);
  color: var(--green);
}
.next-actions-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.next-action-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
}
.next-action-card:hover {
  border-color: rgba(72, 213, 152, .4);
}
.next-action-card strong {
  font-size: 15px;
  line-height: 1.2;
}
.next-action-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}
.panel-head, .title-row, .lead-top, .phone-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head h2 { margin: 0; }
.muted-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.compact-btn {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 14px;
}
.analytics-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.analytics-list a {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
}
.analytics-list a:hover {
  border-color: rgba(19, 143, 89, .24);
  color: var(--green);
}
.analytics-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-list strong {
  color: var(--green);
}
.dashboard-chart-panel .panel-head {
  align-items: start;
}
.dashboard-chart-panel .panel-head > div {
  display: grid;
  gap: 4px;
}
.dashboard-chart-panel .panel-head > strong {
  color: var(--green);
  font-size: 28px;
  line-height: 1;
}
.dashboard-chart {
  margin-top: 14px;
}
.dashboard-chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.chart-grid {
  fill: none;
  stroke: #eef1f5;
  stroke-width: 1;
}
.chart-area {
  fill: rgba(71, 211, 145, .12);
}
.chart-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-dot {
  fill: #fff;
  stroke: var(--green);
  stroke-width: 3;
}
.dashboard-chart-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: -8px;
}
.dashboard-chart-labels div {
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: center;
}
.dashboard-chart-labels span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.dashboard-chart-labels strong {
  color: var(--text);
  font-size: 13px;
}
.dashboard-products {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.mini-product-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.mini-product-card img {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--soft);
}
.mini-product-card strong, .mini-product-card span { display: block; }
.mini-product-card span { margin-top: 5px; font-weight: 800; }
.mini-product-card small, .status-dot, .badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}
.mini-product-card small.active, .status-dot.on { background: #eaf8f1; color: var(--green); }
.mini-product-card small.out, .status-dot.off { background: #fff0e8; color: var(--red); }
.empty-state {
  padding: 18px;
  border: 1px dashed rgba(124, 58, 237, .25);
  border-radius: 18px;
  text-align: center;
}

/* Lists and products */
.toolbar-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  margin-bottom: 16px;
}
.chip-row, .contact-row, .category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.chip, .category-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: #4d5874;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}
.chip.active,
.category-tabs button.active,
.category-tabs a.active {
  background: color-mix(in srgb, var(--accent, var(--green)) 12%, #fff);
  color: var(--accent, var(--green));
}
.product-grid, .list, .orders-list {
  display: grid;
  gap: 12px;
}
.product-admin-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 10px;
}
.product-admin-card > img {
  width: 100px;
  height: 118px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--soft);
}
.drag-handle { display: none; }
.product-admin-body {
  display: grid;
  gap: 8px;
  align-content: start;
}
.product-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-admin-card strong { font-size: 17px; }
.product-admin-card small { color: var(--purple); font-weight: 850; }
.product-admin-card p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
}
.card-actions {
  grid-column: 1 / -1;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 10px !important;
}
.toggle-btn {
  width: 52px;
  min-height: 30px;
  padding: 3px;
  border-radius: 999px;
  background: #e5e8f0;
  justify-content: flex-start;
}
.toggle-btn span {
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}
.toggle-btn.active { background: var(--purple); }
.toggle-btn.active span { transform: translateX(22px); }
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  text-decoration: none;
  font-size: 30px;
}
.row-card, .lead-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.soft-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.row-card span, .lead-card span, small { color: var(--muted); }
.timeline {
  display: none;
}

.lead-list {
  display: grid;
  gap: 14px;
}

.lead-card-rich {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-color: #edf0f3;
  background: #fff;
}

.lead-card.lead-card-rich {
  grid-template-columns: 112px minmax(0, 1fr);
}

.lead-side {
  display: grid;
  gap: 12px;
  justify-items: center;
  align-content: start;
}

.lead-preview {
  width: 92px;
  height: 92px;
  overflow: hidden;
  display: block;
  border-radius: 18px;
  background: #f6f7f8;
  text-decoration: none;
}

.lead-details-btn {
  width: 92px;
  min-height: 38px;
  gap: 6px;
  border-radius: 14px;
  border: 0;
  background: #e9fbf3;
  color: #16845f;
  font-size: 14px;
  font-weight: 950;
}

.lead-details-btn span {
  font-size: 16px;
  line-height: 1;
}

.lead-body .lead-details-btn {
  width: fit-content;
  min-height: 36px;
  margin-top: 4px;
  padding: 0 13px;
  border: 0;
  background: #0c0c0d;
  color: #fff;
}

.lead-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lead-preview-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #20845f;
  font-weight: 950;
}

.lead-preview-placeholder span {
  color: #7a8190;
  font-size: 12px;
  font-weight: 900;
}

.lead-preview-placeholder strong {
  color: #16845f;
  font-size: 18px;
  font-weight: 950;
}

.lead-main {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 9px;
}

.lead-body {
  min-width: 0;
  display: grid;
  gap: 10px;
}

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

.lead-top > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.lead-top strong,
.lead-product-link {
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
}

.lead-top strong {
  font-size: 18px;
}

.lead-product-link {
  width: fit-content;
  max-width: 100%;
  font-size: 16px;
}

.lead-card-rich p {
  max-width: 680px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-items-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lead-items-preview span,
.lead-items-preview small {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f7f8f9;
  color: #5f6675;
  font-size: 13px;
  font-weight: 850;
}

.lead-contact-line {
  width: fit-content;
  color: #6f7684;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.status-chip {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eefbf5;
  color: #16845f;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.status-in_progress {
  background: #fff7df;
  color: #a16207;
}

.status-done {
  background: #edf5ff;
  color: #2563eb;
}

.status-archived {
  background: #f3f4f6;
  color: #667085;
}
.lead-status-stack {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 7px;
}
.payment-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #52525b;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}
.payment-success,
.payment-hold {
  background: rgba(72, 213, 152, .16);
  color: var(--green);
}
.payment-created,
.payment-processing {
  background: #fff7df;
  color: #a16207;
}
.payment-failure,
.payment-expired {
  background: #fff0f0;
  color: #b42318;
}
.payment-reversed {
  background: #edf5ff;
  color: #2563eb;
}
.lead-payment-line {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f4f4f5;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}
.lead-payment-line span {
  color: var(--green);
}
.lead-payment-box p,
.lead-payment-box small {
  margin: 0;
}
.payments-panel {
  overflow: hidden;
}
.payments-disclaimer {
  max-width: 760px;
  margin-top: 10px !important;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 14px;
  background: #fffbeb;
  color: #92400e;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 850;
}
.payments-table {
  display: grid;
  gap: 0;
}
.payments-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px 130px 170px auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.payments-row:last-child {
  border-bottom: 0;
}
.payments-row a {
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}
.payments-row a:hover {
  color: var(--green);
}
.payments-row strong {
  color: var(--green);
}
.payments-head {
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}
.checkbox-line input {
  width: 18px;
  height: 18px;
}
.settings-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.lead-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 16px;
  align-items: start;
}

.lead-detail-card,
.lead-product-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.lead-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lead-detail-head h2,
.lead-product-card h2 {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.1;
}

.lead-detail-head p,
.lead-product-empty p {
  margin: 4px 0 0;
  color: var(--muted);
}

.lead-detail-section {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.lead-detail-section > strong {
  font-size: 14px;
  font-weight: 950;
}

.lead-detail-section a {
  width: fit-content;
  color: #20845f;
  font-weight: 900;
}

.lead-detail-section p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

.lead-cart-items {
  display: grid;
  gap: 8px;
}

.lead-cart-items span {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7f8f9;
  color: var(--text);
  font-weight: 850;
}

.lead-detail-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.lead-detail-status label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 900;
}

.lead-product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  background: var(--soft);
}

.lead-product-card strong {
  color: #20845f;
  font-size: 20px;
}

/* Generic owner forms */
.form-section, .preview-card, .panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.grid-form, .form-grid, .quick-actions, .appearance-layout {
  display: grid;
  gap: 12px;
}
.check, .native-toggle, .phone-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.check input { width: auto; min-height: auto; }
.logo-uploader {
  width: 100%;
  min-height: 168px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(124, 58, 237, .25);
  border-radius: 18px;
  background: #fafbff;
  cursor: pointer;
  overflow: hidden;
}
.logo-uploader input { display: none; }
.logo-uploader span {
  color: var(--muted);
  font-weight: 900;
}
.logo-preview {
  width: 100%;
  height: 100%;
  max-height: 220px;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
}
.preview-phone {
  max-width: 330px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}
.preview-header {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
}
.preview-header img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
}
.preview-header span { display: block; color: var(--muted); font-size: 12px; }
.preview-product {
  aspect-ratio: 1.25 / 1;
  border-radius: 20px;
  background: var(--soft);
}

.settings-visual-section {
  grid-column: 1 / -1;
}

.settings-section-head h2,
.settings-section-head p {
  margin: 0;
}

.settings-section-head p {
  margin-top: 4px;
  color: var(--muted);
}

.settings-visual-grid {
  display: grid;
  gap: 14px;
}

.settings-visual-controls {
  display: grid;
  gap: 14px;
}

/* Public catalog */
.catalog {
  --accent: var(--purple);
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 74px 14px 0;
  background: #fff;
}

.catalog-app {
  position: relative;
}

.catalog-app-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 55;
  width: min(100%, 720px);
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgb(238 238 238 / 96%);
  transform: translateX(-50%);
}

.catalog-app-header-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.catalog-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-size: 21px;
  font-weight: 950;
}

.catalog-brand img {
  width: auto;
  max-width: 150px;
  height: auto;
  max-height: 32px;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
}

.catalog-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-header-nav {
  display: none;
}

.catalog-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.catalog-icon-button {
  position: relative;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: transparent;
  color: var(--text);
}

.catalog-icon-button svg,
.catalog-card-favorite svg,
.catalog-secondary-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-count {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.catalog-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(18, 23, 42, .34);
  backdrop-filter: blur(8px);
}

.catalog-drawer-overlay[hidden] {
  display: none;
}

.catalog-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 210;
  width: min(86vw, 334px);
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 26px 18px 22px;
  background: #fff;
  border-right: 1px solid rgba(18, 23, 42, .08);
  box-shadow: 18px 0 44px rgba(18, 23, 42, .1);
  transform: translateX(-105%);
  transition: transform .2s ease;
  overflow-y: auto;
}

.catalog-drawer.open {
  transform: translateX(0);
}

.catalog-drawer-close {
  top: 18px;
  right: 16px;
  background: #f4f5f6;
  color: var(--text);
}

.catalog-drawer-shop {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 0 54px 2px 0;
}

.catalog-drawer-brand {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.catalog-drawer-brand img {
  width: auto;
  max-width: min(185px, 100%);
  height: auto;
  max-height: 46px;
  display: block;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
}

.catalog-drawer-brand strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.catalog-drawer-shop p {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.catalog-drawer-section {
  display: grid;
  gap: 9px;
}

.catalog-drawer-section > strong {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.catalog-drawer-section button,
.catalog-drawer-section a {
  min-height: 32px;
  justify-content: flex-start;
  padding: 3px 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.catalog-drawer-section button.active,
.catalog-drawer-section a.active {
  background: transparent;
  color: var(--accent);
}

.catalog-store-head {
  padding: 8px 0 14px;
}

.catalog-store-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
}

.catalog-store-head p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.catalog-hero {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 8px 0 18px;
}
.catalog-hero img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
}
.catalog-hero h1 { margin: 0 0 4px; font-size: 28px; }
.catalog-hero p { margin: 0; }
.contact-row a,
.category-tabs button,
.category-tabs a {
  white-space: nowrap;
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  border: 0;
  text-decoration: none;
  font-weight: 800;
}

.catalog-category-tabs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 -14px 14px;
  padding: 0 14px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.catalog-category-tabs::-webkit-scrollbar {
  display: none;
}

.catalog-mobile-tools {
  display: grid;
  margin-bottom: 16px;
}

.catalog-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.catalog-inline-search {
  min-height: 52px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 15px;
  border-radius: 18px;
  background: #f6f6f8;
  color: #8a90a3;
}

.catalog-inline-search svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-inline-search input {
  min-height: 50px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.catalog-inline-search:focus-within,
.catalog-inline-search input:focus {
  border-color: transparent;
  outline: none;
  box-shadow: none;
}

.catalog-inline-search input::placeholder {
  color: #8a90a3;
  opacity: 1;
}

.catalog-view-toggle {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 18px;
  background: #f7f7f9;
}

.catalog-view-toggle button {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
}

.catalog-view-toggle button.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(18, 23, 42, .06);
}

.catalog-view-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-search-submit {
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f6f6f8;
  color: var(--accent);
}

.catalog-search-submit svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-grid { display: grid; gap: 16px; }
.catalog-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.catalog-card-image {
  position: relative;
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  background: var(--soft);
}

.catalog-card-image .category-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, .92);
  color: var(--text);
}

.product-badge {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #0c0c0d;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.catalog-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  justify-items: start;
  gap: 7px;
}

.catalog-card-badges .product-badge {
  box-shadow: 0 10px 24px rgba(18, 23, 42, .12);
}

.product-badge-hit {
  background: #0c0c0d;
  color: #fff;
}

.product-badge-new {
  background: #eafaf3;
  color: #16845f;
}

.product-badge-sale {
  background: #fff1f2;
  color: #be123c;
}

.product-badge-gift {
  background: #f5f0ff;
  color: #6d28d9;
}

.product-badge-recommended {
  background: #eef5ff;
  color: #1d4ed8;
}

.product-badge-low_stock {
  background: #fff7df;
  color: #a16207;
}

.product-badge-saving {
  background: #eafaf3;
  color: #16845f;
}

.catalog-card-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  min-height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  color: var(--text);
}

.catalog-card-favorite.active {
  color: #e11d48;
}

.catalog-card-favorite.active svg {
  fill: currentColor;
}

.catalog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.catalog-card-body-category {
  display: none;
  justify-self: start;
}

.catalog-card-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(82px, auto);
  gap: 12px;
  align-items: start;
}

.catalog-card-name {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.catalog-card h2 {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.2;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.catalog-card-title strong {
  color: var(--accent);
  font-size: 18px;
  line-height: 1.05;
  white-space: nowrap;
}

.product-price-display {
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}

.product-old-price {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-decoration: line-through;
  white-space: nowrap;
}

.product-price-display small,
.product-discount-note {
  color: #16845f;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.catalog-description {
  max-height: 42px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.catalog-description,
.catalog-description * {
  margin: 0;
}

.catalog-description * {
  display: inline;
}

.catalog-card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.accent-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
}

.catalog-details-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
}

.catalog-secondary-action {
  width: 48px;
  min-width: 48px;
  min-height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.catalog-secondary-action.active {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent) 18%, #fff);
  color: var(--accent);
}

.catalog-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
  margin-right: -14px;
  margin-left: -14px;
  padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgb(238 238 238 / 96%);
}

.catalog-footer .catalog-brand {
  font-size: 20px;
}

.catalog-footer-brand {
  display: grid;
  gap: 10px;
}

.catalog-footer-brand p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.catalog-footer-section {
  display: grid;
  gap: 10px;
}

.catalog-footer-section strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.catalog-footer-section a {
  width: fit-content;
  color: #5f6675;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.catalog-footer-section a:hover {
  color: var(--accent);
}

.lemitap-public-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.lemitap-public-badge a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 900;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.billing-period-card {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(40, 201, 141, .09), rgba(255, 255, 255, 0) 52%),
    #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .045);
}

.billing-period-card h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.billing-period-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.billing-period-toggle {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7f8fa;
}

.billing-period-toggle label {
  cursor: pointer;
}

.billing-period-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0; 
}

.billing-period-toggle span {
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 9px 13px;
  border-radius: 14px;
  color: var(--text);
  text-align: center;
  transition: background .18s ease, box-shadow .18s ease, color .18s ease;
}

.billing-period-toggle strong {
  font-size: 14px;
  font-weight: 950;
}

.billing-period-toggle em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.billing-period-toggle input:checked + span {
  background: #0a0b0d;
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .2);
}

.billing-period-toggle input:checked + span em {
  color: rgba(255, 255, 255, .74);
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 330px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .045);
}

.pricing-card.active {
  border-color: rgba(72, 213, 152, .45);
  box-shadow: 0 18px 45px rgba(32, 132, 95, .08);
}

.pricing-card.popular {
  border-color: #28c98d;
  box-shadow: 0 28px 70px rgba(32, 132, 95, .13);
}

.pricing-card-top {
  min-height: 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pricing-card-top span {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.pricing-card-top em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: #e8fff5;
  color: #087451;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.pricing-card-top em.best {
  background: #eef0ff;
  color: #4655c7;
}

.pricing-price {
  display: grid;
  gap: 7px;
}

.pricing-price strong {
  color: var(--text);
  font-size: 30px;
  font-weight: 950;
}

.pricing-price span {
  color: var(--muted);
  font-weight: 850;
}

.pricing-save-note {
  min-height: 36px;
  margin: -6px 0 0;
  color: #087451;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.pricing-card ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-weight: 750;
}

.pricing-card li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card li.muted {
  color: var(--muted);
}

.pricing-card li i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #28c98d;
  border-radius: 999px;
  color: #15976b;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.pricing-card li.muted i {
  border-color: #cfd4dc;
  color: #9aa1af;
}

.pricing-card form {
  margin-top: auto;
}

.pricing-card button {
  width: 100%;
}

.billing-status-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(180px, 1fr);
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .04);
}

.billing-status-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #e8fff5;
  color: #15976b;
}

.billing-status-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.billing-status-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.billing-status-plan h2 {
  margin: 4px 0;
}

.billing-status-date strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
}

.billing-cancel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  background: #fbfbfc;
}

.billing-cancel-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.billing-cancel-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.billing-cancel-card form {
  flex: 0 0 auto;
}

.notice-card.danger {
  margin-top: 12px;
  border-color: #ffd6d6;
  background: #fff0f0;
  color: #b42318;
}

.billing-history {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.billing-history-head,
.billing-history-row {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1.2fr .7fr;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
}

.billing-history-head {
  background: #fafafa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.billing-history-row {
  border-top: 1px solid var(--line);
}

.billing-history-row strong {
  display: grid;
  gap: 2px;
  text-transform: capitalize;
}

.billing-history-row small {
  color: var(--muted);
  font-size: 13px;
}

.billing-status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef0ff;
  color: #4655c7;
  font-size: 12px;
  font-weight: 950;
}

.billing-status-pill.active {
  background: #e8fff5;
  color: #087451;
}

.billing-status-pill.cancelled,
.billing-status-pill.failed,
.billing-status-pill.error {
  background: #fff0f4;
  color: #d12f61;
}

.billing-status-pill.replaced {
  background: #f0f2ff;
  color: #4b5dcc;
}

@media (max-width: 900px) {
  .billing-period-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
  }

  .billing-period-card h2 {
    font-size: 22px;
  }

  .billing-period-card p {
    font-size: 14px;
    line-height: 1.45;
  }

  .billing-period-toggle {
    flex-basis: auto;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .billing-period-toggle span {
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
    text-align: left;
  }

  .billing-period-toggle input:checked + span {
    border-color: #0a0b0d;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
  }

  .billing-period-toggle strong {
    min-width: 0;
    justify-self: start;
    font-size: 14px;
  }

  .billing-period-toggle em {
    justify-self: end;
    font-size: 11px;
    white-space: nowrap;
  }

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

  .pricing-card {
    min-height: auto;
    padding: 20px;
  }

  .pricing-card-top {
    min-height: 26px;
  }

  .billing-status-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
  }

  .billing-status-date {
    grid-column: 2;
  }

  .billing-status-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .billing-status-plan h2 {
    font-size: 22px;
  }

  .billing-status-date strong {
    font-size: 20px;
  }

  .billing-cancel-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .billing-history-head {
    display: none;
  }

  .billing-history-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }

  .billing-cancel-card form,
  .billing-cancel-card button {
    width: 100%;
  }
}

.catalog-contact-list {
  display: grid;
  gap: 9px;
}

.catalog-contact-list .catalog-contact-link {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #5f6675;
  overflow-wrap: anywhere;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.catalog-contact-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.catalog-social-icons a {
  justify-content: center;
}

.catalog-footer-section .catalog-social-icon,
.catalog-drawer-section .catalog-social-icon {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 23, 42, .08);
  border-radius: 999px;
  background: #fff;
  color: #2f3544;
}

.catalog-footer-section .catalog-social-icon:hover,
.catalog-drawer-section .catalog-social-icon:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, #d9dde5);
  color: var(--accent);
}

.catalog-social-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-drawer-section .catalog-contact-list {
  gap: 8px;
}

.catalog-drawer-section .catalog-contact-link {
  min-height: 24px;
  padding: 0;
  color: #626a78;
  font-size: 14px;
  font-weight: 800;
}

.catalog-drawer-section .catalog-contact-link:hover {
  color: var(--accent);
}

.catalog-drawer-section .catalog-social-icons {
  display: grid;
  grid-template-columns: repeat(5, 40px);
  justify-content: start;
  gap: 10px;
  margin-top: 12px;
}

.catalog-drawer-section .catalog-social-icon {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  color: var(--accent);
}

.catalog-drawer-section .catalog-social-icon:hover {
  background: var(--accent);
  color: #fff;
}

.catalog-drawer-section .catalog-social-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.contacts-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.contacts-head {
  max-width: 680px;
  margin: 18px 0 22px;
}

.contacts-head h1 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: 0;
  line-height: .98;
}

.contacts-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
}

.contacts-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.contacts-card h2,
.contacts-card p {
  margin: 0;
}

.contacts-info-card p {
  color: var(--muted);
  line-height: 1.5;
}

.contacts-info-card .catalog-contact-list {
  margin-top: 6px;
}

.contacts-info-card .catalog-contact-link {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #0c0c0d;
  background: #fff;
}

.contacts-info-card .catalog-social-icons {
  margin-top: 4px;
}

.contacts-info-card .catalog-social-icon {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  color: var(--accent);
}

.contacts-form {
  gap: 12px;
}

.contacts-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.contacts-form input,
.contacts-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 750;
}

.contacts-form textarea {
  min-height: 140px;
  padding-top: 13px;
  resize: vertical;
}

.contacts-form .accent-btn {
  min-height: 52px;
  border-radius: 16px;
  color: #fff;
  font-weight: 950;
}

@media (max-width: 719px) {
  .contacts-shell {
    padding: 20px 0 52px;
  }

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

  .contacts-card {
    padding: 18px;
    border-radius: 20px;
  }

  .catalog-mobile-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-search-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-view-toggle,
  .catalog-search-submit {
    display: none;
  }

  .catalog-view-list {
    gap: 18px;
  }

  .catalog-view-list .catalog-card {
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: 24px;
  }

  .catalog-view-list .catalog-card-image {
    min-height: 0;
    background: #f7f8f9;
  }

  .catalog-view-list .catalog-card img {
    height: auto;
    max-height: 520px;
    aspect-ratio: auto;
    border-radius: 24px 24px 12px 12px;
    object-fit: contain;
  }

  .catalog-view-list .catalog-card-image .category-chip {
    display: inline-flex;
  }

  .catalog-view-list .catalog-card-favorite {
    top: 12px;
    right: 12px;
    width: 42px;
    min-height: 42px;
  }

  .catalog-view-list .catalog-card-body {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto;
    padding: 14px 14px 15px;
    align-content: start;
  }

  .catalog-view-list .catalog-card-body-category {
    display: none;
  }

  .catalog-view-list .catalog-card-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
    gap: 10px;
    padding-right: 0;
  }

  .catalog-view-list .catalog-card h2 {
    min-height: auto;
    font-size: 17px;
  }

  .catalog-view-list .catalog-card-title strong {
    font-size: 17px;
  }

  .catalog-view-list .product-price-display {
    align-self: start;
    padding-top: 1px;
  }

  .catalog-view-list .product-price-display small {
    font-size: 10px;
  }

  .catalog-view-list .catalog-card-actions {
    margin-top: 4px;
  }

  .catalog-view-grid {
    gap: 18px;
  }
}

.catalog-search-card {
  display: grid;
  gap: 14px;
}

.catalog-search-card h2 {
  margin: 0;
}

.catalog-modal-search-form {
  display: grid;
  gap: 12px;
}

.catalog-search {
  min-height: 48px;
}

.catalog-empty-state {
  margin-top: 18px;
  border: 0;
  background: transparent;
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 26px auto 10px;
}

.catalog-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.catalog-pagination a,
.catalog-pagination-ellipsis {
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}

.catalog-pagination a.active {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.catalog-pagination-arrow {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.catalog-pagination-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-pagination-ellipsis {
  min-width: 28px;
  padding: 0 4px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.owner-shell .catalog-pagination a.active {
  background: #0c0c0d;
  color: #fff;
}

.owner-shell .catalog-pagination a:not(.active):hover {
  border-color: #0c0c0d;
  color: #0c0c0d;
}

.public-error-page {
  min-height: 100vh;
}

.public-error-card {
  width: min(calc(100% - 32px), 560px);
  margin: 72px auto;
  padding: 38px 26px;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(18, 23, 42, .06);
}

.public-error-card > span {
  min-height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #26d07c) 12%, #fff);
  color: var(--accent, #167b55);
  font-size: 14px;
  font-weight: 950;
}

.public-error-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.public-error-card p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.public-back-button {
  width: fit-content;
  min-width: 132px;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 24px;
  border: 0;
}

.platform-error-page {
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: var(--bg);
}

.public-error-brand {
  margin-bottom: 10px;
}

/* Public catalog refresh */
.catalog {
  width: min(100%, 760px);
  padding: 86px 16px 0;
  background: #fff;
}

.catalog-app-header {
  width: min(100%, 760px);
  min-height: 68px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(18, 23, 42, .06);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 34px rgba(18, 23, 42, .05);
  backdrop-filter: blur(18px);
}

.catalog-brand {
  gap: 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.catalog-brand img {
  width: auto;
  max-width: 160px;
  height: auto;
  max-height: 38px;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
}

.catalog-header-brand img {
  max-width: min(190px, 39vw);
  max-height: 42px;
}

.catalog-icon-button {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background: transparent;
}

.catalog-icon-button:hover {
  background: rgba(18, 23, 42, .045);
}

.catalog-count {
  top: 3px;
  right: 3px;
  box-shadow: 0 0 0 2px #fff;
}

.catalog-store-head {
  padding: 4px 0 14px;
}

.catalog-store-head h1 {
  font-size: 34px;
  letter-spacing: -0.035em;
}

.contact-row a,
.category-tabs button,
.category-tabs a {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(18, 23, 42, .05);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(18, 23, 42, .035);
}

.catalog-category-tabs {
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 6px;
}

.catalog-grid {
  gap: 20px;
}

.catalog-card {
  overflow: hidden;
  border: 1px solid rgba(18, 23, 42, .07);
  border-radius: 30px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 52px rgba(18, 23, 42, .07);
}

.catalog-card img {
  aspect-ratio: 4 / 5.15;
  border-radius: 30px 30px 12px 12px;
}

.catalog-card-image .category-chip {
  left: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 24px rgba(18, 23, 42, .08);
  backdrop-filter: blur(12px);
}

.catalog-card-favorite {
  top: 14px;
  right: 14px;
  width: 46px;
  min-height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 26px rgba(18, 23, 42, .08);
  backdrop-filter: blur(12px);
}

.catalog-card-body {
  gap: 8px;
  padding: 15px 15px 16px;
}

.catalog-card h2 {
  font-size: 18px;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.catalog-card-name {
  gap: 3px;
}

.catalog-card-title strong {
  color: var(--accent);
  font-size: 18px;
  letter-spacing: -0.015em;
}

.catalog-card-subtitle {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #747985;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.catalog-details-button {
  min-height: 50px;
  border-radius: 17px;
  font-size: 16px;
}

.catalog-secondary-action {
  width: 52px;
  min-width: 52px;
  min-height: 50px;
  border-radius: 17px;
  background: #fff;
}

.catalog-footer {
  border-top: 1px solid rgba(18, 23, 42, .06);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
}

@media (min-width: 1040px) {
  .catalog {
    width: min(100%, 1440px);
    padding: 32px 48px 0;
    background: #fff;
  }

  .catalog-app-header {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    margin: 0 0 40px;
    min-height: 84px;
    padding: 14px 26px;
    border: 0;
    border-radius: 0;
    transform: none;
  }

  .catalog-app-header-inner {
    max-width: 1344px;
    margin: 0 auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .catalog-header-nav {
    min-width: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
  }

  .catalog-header-nav a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
  }

.catalog-header-nav a.active {
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    color: var(--accent);
  }

  .catalog-mobile-tools {
    display: none;
  }

  .catalog-store-head {
    padding-top: 22px;
  }

  .catalog-store-head h1 {
    font-size: 40px;
  }

  .catalog-category-tabs {
    margin-top: 8px;
    margin-bottom: 16px;
  }

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

  .catalog-footer {
    margin-right: -48px;
    margin-left: -48px;
    padding-right: 48px;
    padding-left: 48px;
  }
}

.product-public-page {
  padding-bottom: 104px;
}

.product-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.product-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.product-breadcrumbs strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-public-gallery {
  display: grid;
  gap: 10px;
}

.product-public-thumbs {
  display: none;
}

.product-public-slider {
  position: relative;
  display: block;
  overflow: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
  border-radius: 26px;
  background: var(--soft);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.product-public-slider.is-dragging {
  cursor: grabbing;
}

.product-public-track {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform .28s ease;
}

.product-public-slider.is-dragging .product-public-track {
  transition: none;
}

.product-public-slider img,
.product-public-thumbs img {
  -webkit-user-drag: none;
  user-select: none;
}

.product-public-slider::-webkit-scrollbar {
  display: none;
}

.product-public-slider img {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  display: block;
  object-fit: contain;
}

.product-public-slider img.active {
  display: block;
}

.product-public-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.product-public-dots button {
  width: 7px;
  min-width: 7px;
  height: 7px;
  min-height: 7px;
  padding: 0;
  border-radius: 50%;
  background: #d4d4d8;
}

.product-public-dots button.active {
  width: 18px;
  border-radius: 999px;
  background: var(--accent);
}

.product-public-info {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.product-public-title {
  display: grid;
  gap: 8px;
}

.product-public-title h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
}

.product-public-subtitle {
  max-width: 720px;
  margin: -2px 0 0;
  color: #747985;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.product-public-title > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-public-title strong {
  color: var(--accent);
  font-size: 20px;
  white-space: nowrap;
}

.product-public-fields {
  border-bottom: 0;
}

.product-public-fields div {
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 14px;
}

.product-public-fields dd {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.product-public-description {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.product-public-description h2 {
  margin: 0;
  font-size: 18px;
}

.product-public-description div {
  color: var(--text);
  line-height: 1.55;
}

.product-order-section {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 16px;
  scroll-margin-top: 82px;
  border-radius: 22px;
  background: #f7f8f8;
}

.product-order-head {
  display: grid;
  gap: 4px;
}

.product-order-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.product-order-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.product-order-form {
  display: grid;
  gap: 10px;
}

.product-order-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.product-order-form input,
.product-order-form textarea {
  min-height: 50px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.product-order-form textarea {
  min-height: 92px;
  padding-top: 13px;
  resize: vertical;
}

.product-order-subsection {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.product-order-subsection h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.15;
}

.product-order-form .checkout-options {
  gap: 8px;
}

.product-order-form .checkout-options label {
  min-height: 48px;
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #0c0c0d;
  font-size: 15px;
  font-weight: 850;
}

.product-order-form .checkout-options .checkout-payment-online {
  min-height: auto;
  padding: 14px 12px;
}

.product-order-form .checkout-options input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  border-radius: 50%;
  flex: 0 0 auto;
}

.product-payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-payment-options label {
  position: relative;
  display: block;
  min-width: 0;
  color: var(--text);
}

.product-payment-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-payment-options span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.product-payment-options input:checked + span {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
}

.product-order-form .accent-btn {
  min-height: 52px;
  margin-top: 2px;
  border-radius: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.related-products-section {
  display: grid;
  gap: 16px;
  width: min(calc(100% - 32px), 1120px);
  margin: 10px auto 0;
  overflow: hidden;
}

.related-products-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.related-products-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.12;
}

.related-products-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.related-products-controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.related-products-controls button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.related-products-controls svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.related-products-viewport {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.related-products-viewport::-webkit-scrollbar {
  display: none;
}

.related-product-card {
  flex: 0 0 min(82vw, 292px);
  scroll-snap-align: start;
}

@media (max-width: 719px) {
  .related-products-section {
    width: min(calc(100% - 32px), 420px);
  }

  .related-products-viewport {
    gap: 16px;
  }

  .related-product-card {
    flex-basis: 100%;
  }

  .related-product-card .catalog-card-image {
    background: var(--soft);
  }

  .related-product-card .catalog-card-image img {
    object-fit: contain;
  }
}

.product-action-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  width: min(100%, 720px);
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.product-action-icon {
  width: 50px;
  min-width: 50px;
  min-height: 50px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
}

.product-action-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-action-icon.active {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  color: var(--accent);
}

.product-action-icon.active svg {
  fill: currentColor;
}

.product-action-cta {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 950;
}

.product-action-bar .product-action-icon:first-child:nth-last-child(2) + .product-action-cta {
  grid-column: span 2;
}

.product-desktop-actions {
  display: none;
}

.product-mobile-actions {
  grid-column: 2 / 3;
  grid-row: 1;
  display: grid;
  justify-content: start;
}

.product-purchase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 0 0 2px;
}

.product-purchase-price-stack {
  grid-column: 1 / 2;
  display: grid;
  justify-items: start;
  gap: 6px;
}

.product-purchase-price {
  display: block;
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
  font-weight: 950;
}

.product-mobile-actions .product-quantity-control {
  width: 120px;
  min-height: 42px;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  border-radius: 13px;
}

.product-mobile-actions .product-quantity-control button,
.product-mobile-actions .product-quantity-control input {
  min-height: 42px;
}

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

.product-quantity-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.product-quantity-control {
  width: 132px;
  min-height: 38px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
}

.product-quantity-control button {
  min-height: 38px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #2b3142;
  font-size: 17px;
  font-weight: 900;
}

.product-quantity-control input {
  min-height: 38px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  appearance: textfield;
}

.product-quantity-control input::-webkit-outer-spin-button,
.product-quantity-control input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.product-secondary-actions {
  display: none;
}

.product-desktop-favorite {
  display: none;
}

.catalog-cart-card {
  width: min(100% - 28px, 520px);
  max-height: min(760px, calc(100vh - 28px));
  display: grid;
  grid-template-rows: auto minmax(0, auto) auto auto;
  gap: 16px;
  overflow: auto;
}

.catalog-favorites-card {
  width: min(100% - 28px, 520px);
  max-height: min(680px, calc(100vh - 28px));
  display: grid;
  gap: 16px;
  overflow: auto;
}

.catalog-cart-head {
  display: grid;
  gap: 5px;
  padding-right: 44px;
}

.catalog-cart-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.catalog-cart-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.catalog-cart-items {
  display: grid;
  gap: 10px;
}

.catalog-favorites-items {
  display: grid;
  gap: 10px;
}

.catalog-cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.catalog-favorite-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.catalog-favorite-item img {
  width: 72px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--soft);
}

.catalog-favorite-item > div {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.catalog-favorite-item a {
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 900;
}

.catalog-favorite-item span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.catalog-cart-item img {
  width: 72px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--soft);
}

.catalog-cart-item > div {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 8px;
}

.catalog-cart-item a {
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 900;
}

.catalog-cart-item span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.catalog-cart-subtotal {
  display: block;
  margin-top: 2px;
  color: var(--text);
  white-space: nowrap;
  font-size: 16px;
  font-weight: 950;
}

.catalog-cart-qty {
  width: fit-content;
  display: grid;
  grid-template-columns: 30px 28px 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f9fa;
}

.catalog-cart-qty button {
  min-height: 30px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.catalog-cart-qty strong {
  text-align: center;
  font-size: 13px;
}

.catalog-cart-remove {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  background: #fff1f2;
  color: #e11d48;
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 420px) {
  .catalog-cart-item {
    grid-template-columns: 64px minmax(0, 1fr) 34px;
    gap: 10px;
  }

  .catalog-cart-item img {
    width: 64px;
    height: 78px;
  }

  .catalog-cart-item span {
    max-width: 100%;
    line-height: 1.2;
  }
}

.catalog-cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 2px 0;
  border-top: 1px solid var(--line);
}

.catalog-cart-summary[hidden] {
  display: none;
}

.catalog-cart-summary span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.catalog-cart-summary strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
}

.checkout-cart-items {
  gap: 0;
}

.checkout-cart-items .catalog-cart-item {
  grid-template-columns: 76px minmax(0, 1fr) 34px;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.checkout-cart-items .catalog-cart-item img {
  width: 76px;
  height: 88px;
}

.checkout-cart-items + .catalog-cart-empty[hidden] + .catalog-cart-summary {
  margin-top: 16px;
}

.catalog-cart-checkout {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.catalog-cart-checkout[hidden] {
  display: none;
}

.catalog-cart-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background: #f7f8f9;
  text-align: center;
}

.catalog-cart-empty[hidden] {
  display: none;
}

.catalog-cart-empty strong {
  font-size: 17px;
}

.catalog-cart-empty span {
  color: var(--muted);
  line-height: 1.45;
}

.catalog-cart-form {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.catalog-cart-form[hidden] {
  display: none;
}

.catalog-cart-form label {
  display: grid;
  gap: 7px;
  color: #25304a;
  font-size: 13px;
  font-weight: 900;
}

.catalog-cart-form input,
.catalog-cart-form textarea {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.catalog-cart-form textarea {
  min-height: 86px;
  padding-top: 13px;
  resize: vertical;
}

.catalog-cart-form .accent-btn {
  min-height: 52px;
  margin-top: 4px;
  border-radius: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.catalog-success-card {
  width: min(100% - 28px, 430px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 30px 24px 24px;
  text-align: center;
}

.catalog-success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  color: var(--accent);
}

.catalog-success-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-success-card h2 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.08;
}

.catalog-success-card p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
}

.catalog-success-button {
  min-height: 52px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 950;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(18, 23, 42, .36);
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(100%, 520px);
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
}
.text-page {
  display: block;
}

.catalog-page-wrap {
  display: grid;
  gap: 20px;
  padding: 12px 0 36px;
}

.catalog-page-head h1 {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.catalog-page-content {
  max-width: 820px;
  color: #2d3038;
  font-size: 16px;
  line-height: 1.72;
  white-space: normal;
}

.catalog-page-content p,
.catalog-page-content div {
  margin: 0 0 16px;
}

.catalog-page-content p:last-child,
.catalog-page-content div:last-child {
  margin-bottom: 0;
}

.catalog-page-content ul,
.catalog-page-content ol {
  margin: 14px 0 18px;
  padding-left: 24px;
}

.catalog-page-content li {
  margin: 6px 0;
}

.catalog-page-content strong,
.catalog-page-content b {
  color: var(--text);
  font-weight: 950;
}

.catalog-page-content h2,
.catalog-page-content h3,
.catalog-page-content h4,
.catalog-page-content h5,
.catalog-page-content h6 {
  margin: 28px 0 12px;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: 0;
}

.catalog-page-content a {
  color: #20845f;
  text-underline-offset: 3px;
}

.catalog-page-content br {
  line-height: 1.8;
}

/* Product form */
.product-phone-page {
  min-height: 100vh;
  background: #fff;
  color: #0f1426;
}
.product-phone-form {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 20px 30px;
  background: #fff;
}
.phone-form-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
}
.phone-form-topbar a, .phone-form-topbar button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: var(--purple);
}
.phone-form-topbar a {
  color: var(--text);
  text-decoration: none;
  font-size: 30px;
}
.phone-form-topbar strong {
  text-align: center;
  font-size: 15px;
  font-weight: 900;
}
.phone-upload {
  height: 174px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1.5px dashed rgba(124, 58, 237, .18);
  border-radius: 14px;
  background: #fbfaff;
  text-align: center;
  cursor: pointer;
}
.phone-upload input, .thumb-plus input { display: none; }
.phone-upload img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}
.upload-glyph {
  color: var(--purple);
  font-size: 42px;
  line-height: 1;
}
.phone-upload strong { font-size: 14px; font-weight: 900; }
.phone-upload small { color: var(--muted); font-size: 12px; }
.phone-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0 20px;
}
.phone-thumbs img, .thumb-skeleton, .thumb-plus {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  background: var(--soft);
}
.thumb-skeleton { background: #ead8bf; }
.thumb-plus {
  display: grid;
  place-items: center;
  color: var(--purple);
  font-size: 30px;
  cursor: pointer;
}
.phone-section {
  display: grid;
  gap: 14px;
  margin: 0 -20px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
.phone-section:first-of-type { border-top: 0; padding-top: 0; }
.phone-section h2, .phone-section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}
.phone-section label {
  color: #151b2f;
  font-size: 12px;
  font-weight: 900;
}
.phone-section input, .phone-section select, .phone-section textarea {
  min-height: 48px;
  border-radius: 12px;
}
.select-row { position: relative; display: block; }
.select-row select { appearance: none; padding-right: 38px; }
.select-row b {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a90a0;
  font-size: 22px;
}
.phone-editor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.phone-editor-tools {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 15px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  color: #3f4961;
  font-weight: 900;
}
.phone-editor textarea {
  border: 0;
  border-radius: 0;
}
.phone-editor small {
  display: block;
  padding: 0 12px 10px;
  text-align: right;
  color: #9aa1af;
}
.variant-group {
  display: grid;
  gap: 8px;
}
.variant-group h3 {
  margin: 2px 0 4px;
  font-size: 12px;
}
.variant-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
}
.variant-row b, .variant-row em {
  color: #9aa1af;
  font-style: normal;
}
.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #d8dce6;
}
.color-0 { background: #d7b892; }
.color-1 { background: #000; }
.color-2 { background: #fff; }
.add-inline {
  justify-content: start;
  width: fit-content;
  min-height: 34px;
  padding: 0;
  background: transparent;
  color: var(--purple);
}
.phone-toggle-row input {
  appearance: none;
  width: 46px;
  height: 28px;
  min-height: 28px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: #e5e8f0;
}
.phone-toggle-row input::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}
.phone-toggle-row input:checked { background: var(--purple); }
.phone-toggle-row input:checked::after { transform: translateX(18px); }
.phone-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 12px;
  background: var(--soft);
}
.phone-status label { display: block; }
.phone-status input { display: none; }
.phone-status span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #4f566c;
  font-size: 13px;
  font-weight: 850;
}
.phone-status input:checked + span {
  background: var(--purple-soft);
  color: var(--purple);
}
.phone-save-button {
  position: sticky;
  bottom: 16px;
  z-index: 10;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  font-weight: 900;
}

@media (max-width: 719px) {
  .hero-card, .form-section, .toolbar-card, .preview-card, .panel, .dashboard-panel {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 24px;
  }
}

@media (max-width: 860px) {
  .dashboard-share-card,
  .dashboard-share-actions {
    grid-template-columns: 1fr;
  }
  .dashboard-share-actions .compact-btn {
    width: 100%;
  }
  .setup-step {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .setup-step em {
    grid-column: 2;
    justify-self: start;
  }
  .payments-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }
  .payments-head {
    display: none;
  }
}

@media (min-width: 720px) {
  .topbar { grid-template-columns: auto 1fr auto; align-items: center; }
  .desktop-only { display: inline-flex; }
  .page-heading, .dashboard-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .dashboard-stats, .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .setup-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-actions-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dashboard-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mini-product-card {
    display: block;
    overflow: hidden;
    padding: 0;
  }
  .mini-product-card img {
    width: 100%;
    height: 148px;
    border-radius: 16px 16px 0 0;
  }
  .mini-product-card div { padding: 12px; }
  .toolbar-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-admin-card {
    display: block;
    overflow: hidden;
    padding: 0;
  }
  .product-admin-card > img {
    width: 100%;
    height: 172px;
    border-radius: 24px 24px 0 0;
  }
  .product-admin-body { padding: 12px 12px 0; }
  .card-actions { padding: 10px 12px 12px; }
  .form-grid, .grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appearance-layout { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .appearance-layout .form-section:last-child { grid-column: 1 / -1; }
  .settings-social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-card, .lead-card {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
  .lead-card.lead-card-rich {
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-phone-page {
    padding: 24px 0;
    background: var(--bg);
  }
  .product-phone-form {
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
  }
}

.appearance-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.appearance-layout .form-section,
.appearance-layout .custom-domain-settings,
.appearance-layout .telegram-settings-card {
  grid-column: 1 / -1;
}

.settings-accordion-section {
  border-radius: 22px;
  background: #eefaf5;
}

.settings-accordion-section:not(.collapsed) {
  background: #fff;
}

@media (min-width: 1040px) {
  body:has(.app-sidebar) { padding-left: 276px; }
  .mobile-app-header, .menu-overlay, .drawer-close { display: none; }
  .app-sidebar {
    top: 16px;
    left: 16px;
    bottom: 16px;
    width: 244px;
    border: 1px solid var(--line);
    border-radius: 24px;
    transform: none;
  }
  .shell {
    width: min(100%, 1160px);
    padding: 28px 28px 56px;
    margin: 0;
  }
  .owner-shell { padding-top: 28px; }
  .fab { display: none; }
}

/* Product editor essentials */
.product-editor-form {
  padding-bottom: 28px;
}

.photo-editor {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.main-photo-drop {
  height: 174px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1.5px dashed #cdeedd;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  cursor: pointer;
}

.main-photo-drop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.main-photo-drop strong {
  font-size: 15px;
  font-weight: 900;
}

.main-photo-drop small {
  color: var(--muted);
  font-size: 12px;
}

.image-input {
  display: none;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.image-preview-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  cursor: pointer;
}

.image-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-card span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
}

.image-preview-card button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #b42318;
  font-size: 18px;
  line-height: 1;
}

.image-preview-card.empty {
  border-style: dashed;
  background: #fff;
}

.image-preview-card.empty b {
  color: #20845f;
  font-size: 28px;
}

.image-preview-card.empty span {
  position: static;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.product-main-fields {
  border-top: 0;
  padding-top: 0;
}

.field-hint {
  margin-top: 6px;
  display: block;
  color: #7b808b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

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

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

.field-label-row small {
  flex: 0 0 auto;
  color: #8b909a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.new-category-field[hidden] {
  display: none;
}

.rich-editor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 5px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  overflow-x: auto;
}

.rich-toolbar button,
.rich-toolbar select {
  flex: 0 0 auto;
  width: auto;
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #303a58;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.rich-toolbar select {
  min-width: 92px;
}

.rich-toolbar button:hover,
.rich-toolbar select:hover {
  background: #fff;
  border-color: var(--line);
}

.rich-editor .rich-content {
  min-height: 120px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  outline: none;
}

.rich-editor .rich-content b,
.rich-editor .rich-content strong {
  font-weight: 900;
}

.rich-editor .rich-content:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

textarea.rich-editor {
  min-height: 320px;
  overflow: auto;
  resize: vertical;
  padding: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}

@media (max-width: 719px) {
  .rich-toolbar {
    gap: 3px;
    padding: 4px;
    scrollbar-width: none;
  }

  .rich-toolbar::-webkit-scrollbar {
    display: none;
  }

  .rich-toolbar button,
  .rich-toolbar select {
    min-width: 34px;
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .rich-toolbar select {
    min-width: 84px;
  }

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

/* Product form inside admin layout */
.product-page {
  max-width: 980px;
}

.product-page-heading {
  margin-bottom: 18px;
}

.product-editor-form {
  width: 100%;
  max-width: none;
  min-height: auto;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 18px;
  background: transparent;
}

.product-side-panel {
  align-self: start;
  display: grid;
  gap: 14px;
}

.photo-editor {
  align-self: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.product-main-fields {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.product-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.product-form-actions .primary-btn,
.product-form-actions .secondary-btn {
  min-width: 160px;
}

@media (max-width: 719px) {
  .product-page {
    padding-top: 88px;
  }

  .product-editor-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .photo-editor,
  .product-main-fields {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .product-side-panel {
    gap: 14px;
  }

  .product-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-left: -15px;
    margin-right: -15px;
    padding: 12px 15px;
    background: #fff;
    border-top: 1px solid var(--line);
  }

  .product-form-actions .secondary-btn {
    display: none;
  }

  .product-form-actions .primary-btn {
    width: 100%;
  }
}

@media (min-width: 1180px) {
  .product-grid, .dashboard-products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Clean neutral admin direction */
:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #27272a;
  --muted: #71717a;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --soft: #f6f7f7;
  --purple: #48d598;
  --purple-2: #24b981;
  --purple-soft: #eafaf3;
  --green: #239e70;
  --shadow: none;
}

body {
  background: #fff;
  color: var(--text);
}

h1 {
  letter-spacing: -0.02em;
}

input,
textarea,
select {
  border-color: var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #48d598;
  box-shadow: 0 0 0 3px rgba(72, 213, 152, .14);
}

.primary-btn,
.phone-save-button,
.mobile-preview,
.menu-toggle {
  background: #0c0c0d;
  color: #0c0c0d;
  box-shadow: none;
}

.primary-btn {
  color: #fff;
}

.secondary-btn,
.ghost-btn,
.pill-link {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-card,
.form-section,
.toolbar-card,
.preview-card,
.panel,
.dashboard-panel,
.row-card,
.lead-card,
.product-admin-card,
.stat,
.auth-card,
.catalog-card,
.store-switcher,
.sidebar-user,
.mini-product-card {
  box-shadow: none;
  border-color: var(--line);
}

.hero-card,
.form-section,
.toolbar-card,
.preview-card,
.panel,
.dashboard-panel {
  background: #fff;
}

.eyebrow,
.chip.active,
.app-nav a.active,
.category-tabs button.active,
.category-tabs a.active,
.phone-status input:checked + span {
  background: color-mix(in srgb, var(--accent, var(--green)) 12%, #fff);
  color: var(--accent, var(--green));
}

.app-nav a span,
.auth-card a,
.phone-form-topbar button,
.phone-upload .upload-glyph,
.thumb-plus,
.add-inline,
.product-admin-card small {
  color: #20845f;
}

.brand-mark span {
  background: #48d598;
}

.stat::after,
.stat-purple::after,
.stat-green::after,
.stat-blue::after,
.stat-orange::after {
  content: none;
}

.mobile-app-header {
  background: #fff;
  border-color: var(--line);
  backdrop-filter: none;
}

.menu-toggle {
  color: #fff;
}

.fab {
  background: #48d598;
  color: #0c0c0d;
  box-shadow: none;
}

.toggle-btn.active,
.phone-toggle-row input:checked {
  background: #48d598;
}

.catalog {
  --accent: #48d598;
}

.accent-btn {
  color: #ffffff;
}

.phone-upload {
  background: #fff;
  border-color: #d7f4e7;
}

.phone-form-topbar {
  background: #fff;
  backdrop-filter: none;
}

@media (min-width: 1040px) {
  body:has(.app-sidebar) {
    padding-left: 0;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 60;
    width: 100%;
    min-height: 56px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 8px 24px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    transform: none;
  }

  .brand-mark {
    grid-template-columns: 30px auto;
    padding-right: 0;
  }

  .brand-mark strong {
    font-size: 28px;
  }

  .brand-mark span {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .app-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
  }

  .app-nav a {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    white-space: nowrap;
    color: #3f3f46;
    font-size: 14px;
  }

  .app-nav a span {
    display: none;
  }

  .logout-form { display: block; }
  .logout-button {
    width: 38px;
    min-height: 38px;
  }

  .shell {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 28px 28px 56px;
  }

  .owner-shell {
    padding-top: 28px;
  }
}

@media (min-width: 1040px) {
  .app-sidebar {
    height: 56px;
    min-height: 56px;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: none;
    align-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* .brand-mark,
  .app-nav,
  .logout-form {
    align-self: center;
  } */

  .shell {
    padding-top: 24px;
  }

  .owner-shell {
    padding-top: 24px;
  }
}

/* Stable product photo editor */
.product-editor-form {
  align-items: start;
}

.photo-editor {
  min-width: 0;
  overflow: hidden;
}

.main-photo-drop {
  width: 100%;
  height: 260px;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.main-photo-drop:not(:has(img)) {
  padding: 14px;
}

.main-photo-drop img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.image-preview-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.image-preview-card {
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 1 / 1;
}

.image-preview-card[hidden] {
  display: none !important;
}

.image-preview-card.new-upload img,
.image-preview-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 719px) {
  .main-photo-drop {
    height: 190px;
  }
}

/* Products list layout */
.product-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.product-admin-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border-radius: 24px;
}

.product-admin-card > img {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--soft);
}

.product-admin-body {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 0;
}

.product-admin-card strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-admin-card small {
  color: #20845f;
  font-size: 14px;
  font-weight: 850;
}

.product-description {
  margin: 0;
  max-width: 560px;
  max-height: 20px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-description * {
  display: inline;
  margin-top: 0;
  margin-bottom: 0;
}

.product-description br {
  display: none;
}

.product-description ul,
.product-description ol {
  display: inline;
  padding-left: 0;
  list-style: none;
}

.product-description li {
  display: inline;
}

.product-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.card-actions {
  grid-column: auto;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px !important;
  padding: 0;
}

.card-actions form {
  display: flex;
  margin: 0;
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-admin-card {
    display: grid;
    grid-template-columns: 84px minmax(220px, 1fr) minmax(130px, auto);
    align-items: center;
    gap: 14px;
    padding: 14px;
    overflow: visible;
  }

  .product-admin-card > img {
    width: 84px;
    height: 84px;
    border-radius: 16px;
  }

  .product-admin-body {
    min-width: 0;
    padding: 0;
    gap: 6px;
  }

  .product-description {
    max-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .card-actions {
    grid-column: auto;
    justify-content: flex-end;
    padding: 0;
  }
}

@media (min-width: 1180px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 719px) {
  .product-admin-card {
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px;
  }

  .product-admin-card > img {
    width: 82px;
    height: 98px;
    border-radius: 14px;
  }

  .product-description {
    max-width: 100%;
  }

  .card-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 4px;
  }
}

/* Product list columns */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.product-admin-card {
  display: grid;
  grid-template-columns: 72px minmax(220px, 1fr) minmax(130px, 180px) minmax(110px, 140px) 70px 104px;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.product-list-image {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--soft);
}

.product-list-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.product-list-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.product-list-main strong {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-list-main small {
  color: #20845f;
  font-size: 14px;
  font-weight: 850;
}

.product-list-category,
.product-list-status,
.product-list-toggle,
.product-list-edit {
  min-width: 0;
  display: flex;
  align-items: center;
}

.product-list-toggle {
  justify-content: center;
  margin: 0;
}

.product-list-edit {
  justify-content: flex-end;
}

.product-description {
  max-width: 100%;
  max-height: 19px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-description,
.product-description * {
  margin: 0;
}

.product-description * {
  display: inline;
}

.product-description br {
  display: none;
}

.product-description ul,
.product-description ol {
  display: inline;
  padding-left: 0;
  list-style: none;
}

.product-description li {
  display: inline;
}

.product-list-edit .ghost-btn {
  white-space: nowrap;
}

.product-list-category .category-chip,
.product-list-status .status-dot {
  margin: 0;
}

.product-list-category {
  justify-content: flex-start;
}

.product-list-status {
  justify-content: flex-start;
}

.product-list-toggle .toggle-btn {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  justify-content: flex-start;
}

.product-list-toggle .toggle-btn:disabled {
  opacity: .65;
  cursor: wait;
}

@media (min-width: 900px) {
  .product-admin-card {
    grid-template-columns: 72px minmax(220px, 1fr) 160px 130px 58px 104px;
  }
}

@media (max-width: 899px) {
  .product-admin-card {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .product-list-image {
    width: 68px;
    height: 78px;
    grid-row: 1 / span 3;
  }

  .product-list-main {
    grid-column: 2 / 4;
  }

  .product-list-category,
  .product-list-status {
    align-self: start;
  }

  .product-list-toggle {
    grid-column: 2;
    justify-content: flex-start;
  }

  .product-list-edit {
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  .product-admin-card {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 12px;
  }

  .product-list-image {
    width: 64px;
    height: 78px;
  }

  .product-list-main {
    grid-column: 2;
  }

  .product-list-category,
  .product-list-status {
    grid-column: 2;
  }

  .product-list-toggle {
    grid-column: 1;
    justify-content: flex-start;
  }

  .product-list-edit {
    grid-column: 2;
    justify-content: flex-end;
  }
}

/* Cleaner product list: media, info, actions */
.product-admin-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}

.product-list-image {
  width: 88px;
  height: 88px;
  border-radius: 18px;
}

.product-list-main {
  gap: 6px;
}

.product-list-main strong {
  font-size: 17px;
}

.product-list-main small {
  font-size: 15px;
}

.product-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.product-list-meta .category-chip,
.product-list-meta .status-dot {
  margin: 0;
}

.product-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.product-list-actions .product-list-toggle {
  margin: 0;
}

.product-list-actions .ghost-btn {
  white-space: nowrap;
}

@media (min-width: 900px) {
  .product-admin-card {
    grid-template-columns: 88px minmax(0, 1fr) auto;
  }
}

@media (max-width: 719px) {
  .product-admin-card {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px;
  }

  .product-list-image {
    width: 76px;
    height: 88px;
  }

  .product-list-main {
    grid-column: 2;
  }

  .product-list-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 4px;
  }
}

/* Product cards grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-admin-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border-radius: 24px;
}

.product-list-image {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.product-list-image .status-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  background: rgba(234, 248, 241, .94);
  backdrop-filter: blur(8px);
}

.product-list-image .status-dot.off {
  background: rgba(255, 240, 232, .94);
}

.product-list-image .image-category {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  background: rgba(255, 255, 255, .92);
  color: #4f4d68;
  backdrop-filter: blur(8px);
}

.product-list-main {
  display: grid;
  gap: 7px;
  padding: 14px 14px 12px;
}

.product-list-main strong {
  font-size: 17px;
}

.product-list-main small {
  font-size: 15px;
}

.product-list-meta {
  gap: 7px;
  min-height: 30px;
  align-items: center;
}

.product-list-meta .category-chip {
  margin: 0;
}

.product-list-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 14px;
}

.product-list-actions .product-list-toggle {
  display: flex;
  align-items: center;
  margin: 0;
}

.product-list-actions .toggle-btn {
  width: 52px;
  min-width: 52px;
  height: 30px;
  min-height: 30px;
  padding: 3px;
  border: 0;
  line-height: 1;
}

.product-list-actions .toggle-btn span {
  width: 24px;
  height: 24px;
}

.product-list-actions .ghost-btn {
  min-height: 40px;
  padding: 0 16px;
}

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

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

  .product-list-image {
    aspect-ratio: 16 / 10;
  }
}

/* Rich product management cards */
.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-admin-card {
  border-radius: 28px;
  border-color: #e7e7ec;
  background: #fff;
}

.product-list-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.product-list-image .status-dot {
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.product-list-image .image-category {
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.product-list-main {
  padding: 16px 16px 14px;
}

.product-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.product-title-row strong {
  min-width: 0;
}

.product-title-row span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f3f6;
  color: #62617d;
  font-size: 12px;
  font-weight: 850;
}

.product-list-main .product-badge {
  margin-top: 8px;
}

.product-card-subtitle {
  margin: 5px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: #747985;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-card-stats span {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0 8px;
  color: #62617d;
  font-size: 12px;
  text-align: center;
}

.product-card-stats span + span {
  border-left: 1px solid var(--line);
}

.product-card-stats svg,
.icon-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card-stats b {
  overflow: hidden;
  max-width: 100%;
  color: #38364f;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-list-actions {
  margin: 0 16px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
}

.product-icon-actions {
  display: flex;
  gap: 10px;
}

.product-icon-actions form {
  display: flex;
  margin: 0;
}

.icon-action {
  width: 46px;
  min-width: 46px;
  min-height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #565474;
  text-decoration: none;
}

.icon-action.danger {
  color: #e11d48;
}

.icon-action:hover {
  background: #f8f8fa;
}

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

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

  .product-admin-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-list-image {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
  }

  .product-list-main,
  .product-list-actions {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 1120px) {
  .owner-shell .product-admin-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .owner-shell .product-list-image {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
  }

  .owner-shell .product-list-main,
  .owner-shell .product-list-actions {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  .owner-shell .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Flat product search and filters */
.product-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.product-toolbar input {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  background: #fff;
}

.filter-button {
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--soft);
  color: var(--text);
}

.filter-button.active {
  background: var(--purple-soft);
  color: #20845f;
}

.filter-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.product-filter-panel {
  position: relative;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  max-height: 0;
  margin: -8px 0 0;
  padding: 0 14px;
  overflow: visible;
  border-radius: 20px;
  background: #f8faf9;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: max-height .22s ease, margin .22s ease, padding .22s ease, opacity .18s ease, transform .22s ease;
}

.product-filter-panel.open {
  max-height: 180px;
  margin: -4px 0 18px;
  padding: 14px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-select {
  position: relative;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.custom-select-toggle {
  width: 100%;
  min-height: 44px;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.custom-select-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .16s ease;
}

.custom-select.open .custom-select-toggle svg {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  width: 100%;
  display: grid;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .1);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-select-menu button {
  min-height: 38px;
  justify-content: flex-start;
  padding: 0 10px;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
}

.custom-select-menu button:hover {
  background: var(--soft);
}

.product-grid.is-loading {
  opacity: .55;
  pointer-events: none;
}

.product-grid {
  position: relative;
  z-index: 1;
}

.product-empty-state {
  grid-column: 1 / -1;
}

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

.add-product-btn {
  gap: 8px;
  color: #fff;
}

.add-product-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

/* Product category picker */
.category-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
}

.category-picker-row .select-row {
  min-width: 0;
}

.category-add-button {
  width: 52px;
  min-width: 52px;
  min-height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #20845f;
}

.category-add-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.category-modal {
  place-items: center;
}

.category-modal-card {
  display: grid;
  gap: 14px;
  width: min(100%, 420px);
  border: 1px solid var(--line);
}

.category-modal-card h2,
.category-modal-card p {
  margin: 0;
}

.category-modal-card p {
  color: var(--muted);
}

.product-fields-settings p {
  margin: -4px 0 4px;
  color: var(--muted);
}

.product-field-list {
  display: grid;
  gap: 10px;
}

.product-field-item {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.product-field-item span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-field-edit,
.product-field-add {
  color: #20845f;
}

.product-field-edit {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 13px;
  background: var(--purple-soft);
}

.product-field-add {
  gap: 8px;
  width: fit-content;
}

.product-field-edit svg,
.product-field-add svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-field-modal {
  place-items: center;
}

.product-field-modal-card {
  display: grid;
  gap: 14px;
  width: min(100%, 420px);
  border: 1px solid var(--line);
}

.product-field-modal-card h2,
.product-field-modal-card p {
  margin: 0;
}

.product-field-modal-card p {
  color: var(--muted);
}

.accent-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 48px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.settings-field {
  display: grid;
  gap: 8px;
  color: #27304a;
  font-size: 13px;
  font-weight: 800;
}

.settings-base-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 14px;
  align-items: end;
}

.settings-cart-toggle {
  display: grid;
  gap: 8px;
  justify-items: start;
  color: #27304a;
  font-size: 13px;
  font-weight: 800;
}

.settings-select {
  font-size: 13px;
}

.settings-save-btn {
  width: fit-content;
  min-width: 180px;
}

.accent-preset {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--preset);
}

.accent-preset.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--preset);
}

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

.cta-preset {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.cta-preset.active {
  border-color: transparent;
  background: #eafaf3;
  color: #20845f;
}

.order-form-settings {
  align-content: start;
}

.order-form-settings p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.telegram-settings-card {
  margin-top: 14px;
}

.telegram-connect-btn {
  width: fit-content;
  gap: 8px;
  color: #143b2a;
}

.telegram-connect-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.telegram-connected-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #f7f8f9;
}

.telegram-connected-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.telegram-connected-row strong {
  color: var(--text);
  font-weight: 950;
}

.telegram-connected-row span,
.telegram-hint {
  color: var(--muted);
  line-height: 1.45;
}

.telegram-hint {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7f8f9;
}

.domain-ajax-message {
  padding: 12px 14px;
  border-radius: 16px;
  background: #eafaf3;
  color: #20845f;
  font-weight: 850;
  line-height: 1.4;
}

.domain-ajax-message.error {
  background: #fff1f1;
  color: #b42318;
}

.settings-accordion-section {
  padding: 0;
  overflow: hidden;
}

.settings-accordion-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: center;
  padding: 22px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.settings-accordion-toggle .settings-section-head {
  margin: 0;
}

.settings-accordion-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f7f8f9;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.settings-accordion-body {
  display: grid;
  gap: 16px;
  padding: 0 22px 22px;
}

.settings-accordion-section.collapsed .settings-accordion-body {
  display: none;
}

.settings-accordion-section.collapsed .settings-accordion-icon {
  background: #eefaf5;
  color: #20845f;
}

.settings-accordion-section:not(.collapsed) .settings-accordion-icon {
  font-size: 0;
}

.settings-accordion-section:not(.collapsed) .settings-accordion-icon::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.custom-domain-settings {
  grid-column: 1 / -1;
}

.domain-connect-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.domain-connect-form label {
  margin: 0;
}

.domain-dns-hint,
.domain-validation-record {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  line-height: 1.45;
}

.domain-dns-hint strong {
  color: var(--text);
}

.domain-wait-note {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #eefaf5;
  color: #20845f;
}

.domain-wait-note strong {
  color: #16845f;
  font-size: 13px;
  font-weight: 950;
}

.domain-wait-note span {
  color: #20845f;
}

.domain-dns-hint code,
.domain-validation-record code {
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f8f9;
  color: #27304a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 850;
}

.domain-dns-hint small,
.domain-validation-record small {
  color: var(--muted);
  line-height: 1.4;
}

.dns-record-table {
  display: grid;
  gap: 8px;
}

.dns-record-row {
  display: grid;
  grid-template-columns: 150px minmax(120px, .6fr) minmax(0, 1fr) 112px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: #f7f8f9;
}

.dns-record-head {
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dns-record-row span {
  color: #27304a;
  font-size: 13px;
  font-weight: 850;
}

.dns-record-row code {
  background: #fff;
}

.dns-record-row button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.dns-record-row button.copied {
  border-color: transparent;
  background: #eafaf3;
  color: #20845f;
}

.dns-system-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 12px;
  background: #eefaf5;
  color: #20845f;
  font-size: 13px;
  font-weight: 900;
}

.dns-record-row form {
  margin: 0;
}

.dns-record-form {
  display: grid;
  grid-template-columns: 110px minmax(100px, .55fr) minmax(0, 1fr) 110px 90px auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.dns-record-form select,
.dns-record-form input {
  min-height: 42px;
  border-radius: 12px;
  font-size: 13px;
}

.dns-proxy-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #27304a;
  font-size: 13px;
  font-weight: 850;
}

.dns-proxy-option input {
  min-height: auto;
  width: auto;
}

.custom-domain-list {
  display: grid;
  gap: 10px;
}

.custom-domain-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.custom-domain-item > div:first-child {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.custom-domain-item strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
}

.custom-domain-item span,
.custom-domain-item em {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.custom-domain-actions {
  display: flex;
  gap: 8px;
}

.custom-domain-actions form {
  margin: 0;
}

.danger-btn {
  color: #b42318;
}

@media (max-width: 720px) {
  .owner-shell .appearance-layout > .form-section {
    margin-right: 0;
    margin-left: 0;
  }

  .owner-shell .appearance-layout > .settings-accordion-section {
    border-radius: 22px;
    background: #f9f9f9;
  }

  .settings-accordion-toggle {
    padding-right: 18px;
    padding-left: 18px;
  }

  .settings-accordion-body {
    padding-right: 18px;
    padding-left: 18px;
  }

  .domain-connect-form,
  .custom-domain-item,
  .dns-record-row,
  .dns-record-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .domain-connect-form .primary-btn,
  .custom-domain-actions,
  .dns-record-row button {
    width: 100%;
  }

  .dns-record-head {
    display: none;
  }

  .custom-domain-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-domain-actions .secondary-btn {
    width: 100%;
  }
}

.order-field-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-field-option {
  position: relative;
  cursor: pointer;
}

.order-field-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-field-option span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 850;
}

.order-field-option input:checked + span {
  border-color: transparent;
  background: #eafaf3;
  color: #20845f;
}

.order-field-option .delivery-service-logo {
  max-width: 96px;
  height: 24px;
}

.settings-social-grid {
  display: grid;
  gap: 14px;
}

.icon-input {
  position: relative;
  display: block;
}

.icon-input svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #20845f;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.icon-input input {
  padding-left: 46px;
}

.custom-product-fields {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.custom-product-fields h2 {
  margin: 0;
  font-size: 16px;
}

.product-badge-field {
  display: grid;
  gap: 10px;
}

.product-badge-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-badge-options label {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.product-badge-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-badge-options span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.product-badge-options input:checked + span {
  border-color: transparent;
  background: #0c0c0d;
  color: #fff;
}

.catalog-custom-fields {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.catalog-custom-fields div {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 8px;
}

.catalog-custom-fields dt,
.catalog-custom-fields dd {
  margin: 0;
  font-size: 13px;
}

.catalog-custom-fields dt {
  color: var(--muted);
}

.catalog-custom-fields dd {
  color: var(--text);
  font-weight: 750;
}

.product-public-fields {
  gap: 8px;
}

.product-public-fields div {
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 18px;
}

.product-public-fields dt {
  min-width: 0;
}

@media (max-width: 760px) {
  .product-public-fields {
    gap: 10px;
  }

  .product-public-fields div {
    gap: 18px;
  }
}

/* Pages admin */
.pages-empty-state {
  max-width: 520px;
  margin: 44px auto 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 22px;
  border: 0;
  background: transparent;
}

.pages-empty-state strong {
  font-size: 22px;
}

.pages-empty-state p {
  max-width: 360px;
  margin: 0 0 8px;
}

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

.page-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 46px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.page-list-card div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.page-list-card strong,
.page-list-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-list-card > div > span {
  color: var(--muted);
}

.page-list-card .badge {
  margin: 0;
}

.page-list-card .badge.on {
  background: #eaf8f1;
  color: var(--green);
}

.page-list-card .badge.off {
  background: #fff0e8;
  color: var(--red);
}

.page-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.page-menu-toggle > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.pages-add-bottom {
  width: fit-content;
  margin-top: 14px;
}

/* Categories admin */
.categories-empty-state {
  max-width: 520px;
  margin: 44px auto 0;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 34px 22px;
  border: 0;
  background: transparent;
}

.categories-empty-state strong {
  font-size: 22px;
}

.category-admin-list {
  display: grid;
  gap: 10px;
}

.category-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 46px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.category-admin-card > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.category-admin-card strong,
.category-admin-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-admin-card > div > span {
  color: var(--muted);
}

.category-admin-card .status-dot {
  margin: 0;
}

.category-admin-card form {
  margin: 0;
  display: flex;
}

.category-admin-card .toggle-btn {
  border: 0;
  cursor: pointer;
}

.categories-add-bottom {
  width: fit-content;
  margin-top: 14px;
}

.category-admin-modal-card {
  width: min(100%, 420px);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
}

.category-admin-modal-card h2,
.category-admin-modal-card p {
  margin: 0;
}

.category-admin-modal-card p {
  color: var(--muted);
}

.page-editor-page {
  max-width: 760px;
}

.page-editor-form {
  gap: 16px;
}

.page-editor-form textarea {
  min-height: 220px;
  resize: vertical;
}

.page-rich-content {
  min-height: 260px;
}

.page-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 2px;
}

.page-status-row .status-dot {
  margin: 0;
}

.native-switch {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.native-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.native-switch span {
  position: relative;
  width: 52px;
  height: 30px;
  display: block;
  border-radius: 999px;
  background: #e5e8f0;
  transition: background .18s ease;
}

.native-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}

.native-switch input:checked + span {
  background: var(--purple);
}

.native-switch input:checked + span::after {
  transform: translateX(22px);
}

/* Product edit actions */
.product-edit-actions {
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.product-edit-actions .product-edit-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.product-edit-actions .product-edit-status {
  margin: 0;
}

.product-edit-actions .product-icon-actions form {
  display: flex;
  margin: 0;
}

@media (min-width: 720px) {
  .product-edit-actions {
    grid-column: 1;
  }

  .product-main-fields {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .category-admin-card {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .category-admin-card .status-dot {
    grid-column: 1;
    grid-row: 2;
  }

  .category-admin-card form {
    grid-column: 1;
    grid-row: 3;
  }

  .category-admin-card .category-edit-button {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .page-list-card {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .page-list-card .badge {
    grid-column: 1;
    grid-row: 2;
  }

  .page-menu-toggle {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    justify-content: flex-end;
    padding-top: 0;
  }
}

@media (max-width: 719px) {
  .product-page {
    padding-top: 70px;
    padding-bottom: 92px;
  }

  .product-page-heading {
    margin: 0 -15px;
    padding: 12px 15px 10px;
    border-bottom: 0;
    background: #fff;
  }

  .product-page-heading h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.12;
  }

  .product-editor-form {
    gap: 0;
    padding-bottom: 0;
  }

  .product-side-panel {
    gap: 0;
  }

  .product-side-panel .photo-editor {
    margin: 0 -15px;
    padding: 12px 15px 16px;
    border: 0;
    border-radius: 0;
  }

  .product-side-panel .main-photo-drop {
    height: 188px;
    border-radius: 14px;
  }

  .product-side-panel .main-photo-drop img {
    border-radius: 13px;
  }

  .product-side-panel .image-preview-grid {
    gap: 8px;
  }

  .product-side-panel .image-preview-card {
    border-radius: 13px;
  }

  .product-edit-actions {
    margin: 0 -15px;
    padding: 12px 15px 14px;
    border-right: 0;
    border-left: 0;
    border-bottom: 0;
    border-radius: 0;
  }

  .product-edit-actions .product-icon-actions {
    gap: 8px;
  }

  .product-edit-actions .icon-action {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 14px;
  }

  .product-main-fields {
    margin-top: 0;
    padding: 16px 15px 110px;
    border-top: 1px solid var(--line);
  }

  .product-form-actions {
    box-shadow: 0 -10px 28px rgba(15, 23, 42, .06);
  }
}

@media (max-width: 760px) {
  .settings-base-row {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 10px;
  }

  .lead-card-rich {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px 18px;
    align-items: start;
    padding: 12px;
    border-radius: 20px;
  }

  .lead-card.lead-card-rich {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .lead-card-rich .lead-main {
    display: contents;
  }

  .lead-side {
    grid-column: 1;
    grid-row: 2;
    gap: 10px;
  }

  .lead-preview {
    width: 76px;
    height: 76px;
    border-radius: 16px;
  }

  .lead-details-btn {
    width: 76px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 12px;
  }

  .lead-top {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 8px;
  }

  .lead-body {
    grid-column: 2;
    grid-row: 2;
    align-content: start;
    gap: 10px;
  }

  .lead-status-stack {
    justify-items: center;
    gap: 7px;
  }

  .lead-status-stack .status-chip,
  .lead-status-stack .payment-chip {
    max-width: 100%;
    padding: 0 9px;
    font-size: 11px;
  }

  .lead-top strong {
    font-size: 16px;
  }

  .lead-product-link,
  .lead-card-rich p {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .lead-items-preview {
    gap: 6px;
  }

  .lead-items-preview span,
  .lead-items-preview small {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }

  .lead-contact-line {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .lead-payment-line {
    max-width: 100%;
    flex-wrap: wrap;
    margin-top: 4px;
  }

  .lead-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-detail-status {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1040px) {
  .catalog-app-header {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    margin: 0 0 40px;
    border: 1px solid #f1f2f5;
    box-shadow: 0 1px 0 rgba(18, 23, 42, .025);
    border-radius: 0;
    transform: none;
  }

  .catalog-app-header-inner {
    max-width: 1344px;
    margin: 0 auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .catalog-mobile-tools {
    width: min(calc(100% - 96px), 1344px);
    display: grid;
    justify-content: stretch;
    align-items: center;
    margin: 0 auto 22px;
    pointer-events: none;
  }

  .catalog-search-form {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    pointer-events: auto;
  }

  .catalog-inline-search {
    display: grid;
    pointer-events: auto;
    background: #f6f6f8;
    color: #8a90a3;
    box-shadow: none;
  }

  .catalog-search-submit {
    pointer-events: auto;
    background: #f6f6f8;
    box-shadow: none;
  }

  .catalog-search-submit:hover {
    color: #fff;
    background: var(--accent);
  }

  .catalog-view-toggle {
    display: none;
  }

  .catalog-view-toggle button.active {
    box-shadow: none;
  }

  .catalog-view-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .catalog-view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .catalog-view-grid .catalog-card {
    display: grid;
    grid-template-columns: 47% minmax(0, 1fr);
    min-height: 360px;
  }

  .catalog-view-grid .catalog-card-image,
  .catalog-view-grid .catalog-card img {
    height: 100%;
  }

  .catalog-view-grid .catalog-card img {
    aspect-ratio: auto;
    border-radius: 30px 0 0 30px;
  }

  .catalog-view-grid .catalog-card-body {
    align-content: center;
    padding: 24px;
  }

  .catalog-view-grid .catalog-card h2 {
    font-size: 24px;
  }

  .catalog-view-grid .catalog-card-title {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-view-grid .catalog-card-title strong {
    font-size: 22px;
  }
}

/* Public catalog final layout reset */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.catalog.catalog-app {
  background: #fff;
}

@media (min-width: 1040px) {
  .catalog.catalog-app {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 0px;
  }

  .catalog-app-header {
    position: static;
    inset: auto;
    width: 100%;
    min-height: 92px;
    margin: 0 0 24px;
    padding: 0;
    display: block;
    border: 0;
    border-bottom: 1px solid #eef0f4;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 1px 0 rgba(18, 23, 42, .02);
    transform: none;
  }

  .catalog-app-header-inner,
  .catalog-store-head,
  .catalog-mobile-tools,
  .catalog-category-tabs,
  .catalog-grid,
  .catalog-page-wrap,
  .catalog-empty-state,
  .catalog-pagination,
  .catalog-footer {
    width: min(calc(100% - 96px), 1344px);
    margin-right: auto;
    margin-left: auto;
  }

  .catalog-app-header-inner {
    min-height: 92px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
  }

  .catalog-header-nav {
    min-width: 0;
    display: flex;
    justify-content: center;
    gap: 18px;
  }

  .catalog-store-head {
    padding: 0 0 18px;
  }

  .catalog-page-wrap {
    padding-top: 0;
    padding-bottom: 58px;
  }

  .catalog-page-head h1 {
    font-size: 44px;
  }

  .catalog-mobile-tools {
    width: min(calc(100% - 96px), 1344px);
    display: grid;
    justify-content: stretch;
    align-items: center;
    margin-right: auto;
    margin-left: auto;
    margin-top: 0;
    margin-bottom: 22px;
    pointer-events: none;
  }

  .catalog-search-form {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    pointer-events: auto;
  }

  .catalog-inline-search {
    display: grid;
    pointer-events: auto;
    background: #f6f6f8;
    color: #8a90a3;
    box-shadow: none;
  }

  .catalog-view-toggle {
    pointer-events: auto;
    background: #f6f6f8;
    box-shadow: none;
  }

  .catalog-view-toggle button.active {
    box-shadow: none;
  }

  .catalog-category-tabs {
    margin-top: 0;
    margin-bottom: 34px;
    padding-right: 0;
    padding-left: 0;
  }

  .catalog-grid,
  .catalog-view-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .catalog-view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .catalog-view-grid .catalog-card {
    min-height: 360px;
    display: grid;
    grid-template-columns: 47% minmax(0, 1fr);
  }

  .catalog-view-grid .catalog-card-image,
  .catalog-view-grid .catalog-card img {
    height: 100%;
  }

  .catalog-view-grid .catalog-card img {
    aspect-ratio: auto;
    border-radius: 30px 0 0 30px;
  }

  .catalog-view-grid .catalog-card-body {
    align-content: center;
    padding: 24px;
  }

  .catalog-view-grid .catalog-card h2 {
    font-size: 24px;
  }

  .catalog-view-grid .catalog-card-title {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-view-grid .catalog-card-title strong {
    font-size: 22px;
  }

  .catalog-footer {
    width: 100%;
    margin-top: 56px;
    padding: 28px max(48px, calc((100% - 1344px) / 2)) 34px;
    border-top: 0;
    background: #f7f8f9;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 1fr));
    gap: 44px;
    align-items: start;
  }

  .catalog-footer .catalog-brand {
    font-size: 22px;
  }

  .catalog-footer-section {
    gap: 12px;
  }

  .catalog-footer-section strong {
    margin-bottom: 2px;
  }

  .catalog-footer-section a {
    font-size: 15px;
  }

  .catalog-footer-no-pages {
    grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(180px, 1fr));
  }
}

/* Public product page desktop layout */
@media (min-width: 1040px) {
  .product-public-page.catalog.catalog-app {
    display: grid;
    grid-template-columns:
      minmax(32px, 1fr)
      minmax(430px, 520px)
      minmax(0, 700px)
      minmax(32px, 1fr);
    column-gap: 48px;
    align-items: start;
 
  }

  .product-public-page .catalog-app-header,
  .product-public-page .catalog-drawer-overlay,
  .product-public-page .catalog-drawer,
  .product-public-page .cart-item-source,
  .product-public-page .related-products-section,
  .product-public-page .product-public-footer,
  .product-public-page .lemitap-public-badge {
    grid-column: 1 / -1;
  }

  .product-public-page .product-breadcrumbs {
    grid-column: 2 / 4;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
  }

  .product-public-page .product-public-gallery {
    grid-column: 2 / 3;
    position: sticky;
    top: 28px;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .product-public-page .product-public-thumbs {
    display: grid;
    gap: 10px;
    width: 58px;
    max-height: 680px;
    overflow: auto;
    scrollbar-width: none;
  }

  .product-public-page .product-public-thumbs::-webkit-scrollbar {
    display: none;
  }

  .product-public-page .product-public-thumbs button {
    width: 58px;
    height: 82px;
    min-height: 82px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #f2f4f7;
  }

  .product-public-page .product-public-thumbs button.active {
    border-color: var(--accent);
  }

  .product-public-page .product-public-thumbs img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .product-public-page .product-public-info {
    grid-column: 3 / 4;
    min-width: 0;
    padding-top: 0;
  }

  .product-public-page .product-public-slider {
    border-radius: 26px;
  }

  .product-public-page .product-public-slider img {
    width: 100%;
    height: auto;
    max-height: 660px;
    border-radius: 26px;
    object-fit: contain;
  }

  .product-public-page .product-public-dots {
    display: none;
  }

  .product-public-page .product-public-title {
    gap: 6px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .product-public-page .product-public-title h1 {
    max-width: 700px;
    font-size: 40px;
    line-height: 1.04;
  }

  .product-public-page .product-public-subtitle {
    max-width: 680px;
    margin-top: -2px;
    font-size: 16px;
    line-height: 1.45;
  }

  .product-public-page .product-public-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
  }

  .product-public-page .product-public-meta .category-chip {
    width: fit-content;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: #f3f5f8;
    color: #4e5870;
    font-size: 14px;
  }

  .product-public-page .product-public-title strong {
    color: var(--accent);
    font-size: 28px;
    line-height: 1;
  }

  .product-public-page .product-purchase-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    /* padding: 36px 0 36px; */
    border-bottom: 0;
  }

  .product-public-page .product-purchase-price {
    display: block;
    color: var(--accent);
    font-size: 36px;
    line-height: 1;
    font-weight: 950;
  }

  .product-public-page .product-quantity-control {
    width: 128px;
    min-height: 46px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
  }

  .product-public-page .product-quantity-control button {
    min-height: 46px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #2b3142;
    font-size: 18px;
    font-weight: 900;
  }

  .product-public-page .product-quantity-control input {
    min-height: 46px;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 900;
    appearance: textfield;
  }

  .product-public-page .product-quantity-control input::-webkit-outer-spin-button,
  .product-public-page .product-quantity-control input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
  }

  .product-public-page .product-desktop-actions {
    display: grid;
    grid-template-columns: 128px 176px 48px 48px;
    gap: 9px;
    align-items: center;
    justify-content: start;
  }

  .product-public-page .product-mobile-actions {
    display: none;
  }

  .product-public-page .product-desktop-actions-no-cart {
    grid-template-columns: 176px 48px;
  }

  .product-public-page .product-desktop-order {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 950;
  }

  .product-public-page .product-desktop-icon {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    color: #2f3544;
  }

  .product-public-page .product-desktop-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .product-public-page .product-desktop-icon.active {
    border-color: transparent;
    background: color-mix(in srgb, var(--accent) 14%, #fff);
    color: var(--accent);
  }

  .product-public-page .product-desktop-icon.active svg {
    fill: currentColor;
  }

  .product-public-page .product-public-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
  }

  .product-public-page .product-public-fields div {
    min-width: 0;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding: 13px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
  }

  .product-public-page .product-public-fields div:last-child {
    border-bottom: 0;
  }

  .product-public-page .product-public-fields dt {
    margin-bottom: 0;
    font-size: 13px;
  }

  .product-public-page .product-public-fields dd {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    line-height: 1.45;
  }

  .product-public-page .product-public-description {
    padding-top: 26px;
  }

  .product-public-page .product-public-description h2 {
    font-size: 22px;
  }

  .product-public-page .product-order-section {
    margin-top: 12px;
    padding: 22px;
    border-radius: 26px;
  }

  .product-public-page .product-order-form {
    gap: 12px;
  }

  .product-public-page .related-products-section {
    width: min(calc(100% - 96px), 1120px);
    margin-top: 54px;
  }

  .product-public-page .related-products-viewport {
    gap: 18px;
  }

  .product-public-page .related-product-card {
    flex-basis: calc((100% - 36px) / 3);
  }

  .product-public-page .product-public-footer {
    margin-top: 72px;
  }

  .product-public-page .product-action-bar {
    display: none;
  }
}

/* Final desktop owner workspace override */
@media (min-width: 1040px) {
  body:has(.app-sidebar) {
    padding-left: 276px;
  }

  body:has(.app-sidebar) .mobile-app-header,
  body:has(.app-sidebar) .menu-overlay,
  body:has(.app-sidebar) .drawer-close {
    display: none;
  }

  body:has(.app-sidebar) .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    width: 244px;
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 22px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .24) transparent;
    border: 0;
    border-radius: 0;
    background: #0c0c0d;
    box-shadow: none;
    transform: none;
  }

  body:has(.app-sidebar) .app-sidebar::-webkit-scrollbar {
    width: 8px;
  }

  body:has(.app-sidebar) .app-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
  }

  body:has(.app-sidebar) .brand-mark {
    width: 176px;
    height: 38px;
    gap: 10px;
    justify-content: start;
    padding-right: 0;
    padding-left: 16px;
    color: #fff;
  }

  body:has(.app-sidebar) .brand-mark img {
    content: url("/img/main-logo-white.png");
  }

  body:has(.app-sidebar) .app-nav {
    display: grid;
    align-content: start;
    justify-content: stretch;
    gap: 8px;
    margin-top: 8px;
  }

  body:has(.app-sidebar) .app-nav a {
    min-height: 46px;
    justify-content: flex-start;
    padding: 0 16px;
    border-radius: 14px;
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
    font-weight: 900;
  }

  body:has(.app-sidebar) .app-nav a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
  }

  body:has(.app-sidebar) .app-nav a.active {
    background: #fff;
    color: #0c0c0d;
  }

  body:has(.app-sidebar) .app-nav a span {
    display: block;
    width: 22px;
    color: currentColor;
    opacity: .8;
  }

  body:has(.app-sidebar) .sidebar-shop-link {
    margin-top: auto;
    border-color: rgba(255, 255, 255, .08);
    background: #18181b;
  }

  body:has(.app-sidebar) .sidebar-shop-link span {
    color: rgba(255, 255, 255, .52);
  }

  body:has(.app-sidebar) .sidebar-shop-link a {
    color: rgba(255, 255, 255, .9);
  }

  body:has(.app-sidebar) .sidebar-shop-link button {
    border: 0;
    background: rgba(255, 255, 255, .08);
    color: #f4f4f5;
  }

  body:has(.app-sidebar) .sidebar-shop-link button.copied {
    color: #48d598;
  }

  body:has(.app-sidebar) .logout-form {
    display: block;
    margin-top: 0;
  }

  body:has(.app-sidebar) .logout-button {
    width: 100%;
    min-height: 46px;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: #18181b;
    color: #f4f4f5;
    box-shadow: none;
    font-size: 15px;
    font-weight: 900;
  }

  body:has(.app-sidebar) .logout-button span {
    width: 22px;
    text-align: center;
    opacity: .85;
  }

  body:has(.app-sidebar) .logout-button strong {
    font: inherit;
  }

  body:has(.app-sidebar) .logout-button:hover {
    background: #27272a;
  }

  body:has(.app-sidebar) .shell {
    width: min(100%, 1180px);
    margin: 0;
    padding: 28px 28px 56px;
  }

  body:has(.app-sidebar) .owner-shell {
    padding-top: 28px;
  }
}

/* Final mobile owner sidebar fix */
@media (max-width: 1039px) {
  html:has(.app-sidebar),
  body:has(.app-sidebar) {
    max-width: 100%;
    overflow-x: hidden;
  }

  body:has(.app-sidebar) .mobile-app-header {
    left: 0;
    right: auto;
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 10px;
    padding: 10px 18px 10px 15px;
  }

  body:has(.app-sidebar) .menu-toggle {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 14px;
    justify-self: end;
  }

  body:has(.app-sidebar) .owner-shell {
    max-width: 100%;
    overflow-x: clip;
  }

  body:has(.app-sidebar) .billing-period-card,
  body:has(.app-sidebar) .billing-status-card,
  body:has(.app-sidebar) .pricing-grid,
  body:has(.app-sidebar) .pricing-card {
    min-width: 0;
    max-width: 100%;
  }

  body:has(.app-sidebar) .billing-period-toggle {
    min-width: 0;
    max-width: 100%;
  }

  body:has(.app-sidebar) .app-sidebar {
    grid-template-rows: auto 1fr auto auto;
    height: 100dvh;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  body:has(.app-sidebar) .logout-form {
    width: 100%;
    display: block;
    margin-top: auto;
  }

  body:has(.app-sidebar) .logout-button {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    border: 0;
    border-radius: 16px;
    background: #f3f5f8;
    color: #27304a;
    box-shadow: none;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
  }

  body:has(.app-sidebar) .logout-button span {
    width: 20px;
    text-align: center;
    opacity: .85;
  }

  body:has(.app-sidebar) .logout-button strong {
    display: inline;
    font: inherit;
  }
}
