/* =========================================================
   MORI 森屿选物 · 商家后台
   ========================================================= */

:root {
  --bg: #f5f6fb;
  --bg-deep: #eef0f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfe;
  --ink: #202238;
  --ink-soft: #4d5169;
  --muted: #8a8fa6;
  --muted-light: #aeb2c4;
  --line: #e9eaf2;
  --line-strong: #dfe1ec;
  --brand: #6657f5;
  --brand-deep: #5142e8;
  --brand-soft: #f0eeff;
  --brand-soft-2: #e7e3ff;
  --green: #169b72;
  --green-soft: #e9f8f1;
  --red: #f04e68;
  --red-soft: #fff0f3;
  --amber: #e29527;
  --amber-soft: #fff7e8;
  --blue: #3c7bea;
  --blue-soft: #edf4ff;
  --sidebar-w: 238px;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 4px 18px rgba(38, 34, 83, 0.045);
  --shadow-md: 0 12px 38px rgba(41, 34, 93, 0.08);
  --shadow-lg: 0 24px 70px rgba(28, 22, 65, 0.18);
  --font: "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% -10%, rgba(124, 106, 255, 0.09), transparent 32%),
    var(--bg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  color: #fff;
  background: var(--brand);
}

:focus-visible {
  outline: 3px solid rgba(102, 87, 245, 0.28);
  outline-offset: 2px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  white-space: nowrap;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

/* ---------- Boot ---------- */
.boot-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.boot-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 28px;
  font-style: italic;
  background: linear-gradient(145deg, #8a7dff, #5142e8);
  box-shadow: 0 16px 34px rgba(91, 72, 237, 0.3);
}

.boot-line {
  width: 120px;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5e3f6;
}

.boot-line span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  animation: bootSlide 1.1s ease-in-out infinite;
}

@keyframes bootSlide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.btn:hover {
  color: var(--ink);
  border-color: #cfd2e0;
  background: #fbfbfd;
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #7667fa 0%, #5b4bec 100%);
  box-shadow: 0 8px 20px rgba(91, 75, 236, 0.22);
}

.btn-primary:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #6b5cf6 0%, #4d3de1 100%);
  box-shadow: 0 10px 24px rgba(91, 75, 236, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-soft {
  color: var(--brand-deep);
  border-color: var(--brand-soft-2);
  background: var(--brand-soft);
}

.btn-soft:hover {
  color: var(--brand-deep);
  border-color: #d8d1ff;
  background: #eae6ff;
}

.btn-dark {
  color: #fff;
  border-color: transparent;
  background: #25243b;
}

.btn-dark:hover {
  color: #fff;
  background: #19182b;
}

.btn-danger {
  color: var(--red);
  border-color: #ffd6dd;
  background: #fff8f9;
}

.btn-danger:hover {
  color: #d73550;
  border-color: #ffc2cd;
  background: var(--red-soft);
}

.btn-danger-solid {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #fa667d, #e73e5b);
  box-shadow: 0 8px 20px rgba(231, 62, 91, 0.2);
}

.btn-danger-solid:hover {
  color: #fff;
  background: linear-gradient(135deg, #f25470, #d93451);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
}

.btn-ghost:hover {
  border-color: transparent;
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.btn-sm {
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12px;
}

.btn-lg {
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 14px;
}

.btn-icon {
  width: 39px;
  height: 39px;
  padding: 0;
  border-color: var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: #fff;
}

.btn-icon:hover {
  color: var(--brand);
  border-color: var(--brand-soft-2);
  background: var(--brand-soft);
}

.btn-block {
  width: 100%;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 2px;
  color: var(--brand-deep);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 5px;
}

.text-btn:hover {
  color: var(--brand);
}

.text-btn.danger {
  color: var(--red);
}

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

.text-btn .icon {
  width: 14px;
  height: 14px;
}

.link-btn {
  color: var(--brand-deep);
  font-size: 12.5px;
  font-weight: 650;
  padding: 5px 4px;
  border-radius: 5px;
  white-space: nowrap;
}

.link-btn:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

/* ---------- Icons & helpers ---------- */
.icon-tile {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: var(--brand);
  background: var(--brand-soft);
}

.icon-tile .icon {
  width: 20px;
  height: 20px;
}

.tone-green { color: var(--green); background: var(--green-soft); }
.tone-amber { color: var(--amber); background: var(--amber-soft); }
.tone-gray { color: #7d839d; background: #f1f2f7; }
.tone-blue { color: var(--blue); background: var(--blue-soft); }
.tone-red { color: var(--red); background: var(--red-soft); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tag.green { color: var(--green); background: var(--green-soft); }
.tag.gray { color: #777c94; background: #f1f2f7; }
.tag.amber { color: #b67618; background: var(--amber-soft); }
.tag.red { color: #da3f5a; background: var(--red-soft); }
.tag.blue { color: var(--blue); background: var(--blue-soft); }
.tag.outline { color: var(--muted); border: 1px solid var(--line); background: transparent; }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.01em;
}

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

.strong {
  font-weight: 700;
}

.divider {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.input-hint {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.required {
  margin-left: 3px;
  color: var(--red);
}

/* =========================================================
   Login
   ========================================================= */
.login-page {
  min-height: 100vh;
  display: flex;
  padding: 22px;
  background: #f3f2f7;
}

.login-visual {
  position: relative;
  overflow: hidden;
  flex: 1.05;
  min-height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
  padding: 46px 50px 40px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 12%, rgba(173, 145, 255, 0.28), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(255, 172, 209, 0.13), transparent 32%),
    linear-gradient(145deg, #211c3b 0%, #1a1730 54%, #251d44 100%);
  isolation: isolate;
}

.login-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -200px;
  right: -130px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 74px rgba(255, 255, 255, 0.022),
    0 0 0 148px rgba(255, 255, 255, 0.018),
    0 0 0 222px rgba(255, 255, 255, 0.012);
}

.login-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.6;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.7px, transparent 0.7px);
  background-size: 28px 28px;
  mask-image: linear-gradient(140deg, transparent 10%, #000 68%, transparent 100%);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #8e81ff 0%, #5c4bea 100%);
  box-shadow: 0 12px 28px rgba(90, 71, 238, 0.3);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
}

.login-brand .brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 0.15em;
}

.login-brand .brand-sub {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  letter-spacing: 0.24em;
}

.login-copy {
  position: relative;
  z-index: 2;
  max-width: 570px;
  margin-top: auto;
  padding-top: 80px;
}

.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.055);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.login-eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b7a8ff;
  box-shadow: 0 0 12px #a997ff;
}

.login-copy h1 {
  margin: 22px 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.04em;
}

.login-copy h1 em {
  color: #bfb4ff;
  font-style: normal;
}

.login-copy p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13.5px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.login-features {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.login-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.055);
  font-size: 11.5px;
}

.login-features .icon {
  width: 13px;
  height: 13px;
  color: #a99aff;
}

.login-collage {
  position: absolute;
  z-index: 1;
  right: 42px;
  top: 165px;
  width: 310px;
  height: 330px;
  pointer-events: none;
}

.collage-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(7px);
}

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

.collage-card.one {
  top: 3px;
  right: 6px;
  width: 168px;
  height: 205px;
  transform: rotate(6deg);
}

.collage-card.two {
  top: 110px;
  right: 178px;
  width: 124px;
  height: 157px;
  transform: rotate(-8deg);
}

.collage-card.three {
  right: 20px;
  bottom: 0;
  width: 135px;
  height: 98px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #342d54;
  transform: rotate(-2deg);
}

.collage-card.three strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.03em;
}

.collage-card.three span {
  display: block;
  margin-top: 5px;
  color: #8c87a0;
  font-size: 8px;
  letter-spacing: 0.13em;
}

.collage-chip {
  position: absolute;
  right: 175px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(34, 29, 58, 0.74);
  font-size: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(9px);
}

.collage-chip .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #79e6b9;
  box-shadow: 0 0 0 4px rgba(121, 230, 185, 0.12);
}

.login-foot {
  position: relative;
  z-index: 2;
  display: flex;
  margin-top: auto;
  padding-top: 34px;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.28);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.login-side {
  flex: 0.95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 5vw;
}

.login-panel {
  width: 100%;
  max-width: 396px;
}

.login-mobile-brand {
  display: none;
}

.login-panel .welcome {
  margin-bottom: 30px;
}

.login-panel .welcome .overline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-deep);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.login-panel .welcome .overline::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brand);
}

.login-panel h2 {
  margin-top: 13px;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login-panel .welcome p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field > label,
.field-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.login-form .field > label {
  color: var(--ink);
}

.input,
.select,
.textarea {
  width: 100%;
  height: 43px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: #b4b7c7;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #cfd3e1;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: #9d91fb;
  box-shadow: 0 0 0 4px rgba(102, 87, 245, 0.1);
}

.input[readonly],
.input:disabled,
.select:disabled {
  color: var(--muted);
  background: #f8f9fc;
}

.textarea {
  height: auto;
  min-height: 108px;
  padding: 11px 13px;
  line-height: 1.7;
  resize: vertical;
}

.select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239296aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.input-wrap {
  position: relative;
}

.input-wrap > .icon {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 17px;
  height: 17px;
  color: var(--muted-light);
  transform: translateY(-50%);
  pointer-events: none;
}

.input-wrap .input {
  padding-left: 40px;
}

.login-input {
  height: 52px;
  padding: 0 15px;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
}

.login-input-wrap .icon {
  left: 16px;
  width: 18px;
  height: 18px;
}

.login-input-wrap .input {
  padding-left: 45px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--muted);
  border-radius: 8px;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11.5px;
}

.check-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}

.check-line input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--brand);
}

.login-submit {
  height: 51px;
  margin-top: 5px;
  border-radius: 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.login-error {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #ffd4dc;
  border-radius: 9px;
  color: #cb3852;
  background: #fff6f8;
  font-size: 11.5px;
  line-height: 1.5;
}

.login-error.show {
  display: flex;
}

.login-error .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.demo-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px dashed #dedaf2;
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  line-height: 1.6;
}

.demo-note .icon {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.demo-note strong {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-weight: 600;
}

.login-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 26px;
  color: #b0b3c3;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.login-secure .icon {
  width: 13px;
  height: 13px;
}

/* =========================================================
   App shell
   ========================================================= */
.shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 22px;
}

.sidebar-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 21px;
  box-shadow: 0 8px 18px rgba(91, 72, 237, 0.22);
}

.brand-text .name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.1;
}

.brand-text .sub {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.17em;
}

.brand-text .sub .mini-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c0c3d0;
}

.sidebar-store {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 4px 18px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfe;
}

.store-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #b2a7ff, #6958e9);
  font-family: Georgia, serif;
  font-size: 16px;
  font-style: italic;
}

.store-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-store-info {
  min-width: 0;
  flex: 1;
}

.sidebar-store-info strong {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-store-info span {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  color: var(--green);
  font-size: 9px;
}

.sidebar-store-info span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.sidebar-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.sidebar-section {
  margin-bottom: 15px;
}

.sidebar-label {
  padding: 0 12px 7px;
  color: #b2b5c5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: #6d7188;
  font-size: 12.5px;
  font-weight: 550;
  transition: color 0.17s ease, background 0.17s ease;
}

.nav-item .icon {
  width: 18px;
  height: 18px;
  color: #979bb0;
  transition: color 0.17s ease;
}

.nav-item:hover {
  color: var(--ink);
  background: #f6f5fc;
}

.nav-item:hover .icon {
  color: var(--brand);
}

.nav-item.active {
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-weight: 650;
}

.nav-item.active .icon {
  color: var(--brand);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--brand);
}

.nav-item .nav-badge {
  min-width: 19px;
  height: 18px;
  display: inline-grid;
  margin-left: auto;
  padding: 0 5px;
  place-items: center;
  border-radius: 99px;
  color: #fff;
  background: #fc5b72;
  font-size: 9px;
  font-weight: 700;
}

.nav-item .nav-badge.soft {
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid #e5e0ff;
}

.nav-item .nav-badge:empty {
  display: none;
}

.nav-item .chev {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: #b7bac7;
}

.sidebar-domain {
  position: relative;
  overflow: hidden;
  margin: 4px 4px 16px;
  padding: 13px;
  border: 1px solid #e6e2fb;
  border-radius: 13px;
  background:
    radial-gradient(circle at 94% 4%, rgba(135, 112, 255, 0.18), transparent 48%),
    #faf9ff;
}

.sidebar-domain::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  right: -26px;
  bottom: -35px;
  border: 1px solid rgba(111, 91, 242, 0.13);
  border-radius: 50%;
}

.sidebar-domain .sd-icon {
  width: 26px;
  height: 26px;
  display: grid;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 8px;
  color: var(--brand);
  background: #fff;
  box-shadow: 0 3px 9px rgba(82, 68, 190, 0.1);
}

.sidebar-domain .sd-icon .icon {
  width: 14px;
  height: 14px;
}

.sidebar-domain strong {
  display: block;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 650;
}

.sidebar-domain span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-domain .sd-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 9px;
  color: var(--brand-deep);
  font-size: 9.5px;
  font-weight: 650;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 8px 0;
  border-top: 1px solid var(--line);
}

.user-avatar {
  width: 33px;
  height: 33px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #34314d, #1f1d31);
  font-family: var(--font-serif);
  font-size: 13px;
}

.sidebar-user-info {
  min-width: 0;
  flex: 1;
}

.sidebar-user-info strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-info span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.sidebar-logout {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
}

.sidebar-logout:hover {
  color: var(--red);
  background: var(--red-soft);
}

.sidebar-logout .icon {
  width: 15px;
  height: 15px;
}

.main {
  min-height: 100vh;
  margin-left: var(--sidebar-w);
}

.topbar {
  position: sticky;
  z-index: 25;
  top: 0;
  display: flex;
  height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid rgba(231, 232, 241, 0.7);
  background: rgba(245, 246, 251, 0.84);
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  display: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11.5px;
}

.breadcrumb .icon {
  width: 12px;
  height: 12px;
  color: #c3c6d3;
}

.breadcrumb strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.topbar-notice {
  position: relative;
}

.topbar-notice::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 5px;
  height: 5px;
  border: 1.5px solid var(--bg);
  border-radius: 50%;
  background: var(--red);
}

.topbar-store-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  font-size: 11.5px;
  font-weight: 550;
}

.topbar-store-link:hover {
  color: var(--brand-deep);
  border-color: var(--brand-soft-2);
  background: #fff;
}

.topbar-store-link .icon {
  width: 14px;
  height: 14px;
}

.topbar-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  border-radius: 10px;
}

.topbar-avatar-btn:hover {
  background: #fff;
}

.topbar-avatar-btn .user-avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.topbar-avatar-btn .icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.topbar-menu {
  position: absolute;
  top: 56px;
  right: 24px;
  z-index: 60;
  width: 170px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
  animation: popIn 0.16s ease;
}

.topbar-menu a,
.topbar-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
  text-align: left;
  font-size: 11.5px;
}

.topbar-menu a:hover,
.topbar-menu button:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.topbar-menu .icon {
  width: 15px;
  height: 15px;
}

.topbar-menu .menu-sep {
  height: 1px;
  margin: 5px 4px;
  background: var(--line);
}

.page-content {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 27px 32px 54px;
  animation: pageIn 0.3s ease both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sidebar-scrim {
  display: none;
}

/* =========================================================
   Page heading
   ========================================================= */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}

.page-head-left {
  min-width: 0;
}

.page-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.page-title {
  color: #202136;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.page-title .title-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  margin-right: 9px;
  place-items: center;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-soft);
  vertical-align: -3px;
}

.page-title .title-icon .icon {
  width: 17px;
  height: 17px;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border: 1px solid #e6e3fa;
  border-radius: 6px;
  color: #8d86ad;
  background: #f7f5ff;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: 2px;
}

.page-desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 3px;
}

.page-head--form {
  align-items: center;
  margin-bottom: 20px;
}

.back-circle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: #fff;
  transition: all 0.16s ease;
}

.back-circle:hover {
  color: var(--brand);
  border-color: var(--brand-soft-2);
  background: var(--brand-soft);
}

.form-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 6px;
}

.form-heading h1 {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
}

.editor-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
}

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

/* =========================================================
   Stats
   ========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 19px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stat-card:hover {
  border-color: #e2dff5;
  box-shadow: 0 10px 30px rgba(42, 35, 90, 0.06);
  transform: translateY(-2px);
}

.stat-card::after {
  content: "";
  position: absolute;
  top: -27px;
  right: -27px;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(120, 104, 245, 0.08);
  border-radius: 50%;
}

.stat-icon {
  width: 43px;
  height: 43px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
}

.stat-icon .icon {
  width: 21px;
  height: 21px;
}

.stat-icon.lilac { color: var(--brand); background: #f0edff; }
.stat-icon.mint { color: #16a677; background: #eaf9f2; }
.stat-icon.stone { color: #81879d; background: #f2f3f7; }
.stat-icon.peach { color: #e99b33; background: #fff6e5; }

.stat-info {
  min-width: 0;
  flex: 1;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.stat-value-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 3px;
}

.stat-value {
  color: var(--ink);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-hint {
  color: #a5a9ba;
  font-size: 9.5px;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--green);
  font-size: 9px;
}

.stat-trend .icon {
  width: 10px;
  height: 10px;
}

.stat-arrow {
  position: absolute;
  right: 15px;
  bottom: 13px;
  color: #d5d7e2;
}

.stat-arrow .icon {
  width: 13px;
  height: 13px;
}

/* =========================================================
   Toolbar & tabs
   ========================================================= */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.76);
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding: 0 13px;
  border-radius: 8px;
  color: #7d8197;
  font-size: 11.5px;
  font-weight: 550;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.tab:hover {
  color: var(--ink);
  background: #f6f6fb;
}

.tab.active {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 5px 12px rgba(91, 75, 236, 0.22);
  font-weight: 650;
}

.tab .count {
  min-width: 15px;
  height: 15px;
  display: inline-grid;
  padding: 0 4px;
  place-items: center;
  border-radius: 99px;
  color: #979aad;
  background: #f0f1f6;
  font-size: 8.5px;
}

.tab.active .count {
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.9);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.search-box {
  position: relative;
  width: 240px;
  flex: 0 1 260px;
}

.search-box .icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 15px;
  height: 15px;
  color: #afb2c2;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 35px;
  padding: 0 12px 0 35px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  font-size: 11.5px;
}

.search-box input::placeholder {
  color: #b3b6c5;
}

.search-box input:focus {
  outline: none;
  border-color: #b7adfb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 87, 245, 0.08);
}

.filter-wrap {
  position: relative;
}

.filter-btn {
  height: 35px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
  font-size: 11.5px;
}

.filter-btn:hover,
.filter-btn.on {
  color: var(--brand-deep);
  border-color: #ddd6ff;
  background: var(--brand-soft);
}

.filter-btn .icon {
  width: 14px;
  height: 14px;
}

.filter-popover {
  position: absolute;
  z-index: 70;
  top: 43px;
  right: 0;
  width: 238px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-md);
  animation: popIn 0.16s ease;
}

.filter-popover .fp-title {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.filter-popover .fp-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 15px;
}

.filter-chip {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 11px;
}

.filter-chip:hover {
  border-color: #d7d0ff;
}

.filter-chip.active {
  color: var(--brand-deep);
  border-color: #d5ceff;
  background: var(--brand-soft);
  font-weight: 600;
}

.filter-foot {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.list-summary {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.list-summary strong {
  color: var(--ink-soft);
}

/* =========================================================
   Table card
   ========================================================= */
.table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.table-card-head {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 19px;
  border-bottom: 1px solid #f0f1f6;
}

.table-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 650;
}

.table-card-title .icon {
  width: 15px;
  height: 15px;
  color: #a7a2c0;
}

.table-card-tools {
  display: flex;
  align-items: center;
  gap: 17px;
}

.check-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
}

.check-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--brand);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.data-table {
  width: 100%;
  min-width: 1010px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.data-table col.c-check { width: 45px; }
.data-table col.c-product { width: 29%; }
.data-table col.c-price { width: 94px; }
.data-table col.c-stock { width: 82px; }
.data-table col.c-sales { width: 116px; }
.data-table col.c-status { width: 80px; }
.data-table col.c-time { width: 137px; }
.data-table col.c-note { width: 95px; }
.data-table col.c-actions { width: 138px; }

.data-table th {
  height: 39px;
  padding: 0 12px;
  color: #999db0;
  background: #fafbfd;
  font-size: 10px;
  font-weight: 550;
  text-align: left;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.data-table th:first-child,
.data-table td:first-child {
  padding-left: 19px;
}

.data-table th:last-child,
.data-table td:last-child {
  padding-right: 19px;
}

.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #f2f2f7;
  color: var(--ink-soft);
  font-size: 11.5px;
  vertical-align: middle;
}

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

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: #fcfbff;
}

.data-table tbody tr.selected {
  background: #faf8ff;
}

.table-check {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--brand);
  vertical-align: middle;
}

.product-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.product-thumb {
  position: relative;
  width: 54px;
  height: 54px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid #f0ede8;
  border-radius: 11px;
  background: #f2f0ec;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb .type-flag {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: rgba(32, 32, 50, 0.78);
}

.product-thumb .type-flag .icon {
  width: 8px;
  height: 8px;
}

.product-main {
  min-width: 0;
}

.product-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-name:hover {
  color: var(--brand-deep);
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: #a4a7b7;
  font-size: 9.5px;
}

.product-meta .meta-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #c9cbd6;
}

.product-meta .type-label {
  color: #8a7cb7;
}

.price-cell {
  color: #f24b65;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.price-cell .price-ro {
  color: #a3a6b5;
  font-size: 8px;
  font-weight: 500;
}

.price-range {
  color: #f24b65;
}

.stock-cell strong {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.stock-cell span {
  display: block;
  margin-top: 2px;
  color: #aeb1be;
  font-size: 8.5px;
}

.stock-low {
  color: var(--amber) !important;
}

.sales-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sales-mini .sm-item {
  text-align: center;
}

.sales-mini .sm-item strong {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.sales-mini .sm-item span {
  display: block;
  margin-top: 2px;
  color: #aeb1be;
  font-size: 8px;
  white-space: nowrap;
}

.sales-mini .sm-sep {
  width: 1px;
  height: 17px;
  background: #eff0f5;
}

.data-table .date-cell {
  color: #969aac;
  font-size: 9.5px;
  line-height: 1.6;
  white-space: nowrap;
}

.note-cell {
  display: inline-block;
  max-width: 95px;
  overflow: hidden;
  color: #a2a5b5;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.note-cell.has-note {
  color: #726a8e;
}

.note-cell:hover {
  color: var(--brand-deep);
}

.actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.actions-cell .link-btn .icon {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
}

.more-wrap {
  position: relative;
}

.more-menu {
  position: absolute;
  z-index: 80;
  top: 30px;
  right: 0;
  width: 148px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-md);
  animation: popIn 0.15s ease;
}

.more-menu button,
.more-menu a {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 7px;
  color: var(--ink-soft);
  text-align: left;
  font-size: 10.5px;
}

.more-menu button:hover,
.more-menu a:hover {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.more-menu .danger {
  color: var(--red);
}

.more-menu .danger:hover {
  color: var(--red);
  background: var(--red-soft);
}

.more-menu .icon {
  width: 14px;
  height: 14px;
}

.table-footer {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 19px;
  border-top: 1px solid #f2f2f7;
  color: var(--muted);
  font-size: 10.5px;
}

.table-footer strong {
  color: var(--ink-soft);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  min-width: 27px;
  height: 27px;
  display: grid;
  padding: 0 7px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 10px;
}

.page-btn:hover {
  border-color: var(--line);
  background: #fff;
}

.page-btn.active {
  color: #fff;
  background: var(--brand);
}

.batch-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 19px;
  border-bottom: 1px solid #ece8ff;
  color: var(--ink-soft);
  background: #faf9ff;
  font-size: 11px;
}

.batch-bar strong {
  color: var(--brand-deep);
}

.batch-bar .batch-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* =========================================================
   Status & empty
   ========================================================= */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.status-on,
.status-paid,
.status-completed {
  color: #15976d;
  background: #eaf9f2;
}

.status-off,
.status-closed {
  color: #8f93a4;
  background: #f2f3f7;
}

.status-pending,
.status-shipped {
  color: #d88922;
  background: #fff7e7;
}

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

.status-refunded {
  color: #d64660;
  background: var(--red-soft);
}

.status-soldout {
  color: #d88922;
  background: var(--amber-soft);
}

.empty-block {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px;
  text-align: center;
}

.empty-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 18px;
  color: #b4adcf;
  background: #f7f5ff;
}

.empty-icon .icon {
  width: 27px;
  height: 27px;
}

.empty-block h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}

.empty-block p {
  max-width: 330px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.empty-block .btn {
  margin-top: 18px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #f0f1f6;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* =========================================================
   Form / product editor
   ========================================================= */
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.editor-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.form-card,
.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.form-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 55px;
  padding: 0 23px;
  border-bottom: 1px solid #f1f1f6;
}

.form-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.form-card-title .icon {
  width: 16px;
  height: 16px;
  color: #a79ec6;
}

.form-card-title .section-no {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-family: var(--font-mono);
  font-size: 9px;
}

.form-card-body {
  padding: 3px 23px;
}

.form-row {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed #ededf3;
}

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

.form-row-label {
  padding-top: 8px;
  color: #656a82;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.6;
}

.form-row-label .required {
  color: var(--red);
}

.form-row-content {
  min-width: 0;
}

.form-row-content > .input,
.form-row-content > .textarea,
.form-row-content > .select {
  max-width: 100%;
}

.form-row-content .input {
  height: 40px;
}

.form-row-content .textarea {
  min-height: 96px;
}

.field-counter {
  position: relative;
}

.field-counter .input {
  padding-right: 55px;
}

.field-counter .counter {
  position: absolute;
  top: 50%;
  right: 13px;
  color: #b3b5c4;
  font-family: var(--font-mono);
  font-size: 9px;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-hint {
  margin-top: 6px;
  color: #a5a8b8;
  font-size: 10.5px;
  line-height: 1.65;
}

.form-hint .icon {
  width: 12px;
  height: 12px;
  margin-right: 3px;
  vertical-align: -2px;
}

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

.category-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 64px;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  text-align: left;
  transition: all 0.16s ease;
}

.category-card:hover {
  border-color: #cfc8ff;
  background: #fdfcff;
}

.category-card.active {
  border-color: var(--brand);
  background: #faf8ff;
  box-shadow: 0 0 0 3px rgba(102, 87, 245, 0.06);
}

.category-card .cat-icon {
  width: 29px;
  height: 29px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #8d84cf;
  background: #f5f2ff;
}

.category-card.active .cat-icon {
  color: #fff;
  background: var(--brand);
}

.category-card .cat-icon .icon {
  width: 15px;
  height: 15px;
}

.category-card strong {
  display: block;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}

.category-card span {
  display: block;
  margin-top: 2px;
  color: #a3a6b6;
  font-size: 9px;
  line-height: 1.45;
}

.category-card .cat-tick {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
}

.category-card .cat-tick .icon {
  width: 9px;
  height: 9px;
}

.category-card.active .cat-tick {
  display: grid;
}

.image-uploader {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.upload-box {
  position: relative;
  width: 106px;
  height: 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed #d9d5e8;
  border-radius: 12px;
  color: #a7a2ba;
  background: #fbfbfd;
  font-size: 9px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.upload-box:hover {
  color: var(--brand);
  border-color: #b6aafa;
  background: #faf9ff;
}

.upload-box .icon {
  width: 20px;
  height: 20px;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.image-thumb {
  position: relative;
  width: 106px;
  height: 106px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f2ed;
}

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

.image-thumb .main-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  color: #fff;
  background: rgba(31, 28, 48, 0.68);
  font-size: 8px;
  backdrop-filter: blur(3px);
}

.image-thumb .thumb-actions {
  position: absolute;
  inset: auto 5px 5px;
  display: flex;
  gap: 3px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.16s ease;
}

.image-thumb:hover .thumb-actions {
  opacity: 1;
  transform: translateY(0);
}

.thumb-action {
  display: flex;
  height: 23px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 5px;
  color: #fff;
  background: rgba(26, 24, 40, 0.75);
  font-size: 8px;
  backdrop-filter: blur(4px);
}

.thumb-action:hover {
  background: rgba(26, 24, 40, 0.95);
}

.thumb-action.danger:hover {
  background: var(--red);
}

.thumb-action .icon {
  width: 10px;
  height: 10px;
}

.uploading-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  border: 1px dashed #d9d5e8;
  border-radius: 12px;
  background: #fbfbfd;
}

.mini-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid #e4e0f8;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.radio-row {
  display: flex;
  min-height: 38px;
  align-items: center;
  flex-wrap: wrap;
  gap: 17px;
}

.radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #63687f;
  font-size: 11.5px;
  cursor: pointer;
}

.radio-inline input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--brand);
}

.radio-inline strong {
  font-weight: 500;
}

.stepper {
  display: inline-flex;
  height: 37px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
}

.stepper button {
  width: 35px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.stepper button:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.stepper input {
  width: 59px;
  border: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  text-align: center;
  font-size: 12px;
}

.stepper input:focus {
  outline: none;
  background: #fcfbff;
}

.inline-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.inline-form .input {
  width: 100px;
}

.inline-form .unit {
  color: var(--muted);
  font-size: 11px;
}

.form-inline-note {
  margin-top: 8px;
  color: #a8abba;
  font-size: 10px;
}

.stock-total-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid #e7e4f7;
  border-radius: 8px;
  color: #7b739a;
  background: #faf9ff;
  font-size: 10.5px;
}

.stock-total-pill strong {
  color: var(--ink);
  font-size: 13px;
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}

.switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #dcdfea;
  cursor: pointer;
  transition: background 0.18s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(24, 20, 50, 0.18);
  transition: transform 0.18s ease;
}

.switch input:checked + .switch-track {
  background: var(--brand);
}

.switch input:checked + .switch-track::after {
  transform: translateX(16px);
}

.switch-label {
  color: #666b81;
  font-size: 11.5px;
}

.switch-hint {
  color: #a7aab9;
  font-size: 10px;
}

.spec-shell {
  border: 1px solid #eeedf4;
  border-radius: 11px;
  background: #fbfbfd;
  overflow: hidden;
}

.spec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-bottom: 1px solid #f0eff5;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-size: 10px;
  font-weight: 650;
}

.spec-name-input {
  width: 170px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 9px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 10.5px;
}

.spec-head-label {
  margin-left: auto;
  color: #b1b3c0;
  font-size: 9px;
}

.spec-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px;
}

.spec-value {
  position: relative;
  display: flex;
  width: 140px;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.spec-value input {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 10.5px;
}

.spec-value input:focus {
  outline: none;
  background: #faf9ff;
}

.spec-value .spec-remove {
  width: 23px;
  height: 23px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 5px;
  color: #bbbfcc;
}

.spec-value .spec-remove:hover {
  color: var(--red);
  background: var(--red-soft);
}

.spec-value .spec-remove .icon {
  width: 12px;
  height: 12px;
}

.add-spec-value {
  height: 36px;
  padding: 0 11px;
  border: 1px dashed #d7d3e7;
  border-radius: 8px;
  color: #8d86ad;
  background: transparent;
  font-size: 10px;
}

.add-spec-value:hover {
  color: var(--brand-deep);
  border-color: #bab0f2;
  background: #faf8ff;
}

.spec-helper {
  padding: 0 13px 12px;
  color: #a9abba;
  font-size: 9.5px;
}

.sku-section {
  margin-top: 14px;
}

.sku-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.sku-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #686d83;
  font-size: 11.5px;
  font-weight: 600;
}

.sku-title .count-badge {
  height: 18px;
  display: inline-grid;
  min-width: 19px;
  padding: 0 5px;
  place-items: center;
  border-radius: 5px;
  color: #9a93b6;
  background: #f1eff8;
  font-size: 9px;
}

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

.sku-actions button {
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #9296a9;
  background: #fff;
  font-size: 9.5px;
}

.sku-actions button:hover {
  color: var(--brand-deep);
  border-color: #d8d1ff;
  background: var(--brand-soft);
}

.sku-table-wrap {
  overflow-x: auto;
  border: 1px solid #eeedf4;
  border-radius: 10px;
  background: #fff;
  scrollbar-width: thin;
}

.sku-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  table-layout: fixed;
}

.sku-table th {
  height: 34px;
  padding: 0 9px;
  color: #a5a8b7;
  background: #fafbfd;
  font-size: 9px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.sku-table td {
  padding: 8px 9px;
  border-top: 1px solid #f2f2f6;
  color: var(--ink-soft);
  font-size: 10.5px;
  vertical-align: middle;
}

.sku-value {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sku-value .sku-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a496fb;
}

.sku-money {
  position: relative;
}

.sku-money .currency {
  position: absolute;
  top: 50%;
  left: 8px;
  color: #a8abb9;
  font-size: 9px;
  transform: translateY(-50%);
}

.sku-input {
  width: 100%;
  height: 29px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 10px;
}

.sku-money .sku-input {
  padding-left: 20px;
}

.sku-input:focus {
  outline: none;
  border-color: #b3a7fb;
  box-shadow: 0 0 0 3px rgba(102, 87, 245, 0.07);
}

.sku-status-select {
  height: 28px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #777d91;
  background: #fff;
  font-size: 9.5px;
}

.sku-img {
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1px solid #f0ede8;
  border-radius: 7px;
  background: #f6f3ee;
}

.sku-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sku-hint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: #b0b2bf;
  font-size: 9px;
}

.type-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 13px 0 3px;
  padding: 11px 13px;
  border: 1px solid #eae6fb;
  border-radius: 9px;
  color: #89839e;
  background: #fbf9ff;
  font-size: 10px;
  line-height: 1.65;
}

.type-notice .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: #9b90d3;
}

.type-notice strong {
  color: #625b7c;
  font-weight: 600;
}

.delivery-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.delivery-block {
  padding: 9px 0;
}

.delivery-block + .delivery-block {
  border-top: 1px dashed #eeeef4;
}

.delivery-label {
  display: inline-block;
  width: 66px;
  color: #8b8fa3;
  font-size: 10.5px;
}

.form-footer-mobile {
  display: none;
}

.editor-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 620px) {
  .editor-bottom-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .editor-bottom-actions .btn {
    width: 100%;
  }
}

.orders-table tbody tr[data-order-row] {
  cursor: pointer;
}

.aside-link .mini-icon-btn {
  flex: 0 0 auto;
}

.data-table .status.status-soldout {
  color: #d88922;
  background: var(--amber-soft);
}

.editor-aside {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aside-card {
  padding: 17px;
}

.aside-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.aside-title .icon {
  width: 15px;
  height: 15px;
  color: #a49bc6;
}

.publish-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f1f6;
}

.publish-status span {
  color: #7f8499;
  font-size: 11px;
}

.aside-share {
  padding: 14px 0;
  border-bottom: 1px solid #f1f1f6;
}

.aside-share-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #85899c;
  font-size: 10px;
}

.aside-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid #eeebf8;
  border-radius: 8px;
  color: #756b9a;
  background: #fbfaff;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.45;
  word-break: break-all;
}

.aside-link .icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: #a79ed1;
}

.aside-link-text {
  min-width: 0;
  flex: 1;
}

.aside-share .aside-hint {
  margin-top: 7px;
  color: #b0b2bf;
  font-size: 9px;
  line-height: 1.6;
}

.aside-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 14px;
}

.aside-actions .btn {
  width: 100%;
}

.aside-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #9598aa;
  font-size: 10px;
}

.aside-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.5;
}

.aside-checklist .check-dot {
  width: 13px;
  height: 13px;
  display: grid;
  flex: 0 0 auto;
  margin-top: 1px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #eaf8f2;
  font-size: 8px;
}

.aside-checklist .check-dot .icon {
  width: 8px;
  height: 8px;
}

.aside-tip {
  padding: 12px 13px;
  border: 1px solid #f1ecdc;
  border-radius: 10px;
  color: #a39982;
  background: #fdfbf5;
  font-size: 9.5px;
  line-height: 1.7;
}

.aside-tip strong {
  color: #7d735f;
  font-weight: 600;
}

/* =========================================================
   Orders
   ========================================================= */
.order-product {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.order-product .product-thumb {
  width: 45px;
  height: 45px;
  border-radius: 9px;
}

.order-product-name {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-product-sub {
  display: block;
  margin-top: 3px;
  color: #a5a8b7;
  font-size: 9px;
}

.order-no {
  color: #636980;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.order-no:hover {
  color: var(--brand-deep);
}

.buyer-line {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.buyer-line span {
  color: #a6a9b8;
  font-size: 9.5px;
}

.amount-cell {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.amount-cell small {
  color: #a6a9b7;
  font-size: 8px;
  font-weight: 400;
}

.data-table.orders-table {
  min-width: 900px;
}

.data-table.orders-table col.c-check { width: 40px; }
.data-table.orders-table col.c-order { width: 155px; }
.data-table.orders-table col.c-product { width: 26%; }
.data-table.orders-table col.c-buyer { width: 120px; }
.data-table.orders-table col.c-amount { width: 103px; }
.data-table.orders-table col.c-status { width: 88px; }
.data-table.orders-table col.c-time { width: 135px; }
.data-table.orders-table col.c-actions { width: 136px; }

.order-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid #eeeafb;
  background: #fbf9ff;
  color: #777091;
  font-size: 10.5px;
}

.order-banner .icon {
  width: 15px;
  height: 15px;
  color: #8f80db;
}

.order-banner strong {
  color: #5b537a;
}

.order-drawer {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100vw);
  display: flex;
  flex-direction: column;
  background: #fbfbfe;
  box-shadow: -20px 0 60px rgba(27, 23, 55, 0.17);
  animation: drawerIn 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes drawerIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-head {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.drawer-title .icon {
  width: 17px;
  height: 17px;
  color: var(--brand);
}

.drawer-close {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
}

.drawer-close:hover {
  color: var(--ink);
  background: #f4f4f8;
}

.drawer-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 17px;
  scrollbar-width: thin;
}

.drawer-status-card {
  position: relative;
  overflow: hidden;
  padding: 19px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.17), transparent 30%),
    linear-gradient(135deg, #373151, #29253f);
}

.drawer-status-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -63px;
  width: 148px;
  height: 148px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.03);
}

.drawer-status-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.drawer-status-card .ds-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.drawer-status-card h3 {
  margin-top: 7px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.drawer-status-card .ds-note {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9.5px;
  line-height: 1.65;
}

.drawer-status-card .ds-amount {
  margin-top: 16px;
  color: #fff;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.drawer-status-card .ds-amount span {
  margin-right: 2px;
  font-size: 15px;
  font-weight: 500;
}

.drawer-status-card .ds-status-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.drawer-status-card .ds-status-icon .icon {
  width: 20px;
  height: 20px;
}

.drawer-section {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.drawer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid #f3f3f7;
  color: #777c91;
  font-size: 10.5px;
  font-weight: 600;
}

.drawer-section-head .icon {
  width: 14px;
  height: 14px;
  margin-right: 5px;
  color: #aba4c7;
  vertical-align: -2px;
}

.drawer-section-body {
  padding: 14px 15px;
}

.kv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kv-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: #9498a9;
  font-size: 10px;
  line-height: 1.5;
}

.kv-row strong,
.kv-row .kv-value {
  max-width: 72%;
  color: #51566a;
  text-align: right;
  font-size: 10.5px;
  font-weight: 500;
  word-break: break-all;
}

.kv-row .kv-value.mono {
  font-size: 9.5px;
}

.order-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
}

.order-item + .order-item {
  border-top: 1px solid #f5f5f8;
}

.order-item .product-thumb {
  width: 48px;
  height: 48px;
  border-radius: 9px;
}

.order-item-info {
  min-width: 0;
  flex: 1;
}

.order-item-info strong {
  display: block;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 550;
  line-height: 1.5;
}

.order-item-info span {
  display: block;
  margin-top: 4px;
  color: #a4a8b8;
  font-size: 9px;
}

.order-item-price {
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.money-lines {
  padding-top: 10px;
  border-top: 1px dashed #eeeef4;
}

.money-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  color: #9296a8;
  font-size: 10px;
}

.money-line.total {
  margin-top: 5px;
  padding-top: 9px;
  border-top: 1px solid #f1f1f5;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
}

.money-line.total strong {
  color: var(--red);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 2px;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 11px;
  padding-bottom: 15px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: #efeff4;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 3px;
  border: 2px solid #d7d4e6;
  border-radius: 50%;
  background: #fff;
}

.timeline-item.done .timeline-dot {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.timeline-copy strong {
  display: block;
  color: #686d82;
  font-size: 10.5px;
  font-weight: 550;
}

.timeline-copy span {
  display: block;
  margin-top: 2px;
  color: #a6a9b8;
  font-size: 9px;
}

.tracking-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tracking-form .select,
.tracking-form .input {
  height: 36px;
  font-size: 10.5px;
}

.tracking-form .btn {
  height: 36px;
  width: 100%;
  margin-top: 2px;
}

.danger-zone {
  margin-top: 13px;
  padding: 13px;
  border: 1px solid #f4e7eb;
  border-radius: 10px;
  background: #fdfbfc;
}

.danger-zone p {
  color: #b39aa2;
  font-size: 9px;
  line-height: 1.6;
}

.refund-record {
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #f1e6e9;
  border-radius: 8px;
  background: #fdfafb;
}

.drawer-footer {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.drawer-footer .btn {
  flex: 1;
}

/* =========================================================
   Overlay / modal
   ========================================================= */
.overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(29, 26, 48, 0.32);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.18s ease both;
}

.overlay.drawer-overlay {
  z-index: 99;
  justify-content: flex-end;
  padding: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: 100%;
  max-width: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.23s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.modal.modal-wide {
  max-width: 530px;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 21px 22px 0;
}

.modal-head h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.modal-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.modal-close {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin: -4px -4px 0 0;
  border-radius: 7px;
  color: var(--muted);
}

.modal-close:hover {
  color: var(--ink);
  background: #f4f4f8;
}

.modal-close .icon {
  width: 15px;
  height: 15px;
}

.modal-body {
  padding: 18px 22px 20px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #fbfbfd;
}

.modal-icon-badge {
  width: 41px;
  height: 41px;
  display: grid;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-soft);
}

.modal-icon-badge.danger {
  color: var(--red);
  background: var(--red-soft);
}

.modal-icon-badge .icon {
  width: 20px;
  height: 20px;
}

.refund-amount-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
  padding: 13px 14px;
  border: 1px solid #edeaf7;
  border-radius: 10px;
  background: #fbfaff;
}

.refund-amount-box span {
  color: var(--muted);
  font-size: 10px;
}

.refund-amount-box strong {
  color: var(--red);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.refund-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 13px;
  padding: 10px;
  border: 1px solid #ffeadf;
  border-radius: 8px;
  color: #b4856c;
  background: #fffbf7;
  font-size: 9.5px;
  line-height: 1.65;
}

.refund-warning .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.copy-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid #eae7f6;
  border-radius: 9px;
  background: #faf9ff;
}

.copy-link-box code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #6c628f;
  font-family: var(--font-mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-link-box button {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #e8e4f4;
  border-radius: 7px;
  color: #9289af;
  background: #fff;
}

.copy-link-box button:hover {
  color: var(--brand);
  border-color: #d9d0ff;
}

.copy-link-box .icon {
  width: 13px;
  height: 13px;
}

.share-domain-note {
  margin-top: 11px;
  color: #a4a7b7;
  font-size: 9.5px;
  line-height: 1.7;
}

.share-preview-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 11px;
  border: 1px solid #f0edf8;
  border-radius: 10px;
  background: #fdfcff;
}

.share-preview-mini img {
  width: 47px;
  height: 47px;
  border-radius: 8px;
  object-fit: cover;
}

.share-preview-mini strong {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.share-preview-mini span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

/* =========================================================
   Domains
   ========================================================= */
.domain-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 154px;
  margin-bottom: 18px;
  padding: 28px 31px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(190, 167, 255, 0.2), transparent 26%),
    radial-gradient(circle at 16% 110%, rgba(105, 223, 188, 0.13), transparent 32%),
    linear-gradient(125deg, #25203e 0%, #2a2347 48%, #211c37 100%);
  box-shadow: 0 15px 40px rgba(35, 28, 72, 0.16);
  isolation: isolate;
}

.domain-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -130px;
  right: 9%;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(255, 255, 255, 0.018), 0 0 0 108px rgba(255, 255, 255, 0.012);
}

.domain-hero-copy {
  max-width: 560px;
}

.domain-hero .overline {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a695f5;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.13em;
}

.domain-hero .overline .icon {
  width: 14px;
  height: 14px;
}

.domain-hero h2 {
  margin-top: 11px;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.domain-hero p {
  max-width: 520px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.47);
  font-size: 10.5px;
  line-height: 1.8;
}

.domain-hero-visual {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.055);
  font-size: 9px;
  backdrop-filter: blur(5px);
}

.domain-badge .mini-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7ce3bd;
  box-shadow: 0 0 9px rgba(124, 227, 189, 0.7);
}

.domain-badge.warn .mini-dot {
  background: #f6cd8b;
  box-shadow: 0 0 9px rgba(246, 205, 139, 0.6);
}

.domain-hero-url {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: -0.02em;
}

.domain-hero-url b {
  color: #c9bcfc;
  font-weight: 500;
}

.domain-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  gap: 17px;
  align-items: start;
}

.domain-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.domain-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.domain-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 21px;
  border-bottom: 1px solid #f1f1f6;
}

.domain-card-head h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 650;
}

.domain-card-head h3 .icon {
  width: 15px;
  height: 15px;
  color: #a39bc4;
}

.domain-card-head p {
  margin-top: 4px;
  color: #9da1b2;
  font-size: 9.5px;
  line-height: 1.6;
}

.domain-card-body {
  padding: 19px 21px 21px;
}

.domain-field + .domain-field {
  margin-top: 18px;
}

.domain-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.domain-field-head label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #656a81;
  font-size: 11px;
  font-weight: 600;
}

.domain-field-head .tag {
  height: 18px;
  font-size: 8.5px;
}

.domain-input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.domain-input-group:focus-within {
  border-color: #a89cfa;
  box-shadow: 0 0 0 4px rgba(102, 87, 245, 0.08);
}

.domain-prefix,
.domain-suffix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #a5a8b7;
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

.domain-prefix {
  border-right: 1px solid #f0f0f5;
  background: #fbfbfd;
  border-radius: 9px 0 0 9px;
}

.domain-suffix {
  border-left: 1px solid #f0f0f5;
  background: #fbfbfd;
  border-radius: 0 9px 9px 0;
}

.domain-input-group input {
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 0 11px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.domain-input-group input:focus {
  outline: none;
}

.domain-field .input-hint {
  margin-top: 6px;
}

.domain-explain {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  padding: 11px 12px;
  border-radius: 9px;
  color: #8d86a5;
  background: #faf9ff;
  font-size: 9.5px;
  line-height: 1.7;
}

.domain-explain .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: #a899f5;
}

.domain-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f2f2f6;
}

.domain-form-actions .status-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #a3a6b6;
  font-size: 9.5px;
}

.domain-form-actions .status-hint .icon {
  width: 13px;
  height: 13px;
  color: #a9a0cc;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid #f3f3f8;
  margin-top: 3px;
}

.switch-row-copy strong {
  display: block;
  color: #686d82;
  font-size: 10.5px;
  font-weight: 550;
}

.switch-row-copy span {
  display: block;
  margin-top: 2px;
  color: #a4a7b7;
  font-size: 9px;
}

/* Domain generated preview */
.generated-url {
  position: relative;
  overflow: hidden;
  padding: 19px;
  border: 1px solid #ebe6ff;
  border-radius: 13px;
  background:
    radial-gradient(circle at 93% 0%, rgba(151, 127, 255, 0.16), transparent 42%),
    #faf9ff;
}

.generated-url-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #958eb3;
  font-size: 9px;
  letter-spacing: 0.03em;
}

.generated-url-label .icon {
  width: 12px;
  height: 12px;
}

.generated-url-text {
  margin-top: 9px;
  color: #5e547f;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
}

.generated-url-text b {
  color: var(--brand-deep);
  font-weight: 600;
}

.generated-url-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.generated-url-actions .btn {
  height: 31px;
  padding: 0 10px;
  font-size: 10px;
}

.generated-url-note {
  margin-top: 10px;
  color: #aba5be;
  font-size: 9px;
  line-height: 1.6;
}

.product-domain-list {
  display: flex;
  flex-direction: column;
}

.product-domain-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f3f3f7;
}

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

.product-domain-row img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
}

.product-domain-info {
  min-width: 0;
  flex: 1;
}

.product-domain-info strong {
  display: block;
  overflow: hidden;
  color: #5f647a;
  font-size: 10px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-domain-info span {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #a2a5b5;
  font-family: var(--font-mono);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-domain-actions {
  display: flex;
  gap: 3px;
}

.mini-icon-btn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #aaadbb;
}

.mini-icon-btn:hover {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.mini-icon-btn .icon {
  width: 13px;
  height: 13px;
}

/* DNS */
.dns-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #f0f0f5;
  border-radius: 10px;
  background: #f0f0f5;
}

.dns-step {
  padding: 14px;
  background: #fff;
}

.dns-step .step-no {
  width: 19px;
  height: 19px;
  display: grid;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 6px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-family: var(--font-mono);
  font-size: 8px;
}

.dns-step strong {
  display: block;
  color: #5d6278;
  font-size: 10px;
  font-weight: 600;
}

.dns-step span {
  display: block;
  margin-top: 4px;
  color: #a2a5b5;
  font-size: 9px;
  line-height: 1.6;
}

.dns-table {
  width: 100%;
  margin-top: 13px;
  border-collapse: collapse;
}

.dns-table th {
  padding: 7px 9px;
  color: #a1a4b4;
  background: #fafbfd;
  font-size: 8.5px;
  font-weight: 500;
  text-align: left;
}

.dns-table td {
  padding: 10px 9px;
  border-bottom: 1px solid #f3f3f7;
  color: #777c90;
  font-family: var(--font-mono);
  font-size: 9px;
  word-break: break-all;
}

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

.dns-check-box {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
}

.dns-check-box .input {
  height: 37px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.dns-check-box .btn {
  height: 37px;
  flex: 0 0 auto;
}

.dns-result {
  display: none;
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 8px;
  font-size: 9.5px;
  line-height: 1.65;
}

.dns-result.show {
  display: block;
}

.dns-result.ok {
  color: #348264;
  border: 1px solid #d9f0e6;
  background: #f5fcf8;
}

.dns-result.fail {
  color: #a8826a;
  border: 1px solid #f3e6dd;
  background: #fffaf6;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid #ece8fb;
  border-radius: 10px;
  color: #8d88a1;
  background: #fbfaff;
  font-size: 9.5px;
  line-height: 1.7;
}

.callout.warning {
  border-color: #f3e8d3;
  background: #fffdf7;
  color: #9b8b6f;
}

.callout .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: #a292e7;
}

.callout.warning .icon {
  color: #d2a65e;
}

.callout strong {
  color: #625b78;
  font-weight: 600;
}

.callout.warning strong {
  color: #7a6b55;
}

/* =========================================================
   Payment
   ========================================================= */
.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  gap: 17px;
  align-items: start;
}

.payment-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.mode-card {
  position: relative;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  text-align: left;
  transition: all 0.16s ease;
}

.mode-card:hover {
  border-color: #cfc8ff;
}

.mode-card.active {
  border-color: var(--brand);
  background: #faf8ff;
  box-shadow: 0 0 0 3px rgba(102, 87, 245, 0.06);
}

.mode-card .mode-icon {
  width: 31px;
  height: 31px;
  display: grid;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-soft);
}

.mode-card.active .mode-icon {
  color: #fff;
  background: var(--brand);
}

.mode-card .mode-icon .icon {
  width: 16px;
  height: 16px;
}

.mode-card strong {
  display: block;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
}

.mode-card span {
  display: block;
  margin-top: 3px;
  color: #a1a4b4;
  font-size: 9px;
  line-height: 1.55;
}

.mode-radio {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 15px;
  height: 15px;
  border: 1.5px solid #d9dbe5;
  border-radius: 50%;
}

.mode-card.active .mode-radio {
  border: 4.5px solid var(--brand);
}

.payment-banner {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid #efeafc;
  border-radius: 10px;
  color: #7d7695;
  background: #fbf9ff;
  font-size: 10px;
  line-height: 1.7;
}

.payment-banner.green {
  border-color: #dff2eb;
  background: #f8fdfb;
  color: #5d8477;
}

.payment-banner.warning {
  border-color: #f0dfc3;
  background: #fffdf6;
  color: #967b51;
}

.payment-banner.warning .banner-icon {
  color: #c58e39;
  background: #fdf3de;
}

.payment-banner.warning strong {
  color: #7b623b;
}

.payment-banner .banner-icon {
  width: 29px;
  height: 29px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--brand);
  background: #f0edff;
}

.payment-banner.green .banner-icon {
  color: var(--green);
  background: #eaf8f2;
}

.payment-banner .banner-icon .icon {
  width: 15px;
  height: 15px;
}

.payment-banner strong {
  display: block;
  margin-bottom: 2px;
  color: #5e5678;
  font-size: 10.5px;
  font-weight: 600;
}

.payment-banner.green strong {
  color: #3d6b5c;
}

.payment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.payment-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

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

.payment-field label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #73788d;
  font-size: 10px;
  font-weight: 550;
}

.payment-field .input,
.payment-field .textarea {
  font-family: var(--font-mono);
  font-size: 10px;
}

.payment-field .input {
  height: 38px;
}

.payment-field .textarea {
  min-height: 84px;
  line-height: 1.6;
}

.payment-field .hint {
  color: #abb0be;
  font-size: 8.5px;
  line-height: 1.6;
}

.secret-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  color: var(--green);
  font-size: 8px;
  font-weight: 500;
}

.secret-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #f2f2f6;
}

.save-row .config-state {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #9ca0b1;
  font-size: 9.5px;
}

.save-row .config-state.ok {
  color: var(--green);
}

.save-row .config-state .icon {
  width: 13px;
  height: 13px;
}

.webhook-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.webhook-row {
  padding: 10px 11px;
  border: 1px solid #f0eef7;
  border-radius: 8px;
  background: #fcfcfe;
}

.webhook-row-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #888da1;
  font-size: 9px;
}

.webhook-row-head span {
  margin-left: auto;
  color: #b3b6c4;
  font-size: 8px;
}

.webhook-url {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
}

.webhook-url code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #706889;
  font-family: var(--font-mono);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-mini {
  width: 22px;
  height: 22px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 5px;
  color: #a8aabb;
}

.copy-mini:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.copy-mini .icon {
  width: 11px;
  height: 11px;
}

.endpoint-list {
  display: flex;
  flex-direction: column;
}

.endpoint-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f3f7;
}

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

.method-badge {
  width: 39px;
  flex: 0 0 auto;
  padding: 2px 0;
  border-radius: 4px;
  text-align: center;
  color: #7065ad;
  background: #f2efff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
}

.method-badge.post {
  color: #28856b;
  background: #ebf8f2;
}

.endpoint-row code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #73788c;
  font-family: var(--font-mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-row .endpoint-desc {
  display: block;
  margin-top: 2px;
  color: #afb2c0;
  font-family: var(--font);
  font-size: 8px;
  white-space: nowrap;
}

.integration-badge {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 8px;
  font-weight: 600;
}

.integration-badge.reserved {
  color: var(--amber);
}

.security-note {
  display: flex;
  gap: 9px;
  padding: 12px;
  border: 1px solid #f4e9dd;
  border-radius: 9px;
  color: #a2876f;
  background: #fffbf6;
  font-size: 9px;
  line-height: 1.7;
}

.security-note .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: #c39767;
}

/* =========================================================
   Store settings
   ========================================================= */
.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 17px;
  align-items: start;
}

.store-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.store-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  border-bottom: 1px solid #f2f2f6;
  color: #898da1;
  font-size: 9.5px;
}

.store-preview-window {
  padding: 17px;
  background: #f7f5f1;
}

.store-preview-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  color: #827b70;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.store-preview-top .preview-logo {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: #25233a;
  font-size: 10px;
  font-style: italic;
}

.store-preview-top .preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-preview-product {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(41, 35, 31, 0.06);
}

.store-preview-product img {
  width: 105px;
  height: 128px;
  border-radius: 7px;
  object-fit: cover;
}

.store-preview-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.store-preview-info .preview-tag {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #847a6e;
  background: #f5f2eb;
  font-family: var(--font);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.store-preview-info strong {
  color: #302e35;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.store-preview-info span {
  margin-top: 4px;
  color: #9c958c;
  font-size: 8px;
  line-height: 1.5;
}

.store-preview-info b {
  margin-top: 10px;
  color: #2c2930;
  font-family: Georgia, serif;
  font-size: 16px;
}

.store-preview-info b small {
  font-size: 9px;
  font-weight: 400;
}

.store-preview-buy {
  height: 29px;
  display: grid;
  margin-top: 9px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #2b2934;
  font-family: var(--font);
  font-size: 9px;
}

.store-preview-note {
  margin-top: 12px;
  color: #a49d93;
  font-size: 8px;
  line-height: 1.65;
  text-align: center;
}

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

.logo-preview {
  width: 60px;
  height: 60px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #b1a5ff, #6251e8);
  font-family: Georgia, serif;
  font-size: 27px;
  font-style: italic;
}

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

.logo-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.logo-upload-actions span {
  color: #a7aab9;
  font-size: 8.5px;
}

/* =========================================================
   Toast
   ========================================================= */
.toast-root {
  position: fixed;
  z-index: 200;
  top: 22px;
  left: 50%;
  display: flex;
  width: min(92vw, 430px);
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #e8e4f4;
  border-radius: 10px;
  color: #59536d;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 34px rgba(30, 24, 61, 0.13);
  font-size: 11px;
  line-height: 1.5;
  backdrop-filter: blur(12px);
  animation: toastIn 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  pointer-events: auto;
}

.toast.leaving {
  animation: toastOut 0.2s ease both;
}

.toast .toast-icon {
  width: 18px;
  height: 18px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}

.toast.error .toast-icon {
  background: var(--red);
}

.toast.info .toast-icon {
  background: var(--brand);
}

.toast .toast-icon .icon {
  width: 10px;
  height: 10px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-6px); }
}

/* =========================================================
   Misc / error / loader
   ========================================================= */
.page-loader {
  display: flex;
  min-height: 55vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.loader-ring {
  width: 27px;
  height: 27px;
  border: 2px solid #e7e4f3;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.error-state {
  display: flex;
  min-height: 50vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
}

.error-state .empty-icon {
  margin-bottom: 8px;
}

.error-state p {
  max-width: 360px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.error-state .btn {
  margin-top: 14px;
}

.info-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid #eae7f8;
  border-radius: 10px;
  color: #8983a1;
  background: rgba(251, 250, 255, 0.85);
  font-size: 10px;
  line-height: 1.7;
}

.info-hint .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: #a495e9;
}

.info-hint strong {
  color: #645b7e;
  font-weight: 600;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  .collage-card {
    transform: scale(0.9);
  }

  .login-collage {
    right: 24px;
    transform: scale(0.9);
  }

  .stats-grid {
    gap: 11px;
  }

  .stat-card {
    padding: 15px;
    gap: 11px;
  }

  .stat-icon {
    width: 39px;
    height: 39px;
  }

  .stat-value {
    font-size: 22px;
  }

  .data-table col.c-product { width: 29%; }
  .data-table col.c-time { width: 125px; }
  .data-table col.c-sales { width: 110px; }

  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 292px;
  }

  .page-content {
    padding: 24px 25px 50px;
  }

  .topbar {
    padding: 0 25px;
  }
}

@media (max-width: 1120px) {
  .login-visual {
    padding: 38px 34px;
  }

  .login-collage {
    opacity: 0.62;
    right: -20px;
    transform: scale(0.78);
  }

  .login-copy {
    max-width: 460px;
  }

  .login-copy h1 {
    font-size: 46px;
  }

  .editor-layout,
  .domain-layout,
  .payment-layout,
  .store-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .editor-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .aside-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .aside-actions .btn {
    flex: 1;
    min-width: 140px;
  }

  .editor-aside .aside-tip-card {
    grid-column: 1 / -1;
  }

  .domain-hero {
    min-height: 142px;
    padding: 25px;
  }

  .store-layout > .store-preview {
    order: -1;
    max-width: 430px;
  }
}

@media (max-width: 1024px) {
  :root {
    --sidebar-w: 230px;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
    box-shadow: 20px 0 50px rgba(25, 21, 52, 0.1);
  }

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

  .main {
    margin-left: 0;
  }

  .menu-btn {
    display: grid;
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: none;
    background: rgba(28, 24, 50, 0.3);
    backdrop-filter: blur(2px);
  }

  .shell.menu-open .sidebar-scrim {
    display: block;
  }

  .topbar {
    height: 62px;
  }

  .topbar-menu {
    right: 20px;
  }

  .page-content {
    max-width: 100%;
  }

  .login-page {
    padding: 0;
  }

  .login-visual {
    display: none;
  }

  .login-side {
    min-height: 100vh;
    padding: 35px 24px;
    background:
      radial-gradient(circle at 15% 0%, rgba(134, 115, 255, 0.16), transparent 30%),
      radial-gradient(circle at 100% 100%, rgba(248, 187, 213, 0.14), transparent 30%),
      #f7f6fa;
  }

  .login-panel {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 70px rgba(43, 35, 90, 0.09);
    backdrop-filter: blur(18px);
  }

  .login-mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 38px;
  }

  .login-mobile-brand .brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    font-size: 19px;
  }

  .login-mobile-brand div {
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.13em;
  }

  .login-mobile-brand span {
    margin-left: 3px;
    color: var(--muted);
    font-family: var(--font);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.1em;
  }

  .login-panel h2 {
    font-size: 30px;
  }
}

@media (max-width: 820px) {
  .topbar {
    padding: 0 18px;
  }

  .page-content {
    padding: 21px 18px 46px;
  }

  .page-head {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 19px;
  }

  .page-head--form {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions .btn {
    flex: 0 0 auto;
  }

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

  .stat-card {
    min-height: 80px;
    padding: 14px;
  }

  .list-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .tab {
    flex: 0 0 auto;
  }

  .toolbar-right {
    width: 100%;
  }

  .search-box {
    width: auto;
    flex: 1;
  }

  .table-card-head {
    padding: 0 14px;
  }

  .data-table th:first-child,
  .data-table td:first-child {
    padding-left: 14px;
  }

  .data-table th:last-child,
  .data-table td:last-child {
    padding-right: 14px;
  }

  .form-card-head {
    padding: 0 17px;
  }

  .form-card-body {
    padding: 1px 17px;
  }

  .form-row {
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 0;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .category-card {
    min-height: 54px;
    align-items: center;
    padding: 10px 12px;
  }

  .category-card .cat-icon {
    width: 27px;
    height: 27px;
  }

  .editor-aside {
    grid-template-columns: 1fr;
  }

  .domain-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }

  .domain-hero-visual {
    align-items: flex-start;
  }

  .dns-strip {
    grid-template-columns: 1fr;
  }

  .dns-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .dns-step .step-no {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .payment-form-grid {
    grid-template-columns: 1fr;
  }

  .payment-field.full {
    grid-column: auto;
  }

  .order-drawer {
    width: 100vw;
  }

  .table-footer {
    padding: 0 14px;
  }
}

@media (max-width: 620px) {
  .login-side {
    padding: 16px;
    align-items: flex-start;
  }

  .login-panel {
    max-width: 100%;
    margin-top: 12vh;
    padding: 26px 22px;
    border-radius: 18px;
  }

  .login-panel h2 {
    font-size: 27px;
  }

  .login-mobile-brand {
    margin-bottom: 28px;
  }

  .login-panel .welcome {
    margin-bottom: 23px;
  }

  .demo-note {
    align-items: flex-start;
    margin-top: 18px;
  }

  .topbar {
    gap: 8px;
  }

  .breadcrumb {
    display: none;
  }

  .topbar-store-link span {
    display: none;
  }

  .topbar-store-link {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .topbar-avatar-btn .icon {
    display: none;
  }

  .page-title {
    font-size: 23px;
  }

  .page-desc {
    font-size: 11px;
    line-height: 1.65;
  }

  .stat-card {
    align-items: flex-start;
    gap: 9px;
    padding: 13px 12px;
  }

  .stat-icon {
    width: 33px;
    height: 33px;
    border-radius: 9px;
  }

  .stat-icon .icon {
    width: 16px;
    height: 16px;
  }

  .stat-label {
    font-size: 9.5px;
  }

  .stat-value {
    font-size: 21px;
  }

  .stat-hint {
    display: none;
  }

  .stat-arrow {
    display: none;
  }

  .form-card-head {
    min-height: 50px;
  }

  .form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
  }

  .form-row-label {
    padding-top: 0;
    font-size: 11px;
  }

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

  .form-head-actions .btn {
    flex: 1;
  }

  .page-head--form .page-head-left {
    width: 100%;
  }

  .image-thumb,
  .upload-box,
  .uploading-thumb {
    width: 84px;
    height: 84px;
  }

  .inline-form .input {
    width: 88px;
  }

  .spec-head {
    flex-wrap: wrap;
  }

  .spec-head-label {
    display: none;
  }

  .spec-name-input {
    width: 100%;
    order: 3;
  }

  .spec-value {
    width: calc(50% - 4px);
  }

  .spec-values {
    gap: 7px;
  }

  .editor-aside {
    gap: 11px;
  }

  .aside-card {
    padding: 15px;
  }

  .form-heading h1 {
    font-size: 22px;
  }

  .editor-note {
    display: none;
  }

  .domain-hero {
    padding: 20px;
    border-radius: 16px;
  }

  .domain-hero h2 {
    font-size: 21px;
  }

  .domain-hero p {
    font-size: 9.5px;
  }

  .domain-hero-url {
    font-size: 9px;
  }

  .domain-card-head {
    padding: 15px 16px;
  }

  .domain-card-body {
    padding: 16px;
  }

  .domain-input-group {
    flex-wrap: wrap;
  }

  .domain-prefix,
  .domain-suffix {
    height: 38px;
    width: 100%;
    border: 0;
    background: transparent;
  }

  .domain-prefix {
    padding-bottom: 0;
  }

  .domain-input-group input {
    height: 38px;
    border-top: 1px solid #f2f2f6;
    border-bottom: 1px solid #f2f2f6;
  }

  .domain-suffix {
    border-top: 1px solid #f2f2f6;
  }

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

  .domain-form-actions,
  .save-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .domain-form-actions .btn,
  .save-row .btn {
    width: 100%;
  }

  .order-drawer .drawer-head {
    padding: 0 16px;
  }

  .drawer-scroll {
    padding: 13px;
  }

  .drawer-footer {
    padding: 12px;
  }

  .modal {
    max-height: calc(100vh - 36px);
    overflow-y: auto;
  }

  .modal-head {
    padding: 18px 18px 0;
  }

  .modal-body {
    padding: 15px 18px 17px;
  }

  .modal-foot {
    padding: 12px 18px;
  }

  .toast-root {
    top: 12px;
  }

  .table-card-head {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }

  .batch-bar {
    flex-wrap: wrap;
    padding: 9px 14px;
  }

  .batch-bar .batch-actions {
    width: 100%;
  }

  .dns-table {
    display: block;
    overflow-x: auto;
  }

  .dns-check-box {
    flex-wrap: wrap;
  }

  .dns-check-box .btn {
    width: 100%;
  }

  .logo-upload-row {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
