:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e3e3e3;
  --accent: #111111;
  --dark: #111111;
  --danger: #b32020;
  --ok: #111111;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 26px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

/* The hidden attribute must always win over component display rules
   (.editor-overlay/.login-view set display, which would otherwise override it). */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  text-align: right;
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

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

.hint {
  font-size: 13px;
  color: var(--muted);
}

.error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 6px;
}

/* ── Buttons ── */
.btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: filter 0.15s ease, background 0.15s ease;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-danger {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.btn-danger:hover {
  color: var(--danger);
}
.btn:hover {
  filter: brightness(0.96);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.icon-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

/* ── Login ── */
.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.login-card .btn { width: 100%; justify-content: center; }

.login-card h1 {
  margin: 0;
  font-size: 24px;
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input {
  padding-inline-end: 40px;
}

.pw-eye {
  position: absolute;
  inset-inline-end: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  color: var(--muted);
}

.login-card input,
.editor-body input,
.editor-body textarea,
.editor-body select {
  font-family: inherit;
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.login-card input:focus,
.editor-body input:focus,
.editor-body textarea:focus,
.editor-body select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

/* ── Auth (login / signup) ── */
.forgot-link { margin: -4px 0 8px; text-align: start; }
.forgot-link .link-btn { font-size: 13px; }
#reset-step1 input, #reset-step2 input, #reset-step2 .password-wrap { margin-bottom: 12px; }
#reset-step1 .btn, #reset-step2 .btn { width: 100%; margin-top: 8px; margin-bottom: 8px; justify-content: center; }

.auth-switch {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 0;
  text-align: center;
}
.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
  text-decoration: underline;
}
.ok-text { color: #1a7a3a; }
#username-status .ok-text { word-break: break-all; }
.err-text { color: var(--danger); }

/* ── Admin header ── */
.admin-header {
  background: var(--dark);
  color: #fff;
  padding: 18px 0;
  border-bottom: 3px solid var(--accent);
}

.admin-header h1 {
  margin: 0;
  font-size: 22px;
}

.admin-header .muted {
  color: #cfc7ba;
  font-size: 13px;
}

.header-title-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.admin-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.header-view-site,
.header-settings-desktop,
.header-help-link {
  display: none;
}

.header-help-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  align-self: center;
  margin-inline-start: 4px;
}
.header-help-link:hover { color: #fff; }
.admin-header .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.admin-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-header .header-icon {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.header-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 0 0;
}

.header-logout {
  position: absolute;
  left: 12px;
}

@media (max-width: 640px) {
  .admin-header {
    padding: 10px 0;
  }
  .admin-header h1 {
    font-size: 17px;
  }
  .admin-header .muted {
    font-size: 11px;
  }
  .header-title-group {
    flex-direction: column;
    gap: 0;
  }
  .admin-header-inner {
    justify-content: flex-start;
  }
  .admin-header-top {
    width: 100%;
    justify-content: space-between;
  }
  .admin-header-icons {
    display: flex;
    gap: 10px;
  }
  .header-view-site,
  .header-settings-desktop,
  .header-help-link:not(.header-help-mobile),
  .header-logout {
    display: none;
  }
  .header-actions {
    flex-basis: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }
  .header-actions .btn {
    font-size: 13px;
    padding: 7px 12px;
  }
}

.list-status {
  padding: 24px 0;
  text-align: center;
}

/* ── Sold section toggle ── */
.sold-section-toggle {
  padding: 12px 0 4px;
  border-top: 1px dashed var(--line);
  margin-top: 8px;
}

/* ── Search bar ── */
.search-bar-wrap {
  padding: 16px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.search-bar-wrap input {
  font-family: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}

.search-bar-wrap select {
  font-family: inherit;
  font-size: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.search-bar-wrap input:focus,
.search-bar-wrap select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

/* ── Product list ── */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0 60px;
}

.p-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  padding: 12px;
  align-items: center;
}

.p-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #efece4;
  flex-shrink: 0;
}

.p-thumb.noimg {
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--muted);
}

.p-main {
  flex: 1;
  min-width: 0;
}

.p-name {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}

.p-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

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

.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}
.badge.published {
  background: #111;
  color: #fff;
}
.badge.draft {
  background: #efefef;
  color: var(--muted);
}
.badge.sold {
  background: #444;
  color: #fff;
}
.badge.give {
  background: #e7e7e7;
  color: var(--ink);
}

.p-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.p-actions .btn {
  padding: 7px 11px;
  font-size: 13px;
}

@media (max-width: 600px) {
  .p-row {
    flex-wrap: wrap;
  }
  .p-thumb {
    width: 52px;
    height: 52px;
  }
  .p-main {
    flex-basis: 0;
  }
  .p-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ── Editor overlay ── */
.editor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.5);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  overflow-y: auto;
  z-index: 40;
}

.editor-panel {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 560px;
  margin: auto;
}

.editor-head,
.editor-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
}

.editor-head {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.editor-head h2 {
  margin: 0;
  font-size: 19px;
}

.editor-foot {
  border-top: 1px solid var(--line);
}

.editor-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.field > label {
  font-size: 14px;
  font-weight: 600;
}

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

.checkbox-field {
  justify-content: flex-end;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.checkbox input {
  width: auto;
}

/* ── Thumbnails in editor ── */
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thumb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.thumb .rm {
  position: absolute;
  top: 3px;
  inset-inline-end: 3px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.thumb .rotate {
  position: absolute;
  bottom: 3px;
  inset-inline-end: 3px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.thumb .rotate-ccw {
  inset-inline-end: auto;
  inset-inline-start: 3px;
}

.thumb .rotate:disabled {
  opacity: 0.5;
  cursor: default;
}

.upload-btn-row {
  display: flex;
  gap: 8px;
}
.upload-btn-row .upload-btn {
  flex: 1;
}
.upload-btn {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.upload-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Sources ── */
.sources-box {
  background: #faf8f3;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.sources-box > label {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

#sources-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#sources-list a {
  color: var(--accent);
  font-size: 13px;
  word-break: break-all;
}

/* ── Bulk grouping ── */
#bulk-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bulk-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bulk-group-done {
  background: #f7f7f7;
  color: var(--muted);
}

.bg-publish {
  align-self: flex-start;
}

.bulk-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bulk-group-head strong {
  font-size: 14px;
}

.bulk-group-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bulk-group-thumbs img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.bulk-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bg-desc {
  grid-column: 1 / -1;
  width: 100%;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-sizing: border-box;
}

.bulk-rm {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--danger);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ── Two AI buttons row ── */
.ai-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Per-row checkbox ── */
.p-select {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0 4px;
}

.p-select input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.p-row-selected {
  background: #f5f5f5;
  border-color: #bbb;
}

/* ── Bulk action bar ── */
.bulk-bar {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bulk-bar-sel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.bulk-bar-sel input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #fff;
}

.bulk-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.bulk-price-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.bulk-price-row input {
  width: 120px;
  font-family: inherit;
  font-size: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.bulk-price-row input::placeholder { color: rgba(255,255,255,0.5); }

.bulk-bar .btn {
  font-size: 13px;
  padding: 7px 12px;
}

.bulk-bar .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

.bulk-bar .btn-danger {
  color: #ff8080;
  border-color: rgba(255,80,80,0.4);
}

/* ── Sales progress bar (admin) ── */
.sales-progress {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sales-progress-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.sales-progress-text .sp-pct {
  font-weight: 800;
  color: var(--ink);
}
.sales-progress-track {
  height: 8px;
  background: #eee;
  border-radius: 99px;
  overflow: hidden;
}
.sales-progress-fill {
  height: 100%;
  background: #4a90d9;
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* ── Google login divider ── */
.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
#google-login-btn {
  display: flex;
  justify-content: center;
}

/* ── Store settings overrides ── */
.override-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.override-row input,
.override-row select {
  flex: 1;
  min-width: 0;
}
#s-overrides-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.override-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #faf8f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
}

/* ── Share link modal ── */
.share-link-row {
  display: flex;
  gap: 8px;
}
.share-link-row input {
  flex: 1;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf8f3;
  color: var(--ink);
}

/* ── Sales summary ── */
.sum-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sum-stat {
  flex: 1;
  min-width: 100px;
  background: #faf8f3;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.sum-stat-val {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.sum-stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

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

.sum-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}

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

.sum-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #faf8f3;
  flex-shrink: 0;
}

.sum-name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
}

.sum-price {
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  white-space: nowrap;
}

/* ── First-product guidance coach mark ── */
.first-guide {
  position: relative;
  background: #fff8ea;
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 14px 40px 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(201, 161, 92, 0.18);
}
.first-guide-title {
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 8px;
}
.first-guide-line {
  font-size: 14px;
  margin: 4px 0;
  color: var(--ink);
}
.first-guide-close {
  position: absolute;
  top: 8px;
  inset-inline-end: 10px;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

/* Pulsing highlight on the header icons the guide refers to */
.guide-pulse {
  animation: guidePulse 1.4s ease-in-out infinite;
  border-radius: 50%;
}
@keyframes guidePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 161, 92, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(201, 161, 92, 0); }
}

/* ── Share page ── */
.share-tip {
  background: #fffbeb; border: 1px solid #f0e6c0; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 18px; font-size: 14px; line-height: 1.6;
}
.share-tip p { margin: 0; }
.share-section { margin-bottom: 20px; }
.share-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.share-apps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.share-app-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); text-decoration: none; color: var(--ink);
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.share-app-btn:hover { opacity: 0.85; }
.share-app-icon { font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.share-native-btn { background: var(--accent); color: #fff; border-color: var(--accent); }
.share-native-btn:hover { opacity: 0.85; background: var(--accent); }
.share-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.share-facebook { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; border-color: #dc2743; }
.share-x { background: #000; color: #fff; border-color: #000; }
.share-telegram { background: #2AABEE; color: #fff; border-color: #2AABEE; }
.share-email-btn { background: #D44638; color: #fff; border-color: #D44638; }
@media (max-width: 400px) { .share-apps { grid-template-columns: repeat(2, 1fr); } }

/* ── Promo prompts ── */
.promo-trigger { margin-top: 12px; width: 100%; }

.promo-section {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.promo-section summary {
  padding: 14px 16px; font-size: 14px; font-weight: 700;
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 8px;
}
.promo-section summary::-webkit-details-marker { display: none; }
.promo-section summary::before {
  content: '◂'; font-size: 11px; color: var(--muted);
  transition: transform 0.2s; flex-shrink: 0;
}
.promo-section[open] summary::before { transform: rotate(-90deg); }
.promo-section summary:hover { color: var(--accent); }

.promo-prompt-box {
  padding: 0 16px 14px; position: relative;
}
.promo-prompt-text {
  background: #f5f5f4; border-radius: 8px; padding: 12px 14px;
  font-size: 13px; line-height: 1.7; white-space: pre-wrap;
  color: var(--ink); direction: rtl; text-align: right;
  max-height: 200px; overflow-y: auto;
}
[data-prompt-dir="ltr"] .promo-prompt-text {
  direction: ltr; text-align: left;
}
.promo-copy-btn {
  display: flex; align-items: center; gap: 5px;
  margin-top: 8px; background: var(--accent); color: #fff;
  border: none; border-radius: 8px; padding: 7px 16px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit;
}
.promo-copy-btn:hover { opacity: 0.85; }
.promo-copy-btn.copied { background: #2e7d32; }
.promo-lang-divider {
  font-size: 16px; font-weight: 800; margin: 20px 0 10px;
  padding-bottom: 6px; border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ── Add to Home Screen popup ── */
.a2hs-popup {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 999;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  display: flex; align-items: center; gap: 12px; max-width: 440px;
  margin: 0 auto;
}
.a2hs-close {
  position: absolute; top: 8px; left: 8px; background: none; border: none;
  font-size: 16px; color: var(--muted); cursor: pointer; padding: 4px;
}
[dir="ltr"] .a2hs-close { left: auto; right: 8px; }
.a2hs-icon { font-size: 32px; flex-shrink: 0; }
.a2hs-text { flex: 1; }
.a2hs-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
.a2hs-text p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.a2hs-btn { white-space: nowrap; flex-shrink: 0; font-size: 13px; padding: 8px 16px; }
@media (min-width: 769px) { .a2hs-popup { display: none !important; } }

/* ── Admin footer ── */
.admin-footer { background: #111; color: #fff; padding: 28px 16px 40px; margin-top: 40px; text-align: center; }
.admin-footer-inner { max-width: 400px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.admin-footer .footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 16px; width: 100%; margin-bottom: 4px; }
.admin-footer .footer-help { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; padding: 4px 0; text-align: center; transition: color 0.15s; }
.admin-footer .footer-help:hover { color: #c9a15c; }
.admin-footer .footer-sep { display: none; }
.admin-footer .footer-credit { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.5); }
.admin-footer .footer-logo { height: 15px; }

/* ── Store danger zone ── */
.store-danger-zone { padding: 0 16px 16px; }
.store-danger-buttons { display: flex; gap: 10px; justify-content: center; }
.btn-danger-outline { background: transparent; color: #c0392b; border: 1.5px solid #c0392b; border-radius: 8px; padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.15s, color 0.15s; }
.btn-danger-outline:hover { background: #c0392b; color: #fff; }
.btn-danger-solid { background: #c0392b; color: #fff; border: 1.5px solid #c0392b; border-radius: 8px; padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: opacity 0.15s; }
.btn-danger-solid:hover { opacity: 0.85; }
.btn-danger-solid:disabled { opacity: 0.4; cursor: not-allowed; }
.danger-info { background: #fef6f5; border: 1px solid #f0d0cc; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.danger-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: #111; }
.danger-info ul { margin: 0; padding-inline-start: 20px; font-size: 13.5px; line-height: 1.8; color: #333; }
.danger-info.danger-critical { background: #fdecea; border-color: #e8a9a3; }
.danger-confirm-text { margin-top: 14px; font-size: 13px; font-weight: 600; color: #111; }
.danger-info .field-input { margin-top: 6px; width: 100%; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit; }
