@font-face {
  font-family: "Alkatip Basma Tom";
  src: local("Alkatip Basma Tom"), local("ALKATIP Basma Tom"), local("Alkatip BasmaTom");
  font-display: swap;
}

:root {
  --blue: #0273fe;
  --blue-dark: #0756b8;
  --red: #fd4a46;
  --green: #12b76a;
  --ink: #172033;
  --muted: #6f7a8a;
  --line: #d9e6f5;
  --soft: #f3f7fb;
  --card: #ffffff;
  --sidebar: #0759bd;
  --sidebar-active: #0879ff;
  --warm: #ffb547;
  --violet: #6d5dfc;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(15, 35, 67, 0.08);
  font-family: "Alkatip Basma Tom", "ALKATIP Basma Tom", "Microsoft Uighur", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #edf2f7;
  min-width: 320px;
  font-family: "Alkatip Basma Tom", "ALKATIP Basma Tom", "Microsoft Uighur", "Segoe UI", Arial, sans-serif;
}

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

button {
  cursor: pointer;
}

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

.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #e3e9f0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0487ff, #0b51b0);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-title {
  font-weight: 800;
  line-height: 1.05;
}

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

.mode-tabs,
.compact-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.mode-tabs button,
.compact-tabs button {
  border: 0;
  background: transparent;
  padding: 8px 13px;
  color: #4b5565;
}

.mode-tabs button.active,
.compact-tabs button.active {
  background: var(--blue);
  color: #fff;
}

.topbar-spacer {
  flex: 1;
}

.icon-btn,
.text-btn,
.primary-btn,
.danger-btn,
.ghost-btn,
.success-btn {
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 36px;
  padding: 0 14px;
  color: #344054;
}

.icon-btn {
  width: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

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

.danger-btn {
  background: #ff5630;
  border-color: #ff5630;
  color: #fff;
}

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

.ghost-btn {
  background: #f8fbff;
}

.ghost-btn.active {
  background: #e6f4ff;
  color: var(--blue);
  border-color: #8ac4ff;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0967d2;
  font-size: 12px;
  white-space: nowrap;
}

.badge.green {
  background: #e8fff3;
  color: #0f8f4f;
}

.badge.red {
  background: #fff0ed;
  color: #d92d20;
}

.badge.orange {
  background: #fff7e8;
  color: #a15c00;
}

.rtl {
  direction: rtl;
  text-align: right;
  font-family: "Alkatip Basma Tom", "ALKATIP Basma Tom", "Microsoft Uighur", "Segoe UI", Arial, sans-serif;
}

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

.screen-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.screen-subtitle {
  color: var(--muted);
  margin: 6px 0 0;
}

.customer-stage {
  min-height: calc(100vh - 58px);
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(340px, 1fr);
  gap: 22px;
  padding: 22px;
}

.phone-shell {
  width: 390px;
  height: 790px;
  max-width: calc(100vw - 44px);
  background: #f7f9fc;
  border: 10px solid #111827;
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 80px;
  justify-self: center;
  display: flex;
  flex-direction: column;
}

.phone-status {
  height: 24px;
  padding: 4px 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  background: #111827;
  color: #fff;
}

.phone-top {
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  background: #fff;
  border-bottom: 1px solid #e7edf5;
  position: relative;
  font-weight: 750;
}

.front-test-banner {
  margin: 8px 10px 0;
  padding: 8px 10px;
  border: 1px solid #b9dafd;
  border-radius: 8px;
  background: #eef7ff;
  color: #184f8a;
  display: grid;
  gap: 3px;
  font-size: 12px;
  line-height: 1.35;
}

.front-test-banner.warning {
  border-color: #f8d695;
  background: #fff8e7;
  color: #8a5a00;
}

.phone-back,
.phone-lang {
  position: absolute;
  top: 7px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
}

.phone-back {
  left: 8px;
}

.phone-lang {
  right: 8px;
}

.phone-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #f3f6fa;
}

.phone-page {
  min-height: 100%;
  padding: 12px;
}

.bottom-nav {
  height: 64px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: #566174;
  font-size: 12px;
  display: grid;
  gap: 3px;
  place-items: center;
  align-content: center;
}

.bottom-nav .nav-icon {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 7px;
  position: relative;
  display: block;
  font-size: 0;
  line-height: 0;
}

.bottom-nav .nav-icon::before,
.bottom-nav .nav-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.bottom-nav .nav-home::before {
  left: 4px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.bottom-nav .nav-home::after {
  left: 7px;
  bottom: 3px;
  width: 6px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.bottom-nav .nav-products::before {
  left: 4px;
  top: 4px;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 9px 0 0 currentColor, 0 9px 0 currentColor, 9px 9px 0 currentColor;
}

.bottom-nav .nav-classroom::before {
  left: 4px;
  top: 5px;
  width: 11px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.bottom-nav .nav-classroom::after {
  left: 6px;
  bottom: 4px;
  width: 10px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.bottom-nav .nav-cart::before {
  left: 4px;
  top: 5px;
  width: 13px;
  height: 9px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.bottom-nav .nav-cart::after {
  left: 5px;
  bottom: 3px;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 10px 0 0 currentColor;
}

.bottom-nav .nav-my::before {
  left: 7px;
  top: 4px;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.bottom-nav .nav-my::after {
  left: 4px;
  bottom: 3px;
  width: 12px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.bottom-nav button.active {
  color: var(--blue);
  font-weight: 700;
}

.bottom-nav button.center .nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: -22px;
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(2, 115, 254, 0.3);
}

.bottom-nav button.center .nav-classroom::before {
  left: 11px;
  top: 12px;
  width: 14px;
  height: 10px;
}

.bottom-nav button.center .nav-classroom::after {
  left: 13px;
  bottom: 10px;
  width: 12px;
}

.hero-banner,
.product-photo,
.course-photo,
.poster-bg,
.login-art,
.store-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fd4a46 0%, #ffb547 55%, #49c6e5 100%);
}

.hero-banner {
  min-height: 118px;
  border-radius: 8px;
  color: #fff;
  padding: 18px;
}

.hero-banner::after,
.product-photo::after,
.course-photo::after {
  content: "";
  position: absolute;
  inset: auto 8% 10% auto;
  width: 80px;
  height: 90px;
  border-radius: 18px 18px 8px 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: -45px 14px 0 -12px rgba(255, 255, 255, 0.7), -82px 26px 0 -18px rgba(255, 255, 255, 0.6);
}

.product-photo[style*="url("]::after,
.course-photo[style*="url("]::after {
  display: none;
}

.search-box {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e7edf5;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
}

input.search-box {
  width: 100%;
  display: block;
  outline: none;
}

.notice-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  color: #344054;
  font-size: 13px;
}

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

.quick-grid button,
.tool-grid button {
  border: 0;
  background: #fff;
  border-radius: 8px;
  padding: 10px 6px;
  color: #344054;
}

.quick-grid .q-icon,
.tool-grid .q-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin: 0 auto 6px;
  display: block;
  color: #fff;
  background: var(--blue);
  position: relative;
  font-size: 0;
  line-height: 0;
}

.quick-grid .q-icon::before,
.quick-grid .q-icon::after,
.tool-grid .q-icon::before,
.tool-grid .q-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.q-products::before,
.q-coupons::before,
.q-tools::before {
  left: 8px;
  top: 8px;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 10px 0 0 currentColor, 0 10px 0 currentColor, 10px 10px 0 currentColor;
}

.q-classroom::before {
  left: 8px;
  top: 9px;
  width: 16px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.q-classroom::after {
  left: 10px;
  bottom: 7px;
  width: 13px;
  height: 2px;
  background: currentColor;
}

.q-cart::before {
  left: 8px;
  top: 8px;
  width: 17px;
  height: 11px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

.q-cart::after {
  left: 9px;
  bottom: 7px;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 12px 0 0 currentColor;
}

.q-orders::before,
.q-poster::before {
  left: 9px;
  top: 6px;
  width: 14px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.q-orders::after,
.q-poster::after {
  left: 13px;
  top: 13px;
  width: 8px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
}

.q-team::before {
  left: 7px;
  top: 8px;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 11px 0 0 -1px currentColor;
}

.q-team::after {
  left: 7px;
  bottom: 7px;
  width: 18px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.q-income::before,
.q-balance::before,
.q-points::before {
  left: 8px;
  top: 8px;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.q-income::after,
.q-balance::after,
.q-points::after {
  left: 13px;
  top: 12px;
  width: 6px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.q-favorites::before {
  left: 10px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.q-address::before,
.q-stores::before {
  left: 9px;
  top: 6px;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.q-address::after,
.q-stores::after {
  left: 14px;
  top: 11px;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

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

.product-card,
.course-card,
.phone-card,
.admin-card,
.metric-card,
.coupon-card,
.order-card {
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 8px;
}

.product-card {
  overflow: hidden;
}

.product-photo {
  height: 138px;
}

.product-body {
  padding: 9px;
}

.product-title {
  min-height: 42px;
  font-size: 13px;
  line-height: 1.35;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.price {
  color: var(--red);
  font-weight: 800;
}

.strike {
  color: #98a2b3;
  text-decoration: line-through;
  font-size: 12px;
}

.mini-btn {
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  min-width: 28px;
  height: 28px;
}

.mini-btn.favorite-mini {
  min-width: 56px;
  padding: 0 8px;
  background: #fff;
  color: var(--blue);
  border: 1px solid #cfe0f3;
  font-size: 12px;
}

.invoice-paper {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed #9fb6d0;
  background: #fff;
  border-radius: 8px;
}

.invoice-paper h3,
.invoice-paper p {
  margin: 0;
}

.course-card {
  padding: 10px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.course-photo {
  height: 84px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1e88e5, #27c498);
}

.phone-card {
  padding: 12px;
  margin-bottom: 10px;
}

.profile-hero {
  color: #fff;
  background: linear-gradient(135deg, #fd4a46, #ff6b63);
  border: 0;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 900;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
  text-align: center;
}

.stats-row strong {
  display: block;
}

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

.mall-home,
.product-list-page,
.product-detail-page,
.cart-page,
.orders-page,
.coupons-page,
.my-page {
  font-size: 13px;
  line-height: 1.45;
}

.mall-search {
  width: 100%;
  height: 38px;
  border: 1px solid #e7edf5;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  text-align: inherit;
}

.mall-hero {
  min-height: 136px;
  margin-top: 10px;
  border-radius: 8px;
  padding: 16px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  background: linear-gradient(135deg, #fd4a46 0%, #ffb547 52%, #27c498 100%);
  overflow: hidden;
}

.mall-hero h2,
.mall-hero p {
  margin: 0;
}

.mall-hero h2 {
  font-size: 20px;
  line-height: 1.25;
  margin: 8px 0;
}

.mall-hero p {
  max-width: 230px;
  opacity: 0.92;
}

.hero-kicker {
  display: inline-flex;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 800;
}

.mall-hero button {
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #e34534;
  min-height: 34px;
  padding: 0 12px;
  font-weight: 800;
}

.notice-card {
  margin: 10px 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e7edf5;
}

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

.home-strip,
.coupon-rail,
.promotion-rail,
.phone-tabs,
.sort-bar,
.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-strip {
  overflow: auto;
  margin: 10px 0;
}

.home-strip button {
  flex: 0 0 auto;
  min-width: 100px;
  border: 1px solid #e6eef8;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 4px;
  color: #344054;
}

.home-strip span {
  color: #667085;
  font-size: 12px;
}

.coupon-rail,
.promotion-rail {
  margin-bottom: 10px;
}

.coupon-chip,
.promotion-chip {
  flex: 1;
  border: 0;
  border-radius: 8px;
  min-height: 64px;
  padding: 10px;
  background: #fff4ed;
  color: #b93815;
  display: grid;
  gap: 4px;
  text-align: inherit;
}

.promotion-chip {
  background: #edf8f6;
  color: #0f766e;
}

.coupon-chip b {
  font-size: 18px;
}

.promotion-chip b {
  font-size: 13px;
}

.campaign-badge {
  width: fit-content;
  max-width: 100%;
  border-radius: 6px;
  padding: 3px 6px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.campaign-list {
  display: grid;
  gap: 8px;
}

.campaign-list p,
.checkout-campaigns p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: #475467;
  font-size: 12px;
}

.campaign-list p span,
.checkout-campaigns p span {
  text-align: end;
  overflow-wrap: anywhere;
}

.checkout-campaigns {
  display: grid;
  gap: 6px;
  border-top: 1px dashed #d0d5dd;
  border-bottom: 1px dashed #d0d5dd;
  padding: 8px 0;
}

.beauty-journey {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.beauty-journey button {
  border: 1px solid #e6eef8;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  min-height: 72px;
  padding: 10px;
  display: grid;
  gap: 5px;
  text-align: inherit;
}

.beauty-journey b {
  color: var(--blue);
  font-size: 12px;
}

.beauty-journey span {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.section-head {
  justify-content: space-between;
  margin: 12px 0 8px;
}

.section-head h3 {
  margin: 0;
  font-size: 15px;
}

.section-head button {
  border: 0;
  background: transparent;
  color: var(--blue);
}

.section-head.compact {
  margin-top: 0;
}

.phone-tabs {
  margin: 10px 0;
  overflow: auto;
}

.phone-tabs button {
  flex: 0 0 auto;
  border: 1px solid #d9e6f5;
  border-radius: 999px;
  background: #fff;
  min-height: 32px;
  padding: 0 12px;
  color: #475467;
  white-space: nowrap;
}

.phone-tabs button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 800;
}

.sort-bar {
  justify-content: space-between;
  color: #667085;
  margin-bottom: 10px;
  font-size: 12px;
}

.product-search-input {
  border-radius: 999px;
}

.product-card .product-photo {
  width: 100%;
  border: 0;
  color: #fff;
  display: grid;
  place-items: end start;
  padding: 10px;
}

.product-card .product-photo span {
  background: rgba(255, 255, 255, 0.88);
  color: #344054;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: #98a2b3;
  font-size: 11px;
  margin-top: 6px;
}

.mini-actions {
  display: inline-flex;
  gap: 4px;
}

.ghost-mini {
  color: var(--blue);
  background: #e6f4ff;
}

.detail-gallery {
  height: 238px;
  border-radius: 8px;
  display: grid;
  align-items: end;
  color: #fff;
  padding: 16px;
  font-size: 18px;
  font-weight: 800;
}

.detail-main h3 {
  margin: 8px 0;
  font-size: 17px;
}

.detail-price {
  font-size: 24px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.tier-grid span {
  border: 1px solid #e5edf6;
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 3px;
  background: #fbfdff;
}

.service-card p {
  display: flex;
  gap: 7px;
  margin: 8px 0 0;
}

.service-card span {
  color: #667085;
}

.detail-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #e7edf5;
  margin: 8px 0 10px;
}

.detail-tabs span {
  text-align: center;
  padding: 8px 0;
  color: #667085;
}

.detail-tabs .active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  font-weight: 800;
}

.sticky-buy {
  position: sticky;
  bottom: 8px;
  z-index: 3;
  display: grid;
  grid-template-columns: 44px 1fr 1fr;
  gap: 8px;
  padding: 8px;
  margin-top: 10px;
  border: 1px solid #e6eef8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(15, 35, 67, 0.12);
}

.stores-page,
.store-detail-page {
  font-size: 13px;
  line-height: 1.45;
}

.store-hero {
  min-height: 136px;
  margin: 10px 0;
  border-radius: 8px;
  padding: 16px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  background: linear-gradient(135deg, #0273fe 0%, #27c498 58%, #ffb547 100%);
}

.store-hero h2,
.store-hero p {
  margin: 0;
}

.store-hero h2 {
  font-size: 19px;
  line-height: 1.25;
  margin: 8px 0;
}

.store-hero b {
  font-size: 28px;
}

.store-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
}

.store-cover {
  min-height: 92px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  padding: 10px;
  display: grid;
  align-content: end;
  text-align: inherit;
  background: linear-gradient(135deg, #fd4a46, #ffb547);
}

.store-cover.blue {
  background: linear-gradient(135deg, #0273fe, #49c6e5);
}

.store-cover.green {
  background: linear-gradient(135deg, #11b981, #a8e063);
}

.store-cover.orange {
  background: linear-gradient(135deg, #ff8a00, #fd4a46);
}

.store-cover span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 800;
}

.store-main h3,
.store-service-card h4,
.store-detail-hero h2 {
  margin: 0;
}

.store-title-row {
  align-items: flex-start;
  margin-top: 0;
}

.store-scope {
  margin: 8px 0;
  color: #344054;
}

.store-badges,
.store-service-strip,
.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.store-service-strip span {
  border-radius: 999px;
  background: #f3f7fb;
  color: #475467;
  padding: 3px 8px;
  font-size: 12px;
}

.store-actions .primary-btn,
.store-actions .ghost-btn,
.store-service-card .primary-btn,
.store-service-card .ghost-btn {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
}

.store-detail-hero {
  min-height: 216px;
  align-content: end;
  gap: 8px;
  margin-bottom: 10px;
}

.store-service-card {
  display: grid;
  gap: 10px;
}

.select-line,
.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-line {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
}

.cart-thumb {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 8px;
}

.qty-stepper {
  display: inline-grid;
  grid-template-columns: 28px 34px 28px;
  align-items: center;
  border: 1px solid #d9e6f5;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  text-align: center;
}

.qty-stepper button {
  border: 0;
  height: 28px;
  background: #f5f8fc;
}

.qty-stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.qty-stepper input {
  width: 100%;
  min-width: 0;
  height: 28px;
  border: 0;
  border-inline: 1px solid #d9e6f5;
  outline: none;
  text-align: center;
  background: #fff;
  font: inherit;
}

.modal-qty {
  grid-template-columns: 34px minmax(62px, 82px) 34px;
  width: max-content;
  max-width: 160px;
}

.checkout-bar {
  position: sticky;
  bottom: 8px;
  z-index: 3;
}

.checkout-bar > div {
  display: grid;
}

.login-page {
  min-height: 100%;
  background: linear-gradient(180deg, #edf6ff 0%, #f8fbff 100%);
  padding-top: 62px;
}

.login-panel {
  text-align: center;
}

.agree-line {
  color: #667085;
  font-size: 12px;
}

.large-avatar {
  margin: 0 auto 12px;
}

.team-stats {
  margin: 10px 0;
}

.coupon-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  overflow: hidden;
}

.coupon-left {
  border-radius: 8px;
  background: #fff4ed;
  color: #b93815;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 8px;
}

.coupon-left b,
.coupon-big b {
  font-size: 24px;
}

.coupon-right {
  min-width: 0;
}

.coupon-right strong {
  display: block;
  margin-bottom: 4px;
}

.address-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tool-list {
  display: grid;
  gap: 8px;
}

.tool-list button,
.detail-list div,
.checkout-lines div,
.checkout-pay {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tool-list button {
  min-height: 42px;
  border: 0;
  background: #f8fbff;
  border-radius: 8px;
  padding: 0 10px;
  color: #344054;
}

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

.process-steps span {
  min-height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f3f7fb;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.process-steps span.done {
  background: #e8fff3;
  color: #0f8f4f;
}

.modal .field input:focus,
.modal .field select:focus,
.modal .field textarea:focus {
  outline: 2px solid rgba(2, 115, 254, 0.18);
  border-color: var(--blue);
}

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

.modal-summary-grid span {
  min-height: 54px;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fbff;
  border: 1px solid #e6eef8;
  display: grid;
  gap: 3px;
  color: #344054;
}

.modal-summary-grid b {
  color: #667085;
  font-size: 12px;
}

.customer-modal {
  width: min(430px, 94vw);
}

.customer-modal:has(.admin-detail-layout),
.customer-modal:has(.admin-detail-block) {
  width: min(980px, 96vw);
}

.customer-modal .modal-head {
  min-height: 52px;
  padding: 12px 14px;
}

.customer-modal .modal-body {
  padding: 14px;
}

.customer-modal-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

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

.admin-detail-block {
  border: 1px solid #e6eef8;
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
}

.admin-detail-block.wide {
  grid-column: 1 / -1;
}

.admin-detail-block h4 {
  margin: 0 0 12px;
}

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

.admin-detail-grid div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf2f7;
}

.admin-detail-grid span {
  color: #667085;
  font-size: 12px;
}

.admin-detail-grid b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-detail-footer {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

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

.admin-flow div {
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.admin-flow i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
}

.spec-product {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  align-items: center;
}

.spec-product .product-photo {
  height: 94px;
  border-radius: 8px;
}

.spec-product h4 {
  margin: 0 0 8px;
}

.spec-section {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-pills button {
  border: 1px solid #d9e6f5;
  background: #fff;
  border-radius: 999px;
  min-height: 32px;
  padding: 0 12px;
}

.spec-pills button.active {
  border-color: var(--blue);
  background: #e6f4ff;
  color: var(--blue);
  font-weight: 800;
}

.withdraw-summary,
.checkout-address,
.coupon-big {
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid #e6eef8;
  padding: 12px;
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.withdraw-summary b {
  font-size: 26px;
  color: var(--red);
}

.checkout-lines,
.detail-list,
.flow-list {
  display: grid;
  gap: 10px;
}

.checkout-lines div,
.checkout-pay,
.detail-list div {
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 9px;
}

.total-row {
  margin-top: 12px;
}

.flow-list div {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 9px;
}

.flow-list i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 5px;
}

.flow-list p {
  margin: 0;
  display: grid;
  gap: 2px;
}

.flow-list span {
  color: #667085;
}

.coupon-big {
  text-align: center;
  color: #b93815;
  background: #fff4ed;
}

.language-picks {
  display: grid;
  gap: 10px;
}

.language-picks button {
  border: 1px solid #d9e6f5;
  background: #fff;
  border-radius: 8px;
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  text-align: inherit;
}

.language-picks button.active {
  border-color: var(--blue);
  background: #e6f4ff;
}

.language-picks span {
  color: #667085;
}

.customer-poster {
  width: 100%;
  height: 590px;
  border-width: 0;
  border-radius: 8px;
}

.modal-poster {
  width: 100%;
  height: 540px;
}

.wide-empty {
  grid-column: 1 / -1;
}

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

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

.field label {
  color: #4b5565;
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cfe0f3;
  border-radius: 6px;
  background: #fff;
  min-height: 38px;
  padding: 8px 10px;
}

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

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

.customer-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: start;
}

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

.metric-card {
  padding: 16px;
}

.metric-card strong {
  display: block;
  font-size: 24px;
  margin-top: 8px;
}

.admin-shell {
  min-height: calc(100vh - 58px);
  display: grid;
  grid-template-columns: 142px 158px minmax(0, 1fr);
}

.primary-sidebar {
  background: var(--sidebar);
  color: #fff;
  padding: 12px 0;
}

.primary-sidebar button,
.secondary-sidebar button {
  width: 100%;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-sidebar button.active {
  background: var(--sidebar-active);
  font-weight: 800;
}

.side-icon {
  width: 22px;
  display: inline-grid;
  place-items: center;
}

.secondary-sidebar {
  background: #fff;
  border-right: 1px solid #e4ebf4;
  color: #475467;
  padding: 12px 0;
}

.secondary-title {
  padding: 12px 18px 18px;
  font-weight: 800;
  color: #101828;
}

.secondary-sidebar button {
  min-height: 42px;
  color: #475467;
  font-size: 14px;
}

.secondary-sidebar button.active {
  background: #e6f4ff;
  color: var(--blue);
  font-weight: 800;
}

.admin-main {
  min-width: 0;
  padding: 18px;
}

.admin-card {
  padding: 18px;
  box-shadow: var(--shadow);
}

.admin-login-card,
.admin-login-form,
.admin-login-form input,
.admin-login-form button {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.admin-card + .admin-card {
  margin-top: 14px;
}

.dashboard-page {
  display: grid;
  gap: 18px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
}

.dashboard-card {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 35, 67, 0.04);
  overflow: hidden;
}

.dash-card-title {
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #172033;
  font-size: 15px;
}

.dash-card-title span:last-child {
  color: #5d6675;
}

.account-card,
.metric-dashboard-card {
  min-height: 206px;
}

.account-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 18px 8px;
}

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

.mini-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6f4ff;
  color: var(--blue);
  font-weight: 900;
  box-shadow: inset 0 0 0 2px #b7ddff;
}

.account-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 18px;
  color: #5d6675;
}

.account-line b {
  color: #4a5568;
}

.dash-value {
  padding: 24px 18px 12px;
  color: #5a5f69;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 500;
}

.green-text {
  color: #5b8e00;
}

.orange-text {
  color: #a15c00;
}

.dash-lines {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
  color: #596579;
}

.dash-lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-chart-card {
  min-height: 330px;
}

.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  padding: 14px 20px 20px;
  align-items: center;
}

.chart-canvas {
  min-width: 0;
  overflow: hidden;
}

.dashboard-svg {
  width: 100%;
  min-height: 250px;
  display: block;
}

.dashboard-svg line {
  stroke: #cfd7e2;
  stroke-width: 1;
}

.dashboard-svg text {
  fill: #667085;
  font-size: 14px;
  text-anchor: end;
}

.dashboard-svg .chart-title {
  text-anchor: middle;
  font-weight: 700;
  fill: #172033;
}

.dashboard-svg path {
  fill: none;
  stroke-width: 2.5;
}

.chart-legend {
  display: grid;
  gap: 12px;
}

.legend-row {
  border: 0;
  background: transparent;
  color: #475467;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  text-align: left;
}

.legend-row span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

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

.sales-bars {
  display: grid;
  gap: 12px;
}

.sales-bar-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 3fr) 72px;
  gap: 14px;
  align-items: center;
}

.sales-bar-row div {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef3f8;
}

.sales-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #49c6e5);
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.hint {
  border-left: 5px solid #19a7f8;
  background: #e6f5ff;
  padding: 12px 16px;
  margin-bottom: 12px;
  color: #3b526a;
}

.toolbar,
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.filters {
  justify-content: flex-end;
}

.admin-summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.admin-summary-strip div {
  min-height: 70px;
  border: 1px solid #e6eef8;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 5px;
}

.admin-summary-strip span {
  color: #667085;
  font-size: 12px;
}

.admin-summary-strip b {
  color: #172033;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.filter-input {
  min-height: 36px;
  min-width: 150px;
  border: 1px solid #cfe0f3;
  border-radius: 6px;
  background: #fff;
  padding: 6px 10px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #cfe0f3;
  border-radius: 4px;
}

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

th,
td {
  border-bottom: 1px solid #dceaf8;
  border-right: 1px solid #dceaf8;
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #e8f5ff;
  color: #405169;
  font-weight: 700;
}

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

td:last-child,
th:last-child {
  border-right: 0;
}

.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.small-action {
  border: 1px solid #d9e3ef;
  background: #fff;
  border-radius: 5px;
  min-height: 30px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.36);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal {
  width: min(980px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  border-bottom: 1px solid #e8eef5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
}

.modal-body {
  padding: 18px;
}

.product-editor-backdrop {
  align-items: start;
  place-items: start center;
  overflow: auto;
}

.product-editor-modal {
  width: min(1580px, 98vw);
  max-height: none;
  min-height: 86vh;
}

.product-editor-body {
  padding: 20px 28px 28px;
}

.product-editor-tabs {
  position: sticky;
  top: 57px;
  z-index: 2;
  background: #fff;
}

.product-editor-tabs a {
  color: #475467;
  padding: 12px 0;
  text-decoration: none;
  white-space: nowrap;
}

.product-editor-tabs a:first-child {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

.product-editor-section {
  scroll-margin-top: 122px;
  display: grid;
  gap: 18px;
  padding: 8px 0 28px;
  border-bottom: 1px solid #eef3f8;
}

.product-editor-section h4,
.product-block h4 {
  margin: 0;
  font-size: 16px;
}

.product-form-grid {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(340px, 1fr);
  gap: 16px 22px;
  max-width: 1120px;
}

.product-form-grid .wide {
  grid-column: 1 / -1;
}

.required-star {
  color: #ef4444;
  margin-inline-end: 5px;
}

.field-note,
.upload-line span {
  color: var(--muted);
  font-size: 13px;
}

.upload-line,
.image-pick-row,
.product-row-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.image-pick-row {
  align-items: start;
}

.upload-preview {
  width: 132px;
  aspect-ratio: 1;
  border: 1px solid #dbe7f3;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}

.product-file-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.product-file-btn input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.product-upload-status {
  color: #0b7a4b;
  font-size: 13px;
}

.product-upload-status.error {
  color: #c92a2a;
}

.member-level-summary {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: #f8fbff;
  display: grid;
  gap: 4px;
}

.member-level-summary span,
.member-level-summary small {
  color: var(--muted);
  font-size: 13px;
}

.member-level-summary b {
  font-size: 18px;
  color: var(--ink);
}

.member-price-settings.is-hidden {
  display: none;
}

.sku-upload-cell {
  display: grid;
  grid-template-columns: auto 34px;
  align-items: center;
  gap: 8px;
  min-width: 122px;
}

.sku-upload-preview {
  width: 34px;
  aspect-ratio: 1;
  border: 1px solid #dbe7f3;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
}

.sku-upload-status {
  grid-column: 1 / -1;
  min-height: 16px;
}

.product-detail-page .detail-main > .muted,
.product-detail-page .detail-main .tier-grid,
.product-detail-page .detail-main .badge.orange,
.spec-modal .tier-grid {
  display: none;
}

.product-image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 46px;
}

.product-image-chip,
.admin-thumb {
  display: inline-block;
  background-size: cover;
  background-position: center;
  border: 1px solid #dbe7f3;
  border-radius: 6px;
}

.product-image-chip {
  width: 64px;
  aspect-ratio: 1;
}

.admin-thumb {
  width: 58px;
  height: 44px;
}

.detail-image-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.detail-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 1px solid #e5edf6;
}

.product-block {
  display: grid;
  gap: 14px;
  max-width: 1360px;
}

.spec-table input,
.sku-table input {
  min-width: 86px;
  width: 100%;
  border: 1px solid #cfe0f3;
  border-radius: 4px;
  min-height: 34px;
  padding: 6px 8px;
}

.sku-table th,
.spec-table th {
  white-space: nowrap;
}

.member-price-grid,
.product-limit-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
}

.product-editor-actions {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e8eef5;
  display: flex;
  gap: 12px;
  padding: 14px 0 0;
  margin-top: 6px;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.settings-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid #e3edf8;
  margin-bottom: 18px;
  overflow: auto;
}

.settings-tabs button {
  border: 0;
  background: transparent;
  padding: 12px 0;
  color: #475467;
  white-space: nowrap;
}

.settings-tabs button.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

.settings-form {
  max-width: 980px;
  display: grid;
  gap: 14px;
}

.radio-row,
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.radio-row label,
.check-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.designer {
  display: grid;
  grid-template-columns: 430px minmax(360px, 1fr);
  gap: 20px;
}

.preview-phone {
  border: 8px solid #d5dce6;
  border-radius: 34px;
  background: #f7f9fc;
  height: 680px;
  max-width: 390px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.preview-title {
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2d2d2d;
  font-weight: 800;
}

.preview-canvas {
  height: calc(100% - 54px - 58px);
  overflow: auto;
  padding: 12px;
  background: #f5f5f5;
}

.preview-nav {
  height: 58px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid #e4e7ec;
}

.preview-nav span {
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #667085;
}

.component-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}

.component-palette button {
  border: 1px solid #cfdbe8;
  background: #fff;
  border-radius: 4px;
  min-height: 34px;
  padding: 0 14px;
}

.poster-editor {
  display: grid;
  grid-template-columns: 390px minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}

.poster-phone {
  width: 360px;
  height: 640px;
  border: 7px solid #d8dde5;
  border-radius: 30px;
  background: #ff684a;
  padding: 52px 22px 20px;
  position: relative;
  overflow: hidden;
}

.poster-block {
  background: #fff;
  border-radius: 8px;
  min-height: 420px;
  padding: 16px;
}

.poster-image-box {
  height: 280px;
  display: grid;
  place-items: center;
  background: #e5e7eb;
  color: #ef233c;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.qr-box {
  width: 78px;
  height: 78px;
  background:
    linear-gradient(90deg, #111 6px, transparent 6px) 0 0 / 18px 18px,
    linear-gradient(#111 6px, transparent 6px) 0 0 / 18px 18px,
    #fff;
  border: 7px solid #fff;
  box-shadow: 0 0 0 1px #d0d5dd;
}

.uyghur-studio-grid {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(360px, 1fr);
  gap: 24px;
  align-items: start;
}

.uyghur-preview-panel {
  background: #eef3f6;
  border: 1px solid #d9e6f5;
  border-radius: 8px;
  padding: 16px;
}

.uyghur-image-canvas {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.uyghur-control-panel {
  min-width: 0;
}

.uyghur-control-panel textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
}

.uyghur-control-panel input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.uyghur-control-panel input[type="range"] {
  width: 100%;
}

.link-grid {
  display: grid;
  gap: 22px;
}

.link-group h4 {
  margin: 0 0 10px;
  color: #344054;
}

.link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 30px;
}

@media (max-width: 1120px) {
  .customer-stage,
  .designer,
  .product-form-grid,
  .poster-editor,
  .uyghur-studio-grid {
    grid-template-columns: 1fr;
  }

  .member-price-grid,
  .product-limit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .admin-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .phone-shell {
    position: relative;
    top: 0;
  }

  .admin-shell {
    grid-template-columns: 72px minmax(136px, 170px) minmax(0, 1fr);
  }

  .primary-sidebar button {
    padding: 0 10px;
  }

  .primary-sidebar .side-label {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    gap: 8px;
    padding: 0 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand-title {
    display: none;
  }

  .customer-stage,
  .admin-main {
    padding: 10px;
  }

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

  .primary-sidebar,
  .secondary-sidebar {
    display: flex;
    overflow: auto;
    padding: 0;
  }

  .primary-sidebar button,
  .secondary-sidebar button {
    width: auto;
    min-width: 86px;
    justify-content: center;
  }

  .secondary-title {
    display: none;
  }

  .phone-shell {
    width: min(390px, 100%);
    max-width: 100%;
    border-width: 6px;
    border-radius: 24px;
  }

  .form-grid,
  .product-form-grid,
  .member-price-grid,
  .product-limit-grid,
  .two-cols,
  .panel-grid,
  .dashboard-grid,
  .admin-summary-strip,
  .account-body,
  .chart-legend {
    grid-template-columns: 1fr;
  }

  .product-editor-body {
    padding: 14px;
  }

  .product-editor-actions {
    flex-wrap: wrap;
  }

  .dash-value {
    font-size: 28px;
  }
}
