:root {
  --bg: #f6f4ef;
  --panel: #fffdfa;
  --panel-soft: #faf7f1;
  --text: #1f2522;
  --muted: #65706a;
  --accent: #c95c2b;
  --accent-dark: #9a4018;
  --ink: #243832;
  --success: #2f7d57;
  --line: rgba(31, 37, 34, 0.11);
  --shadow: 0 12px 30px rgba(31, 37, 34, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(36, 56, 50, 0.08), transparent 360px),
    radial-gradient(circle at top left, rgba(201, 92, 43, 0.12), transparent 32%),
    var(--bg);
  text-rendering: optimizeLegibility;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: min(320px, 86vw);
  height: 100vh;
  padding: 24px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(27, 31, 28, 0.98);
  backdrop-filter: blur(16px);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.sidebar-close {
  padding: 8px 12px;
  border-radius: 999px;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-nav a {
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff7ef;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  transition: background 140ms ease;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 10px clamp(12px, 3vw, 24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(27, 31, 28, 0.96);
  backdrop-filter: blur(14px);
}

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

.topbar-left {
  min-width: 0;
}

.topbar-actions {
  flex-shrink: 0;
}

.topbar-auth-status {
  max-width: min(34vw, 360px);
  margin: 0;
  overflow: hidden;
  color: #fff7ef;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions .secondary-button {
  background: rgba(255, 247, 239, 0.14);
  color: #fff7ef;
  border: 1px solid rgba(255, 247, 239, 0.16);
}

.topbar-actions .secondary-button:hover {
  background: rgba(255, 247, 239, 0.24);
}

.login-feedback {
  margin: 0;
}

.language-switcher select {
  appearance: none;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff7ef;
  font: inherit;
}

.language-switcher {
  position: relative;
  display: inline-flex;
}

.language-switcher::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 10px;
  color: #fff7ef;
  font-size: 0.9rem;
  pointer-events: none;
  transform: translateY(-50%);
}

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

.icon-button {
  display: inline-grid;
  place-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.icon-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #f6ede1;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff7ef;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.topbar-link {
  color: #fff7ef;
  text-decoration: none;
  font-size: 0.95rem;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(201, 92, 43, 0.28);
  color: #fff7ef;
}

.avatar-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.account-icon-button {
  padding: 0;
}

.topbar .icon-button,
.topbar .avatar-button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  flex: 0 0 40px;
  border-radius: 10px;
}

.topbar .icon-button {
  background: transparent;
}

.topbar .avatar-button {
  background: rgba(201, 92, 43, 0.28);
}

.account-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
}

.account-icon::before,
.account-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff7ef;
}

.account-icon::before {
  top: 0;
  width: 8px;
  height: 8px;
}

.account-icon::after {
  bottom: 0;
  width: 16px;
  height: 8px;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 0 72px;
}

.hero {
  margin-bottom: 28px;
  padding: clamp(4px, 2vw, 18px) 0 4px;
}

.hero-card {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
}

.eyebrow,
.section-label,
.meta-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-dark);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.04;
  margin-bottom: 16px;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  line-height: 1.12;
  margin-bottom: 10px;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.lede,
.muted {
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.card {
  display: grid;
  gap: 22px;
  padding: clamp(18px, 3vw, 28px);
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.admin-overview {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.admin-accounts-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-account-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.admin-account-card h4 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  word-break: break-word;
}

.account-panel {
  gap: 26px;
}

.account-panel-head {
  max-width: 720px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(430px, 1.45fr);
  align-items: start;
  gap: 18px;
}

.account-stack {
  display: grid;
  gap: 18px;
}

.settings-card {
  display: grid;
  align-content: start;
  align-items: start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.72), rgba(250, 247, 241, 0.92)),
    var(--panel-soft);
}

.account-card-compact {
  min-height: 0;
}

.account-main-card {
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(201, 92, 43, 0.06), rgba(47, 125, 87, 0.04)),
    var(--panel);
}

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

.account-actions {
  gap: 10px;
}

.account-actions .secondary-button {
  min-height: 42px;
  padding: 11px 14px;
}

.account-save-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.settings-card label,
.settings-card .choice-group {
  width: 100%;
}

.settings-card .inline-actions {
  align-items: flex-start;
  margin-top: 2px;
}

.products-panel {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

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

.stat-chip {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  font-weight: 700;
}

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

.product-form-block {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.product-block-copy {
  margin-bottom: 0;
}

.product-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.product-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.photo-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px dashed rgba(31, 26, 23, 0.18);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.photo-upload input {
  display: none;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}

.image-preview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  aspect-ratio: 1 / 1;
}

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

.image-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.category-selector {
  position: relative;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
}

.category-panel {
  grid-template-columns: minmax(190px, 0.38fr) minmax(260px, 1fr);
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(31, 37, 34, 0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(201, 92, 43, 0.06), rgba(255, 253, 250, 0.96));
}

.category-panel > div:first-child {
  display: grid;
  gap: 8px;
}

.category-panel span,
.option-panel > span {
  font-size: 0.92rem;
  font-weight: 750;
}

.category-picker {
  position: relative;
}

.category-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 26, 23, 0.16);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  text-align: left;
}

.category-trigger::after {
  content: "⌄";
  font-size: 1.2rem;
  color: var(--muted);
}

.category-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 3;
  width: min(430px, 100%);
  max-height: 360px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(31, 26, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 16px 34px rgba(65, 39, 15, 0.18);
}

.product-identity-grid {
  grid-template-columns: minmax(220px, 1.15fr) minmax(180px, 0.9fr) minmax(150px, 0.72fr);
}

.product-options-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.option-panel {
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(31, 37, 34, 0.08);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.74);
}

.option-panel input[type="text"] {
  min-height: 44px;
  margin-top: 2px;
}

.category-menu-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.category-back {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

.category-title {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.category-search {
  margin-bottom: 12px;
}

.category-options {
  display: grid;
  max-height: 276px;
  overflow: auto;
}

.category-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 6px;
  border: 0;
  border-bottom: 1px solid rgba(31, 26, 23, 0.08);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.category-option:last-child {
  border-bottom: 0;
}

.category-option::after {
  content: "›";
  color: var(--muted);
  font-size: 1.25rem;
}

.category-option-leaf::after {
  content: "○";
  font-size: 1.1rem;
}

.choice-group {
  display: grid;
  gap: 10px;
}

.choice-group > span {
  font-size: 0.92rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 10px;
}

.clothing-size-grid {
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
}

.shoe-size-grid {
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
}

.account-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.choice-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  text-align: center;
  user-select: none;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.choice-card:has(input:checked) {
  border-color: rgba(47, 125, 87, 0.45);
  background: rgba(47, 125, 87, 0.1);
  color: var(--ink);
  font-weight: 700;
}

.choice-card-compact {
  min-height: 44px;
}

.choice-card input {
  width: auto;
  margin: 0;
  accent-color: var(--success);
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

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

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

.product-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(31, 37, 34, 0.06);
}

.order-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(31, 37, 34, 0.06);
}

.product-card-preview {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

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

.product-card h4 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.product-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.order-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}

.order-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}

.product-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.product-meta-grid p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(31, 37, 34, 0.08);
  border-radius: 8px;
  background: var(--panel-soft);
  overflow-wrap: anywhere;
}

.variant-stock-editor {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.variant-stock-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(90px, 140px);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.variant-stock-row input {
  margin: 0;
}

.stat-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(201, 92, 43, 0.72);
}

.stat-value {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.pricing-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(201, 92, 43, 0.08), rgba(36, 56, 50, 0.06), #fffdfa);
}

.pricing-card-selectable {
  position: relative;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.pricing-card-selectable:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(65, 39, 15, 0.1);
}

.pricing-card-selectable input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pricing-card-active {
  border-color: rgba(201, 92, 43, 0.55);
  box-shadow: 0 16px 30px rgba(201, 92, 43, 0.12);
}

.pricing-name {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
}

.pricing-price {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--muted);
}

.payment-methods {
  display: grid;
  gap: 10px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.payment-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  text-align: center;
}

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

.payment-card-active {
  border-color: rgba(201, 92, 43, 0.52);
  background: rgba(201, 92, 43, 0.12);
}

.form {
  display: grid;
  gap: 16px;
}

.compact-form {
  align-content: start;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.demo-account {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.92rem;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font: inherit;
}

textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.settings-card textarea {
  min-height: 88px;
}

#product-description {
  min-height: 112px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(47, 125, 87, 0.18);
  border-color: rgba(47, 125, 87, 0.42);
}

button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 14px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

button:hover,
.primary-link:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

.secondary-button {
  background: rgba(31, 37, 34, 0.08);
  color: var(--text);
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.secondary-button:hover {
  background: rgba(31, 37, 34, 0.16);
}

.ghost-link {
  color: var(--accent-dark);
  text-decoration: none;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.result-grid > div {
  padding: 12px;
  border: 1px solid rgba(31, 37, 34, 0.08);
  border-radius: 8px;
  background: var(--panel-soft);
}

.telegram-command-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px dashed rgba(201, 92, 43, 0.42);
  border-radius: 8px;
  background: rgba(201, 92, 43, 0.06);
}

.telegram-command {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.meta-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.hidden {
  display: none;
}

.panel-section.hidden {
  display: none;
}

.locked {
  position: relative;
  opacity: 0.62;
}

.locked::after {
  content: "Voltooi eerst stap 1";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(31, 26, 23, 0.82);
  color: #fff7ef;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(31, 26, 23, 0.08);
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 58px;
    padding: 8px 10px;
  }

  .topbar-left {
    justify-content: flex-start;
    gap: 8px;
    width: auto;
  }

  .topbar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    width: auto;
  }

  .topbar-auth-status {
    display: none;
  }

  .topbar-actions .secondary-button {
    width: auto;
    min-height: 38px;
    padding: 9px 11px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .topbar button,
  .topbar .primary-link,
  .topbar .secondary-button {
    width: auto;
  }

  .language-switcher select {
    width: 58px;
    min-height: 38px;
    padding: 8px 24px 8px 10px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1;
  }

  .language-switcher::after {
    right: 9px;
    font-size: 0.82rem;
  }

  .topbar .icon-button,
  .topbar .avatar-button,
  .avatar {
    width: 38px;
    height: 38px;
    min-height: 38px;
    flex-basis: 38px;
  }

  .brand {
    gap: 8px;
    font-size: 0.95rem;
  }

  .brand-badge {
    width: 32px;
    height: 32px;
  }

  .shell {
    width: min(100% - 24px, 1080px);
    padding-top: 18px;
  }

  .hero {
    margin-bottom: 18px;
    padding-top: 8px;
  }

  h1 {
    max-width: 100%;
    color: var(--text);
    font-size: clamp(1.9rem, 8.5vw, 2.35rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.32rem, 6vw, 1.65rem);
    line-height: 1.15;
  }

  .lede,
  .muted {
    color: #4e5a54;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .eyebrow,
  .section-label,
  .meta-label {
    letter-spacing: 0.08em;
  }

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

  .product-form {
    gap: 14px;
  }

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

  .category-panel,
  .product-identity-grid,
  .product-options-grid {
    grid-template-columns: 1fr;
  }

  .card {
    background: var(--panel);
    color: var(--text);
    gap: 18px;
    padding: 18px;
    margin-top: 16px;
  }

  .pricing-card,
  .product-form-block,
  .settings-card,
  .stat-card,
  .product-card,
  .order-card,
  .result-grid > div {
    background: var(--panel-soft);
  }

  .product-form-block,
  .settings-card,
  .stat-card,
  .product-card,
  .order-card {
    padding: 16px;
  }

  .dashboard-grid,
  .account-layout,
  .admin-accounts-list,
  .result-grid,
  .product-meta-grid {
    grid-template-columns: 1fr;
  }

  .account-form-grid {
    grid-template-columns: 1fr;
  }

  .account-save-row {
    display: grid;
  }

  .inline-actions,
  .product-form-actions,
  .product-card-actions,
  .order-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  button,
  .primary-link,
  .secondary-button {
    width: 100%;
  }

  .product-card-head,
  .order-card-head {
    display: grid;
  }

  .product-card-preview {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .product-meta-grid p,
  .result-grid > div {
    padding: 10px;
  }

  .telegram-command-card {
    grid-template-columns: 1fr;
  }

  .telegram-command {
    justify-content: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .locked::after {
    position: static;
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
  }
}

@media (max-width: 390px) {
  .brand {
    gap: 6px;
    font-size: 0.9rem;
  }

  .brand-badge {
    width: 30px;
    height: 30px;
  }

  .language-switcher select {
    width: 52px;
    padding-left: 8px;
  }

  .topbar-actions .secondary-button {
    padding-inline: 9px;
  }
}

@media (max-width: 350px) {
  .brand span:last-child {
    display: none;
  }

  .topbar-actions {
    gap: 5px;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .shell {
    width: min(100% - 28px, 940px);
  }

  .topbar-auth-status {
    max-width: 260px;
  }

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

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

  .category-panel,
  .product-options-grid {
    grid-template-columns: 1fr;
  }

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

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