:root {
  --brand-red: #E94244;
  --brand-gold: #FFCA01;
  --brand-peach: #A65A2A;
  --ink: #1C1917;
  --ink-soft: #5C534A;
  --ink-mute: #8A847C;
  --cream: #F6F3ED;
  --glass: rgba(255, 252, 247, 0.46);
  --glass-strong: rgba(255, 250, 244, 0.72);
  --glass-chip: rgba(255, 255, 255, 0.38);
  --glass-line: rgba(255, 255, 255, 0.78);
  --glass-edge: rgba(80, 52, 32, 0.08);
  --glass-blur: 28px;
  --glass-sat: 190%;
  --glass-shadow:
    0 18px 50px rgba(80, 42, 24, 0.08),
    0 2px 8px rgba(80, 42, 24, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

body.is-glass {
  color: var(--ink-soft);
  background: var(--cream);
}

body.is-glass h1,
body.is-glass h2,
body.is-glass h3,
body.is-glass .title {
  color: var(--ink);
}

.glass-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(233, 66, 68, 0.22), transparent 58%),
    radial-gradient(780px 460px at 92% 0%, rgba(255, 202, 1, 0.42), transparent 55%),
    radial-gradient(640px 480px at 78% 100%, rgba(166, 90, 42, 0.16), transparent 58%),
    linear-gradient(180deg, #FBF6EE 0%, #F3EEE6 100%);
}

.glass-sky .orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(8px);
  animation: glass-drift 22s ease-in-out infinite;
}

.orb-a {
  width: 420px;
  height: 420px;
  left: -120px;
  top: 18%;
  background: radial-gradient(circle at 35% 35%, rgba(233, 66, 68, 0.55), rgba(233, 66, 68, 0));
}

.orb-b {
  width: 520px;
  height: 520px;
  right: -160px;
  top: -90px;
  animation-delay: -7s;
  background: radial-gradient(circle at 40% 40%, rgba(255, 202, 1, 0.7), rgba(255, 202, 1, 0));
}

.orb-c {
  width: 380px;
  height: 380px;
  right: 18%;
  bottom: -120px;
  animation-delay: -13s;
  background: radial-gradient(circle at 40% 40%, rgba(255, 138, 76, 0.45), rgba(255, 138, 76, 0));
}

@keyframes glass-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(28px, 18px, 0) scale(1.08); }
}

body.is-glass .wrapper {
  position: relative;
  z-index: 1;
}

body.is-glass .header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0 8px;
  border-bottom: 0;
  background: transparent;
}

body.is-glass .header .container {
  max-width: 1240px;
}

body.is-glass .header__row {
  padding: 8px 10px 8px 18px;
  border-radius: var(--radius-xl);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
}

body.is-glass .menu a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

body.is-glass .menu a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
}

body.is-glass .menu a.is-active {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(233, 66, 68, 0.18) 0%, rgba(255, 202, 1, 0.28) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.is-glass .notifications-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.is-glass .notifications-quantity {
  background: linear-gradient(180deg, var(--brand-red), var(--brand-gold));
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

body.is-glass .user-thumb__img {
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 12px rgba(80, 42, 24, 0.12);
}

body.is-glass .user-menu {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

body.is-glass .user-menu__section {
  border-bottom-color: rgba(80, 52, 32, 0.08);
}

body.is-glass .footer {
  margin-top: 0;
  padding: 28px 0 36px;
  background: transparent;
}

body.is-glass .copy {
  color: var(--ink-mute);
}

body.is-glass .button-accent-bg {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 22px rgba(233, 66, 68, 0.22);
}

body.is-glass .button-gray-bd {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.page-shell {
  padding: 28px 0 64px;
  background: transparent;
  min-height: calc(100vh - 180px);
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-intro .title {
  margin: 0 0 8px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-peach);
}

.lede {
  margin: 0;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

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

.stat-card,
.panel,
.product-card,
.mod-card,
.login-card,
.demo-account,
.chip,
.dropzone,
body.is-glass .category-thumb,
body.is-glass .vendor {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
}

.stat-card .k {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-mute);
  font-size: 13px;
}

.stat-card .v {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat-card .s {
  display: block;
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 12px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 20px;
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel__head .title-2 {
  margin: 0;
}

.panel__meta {
  color: var(--ink-mute);
  font-size: 13px;
}

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

.order-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(80, 52, 32, 0.08);
}

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

.order-row b {
  font-weight: 600;
  color: var(--ink);
}

.order-row span {
  color: var(--ink-soft);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.45);
  color: #5C534A;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.badge-new, .badge-processing { background: rgba(255, 202, 1, 0.28); color: #8A5800; }
.badge-shipped { background: rgba(47, 84, 235, 0.12); color: #1D4ED8; }
.badge-done { background: rgba(18, 183, 106, 0.16); color: #067647; }
.badge-cancelled { background: rgba(233, 66, 68, 0.14); color: #B42318; }

.action-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.action-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(80, 52, 32, 0.08);
}

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

.action-list a {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.action-list span {
  display: block;
  margin-top: 4px;
  color: var(--ink-mute);
  font-size: 13px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 8px;
}

.activity-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid rgba(80, 52, 32, 0.08);
}

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

.activity-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #D0C8BB;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}

.activity-dot.pending { background: #F79009; }
.activity-dot.order { background: #2F54EB; }
.activity-dot.ok { background: #12B76A; }
.activity-dot.reject { background: var(--brand-red); }
.activity-dot.draft { background: #98A2B3; }

.activity-row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

.activity-row time {
  color: var(--ink-mute);
  font-size: 12px;
  white-space: nowrap;
}

.order-row .who {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 13px;
}

.demo-accounts {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
}

.demo-account {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}

.demo-account:hover {
  border-color: rgba(233, 66, 68, 0.45);
  transform: translateY(-1px);
}

.demo-account b {
  font-size: 14px;
  color: var(--ink);
}

.demo-account span {
  font-size: 12px;
  color: var(--ink-mute);
}

.product-card__qty {
  display: block;
  margin-top: 2px;
  color: var(--ink-mute);
  font-size: 12px;
}

.notifications-btn { text-decoration: none; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 18px;
}

.search--wide {
  flex: 1 1 280px;
}

.search--wide .field-input {
  padding-left: 42px;
}

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

.chip {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: #4A4540;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.chip.is-active {
  border-color: rgba(233, 66, 68, 0.35);
  background: linear-gradient(180deg, rgba(233, 66, 68, 0.16), rgba(255, 202, 1, 0.28));
  color: #C43335;
}

.catalog-count {
  margin: 0 0 14px;
  color: var(--ink-mute);
  font-size: 13px;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.product-card__img {
  height: 180px;
  background: rgba(255, 255, 255, 0.28);
}

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

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  flex: 1;
}

.product-card__body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.product-card__meta {
  color: var(--ink-mute);
  font-size: 13px;
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.product-card__price {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.product-card__actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45) url("../img/icons/edit-01.svg") center / 16px no-repeat;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.icon-btn.delete {
  background-image: url("../img/icons/trash-01.svg");
}

.status {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  font-weight: 500;
}

.status small {
  font-weight: 400;
  color: var(--ink-mute);
}

.status-draft { color: #667085; }
.status-pending { color: #B54708; }
.status-approved { color: #067647; }
.status-rejected { color: #B42318; }

.product-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 14px;
  align-items: start;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

.field-label,
.label {
  font-size: 13px;
  font-weight: 500;
  color: #3F3A35;
}

.field-input,
.login .field-input,
select.field-input,
body.is-glass .input,
body.is-glass .textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  appearance: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.field-area,
body.is-glass .textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  min-height: 96px;
}

.field-input:focus,
.code-digit:focus,
body.is-glass .input:focus,
body.is-glass .textarea:focus {
  outline: none;
  border-color: rgba(255, 202, 1, 0.85);
  box-shadow: 0 0 0 4px rgba(255, 202, 1, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.field-hint {
  margin: 8px 0 0;
  color: var(--ink-mute);
  font-size: 13px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.dropzone {
  border-style: dashed;
  border-color: rgba(166, 90, 42, 0.22);
  border-radius: 18px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
}

.dropzone.is-over {
  border-color: rgba(233, 66, 68, 0.55);
  background: linear-gradient(180deg, rgba(233, 66, 68, 0.1), rgba(255, 202, 1, 0.16));
}

.dropzone__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #5C534A;
}

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

.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: grab;
  background: rgba(255, 255, 255, 0.28);
}

.thumb.is-cover::after {
  content: "Обложка";
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  background: rgba(28, 25, 23, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
}

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

.thumb button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  cursor: pointer;
}

.moderation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mod-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-xl);
}

.mod-card img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 14px;
}

.mod-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.mod-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.moderation-btns {
  display: flex;
  gap: 8px;
}

body.is-glass .login {
  padding: 8vh 0 10vh;
}

body.is-glass .login__center {
  max-width: 400px;
}

.login-hero {
  display: none;
}

.login-form {
  text-align: left;
}

.login-card .title,
.login-card .subtext {
  text-align: center;
}

.login .field-label {
  display: block;
  text-align: left;
}

@media (min-width: 1024px) {
  body.login-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  body.login-page .glass-sky {
    background:
      radial-gradient(1100px 640px at 12% -12%, rgba(233, 66, 68, 0.28), transparent 55%),
      radial-gradient(900px 560px at 88% 8%, rgba(255, 202, 1, 0.48), transparent 52%),
      radial-gradient(720px 520px at 42% 110%, rgba(166, 90, 42, 0.18), transparent 58%),
      linear-gradient(180deg, #FBF6EE 0%, #F3EEE6 100%);
  }

  body.login-page .orb-a {
    width: 560px;
    height: 560px;
    left: -80px;
    top: 8%;
  }

  body.login-page .orb-b {
    width: 680px;
    height: 680px;
    right: -120px;
    top: -160px;
  }

  body.login-page .wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
  }

  body.login-page.is-glass .header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 28px 0 0;
    background: transparent;
    border: 0;
    pointer-events: none;
  }

  body.login-page.is-glass .header .container {
    max-width: none;
    padding-left: 48px;
    padding-right: 48px;
  }

  body.login-page.is-glass .header__row {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.login-page.is-register {
    height: auto;
    overflow: auto;
  }

  body.login-page.is-register .wrapper {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  body.login-page .header .logo,
  body.login-page .header .logo a,
  body.login-page .header .menu,
  body.login-page .header .menu-toggle {
    pointer-events: auto;
  }

  body.login-page .menu {
    display: block;
  }

  body.login-page .header .logo .img {
    height: 40px;
    width: auto;
  }

  body.login-page .content.login-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(460px, 0.85fr);
    flex: 1;
    min-height: 100vh;
    min-height: 100dvh;
  }

  body.login-page .login-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 96px 56px 96px 72px;
    max-width: 760px;
  }

  body.login-page .login-hero .eyebrow {
    margin-bottom: 18px;
    font-size: 14px;
  }

  body.login-page .login-hero__title {
    margin: 0 0 18px;
    font-size: clamp(40px, 4.6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 600;
    color: var(--ink);
  }

  body.login-page .login-hero__lede {
    margin: 0 0 40px;
    max-width: 460px;
    font-size: 18px;
    line-height: 1.45;
    color: var(--ink-soft);
  }

  body.login-page .login-hero__mosaic {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: 160px 160px;
    gap: 16px;
    width: min(100%, 520px);
  }

  body.login-page .login-hero__shot {
    margin: 0;
    overflow: hidden;
    border-radius: 28px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border: 1px solid var(--glass-line);
    box-shadow: var(--glass-shadow);
  }

  body.login-page .login-hero__shot:first-child {
    grid-row: 1 / span 2;
  }

  body.login-page .login-hero__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.login-page.is-glass .login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 56px 72px 24px;
    min-height: 100vh;
    min-height: 100dvh;
  }

  body.login-page.is-glass .login__center {
    max-width: 440px;
    width: 100%;
    margin: 0;
  }

  body.login-page .login-card {
    padding: 44px 40px 36px;
    border-radius: 36px;
  }

  body.login-page .login-card .title-1 {
    font-size: 32px;
    letter-spacing: -0.03em;
  }

  body.login-page .code-digit {
    width: 72px;
    height: 80px;
  }

  body.login-page.is-glass .footer {
    position: absolute;
    left: 72px;
    bottom: 20px;
    margin: 0;
    padding: 0;
    text-align: left;
  }

  body.login-page .footer .container {
    padding: 0;
    max-width: none;
  }

  body.login-page.is-glass .login {
    overflow-y: auto;
  }
}

@media (min-width: 1024px) and (max-height: 820px) {
  body.login-page .login-hero {
    padding: 72px 48px 64px 56px;
  }

  body.login-page .login-hero__title {
    font-size: 42px;
  }

  body.login-page .login-hero__lede {
    margin-bottom: 24px;
    font-size: 16px;
  }

  body.login-page .login-hero__mosaic {
    grid-template-rows: 108px 108px;
    gap: 12px;
  }

  body.login-page.is-glass .login {
    padding: 64px 40px 48px 16px;
  }

  body.login-page .login-card {
    padding: 28px 32px 24px;
  }

  body.login-page .login__logo .img {
    margin-bottom: 16px;
  }
}

.login-card {
  border-radius: 32px;
  padding: 36px 28px 32px;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 22px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.auth-switch button {
  height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.auth-switch button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(80, 42, 24, 0.08);
}

.login-form .field-label {
  margin-top: 12px;
}

.login-form .field-label:first-of-type {
  margin-top: 0;
}

.js-register-error {
  margin: 10px 0 0;
}

.login-step { display: none; }
.login-step.is-active { display: block; }

.login-demo {
  margin: -12px 0 20px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 202, 1, 0.28);
  border: 1px solid rgba(255, 202, 1, 0.45);
  color: #8A5800;
  font-size: 14px;
}

.code-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.code-digit {
  width: 64px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.38);
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.link-btn {
  border: 0;
  background: none;
  color: #C43335;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.login-step.is-error .code-digit {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.product-grid .empty,
.moderation-list .empty,
.order-list .empty,
.activity-list .empty {
  grid-column: 1 / -1;
  padding: 28px 12px;
  text-align: center;
  color: var(--ink-mute);
}

body.is-glass .category-thumb {
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
}

body.is-glass .category-thumb:not(.is-hidden):hover {
  outline: 0;
  box-shadow: var(--glass-shadow);
  transform: translateY(-2px);
}

body.is-glass .category-thumb:not(.is-hidden):hover .category-thumb__title {
  color: var(--ink);
}

body.is-glass .vendors-list {
  display: grid;
  gap: 10px;
}

body.is-glass .vendor {
  border-bottom: 0;
  border-radius: var(--radius-xl);
  padding: 16px 18px;
}

body.is-glass .modal {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
}

body.is-glass .fancybox-bg {
  background: rgba(246, 243, 237, 0.42);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

body.is-glass .fancybox-is-open .fancybox-bg {
  opacity: 1;
}

.ship-soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
}

.ship-soon b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.ship-soon p {
  margin: 0;
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.ship-soon__partners {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.ship-soon__partners span {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(233, 66, 68, 0.14), rgba(255, 202, 1, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.ship-stats {
  margin-bottom: 18px;
}

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

.ship-block {
  margin-bottom: 28px;
}

.ship-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 14px;
}

.ship-block__head .title-2 {
  margin: 0;
}

.ship-card {
  padding: 18px 18px 16px;
  border-radius: var(--radius-xl);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
}

.ship-card__top {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.ship-card__img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
}

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

.ship-card__code {
  margin-bottom: 4px;
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ship-card__info h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
}

.ship-card__info p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.ship-card__pay {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.ship-card__pay b {
  font-size: 20px;
  color: var(--ink);
}

.ship-escrow {
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 202, 1, 0.28);
  color: #8A5800;
  font-size: 11px;
  font-weight: 600;
}

.ship-escrow.is-paid {
  background: rgba(18, 183, 106, 0.16);
  color: #067647;
}

.badge-ship-created { background: rgba(255, 255, 255, 0.5); color: #5C534A; }
.badge-ship-in_transit { background: rgba(47, 84, 235, 0.12); color: #1D4ED8; }
.badge-ship-pickup { background: rgba(255, 202, 1, 0.32); color: #8A5800; }
.badge-ship-delivered { background: rgba(18, 183, 106, 0.16); color: #067647; }
.badge-ship-return { background: rgba(233, 66, 68, 0.14); color: #B42318; }

.ship-track {
  position: relative;
  margin: 22px 8px 8px;
}

.ship-track__bar {
  position: absolute;
  top: 17px;
  left: 12%;
  right: 12%;
  height: 3px;
  border-radius: var(--radius-pill);
  background: rgba(80, 52, 32, 0.1);
  overflow: hidden;
}

.ship-track__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-gold));
}

.ship-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.ship-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.ship-step__ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ship-step__ic svg {
  width: 18px;
  height: 18px;
}

.ship-step__label {
  max-width: 140px;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
}

.ship-step.is-done .ship-step__ic,
.ship-step.is-current .ship-step__ic {
  background: linear-gradient(180deg, var(--brand-red), var(--brand-gold));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 16px rgba(233, 66, 68, 0.22);
}

.ship-step.is-current .ship-step__ic {
  box-shadow: 0 0 0 6px rgba(233, 66, 68, 0.14), 0 8px 16px rgba(233, 66, 68, 0.22);
}

.ship-step.is-done .ship-step__label,
.ship-step.is-current .ship-step__label {
  color: var(--ink);
}

.ship-step.is-return .ship-step__ic {
  background: #F04438;
  box-shadow: 0 0 0 6px rgba(240, 68, 56, 0.14);
}

.ship-card__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(80, 52, 32, 0.08);
}

.ship-meta b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ship-meta span {
  color: var(--ink);
  font-size: 14px;
}

.ship-meta.is-wait span {
  color: #8A5800;
}

a.shop-row {
  color: inherit;
  text-decoration: none;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.shop-row:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 54px rgba(80, 42, 24, 0.12),
    0 2px 8px rgba(80, 42, 24, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
}

.shop-mini b { color: var(--ink); }
.shop-mini .bad b { color: var(--brand-red); }
.shop-mini .warn b { color: var(--brand-peach); }
.shop-mini--lg { margin: 8px 0 22px; font-size: 15px; gap: 12px 22px; }

.shop-flag { margin: 8px 0 0; font-size: 13px; }
.shop-flag.danger { color: var(--brand-red); }
.shop-flag.warn { color: var(--brand-peach); }

.grade-pill {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  white-space: nowrap;
}

.grade-pill.grade-reliable { background: rgba(58, 163, 106, 0.2); color: #1f6b40; }
.grade-pill.grade-ok { background: rgba(255, 202, 1, 0.45); }
.grade-pill.grade-watch,
.grade-pill.grade-risk { background: rgba(233, 66, 68, 0.16); color: #9f1d22; }

a.shop-row.grade-risk,
a.shop-row.grade-watch {
  outline: 1px solid rgba(233, 66, 68, 0.22);
}

.shop-banner {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.shop-banner.danger {
  background: rgba(233, 66, 68, 0.12);
  color: #9f1d22;
}

.shop-banner.warn {
  background: rgba(255, 202, 1, 0.28);
  color: #8A5800;
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover { color: var(--ink); }

.js-shop-page .glass-panel {
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
}

.js-shop-page .glass-panel h3 { margin: 0 0 8px; }
.js-shop-page .glass-panel .subtext { margin: 0 0 12px; }
.js-shop-page .glass-panel.is-danger { outline: 1px solid rgba(233, 66, 68, 0.28); }
.js-shop-page .glass-panel .button { margin-top: 12px; }
.js-shop-page .glass-panel.is-danger .button {
  background: var(--brand-red);
  color: #fff;
  border: 0;
}

.hour-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.hour-pills .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-size: 13px;
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}

.shop-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-timeline li {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-line);
}

.shop-timeline .chip {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 202, 1, 0.4);
  font-size: 12px;
}

.js-shop-page .title-2 { margin: 8px 0 12px; }

@media (max-width: 1100px) {
  .stat-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid, .product-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .page-intro, .form-actions { flex-direction: column; align-items: stretch; }
  .stat-grid, .product-grid, .field-grid, .thumb-grid { grid-template-columns: 1fr; }
  .mod-card { grid-template-columns: 1fr; }
  body.is-glass .header__row { padding: 8px 10px; overflow: visible; }
  .ship-soon, .ship-card__top, .ship-card__foot { display: grid; grid-template-columns: 1fr; }
  .ship-card__pay { align-items: flex-start; text-align: left; }
  .ship-step__label { font-size: 11px; }
  .ship-soon__partners { justify-content: flex-start; }
}

@media screen and (max-width: 991px) {
  body.is-glass .header {
    overflow: visible;
  }
  body.is-glass .header__row {
    overflow: visible;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255, 250, 244, 0.94);
  }
  body.is-glass .menu {
    inset: 0;
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100dvh;
    padding: 88px 22px calc(32px + env(safe-area-inset-bottom));
    background: #f6f3ed;
    font-size: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.is-glass .menu ul > li {
    padding: 0;
  }
  body.is-glass .menu a {
    display: block;
    padding: 14px 16px;
    font-size: 18px;
    border-radius: 16px;
  }
  body.is-glass .menu-toggle {
    position: relative;
    z-index: 120;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .stat-card,
  .panel,
  .product-card,
  .mod-card,
  .login-card,
  .chip,
  .dropzone,
  .demo-account,
  body.is-glass .header__row,
  body.is-glass .category-thumb,
  body.is-glass .vendor,
  body.is-glass .user-menu,
  body.is-glass .modal {
    background: rgba(255, 250, 244, 0.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-sky .orb { animation: none; }
}
