*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-deep: #070a12;
  --bg-card: rgba(18, 24, 38, 0.72);
  --stroke: rgba(148, 163, 184, 0.18);
  --text: #e8edf5;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-dim: rgba(56, 189, 248, 0.15);
  --accent-hot: #a78bfa;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --danger: #fca5a5;
  --ok-bg: rgba(52, 211, 153, 0.12);
  --ok: #6ee7b7;
  --info-bg: rgba(96, 165, 250, 0.12);
  --info: #93c5fd;
  --radius: 14px;
  --font: "DM Sans", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  /* Fallbacks if :root vars fail to apply (avoids “all white” / invisible UI text). */
  color: #e8edf5;
  color: var(--text);
  background-color: #070a12;
  background: var(--bg-deep);
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-a {
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.5) 0%, transparent 65%);
}

.bg-glow-b {
  bottom: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.45) 0%, transparent 65%);
}

.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 2.35rem 1.65rem 1.6rem;
  background-color: rgba(18, 24, 38, 0.92);
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(56, 189, 248, 0.06);
  backdrop-filter: blur(16px);
}

.card.cabinet {
  padding-top: 1.5rem;
}

.lang-switch {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.lang-flag {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.lang-link__text {
  line-height: 1;
}

.lang-link:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}

.lang-link.active {
  color: var(--accent);
}

.lang-sep {
  color: #475569;
  user-select: none;
  opacity: 0.85;
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
  width: 100%;
}

.card-header-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.card-header-lang-inline {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.card-header-lang-inline .lang-switch {
  position: static;
  top: auto;
  right: auto;
  line-height: 1;
}

.card-header-login {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 2px 0 0;
  max-width: 100%;
  width: fit-content;
  padding: 0.27rem 0.6rem 0.27rem 0.39rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  word-break: break-all;
  min-width: 0;
  border-radius: 999px;
  color: #e0f2fe;
  background:
    radial-gradient(ellipse 100% 120% at 15% -20%, rgba(56, 189, 248, 0.22), transparent 55%),
    linear-gradient(155deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.72) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.08),
    0 3px 14px rgba(56, 189, 248, 0.12),
    0 8px 28px rgba(15, 23, 42, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-header-login__pulse {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow:
    0 0 7px rgba(74, 222, 128, 0.85),
    0 0 16px rgba(52, 211, 153, 0.45);
  animation: card-header-login-pulse 2.4s ease-in-out infinite;
}

@keyframes card-header-login-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 7px rgba(74, 222, 128, 0.85),
      0 0 16px rgba(52, 211, 153, 0.45);
  }
  50% {
    opacity: 0.88;
    transform: scale(0.92);
    box-shadow:
      0 0 11px rgba(74, 222, 128, 0.95),
      0 0 22px rgba(52, 211, 153, 0.35);
  }
}

.card-header-login__name {
  min-width: 0;
  background: linear-gradient(110deg, #f1f5f9 0%, #bae6fd 45%, #ddd6fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-header-login:hover {
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.12),
    0 4px 20px rgba(56, 189, 248, 0.2),
    0 11px 34px rgba(15, 23, 42, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

@media (prefers-reduced-motion: reduce) {
  .card-header-login__pulse {
    animation: none;
  }
}

.card-header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: nowrap;
  margin-bottom: 0;
}

.toolbar-icons-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.2rem;
  justify-content: flex-end;
  flex-shrink: 0;
  min-height: 32px;
  line-height: 0;
}

.toolbar-profile-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-right: 0.15rem;
}

.toolbar-balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 0.55rem;
  box-sizing: border-box;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #86efac;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.08);
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.toolbar-balance:hover {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.4);
  color: #bbf7d0;
}

.card-header-nav-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-shrink: 0;
  min-height: 32px;
}

/* Новости и магазин — одна высота с иконками (32px) */
.card-header .btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  height: 32px;
  min-height: 32px;
  padding: 0 0.9rem;
  box-sizing: border-box;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--stroke);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
}

.card-header .btn-nav:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.35);
}

.card-header .btn-nav.is-active {
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.1);
}

.news-placeholder {
  margin-top: 0.25rem;
  flex: 1 1 auto;
}

/* Страница новостей — на всю высоту окна */
body.page-news .wrap.wrap--news-full {
  min-height: 100vh;
  align-items: stretch;
}

body.page-news .card.cabinet.news-page {
  min-height: calc(100vh - 1.5rem);
}

body.page-news .news-page-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.page-news .news-placeholder {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 0;
  min-height: 12rem;
}

body.page-rules .wrap.wrap--news-full {
  min-height: 100vh;
  align-items: stretch;
}

body.page-rules .card.cabinet.rules-page {
  min-height: calc(100vh - 1.5rem);
}

.rules-page-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.75rem;
}

.rules-page__article {
  flex: 1 1 auto;
  min-height: 0;
}

.rules-page__body {
  margin: 0;
  padding: 1rem 1.1rem;
  max-height: min(70vh, 42rem);
  overflow: auto;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.45);
}

.admin-textarea--rules {
  width: 100%;
  min-height: 22rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.8rem;
  line-height: 1.45;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.news-item__inner {
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.news-item__time {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.news-item__title {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #cbd5e1;
  line-height: 1.3;
}

.news-item__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #94a3b8;
  white-space: pre-wrap;
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.news-pagination__status {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.news-pagination__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.news-pagination__link:hover:not(.news-pagination__link--disabled) {
  background: rgba(56, 189, 248, 0.12);
}

.news-pagination__link--disabled {
  color: #475569;
  cursor: default;
}

/* Страница магазина — как новости */
body.page-shop .wrap.wrap--shop-full {
  min-height: 100vh;
  align-items: stretch;
}

body.page-shop .card.cabinet.shop-page {
  min-height: calc(100vh - 1.5rem);
}

body.page-shop .shop-page-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.page-shop .shop-placeholder {
  flex: 0 0 auto;
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  margin-top: auto;
  color: #64748b;
}

.shop-catalog-empty {
  flex: 0 0 auto;
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  margin-top: 0.75rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.shop-catalog-empty__lead {
  margin: 0 0 0.45rem;
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.92rem;
}
.shop-catalog-empty__hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #94a3b8;
}

.shop-filters-section {
  margin-top: 0.35rem;
  padding: 0;
  max-width: min(96rem, 100%);
  border-radius: 14px;
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.65) 0%,
    rgba(12, 18, 32, 0.5) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.shop-filters__head {
  padding: 0.85rem 1rem 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.shop-filters__title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #64748b;
}

.shop-filters__lead {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #94a3b8;
}

.shop-filters-form {
  padding: 0;
}

.shop-filters-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Слева: доставка + цена + SKU столбиком; справа: топ селлеров — одна сетка, верх совпадает */
.shop-filters__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: stretch;
}

@media (max-width: 959px) {
  .shop-filters__columns {
    grid-template-columns: 1fr;
  }
}

.shop-filters__col--fields {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

.shop-filters__col--fields .shop-filters__ship-price-stack {
  flex-shrink: 0;
}

.shop-filter-group {
  padding: 0.75rem 1rem 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.shop-filters__col--fields .shop-filter-group {
  padding: 0.5rem 0.75rem 0.55rem;
}

.shop-filters__col--fields .shop-filter-group__title {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
}

.shop-filters__col--fields .shop-filter-group__hint,
.shop-filters__col--fields .shop-field__sublabel {
  font-size: 0.62rem;
  line-height: 1.32;
}

.shop-filters__col--fields .shop-field {
  gap: 0.3rem;
}

/* Price sits under Shipping in .shop-filters__ship-price-stack (see below) */

/* Shipping fields + top sellers leaderboard */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shop-filters__ship-price-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shop-filter-group--price-row {
  padding-top: 0.25rem;
}

/* Отступы как у .shop-filters__col--fields .shop-filter-group — вровень с левой колонкой фильтров */
.shop-top-sellers {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.5rem 0.75rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: linear-gradient(
    160deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(30, 27, 75, 0.35) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  min-height: 100%;
}

.shop-top-sellers__title {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a8b5c9;
}

.shop-top-sellers__hint {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  line-height: 1.32;
  color: #64748b;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shop-top-sellers__table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 -0.15rem;
  padding: 0 0.15rem;
}

.shop-sellers-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
  line-height: 1.25;
}

.shop-sellers-col-check {
  width: 5%;
}

.shop-sellers-col-rank {
  width: 8%;
}

.shop-sellers-col-name {
  width: 38%;
}

.shop-sellers-col-rating {
  width: 34%;
}

.shop-sellers-col-sales {
  width: 15%;
}

.shop-sellers-table thead th {
  padding: 0.28rem 0.22rem;
  text-align: start;
  font-weight: 700;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: rgba(15, 23, 42, 0.97);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  white-space: nowrap;
}

.shop-sellers-table tbody td {
  padding: 0.28rem 0.22rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.07);
  color: #cbd5e1;
  vertical-align: middle;
}

.shop-sellers-table tbody tr:last-child td {
  border-bottom: none;
}

.shop-sellers-table__th-check,
.shop-sellers-table__check {
  width: 1.75rem;
  text-align: center;
  vertical-align: middle;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

.shop-sellers-table__check .shop-table-check {
  margin: 0 auto;
}

.shop-sellers-table__th-rank,
.shop-sellers-table__rank {
  width: 2.85rem;
  text-align: start;
  font-variant-numeric: tabular-nums;
  color: #64748b;
}

.shop-seller-rank-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-start;
}

.shop-seller-medal {
  display: inline-block;
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.45);
}

.shop-seller-medal--gold {
  background: radial-gradient(
    circle at 30% 25%,
    #fde68a 0%,
    #eab308 38%,
    #a16207 100%
  );
  border: 1px solid rgba(234, 179, 8, 0.85);
}

.shop-seller-medal--silver {
  background: radial-gradient(
    circle at 30% 25%,
    #f8fafc 0%,
    #94a3b8 45%,
    #475569 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.85);
}

.shop-seller-medal--bronze {
  background: radial-gradient(
    circle at 30% 25%,
    #fdba74 0%,
    #c2410c 48%,
    #7c2d12 100%
  );
  border: 1px solid rgba(180, 83, 9, 0.85);
}

.shop-sellers-table__rank-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
}

.shop-sellers-table__name {
  max-width: min(12rem, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: #e2e8f0;
}

.shop-sellers-table__th-rating,
.shop-sellers-table__rating-cell {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.shop-sellers-col-sales {
  width: 7.4rem;
}

.shop-sellers-table thead .shop-sellers-table__th-sales,
.shop-sellers-table tbody .shop-sellers-table__sales {
  text-align: right;
  white-space: nowrap;
  padding-right: 0.45rem;
  padding-left: 0.1rem;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
}

.shop-sellers-table__sales-num {
  display: inline-block;
  min-width: 5ch;
  text-align: end;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.shop-seller-rating-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fde68a;
  margin-bottom: 0.12rem;
}

.shop-seller-stars-bar {
  position: relative;
  display: inline-block;
  max-width: 100%;
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.shop-seller-stars-bar__track {
  color: rgba(51, 65, 85, 0.95);
}

.shop-seller-stars-bar__fill {
  position: absolute;
  left: 0;
  top: 0;
  color: #fbbf24;
  overflow: hidden;
  white-space: nowrap;
  width: calc((var(--rating, 0)) / 5 * 100%);
  pointer-events: none;
}

.shop-filter-group--skus {
  margin: 0;
}

@media (max-width: 639px) {
  .shop-filter-group--skus {
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  }
}

@media (min-width: 640px) {
  .shop-filter-group--skus {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 1rem;
    box-sizing: border-box;
  }

  .shop-filter-group--skus .shop-field--skus {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .shop-filter-group--skus .shop-textarea {
    flex: 1 1 auto;
    min-height: 6.5rem;
  }
}

.shop-filter-group__title {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #a8b5c9;
}

.shop-filter-group__hint {
  margin: -0.15rem 0 0.45rem;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #64748b;
  max-width: none;
}

.shop-field--skus {
  width: 100%;
}

.shop-field--levels-inline {
  min-width: 0;
  justify-self: end;
  text-align: end;
  align-self: end;
}

.shop-level-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  max-width: 100%;
}

.shop-level-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.shop-level-chip__input {
  position: absolute;
  opacity: 0;
  width: 0.85rem;
  height: 0.85rem;
  margin: 0;
  cursor: pointer;
}

.shop-level-chip__face {
  display: inline-block;
  padding: 0.32rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(7, 10, 18, 0.55);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  color: #94a3b8;
  line-height: 1.2;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}

.shop-level-chip:hover .shop-level-chip__face {
  border-color: rgba(99, 102, 241, 0.45);
  color: #cbd5e1;
}

.shop-level-chip__input:focus-visible + .shop-level-chip__face {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.shop-level-chip__input:checked + .shop-level-chip__face {
  border-color: rgba(99, 102, 241, 0.65);
  background: rgba(79, 70, 229, 0.22);
  color: #e0e7ff;
}

.shop-textarea {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 5rem;
  resize: vertical;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(7, 10, 18, 0.45);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.18);
  padding: 0.5rem 0.6rem;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  color: #cbd5e1;
  color-scheme: dark;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.shop-textarea::placeholder {
  color: #475569;
  font-family: inherit;
}

.shop-textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.18),
    0 0 0 3px var(--accent-dim);
}

.shop-location-summary__bit--sku {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  color: #a5b4fc;
}

.shop-filter-group__grid {
  display: grid;
  gap: 0.55rem 0.65rem;
  align-items: end;
  justify-content: start;
}

.shop-filter-group__grid--shipping {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 0.4rem 0.5rem;
}

.shop-field--country {
  grid-column: 1;
}

/* Справа от страны — поиск по названию (та же строка сетки) */
.shop-field--title-q {
  grid-column: 2;
  min-width: 0;
}

.shop-field--filter-select .shop-select {
  width: 100%;
  min-width: 0;
}

.shop-field--city {
  grid-column: 1 / -1;
}

.shop-filter-group__grid--shipping > .shop-filter-group--price-row--in-shipping {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.35rem 0 0.45rem;
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.shop-filter-group--price-row--in-shipping .shop-filter-group__title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
}

.shop-field--postal,
.shop-field--region {
  grid-column: 1 / -1;
}

.shop-country-input-row {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  max-width: 100%;
}

.shop-field--country .shop-input--country-compact {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 10.5rem;
  text-transform: uppercase;
}

.shop-country-picker-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  min-height: 2.45rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(7, 10, 18, 0.55);
  color: #94a3b8;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}

.shop-country-picker-toggle:hover {
  color: #e2e8f0;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.shop-country-picker-toggle[aria-expanded="true"] {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.12);
}

.shop-country-picker-toggle__icon {
  display: block;
  pointer-events: none;
}

.shop-country-picker {
  margin-top: 0.45rem;
  padding: 0.5rem 0.55rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(7, 10, 18, 0.5);
  max-height: 13.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shop-country-picker__lead {
  margin: 0 0 0.45rem;
  font-size: 0.62rem;
  line-height: 1.35;
  color: #64748b;
}

.shop-country-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.1rem, 1fr));
  gap: 0.35rem;
}

.shop-country-picker__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.32rem 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    border-color 0.12s,
    background 0.12s,
    box-shadow 0.12s;
}

.shop-country-picker__chip:hover {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.06);
}

.shop-country-picker__chip.is-selected {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.12);
  color: #e0f2fe;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.15);
}

.shop-country-picker__flag {
  display: block;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.shop-country-picker__code {
  flex: 1 1 auto;
  min-width: 0;
  text-align: start;
}

.shop-field__sublabel {
  margin: -0.2rem 0 0;
  font-size: 0.65rem;
  line-height: 1.35;
  color: #64748b;
}

.shop-field--city .shop-input {
  width: 100%;
  max-width: 100%;
}

.shop-field--postal .shop-textarea--compact,
.shop-field--region .shop-textarea--compact {
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 0.36rem 0.48rem;
  resize: vertical;
}

.shop-textarea--compact {
  min-height: 2.75rem;
}

.shop-textarea--skus {
  min-height: 5.25rem;
}

@media (max-width: 520px) {
  .shop-filter-group__grid--shipping {
    grid-template-columns: 1fr;
  }

  .shop-field--country,
  .shop-field--city,
  .shop-field--title-q {
    grid-column: 1 / -1;
  }

  .shop-country-input-row {
    width: 100%;
  }

  .shop-field--country .shop-input--country-compact {
    max-width: 100%;
  }
}

.shop-filter-group__grid--price {
  grid-template-columns: auto auto auto;
  align-items: end;
  justify-content: start;
}

.shop-filter-group__grid--price.shop-filter-group__grid--price-with-filters {
  grid-template-columns:
    auto auto auto minmax(6.5rem, 1fr) minmax(6.5rem, 1fr) minmax(6.5rem, 1fr);
}

.shop-price-dash {
  flex-shrink: 0;
  padding-bottom: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  align-self: end;
  width: 1rem;
  text-align: center;
}

@media (max-width: 519px) {
  .shop-filter-group__grid--price,
  .shop-filter-group__grid--price-with-filters {
    grid-template-columns: 1fr;
  }

  .shop-field--filter-select {
    justify-self: stretch;
  }

  .shop-price-dash {
    display: none;
  }
}

.shop-field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  min-width: 0;
}

.shop-field__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.shop-select,
.shop-input {
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(7, 10, 18, 0.45);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.18);
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.86rem;
  color: #cbd5e1;
  color-scheme: dark;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.shop-select:focus,
.shop-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.18),
    0 0 0 3px var(--accent-dim);
}

.shop-input::placeholder {
  color: #475569;
}

.shop-select option {
  background-color: #0f172a;
  color: #e2e8f0;
}

.shop-field--price .shop-input-wrap {
  width: 6.75rem;
  max-width: 100%;
  box-sizing: border-box;
}

.shop-filters-form .shop-input-wrap {
  display: flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(7, 10, 18, 0.45);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.shop-filters-form .shop-input-wrap:focus-within {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.18),
    0 0 0 3px var(--accent-dim);
}

.shop-filters-form .shop-input-wrap__prefix {
  padding: 0.45rem 0 0.45rem 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
}

.shop-filters-form .shop-input-wrap__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.45rem 0.5rem 0.45rem 0.15rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #cbd5e1;
}

.shop-filters-form .shop-input-wrap__input:focus {
  outline: none;
}

.shop-filters-form .shop-input-wrap__input::placeholder {
  color: #475569;
}

.shop-filters-form .shop-input-wrap__input::-webkit-outer-spin-button,
.shop-filters-form .shop-input-wrap__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.shop-filters-form .shop-input-wrap__input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.shop-filters__actions {
  padding: 0.65rem 1rem 0.85rem;
  background: rgba(7, 10, 18, 0.25);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.shop-filters__submit {
  width: 100%;
  padding: 0.55rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.shop-location-summary {
  margin: 0;
  padding: 0.6rem 1rem 0.75rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: #94a3b8;
  background: rgba(56, 189, 248, 0.04);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.shop-location-summary__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.shop-location-summary__body {
  display: block;
  color: #cbd5e1;
}

.shop-location-summary__bit {
  font-weight: 600;
  color: #cbd5e1;
}

.shop-location-summary__bit--price {
  font-variant-numeric: tabular-nums;
  color: #86efac;
}

.shop-location-summary__sep {
  margin: 0 0.3rem;
  color: #475569;
  font-weight: 400;
}

/* Кошелёк — тёмная схема для нативного select/dropdown в браузере */
body.page-wallet {
  color-scheme: dark;
}

body.page-wallet .wrap.wrap--wallet-full {
  min-height: 100vh;
  align-items: stretch;
}

body.page-wallet .card.cabinet.wallet-page {
  min-height: calc(100vh - 1.5rem);
  background: linear-gradient(
    165deg,
    rgba(18, 24, 38, 0.88) 0%,
    rgba(12, 18, 32, 0.92) 50%,
    rgba(18, 26, 44, 0.88) 100%
  );
}

body.page-wallet .wallet-page-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 1.35rem;
}

.wallet-flash {
  margin: -0.25rem 0 0;
}

.wallet-hero {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.35rem 0 0.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 1.15rem;
}

.wallet-hero__badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.22), rgba(167, 139, 250, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 24px rgba(56, 189, 248, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #7dd3fc;
}

.wallet-hero__icon {
  opacity: 0.95;
}

.wallet-hero__text {
  min-width: 0;
}

.wallet-hero__title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.15;
  background: linear-gradient(115deg, #cbd5e1 0%, #7dd3fc 42%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wallet-hero__lead {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.45;
  max-width: 28rem;
}

.wallet-section {
  position: relative;
}

.wallet-section--form {
  padding: 1.2rem 1.25rem 1.35rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.2);
}

.wallet-section__heading {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.wallet-section__intro {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
}

.wallet-fee-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(7, 10, 18, 0.35);
  overflow: hidden;
}

.wallet-fee-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 0.88rem;
}

.wallet-fee-row:last-child {
  border-bottom: none;
}

.wallet-fee-row__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  min-width: 0;
  color: #94a3b8;
}

.wallet-fee-row__name {
  font-weight: 600;
  color: #a8b5c9;
}

.wallet-fee-row__sym {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.wallet-fee-row__pct {
  flex-shrink: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.wallet-fee-row__fee-word {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-left: 0.15rem;
}

.wallet-fee-row--btc .wallet-fee-row__pct {
  color: #fb923c;
}

.wallet-fee-row--usdt .wallet-fee-row__pct {
  color: #4ade80;
}

.wallet-fee-row--ltc .wallet-fee-row__pct {
  color: #a8b5c9;
}

.wallet-fee-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.wallet-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wallet-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wallet-field__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.03em;
}

.wallet-input-wrap {
  display: flex;
  align-items: center;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(7, 10, 18, 0.55);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wallet-input-wrap:focus-within {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.2),
    0 0 0 3px var(--accent-dim);
}

.wallet-input-wrap__prefix {
  padding: 0.65rem 0 0.65rem 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
}

.wallet-input-wrap__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.65rem 0.85rem 0.65rem 0.25rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: #cbd5e1;
}

.wallet-input-wrap__input:focus {
  outline: none;
}

.wallet-input-wrap__input::placeholder {
  color: #475569;
}

.wallet-select-wrap {
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(7, 10, 18, 0.55);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.wallet-select-wrap:focus-within {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.wallet-select-wrap__select {
  width: 100%;
  padding: 0.65rem 2rem 0.65rem 0.85rem;
  border: none;
  border-radius: 10px;
  background-color: rgba(15, 23, 42, 0.95);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M2.5 4.25L6 7.75l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.wallet-select-wrap__select:focus {
  outline: none;
}

.wallet-select-wrap__select option,
.wallet-select-wrap__select optgroup {
  background-color: #0f172a;
  color: #e2e8f0;
}

.wallet-form__submit {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.72rem 1rem;
}

.wallet-form__submit-inner {
  display: block;
}

.wallet-result {
  margin-top: 0.25rem;
  padding: 1.35rem 1.3rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(167, 139, 250, 0.1), transparent 50%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.65));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 48px rgba(0, 0, 0, 0.35);
}

.wallet-result__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.wallet-result__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.2);
  animation: wallet-pulse 2.2s ease-in-out infinite;
}

@keyframes wallet-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.2);
  }
  50% {
    opacity: 0.85;
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0.08);
  }
}

.wallet-result__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: #cbd5e1;
  letter-spacing: -0.02em;
}

.wallet-result__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 520px) {
  .wallet-result__stats {
    grid-template-columns: 1fr;
  }
}

.wallet-stat {
  padding: 0.75rem 0.7rem;
  border-radius: 10px;
  background: rgba(7, 10, 18, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.wallet-stat--fee {
  border-color: rgba(251, 191, 36, 0.15);
}

.wallet-stat--credit {
  border-color: rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.06);
}

.wallet-stat__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.wallet-stat__value {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

.wallet-stat--credit .wallet-stat__value {
  color: #6ee7b7;
}

.wallet-result__addr-heading {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

.wallet-address-box {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.6rem;
}

.wallet-address-box__code {
  flex: 1 1 14rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  word-break: break-all;
  color: #e2e8f0;
  background: rgba(7, 10, 18, 0.75);
  border: 1px dashed rgba(148, 163, 184, 0.28);
}

.wallet-address-box__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  align-self: stretch;
}

/* Partner program */
body.page-partner .partner-page-content {
  padding: 0 0 1rem;
}

.partner-hero {
  margin-bottom: 1.25rem;
}

.partner-hero .title {
  margin: 0 0 0.5rem;
}

.partner-hero__lead {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 42rem;
}

.partner-section {
  margin-bottom: 1.35rem;
}

.partner-ref-box .wallet-address-box__code {
  font-size: 0.78rem;
  word-break: break-all;
}

.partner-hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.partner-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .partner-stats__grid {
    grid-template-columns: 1fr;
  }
}

.partner-empty {
  margin: 0;
}

.partner-comm-table {
  font-size: 0.78rem;
}

body.page-admin .admin-inline-partner-toggle {
  margin: 0;
  display: inline;
}

.toolbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.toolbar-icon:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}

.toolbar-icon.is-active {
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

a.toolbar-icon:focus-visible,
button.toolbar-icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.toolbar-icon svg {
  display: block;
  flex-shrink: 0;
}

.toolbar-form {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
}

button.toolbar-icon {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
}

.toolbar-icon--logout:hover {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--accent) 0%, var(--accent-hot) 100%);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(7, 10, 18, 0.35) 0px,
    rgba(7, 10, 18, 0.35) 4px,
    transparent 4px,
    transparent 8px
  ),
  repeating-linear-gradient(
    0deg,
    rgba(7, 10, 18, 0.35) 0px,
    rgba(7, 10, 18, 0.35) 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.9;
}

.brand > .title {
  min-width: 0;
}

.title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #e8edf5;
  background: linear-gradient(120deg, #f8fafc 0%, #bae6fd 55%, #e9d5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .title {
    color: transparent;
  }
}

.brand--cabinet {
  margin-bottom: 1rem;
}

.flash-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.flash {
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
  border: 1px solid transparent;
}

.flash-success {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.2);
}

.flash-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.2);
}

.flash-info {
  background: var(--info-bg);
  color: var(--info);
  border-color: rgba(96, 165, 250, 0.2);
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 1.25rem;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.65);
  padding: 4px;
  border: 1px solid var(--stroke);
}

.tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

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

.tab.active {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(167, 139, 250, 0.12));
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.panel {
  display: none;
}

.panel.visible {
  display: block;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: rgba(15, 23, 42, 0.5);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input::placeholder {
  color: #64748b;
}

.field input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.captcha span {
  font-size: 0.84rem;
  color: #cbd5e1;
}

.btn {
  margin-top: 0.2rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 55%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.28);
}

.btn.primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.35);
}

/* Личный кабинет — ширина на весь экран, высота ~2/3 viewport */
body.page-cabinet .wrap {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  padding: 1rem clamp(0.75rem, 3vw, 2rem);
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
}

body.page-cabinet .card.cabinet {
  max-width: none;
  width: 100%;
  min-height: 66.67vh;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.cabinet {
  max-width: 520px;
}

body.page-cabinet .cabinet {
  max-width: none;
}

.cabinet h1 {
  font-size: 1.25rem;
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8edf5;
  background: linear-gradient(120deg, #f8fafc 0%, #bae6fd 70%);
  -webkit-background-clip: text;
  background-clip: text;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .cabinet h1 {
    color: transparent;
  }
}

.cabinet .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cabinet .hint {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Кабинет — оформление контента */
.cabinet-dashboard {
  position: relative;
}

.cabinet-inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  margin-top: 0.2rem;
}

.cabinet-hero {
  position: relative;
}

.cabinet-tagline {
  margin: 0.45rem 0 0;
  padding-left: 0.05rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 40rem;
}

.cabinet-panel {
  position: relative;
  padding: 1.15rem 1.2rem;
  border-radius: 12px;
  background: linear-gradient(
    160deg,
    rgba(15, 23, 42, 0.72) 0%,
    rgba(30, 41, 59, 0.38) 45%,
    rgba(15, 23, 42, 0.62) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.cabinet-panel__shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.5),
    rgba(167, 139, 250, 0.4),
    transparent
  );
}

.cabinet-panel__text {
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cabinet-panel__title {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #e2e8f0;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.cabinet-grid > .cabinet-panel {
  display: flex;
  flex-direction: column;
}

.cabinet-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.65rem;
  flex: 1 1 auto;
}

.cabinet-form .btn.primary {
  margin-top: auto;
}

.cabinet-meta {
  display: grid;
  gap: 0.35rem;
}

.cabinet-meta__row {
  margin: 0;
  font-size: 0.86rem;
  color: #a8b4c7;
}

.cabinet-meta__row span {
  color: #94a3b8;
}

.cabinet-meta__row strong {
  color: #e2e8f0;
  font-weight: 700;
}

.cabinet-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

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

.support-lead {
  margin-bottom: 1.25rem;
}

.support-section {
  margin-bottom: 1.5rem;
}

.support-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.support-form {
  margin-bottom: 0;
}

.input-textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: rgba(15, 23, 42, 0.5);
  resize: vertical;
  min-height: 6rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.support-empty {
  margin: 0;
}

.ticket-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ticket-card {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(15, 23, 42, 0.35);
}

.ticket-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ticket-subject {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.ticket-time {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.ticket-body {
  margin: 0;
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.btn.secondary {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  border: 1px solid var(--stroke);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(148, 163, 184, 0.2);
}

/* Admin — на весь экран по ширине, без «обрезки» по 52rem */
body.page-admin {
  min-height: 100vh;
}

.wrap--admin {
  max-width: 28rem;
}

.wrap--admin-wide {
  max-width: none;
  width: 100%;
  align-items: flex-start;
  justify-content: center;
  padding-left: clamp(0.65rem, 2vw, 1.75rem);
  padding-right: clamp(0.65rem, 2vw, 1.75rem);
  box-sizing: border-box;
}

.admin-card {
  width: 100%;
}

.admin-card--wide {
  max-width: none;
  width: 100%;
}

/* Карточка на весь доступный ряд, не 400px от .card */
body.page-admin .wrap--admin-wide > .card.admin-card--wide {
  max-width: none;
  width: 100%;
  padding: 1.45rem clamp(1rem, 2vw, 1.5rem) 1.35rem;
  box-sizing: border-box;
}

.admin-lead {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.brand--inline {
  margin-bottom: 0;
}

.admin-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.admin-head__logout {
  margin: 0;
}

.admin-settings-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  max-width: none;
  width: 100%;
}

/* Формы добавления товара / настроек — не сужать до 40rem */
body.page-admin .admin-product-form,
body.page-admin .admin-settings-form:not(.admin-shop-labels-form) {
  max-width: none;
  width: 100%;
}

.admin-section {
  margin-top: 1.15rem;
}

.admin-section:first-of-type {
  margin-top: 0.35rem;
}

.admin-section__title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.admin-checkbox-row {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.35);
}

.admin-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.admin-checkbox-input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
}

.admin-checkbox-row .admin-lead {
  margin: 0.45rem 0 0;
}

.admin-product-grid {
  display: grid;
  gap: 0.5rem 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  margin-bottom: 0.65rem;
}

.admin-product-form .field--grow {
  grid-column: 1 / -1;
}

@media (min-width: 520px) {
  .admin-product-form .field--grow {
    grid-column: span 2;
  }
}

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(15, 23, 42, 0.35);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table th,
.admin-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

body.page-admin .admin-table th,
body.page-admin .admin-table td {
  padding: 0.42rem 0.5rem;
  font-size: 0.8rem;
}

.admin-table th {
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.page-admin .admin-table th {
  font-size: 0.68rem;
  padding-top: 0.38rem;
  padding-bottom: 0.38rem;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table__mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, monospace;
  color: #a5b4fc;
}

.admin-table__check {
  width: 2.35rem;
  text-align: center;
  vertical-align: middle;
}

.admin-table__check input[type="checkbox"] {
  margin: 0;
  vertical-align: middle;
  cursor: pointer;
}

.admin-products-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.admin-products-bulk-form {
  margin-bottom: 1rem;
}

.admin-products-delete-all-form {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 113, 113, 0.22);
}

body.page-admin .btn.btn--small {
  padding: 0.26rem 0.55rem;
  font-size: 0.72rem;
}

body.page-admin .btn.btn--danger {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
  background: var(--danger-bg);
}

body.page-admin .btn.btn--danger:hover {
  border-color: rgba(248, 113, 113, 0.65);
  color: #fff;
  background: rgba(248, 113, 113, 0.22);
}

.admin-section__subtitle {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-danger-title {
  color: var(--danger);
}

.admin-danger-lead {
  margin-bottom: 0.5rem;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Admin — подписи магазина (простая форма) */
.page-admin-shop-labels .admin-settings-form.admin-shop-labels-form {
  max-width: 100%;
}

.admin-shop-labels-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.admin-shop-labels-section-head .admin-section__title {
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
}

.admin-shop-labels-disk {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
}

.admin-shop-labels-disk__icon {
  flex-shrink: 0;
}

.admin-shop-labels-disk__text {
  font-weight: 600;
}

.admin-shop-labels-intro {
  font-size: 0.95rem;
  max-width: 62rem;
  line-height: 1.5;
}

.admin-shop-labels-field-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.88rem;
}

.admin-shop-labels-input {
  width: 100%;
}

.admin-shop-labels-group-hint {
  margin: 0 0 0.75rem !important;
  max-width: 62rem;
}

.admin-shop-labels-opt-hint {
  display: block;
  margin: 0.2rem 0 0.5rem !important;
  font-size: 0.82rem !important;
}

.admin-shop-labels-save-bar {
  margin-top: 2rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.admin-shop-labels-save {
  font-size: 1.05rem;
  padding: 0.55rem 1.75rem;
  min-width: 12rem;
}

.admin-shop-labels-save-note {
  margin: 0 !important;
  max-width: 36rem;
}

/* Admin filter-labels tab */
.page-admin-filter-labels .admin-filter-labels-lead {
  max-width: 68rem;
  margin-bottom: 1rem;
}

.page-admin-filter-labels .admin-filter-labels-form {
  gap: 0.85rem;
}

.page-admin-filter-labels .admin-filter-labels-panel {
  margin-top: 0;
  padding: 0.8rem 0.9rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.34);
}

.page-admin-filter-labels .admin-filter-labels-grid {
  display: grid;
  gap: 0.55rem 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.page-admin-filter-labels .admin-filter-labels-grid .field--grow {
  grid-column: span 1;
}
/* Shop catalog (table) */
.shop-flash {
  margin: 0 0 1rem;
}

.shop-catalog-wrap {
  margin: 1rem 0 0;
  overflow-x: hidden;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: rgba(15, 23, 42, 0.35);
  padding-right: 0.5cm;
  box-sizing: border-box;
}

.shop-catalog-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.shop-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.shop-bulk-bar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  min-width: 0;
}

.shop-catalog-total {
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
}

.shop-per-page-form {
  display: flex;
  align-items: center;
  margin: 0;
}

.shop-per-page-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.76rem;
  color: #94a3b8;
}

.shop-per-page-label__text {
  white-space: nowrap;
}

.shop-per-page-select {
  padding: 0.22rem 1.6rem 0.22rem 0.45rem;
  font-size: 0.76rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.35rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.35rem center;
}

/* Shop catalog — prominent pagination below the table */
.shop-pagination {
  margin-top: 1rem;
  padding: 0.85rem 1rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(30, 27, 75, 0.45) 50%,
    rgba(15, 23, 42, 0.88) 100%
  );
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.08), 0 12px 32px rgba(0, 0, 0, 0.35);
}

.shop-pagination__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.shop-pagination__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e0e7ff;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.45);
  background: rgba(79, 70, 229, 0.18);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.shop-pagination__step:hover:not(.shop-pagination__step--disabled) {
  background: rgba(99, 102, 241, 0.35);
  border-color: rgba(129, 140, 248, 0.65);
  color: #fff;
}

.shop-pagination__step--disabled {
  opacity: 0.38;
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.35);
  color: #64748b;
}

.shop-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.shop-pagination__gap {
  padding: 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  user-select: none;
}

.shop-pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #a5b4fc;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.55);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.shop-pagination__num:hover {
  border-color: rgba(129, 140, 248, 0.55);
  background: rgba(99, 102, 241, 0.2);
  color: #e0e7ff;
}

.shop-pagination__num--current {
  border-color: rgba(129, 140, 248, 0.85);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(79, 70, 229, 0.35));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(165, 180, 252, 0.2);
  cursor: default;
}

.shop-pagination__meta {
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
  text-align: center;
  line-height: 1.45;
}

.shop-pagination__meta-sep {
  margin: 0 0.35rem;
  opacity: 0.55;
}

.shop-bulk-submit {
  padding: 0.28rem 0.75rem;
  font-size: 0.76rem;
}

/* Column widths — 15 cols, total ~97 % of min-width 80 rem */
.shop-catalog-table--shop col.shop-col-vendor {
  width: 5%;
}

.shop-catalog-table--shop col.shop-col-sku {
  width: 5.5%;
}

.shop-catalog-table--shop col.shop-col-level {
  width: 8%;
}

.shop-catalog-table--shop col.shop-col-base {
  width: 4.8%;
}

.shop-catalog-table--shop col.shop-col-pct {
  width: 5.2%;
}

.shop-catalog-table--shop col.shop-col-title {
  width: 14.5%;
}

.shop-catalog-table--shop col.shop-col-seller {
  width: 9.5%;
}

.shop-catalog-table--shop col.shop-col-country {
  width: 5%;
}

.shop-catalog-table--shop col.shop-col-city {
  width: 10.5%;
}

.shop-catalog-table--shop col.shop-col-state {
  width: 5.5%;
}

.shop-catalog-table--shop col.shop-col-zip {
  width: 3.5%;
}

.shop-catalog-table--shop col.shop-col-info {
  width: 7%;
}

.shop-catalog-table--shop col.shop-col-price {
  width: 9%;
}

/* Buy button column */
.shop-catalog-table--shop col.shop-col-buy {
  width: 9%;
}

.shop-catalog-table--shop col.shop-col-check {
  width: 3.5%;
}

.shop-catalog-table--purchases col.pch-col-order {
  width: 6%;
}

.shop-catalog-table--purchases col.pch-col-date {
  width: 11%;
}

.shop-catalog-table--purchases col.pch-col-sku {
  width: 9%;
}

.shop-catalog-table--purchases col.pch-col-title {
  width: 26%;
}

.shop-catalog-table--purchases col.pch-col-country {
  width: 9%;
}

.shop-catalog-table--purchases col.pch-col-city {
  width: 8%;
}

.shop-catalog-table--purchases col.pch-col-state {
  width: 7%;
}

.shop-catalog-table--purchases col.pch-col-zip {
  width: 6%;
}

.shop-catalog-table--purchases col.pch-col-info {
  width: 7%;
}

.shop-catalog-table--purchases col.pch-col-paid {
  width: 11%;
}

.shop-catalog-table__th-check,
.shop-catalog-table__td-check {
  width: 1%;
  padding-left: 0.35rem;
  padding-right: 0.25rem;
  line-height: 1;
  vertical-align: middle;
  text-align: end;
}

/* Flex on td/th breaks table layout in some browsers; wrap the checkbox instead */
.shop-table-check-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  vertical-align: middle;
}

.shop-table-check {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: #6366f1;
  cursor: pointer;
  vertical-align: middle;
}

.shop-catalog-table thead th {
  padding: 0.35rem 0.45rem;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(7, 10, 18, 0.35);
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.25;
  text-align: start;
}

/* Must beat thead th — otherwise Price/Buy headers stay left while cells are right */
.shop-catalog-table thead th.shop-catalog-table__th-price,
.shop-catalog-table thead th.shop-catalog-table__th-check,
.shop-catalog-table thead th.shop-catalog-table__th-actions {
  text-align: end;
}

.shop-catalog-table tbody td {
  padding: 0.38rem 0.45rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  vertical-align: middle;
  color: #cbd5e1;
  white-space: nowrap;
  line-height: 1.3;
}

.shop-catalog-table tbody tr:last-child td {
  border-bottom: none;
}

.shop-catalog-table tbody tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

.shop-catalog-table__th-price,
.shop-catalog-table__price {
  text-align: end;
}

.shop-catalog-table__th-actions,
.shop-catalog-table__actions {
  text-align: end;
}

/* tbody td is more specific than .shop-catalog-table__price alone — force alignment */
.shop-catalog-table tbody td.shop-catalog-table__price,
.shop-catalog-table tbody td.shop-catalog-table__td-check,
.shop-catalog-table tbody td.shop-catalog-table__actions {
  text-align: end;
}

.shop-catalog-table tbody td.shop-catalog-table__td-check {
  line-height: 1;
}

.shop-catalog-table thead th.shop-catalog-table__th-check {
  line-height: 1;
}

/* Shop: Info — выравнивание к блоку Price/Buy */
.shop-catalog-table--shop thead th.shop-catalog-table__th-info,
.shop-catalog-table--shop tbody td.shop-catalog-table__cell-info {
  text-align: end;
}

.shop-catalog-table--shop thead th.shop-catalog-table__th-price,
.shop-catalog-table--shop tbody td.shop-catalog-table__price {
  padding-left: 0.35rem;
  padding-right: calc(0.35rem + 0.4cm);
}

.shop-catalog-table--shop thead th.shop-catalog-table__th-check,
.shop-catalog-table--shop tbody td.shop-catalog-table__td-check {
  padding-left: 0.06rem;
  padding-right: 0.55rem;
  text-align: end;
}

/* Buy: заголовок и кнопки по центру колонки, как у остальных столбцов */
.shop-catalog-table--shop thead th.shop-catalog-table__th-actions {
  text-align: center;
  padding-left: 0.35rem;
  padding-right: calc(0.35rem + 0.4cm);
  vertical-align: middle;
}

.shop-catalog-table--shop tbody td.shop-catalog-table__actions {
  text-align: center;
  padding-left: 0.35rem;
  padding-right: calc(0.35rem + 0.4cm);
  vertical-align: middle;
}

.shop-catalog-table--shop .shop-table-check-wrap {
  justify-content: flex-end;
  margin: 0;
  width: auto;
}

.shop-catalog-table--shop .shop-catalog-table__buy-wrap {
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin-top: -0.12rem;
}

.shop-catalog-table--shop .shop-catalog__buy-btn {
  padding: 0.18rem 0.38rem;
  transform: translateY(-0.05rem);
}

.shop-catalog-table__th-vendor,
.shop-catalog-table__cell-vendor {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #86efac;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-catalog-table--shop thead th.shop-catalog-table__th-vendor,
.shop-catalog-table--shop tbody td.shop-catalog-table__cell-vendor {
  text-align: center;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  vertical-align: middle;
}

.shop-catalog-table__sku {
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  color: #a5b4fc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-catalog-table--shop thead th.shop-catalog-table__th-sku,
.shop-catalog-table--shop tbody td.shop-catalog-table__sku {
  text-align: center;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}

.shop-catalog-table__th-level,
.shop-catalog-table__cell-level {
  font-size: 0.72rem;
  font-weight: 600;
  color: #c4b5fd;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
}

.shop-catalog-table__th-base,
.shop-catalog-table__cell-base,
.shop-catalog-table__th-pct,
.shop-catalog-table__pct {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Level — по центру; max-width:none ок (короткие строки) */
.shop-catalog-table--shop thead th.shop-catalog-table__th-level,
.shop-catalog-table--shop tbody td.shop-catalog-table__cell-level {
  padding-left: 0.22rem;
  padding-right: 0.22rem;
  vertical-align: middle;
  text-align: center;
  max-width: none;
}

/*
 * base / %: отступы между колонками; без ellipsis — длина base контролируется данными.
 */
.shop-catalog-table--shop thead th.shop-catalog-table__th-base,
.shop-catalog-table--shop thead th.shop-catalog-table__th-pct,
.shop-catalog-table--shop tbody td.shop-catalog-table__cell-base,
.shop-catalog-table--shop tbody td.shop-catalog-table__pct {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.shop-catalog-table--shop thead th.shop-catalog-table__th-base,
.shop-catalog-table--shop tbody td.shop-catalog-table__cell-base {
  text-align: center;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.shop-catalog-table--shop tbody td.shop-catalog-table__cell-base {
  transform: none;
}

.shop-catalog-table--shop thead th.shop-catalog-table__th-pct,
.shop-catalog-table--shop tbody td.shop-catalog-table__pct {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.shop-catalog-table--shop tbody td.shop-catalog-table__pct {
  transform: none;
}

/* Level: выравнивание по центру ячейки */
.shop-catalog-table--shop thead th.shop-catalog-table__th-level,
.shop-catalog-table--shop tbody td.shop-catalog-table__cell-level {
  transform: none;
}

.shop-catalog-table__title {
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Title — чуть вправо, чтобы не наезжать на base / % */
.shop-catalog-table--shop thead th.shop-catalog-table__th-title,
.shop-catalog-table--shop tbody td.shop-catalog-table__title {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-catalog-table--shop tbody td.shop-catalog-table__title {
  transform: none;
}

.shop-catalog-table__th-seller,
.shop-catalog-table__seller {
  text-align: start;
}

.shop-catalog-table__seller {
  font-size: 0.74rem;
  font-weight: 600;
  color: #c4b5fd;
  white-space: normal;
  word-break: break-word;
}

.shop-catalog-table--shop thead th.shop-catalog-table__th-seller,
.shop-catalog-table--shop tbody td.shop-catalog-table__seller {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  transform: none;
}

.shop-catalog-table--shop thead th.shop-catalog-table__th-country,
.shop-catalog-table--shop tbody td.shop-catalog-table__country {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  transform: none;
}

.shop-catalog-table--shop thead th.shop-catalog-table__th-city,
.shop-catalog-table--shop tbody td.shop-catalog-table__cell-city {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Штат … Buy — лёгкий сдвиг вправо; чекбокс без transform (иначе уезжает за край) */
.shop-catalog-table--shop thead th.shop-catalog-table__th-state,
.shop-catalog-table--shop tbody td.shop-catalog-table__cell-state,
.shop-catalog-table--shop thead th.shop-catalog-table__th-zip,
.shop-catalog-table--shop tbody td.shop-catalog-table__cell-zip,
.shop-catalog-table--shop thead th.shop-catalog-table__th-info,
.shop-catalog-table--shop tbody td.shop-catalog-table__cell-info,
.shop-catalog-table--shop thead th.shop-catalog-table__th-price,
.shop-catalog-table--shop tbody td.shop-catalog-table__price,
.shop-catalog-table--shop thead th.shop-catalog-table__th-actions,
.shop-catalog-table--shop tbody td.shop-catalog-table__actions {
  transform: translateX(6mm);
}

.shop-catalog-table--shop thead th.shop-catalog-table__th-check,
.shop-catalog-table--shop tbody td.shop-catalog-table__td-check {
  transform: none;
}

.shop-catalog-table--shop thead th.shop-catalog-table__th-state,
.shop-catalog-table--shop tbody td.shop-catalog-table__cell-state {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.shop-catalog-table--shop thead th.shop-catalog-table__th-zip,
.shop-catalog-table--shop tbody td.shop-catalog-table__cell-zip {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.shop-catalog-table__country {
  vertical-align: middle;
}

.country-flag-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
}

.country-flag--img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.1rem;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
  box-shadow:
    0 0 6px rgba(56, 189, 248, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

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

.country-code {
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  color: #a5b4fc;
}

.shop-catalog-table__cell-city,
.shop-catalog-table__cell-state,
.shop-catalog-table__cell-info {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #94a3b8;
  font-size: 0.74rem;
}

.shop-catalog-table__cell-zip {
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
  font-size: 0.74rem;
}

.shop-catalog-table__price {
  font-weight: 700;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
}

.shop-catalog-table__buy-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  box-sizing: border-box;
}

.shop-catalog__buy {
  margin: 0;
}

.shop-catalog__buy-btn {
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  line-height: 1.2;
}

.shop-catalog__buy-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.shop-catalog-table__buy-hint {
  font-size: 0.62rem;
  color: #f87171;
  line-height: 1.2;
  text-align: right;
  white-space: normal;
  max-width: 7rem;
}

.page-purchases .shop-catalog-table {
  min-width: 64rem;
}

.purchases-lead {
  margin: 0 0 1rem;
  max-width: 40rem;
  line-height: 1.45;
}

.purchases-table__date {
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
  font-size: 0.8rem;
}
