:root {
  --bg: #000;
  --panel: #0d0d0d;
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-mid: rgba(255, 255, 255, 0.12);
  --text: #e8edf8;
  --muted: #8f9ab2;
  --ok: #2ed7a1;
  --warn: #f3ad5a;
  --brand-primary: #d22d23;
  --brand-secondary: #b91f1b;
  --brand-accent: #ef4444;
  --shadow-soft: 0 18px 36px rgba(0, 0, 0, 0.5);
  --shadow-strong: 0 34px 80px rgba(0, 0, 0, 0.7);
}

:root[data-ui-theme='light'] {
  --bg: #edf2fb;
  --panel: #ffffff;
  --line-soft: rgba(15, 23, 42, 0.12);
  --line-mid: rgba(15, 23, 42, 0.2);
  --text: #0f172a;
  --muted: #3f4f66;
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 22px 50px rgba(15, 23, 42, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at -8% -10%, color-mix(in srgb, var(--brand-primary) 11%, transparent), transparent 62%),
    #000;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 4vw, 34px);
  background:
    radial-gradient(980px 460px at -10% -8%, color-mix(in srgb, var(--brand-primary) 14%, transparent), transparent 65%),
    #000;
}

.login-view::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(55deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 100%);
  background-size: 140px 140px, 190px 190px;
  opacity: 0.25;
}

.login-shell {
  width: min(560px, 100%);
  position: relative;
  z-index: 1;
}

.login-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(10, 10, 10, 0.97);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  animation: login-card-in 320ms ease-out;
}

.login-kicker {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: #9da8bf;
  text-transform: uppercase;
  text-align: center;
}

.login-card h2 {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  font-weight: 600;
  text-align: center;
}

.login-copy {
  margin: 0 0 20px;
  color: #99a8c2;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.login-brand-logo {
  display: block;
  width: min(307px, 100%);
  max-width: 100%;
  height: 100px;
  object-fit: contain;
  margin: 6px auto 10px;
  filter: drop-shadow(0 8px 22px rgba(245, 158, 11, 0.25));
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form input {
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: #f0f5ff;
  font-size: 14px;
}

.login-form input::placeholder {
  color: #8090ac;
}

.login-form input:focus {
  border-color: color-mix(in srgb, var(--brand-accent) 72%, transparent);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--brand-primary) 24%, transparent),
    0 10px 28px rgba(0, 0, 0, 0.24);
}

.login-form button {
  min-height: 49px;
  border-radius: 14px;
}

.login-form > button[type='submit'] {
  letter-spacing: 0.02em;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 58%, transparent);
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 92%, #fff) 0%, color-mix(in srgb, var(--brand-secondary) 94%, #fff) 100%);
  box-shadow: 0 14px 26px color-mix(in srgb, var(--brand-primary) 28%, transparent);
}

.password-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 8px;
}

button.secondary.password-toggle {
  width: 52px;
  min-width: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #d9e2f3;
}

.password-toggle .eye {
  width: 20px;
  height: 20px;
}

.password-toggle .eye-off {
  display: none;
}

.password-toggle.is-visible .eye-open {
  display: none;
}

.password-toggle.is-visible .eye-off {
  display: block;
}

button.secondary.google-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(26, 33, 50, 0.94) 0%, rgba(13, 18, 29, 0.94) 100%);
  color: #eff4ff;
}

.google-login-button .google-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.forgot-copy {
  margin: 12px 0 0;
  text-align: center;
}

.text-link {
  color: color-mix(in srgb, var(--brand-accent) 88%, #fff);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand-primary) 52%, transparent);
  text-underline-offset: 2px;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.text-link:hover {
  color: #ffd47d;
  text-decoration-color: color-mix(in srgb, var(--brand-accent) 78%, transparent);
}

.login-message {
  margin: 14px 0 0;
  color: #9ba9c1;
  font-size: 12px;
  min-height: 18px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 20px);
}

.modal[hidden] {
  display: none !important;
}

.login-view[hidden],
.app-shell[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 360px at 24% 20%, rgba(245, 158, 11, 0.1), transparent 70%),
    rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.98);
  padding: clamp(18px, 3vw, 28px);
  box-shadow:
    0 28px 62px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: modal-in 230ms ease-out;
}

.modal-kicker {
  margin: 0 0 6px;
  color: #a8b5cc;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.modal-card h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 6vw, 42px);
  line-height: 0.95;
}

.modal-copy {
  margin: 8px 0 14px;
  color: #9fadc3;
  font-size: 14px;
  line-height: 1.45;
}

.modal-label {
  display: block;
  margin-bottom: 8px;
  color: #c6d2e5;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-card #resetIdentifier {
  min-height: 50px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.modal-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-actions button {
  min-height: 46px;
  border-radius: 13px;
}

#resetSend {
  border-color: color-mix(in srgb, var(--brand-primary) 60%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 92%, #fff) 0%, color-mix(in srgb, var(--brand-secondary) 94%, #fff) 100%);
  color: #fff;
}

.modal-card .hint {
  margin: 12px 0 0;
  color: #97a5bc;
}

.premium-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 24px);
  background:
    radial-gradient(820px 420px at 22% 20%, color-mix(in srgb, var(--brand-accent) 18%, transparent), transparent 72%),
    rgba(6, 9, 16, 0.78);
  backdrop-filter: blur(6px);
}

.premium-confirm-card {
  width: min(520px, 100%);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 34%, var(--line-mid));
  border-radius: 16px;
  padding: clamp(16px, 2.6vw, 24px);
  background: rgba(10, 10, 10, 0.98);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: modal-in 200ms ease-out;
}

.premium-confirm-kicker {
  margin: 0 0 4px;
  color: #a7b6d2;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.premium-confirm-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  color: #edf2ff;
  font-family: 'Cormorant Garamond', serif;
}

.premium-confirm-copy {
  margin: 10px 0 0;
  color: #a9b7cf;
  font-size: 14px;
  line-height: 1.5;
}

.premium-confirm-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.premium-confirm-btn {
  border-color: color-mix(in srgb, var(--brand-primary) 58%, transparent);
}

.premium-confirm-btn.premium-confirm-danger {
  background: linear-gradient(135deg, #f0a71e 0%, #de7f12 100%);
  color: #11131a;
}

.premium-confirm-btn.premium-confirm-success {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #05271c;
}

.premium-confirm-btn.premium-confirm-warning {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #2f2000;
}

.premium-confirm-btn.premium-confirm-info {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #0f1013;
}

.premium-toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 108;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 28px));
}

.premium-toast {
  border: 1px solid var(--line-mid);
  border-radius: 10px;
  padding: 11px 12px;
  color: #eaf1ff;
  background: rgba(10, 10, 10, 0.97);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  animation: premium-toast-in 180ms ease-out;
}

.premium-toast p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.premium-toast.premium-toast-success {
  border-color: rgba(52, 211, 153, 0.6);
}

.premium-toast.premium-toast-danger {
  border-color: rgba(251, 191, 36, 0.62);
}

.premium-toast.premium-toast-warning {
  border-color: rgba(245, 158, 11, 0.62);
}

.premium-toast.premium-toast-info {
  border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--line-mid));
}

.premium-toast.is-exit {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

@keyframes premium-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes login-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 206px minmax(0, 1fr);
  position: relative;
}

.sidebar {
  position: relative;
  border-right: 1px solid var(--line-soft);
  background:
    radial-gradient(280px 220px at 18% 8%, color-mix(in srgb, var(--brand-primary) 22%, transparent), transparent 72%),
    radial-gradient(320px 260px at 88% 92%, color-mix(in srgb, var(--brand-accent) 14%, transparent), transparent 76%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 10%, #111) 0%, rgba(7, 7, 7, 0.98) 100%);
  padding: 16px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 10px 0 36px rgba(0, 0, 0, 0.35);
  min-height: 0;
  overflow-y: auto;
}

.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 12%, transparent) 0%, transparent 26%),
    linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 10%, transparent) 0%, transparent 32%);
  opacity: 1;
}

.sidebar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 52%, transparent) 0%, color-mix(in srgb, var(--brand-accent) 24%, transparent) 100%);
  opacity: 0.9;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  display: grid;
  gap: 5px;
  align-items: start;
  margin-bottom: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 12%, rgba(255, 255, 255, 0.08));
}

.sidebar-brand-logo {
  width: 100%;
  max-width: 166px;
  height: 44px;
  object-fit: contain;
  object-position: center;
  justify-self: center;
  filter: drop-shadow(0 8px 20px color-mix(in srgb, var(--brand-primary) 20%, transparent));
}

.sidebar-brand-subtitle {
  margin: 0;
  color: #8a97b0;
  font-size: 8px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  padding-left: 2px;
}

.menu {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  padding-right: 2px;
}

.menu-item {
  border: 1px solid transparent;
  background: transparent;
  color: #96a3bb;
  padding: 0;
  border-radius: 6px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  transition: all 180ms ease;
  position: relative;
  overflow: hidden;
}

.menu-item-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px 11px;
}

.menu-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: 0.8;
  flex: none;
}

.menu-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.menu-label {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 142px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-chevron {
  width: 10px;
  height: 10px;
  margin-left: 1px;
  color: color-mix(in srgb, var(--text) 62%, transparent);
  opacity: 0;
  transform: translateX(-1px);
  transition: opacity 170ms ease, transform 170ms ease;
  flex: none;
}

.menu-chevron svg {
  width: 100%;
  height: 100%;
  display: block;
}

.menu-item:hover {
  color: var(--text);
  border-color: transparent;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 12%, transparent) 0%, transparent 70%),
    rgba(255, 255, 255, 0.06);
  transform: none;
}

.menu-item.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary) 20%, transparent);
  background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.menu-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0;
  background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
}

.menu-item.active::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 16%, transparent) 0%, color-mix(in srgb, var(--brand-primary) 8%, transparent) 34%, transparent 72%);
}

.menu-item.active .menu-chevron {
  opacity: 0.55;
  transform: translateX(0);
}

.menu-item:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.subscription-box {
  margin-top: auto;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 12px;
  background:
    radial-gradient(170px 130px at 18% 12%, color-mix(in srgb, var(--brand-primary) 18%, transparent), transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%),
    rgba(255, 255, 255, 0.01);
}

.subscription-label {
  margin: 0;
  color: #80899b;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.subscription-value {
  margin: 8px 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.subscription-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.subscription-bar span {
  display: block;
  width: 74%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
}

.main-panel { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  min-height: 80px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

.search-wrap { width: min(420px, 100%); }

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  color: #dbe1ef;
  padding: 11px 14px;
  font-size: 13px;
}

.search-input::placeholder { color: #667081; }

.search-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--brand-primary) 60%, transparent);
}

.topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.topbar-right .secondary { width: auto; min-width: 128px; }

.icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #c6cfe1;
  font-size: 12px;
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.profile-block { display: flex; align-items: center; gap: 10px; }
.profile-copy { text-align: right; }
.profile-name { margin: 0; font-size: 13px; color: #fff; }

.profile-role {
  margin: 2px 0 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.avatar-dot {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-image:
    linear-gradient(145deg, color-mix(in srgb, var(--brand-primary) 40%, #111) 0%, #111 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.avatar-dot.has-image {
  background-image: var(--avatar-image);
  background-color: #111;
}

.overview-head { padding: 22px 22px 0; }
.overview-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 35px);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.overview-sub { margin: 4px 0 0; color: #6e778a; font-size: 11px; }

.module-view[hidden] { display: none; }

.kpis {
  padding: 14px 22px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kpi {
  border: 1px solid var(--line-soft);
  background: rgba(10, 10, 10, 0.96);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 180ms ease, transform 180ms ease;
  box-shadow: var(--shadow-soft);
}

.kpi:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 44%, transparent);
  transform: translateY(-2px);
}

.kpi .label {
  color: #7a8293;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.kpi .value { margin-top: 10px; font-size: 35px; font-weight: 300; }

.kpi .value.mono {
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.grid {
  padding: 14px 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 14px;
}

.users-tabs {
  display: none;
  gap: 8px;
  padding: 14px 22px 0;
}

.users-tab {
  width: auto;
  min-width: 178px;
  border-radius: 12px;
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.03);
  color: #c6d0e3;
  padding: 10px 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
}

.users-tab.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary) 48%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 74%, transparent) 0%, color-mix(in srgb, var(--brand-accent) 56%, transparent) 100%);
}

.users-tab-pane[hidden] {
  display: none;
}

.card.wide {
  grid-column: 1 / -1;
}

.card {
  border: 1px solid var(--line-soft);
  background: rgba(10, 10, 10, 0.98);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.card-header h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
  font-weight: 500;
}

.card-header p { margin: 5px 0 14px; color: #70798d; font-size: 11px; }

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  gap: 10px;
  margin-bottom: 14px;
}

.users-directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 8px;
}

.users-search-wrap {
  position: relative;
  flex: 1;
  max-width: 620px;
}

.users-search-icon {
  position: absolute;
  width: 16px;
  height: 16px;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b98b2;
  pointer-events: none;
}

.users-search-input {
  padding-left: 40px;
  min-height: 45px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.16);
}

.users-head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.users-head-actions button {
  width: auto;
  min-width: 126px;
}

.users-refresh-button {
  min-width: 132px;
}

.users-add-button {
  min-width: 178px;
}

input,
select,
textarea,
button {
  width: 100%;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
}

input,
select,
textarea {
  color: #e7eaf3;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 12px;
}

select {
  color: #edf2ff;
  background: rgba(8, 8, 8, 0.96);
}

select option,
select optgroup {
  color: #111724;
  background: #f3f6ff;
}

textarea {
  resize: vertical;
  min-height: 94px;
}

input::placeholder,
textarea::placeholder { color: #626b7f; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--brand-primary) 65%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 20%, transparent);
}

select[name='role_code'] {
  color: #f7f9ff;
  background: rgba(8, 8, 8, 0.96);
}

select[name='role_code'] option {
  color: #111724;
  background: #f4f7ff;
}

button {
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  padding: 11px 16px;
  min-height: 44px;
  border-radius: 12px;
  letter-spacing: 0.03em;
}

button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); }

button:not(.secondary):not(.menu-item):not(.users-tab):not(.brand-tab):not(.landing-tab):not(.email-tab):not(.icon-button):not(.staff-config-option):not(.store-tab):not(.orders-tab):not(.sm-new-btn):not(.sm-icon-btn):not(.sm-modal-close):not(.sm-upload-btn) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 96%, #fff) 0%, color-mix(in srgb, var(--brand-secondary) 96%, #fff) 100%);
  color: #fff;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--brand-primary) 28%, transparent);
}

button.secondary {
  background: rgba(18, 18, 18, 0.96);
  color: #d9dfef;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.table-wrap { overflow: auto; border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }

.users-table-wrap {
  margin-top: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: none;
}

.users-table {
  min-width: 840px;
}

.users-table td {
  vertical-align: middle;
  padding-top: 14px;
  padding-bottom: 14px;
}

.users-name-cell {
  min-width: 260px;
}

.users-name-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.users-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  color: #e4ebfd;
  font-size: 13px;
  font-weight: 700;
}

.users-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.users-avatar-fallback {
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand-primary) 48%, transparent) 0%, rgba(22, 29, 43, 0.96) 100%);
}

.users-name-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.users-name-main {
  margin: 0;
  color: #eff3ff;
  font-size: 13px;
  font-weight: 600;
}

.users-name-email {
  margin: 0;
  color: #95a3be;
  font-size: 11px;
}

.users-role-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 5px 9px;
  border: 1px solid transparent;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.users-role-badge.is-super-admin {
  color: #fff2f1;
  border-color: color-mix(in srgb, var(--brand-primary) 42%, transparent);
  background: color-mix(in srgb, var(--brand-primary) 23%, transparent);
}

.users-role-badge.is-regular {
  color: #d3dced;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.users-last-cell {
  color: #a1b0ca;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.users-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #d8e0f0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.users-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #78839a;
}

.users-status.is-active {
  border-color: color-mix(in srgb, var(--ok) 50%, transparent);
  background: color-mix(in srgb, var(--ok) 18%, transparent);
  color: #dcfbea;
}

.users-status.is-active .users-status-dot {
  background: var(--ok);
}

.users-status.is-inactive {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.015);
  color: #aeb8cc;
}

.users-status.is-inactive .users-status-dot {
  background: #8894ad;
}

.users-status.is-pending {
  border-color: color-mix(in srgb, var(--warn) 52%, transparent);
  background: color-mix(in srgb, var(--warn) 16%, transparent);
  color: #fff2d6;
}

.users-status.is-pending .users-status-dot {
  background: var(--warn);
}

.users-status.is-unknown {
  color: #c8d2e8;
}

.users-config-cell {
  width: 78px;
  text-align: right;
}

.users-config-empty {
  color: #6f7b93;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.staff-config-menu {
  position: relative;
  display: inline-block;
}

.staff-config-menu > summary {
  list-style: none;
}

.staff-config-menu > summary::-webkit-details-marker {
  display: none;
}

.staff-config-trigger {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #ccd5e9;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, color 140ms ease;
}

.staff-config-trigger svg {
  width: 15px;
  height: 15px;
}

.staff-config-trigger:hover,
.staff-config-menu[open] .staff-config-trigger {
  border-color: color-mix(in srgb, var(--brand-primary) 52%, transparent);
  color: #fff;
  transform: translateY(-1px);
}

.staff-config-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 6px;
  z-index: 20;
}

.staff-config-menu:not([open]) .staff-config-menu-list {
  display: none;
}

.staff-config-menu-list .staff-config-option {
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: #d7dff0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: none;
}

.staff-config-menu-list .staff-config-option:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  transform: none;
}

.staff-config-menu-list .staff-config-option.danger {
  color: #ffd9d6;
  border-color: color-mix(in srgb, var(--brand-primary) 44%, transparent);
  background: color-mix(in srgb, var(--brand-primary) 16%, transparent);
}

#usersModule .kpi,
#usersModule .card,
#usersModule .staff-photo-card {
  border-radius: 8px;
  box-shadow: none;
}

#usersModule .kpi,
#usersModule .card,
#usersModule .staff-photo-card {
  background: rgba(8, 8, 8, 0.96);
}

#usersModule .kpi:hover {
  transform: none;
  border-color: var(--line-soft);
}

#usersTabList .card.card-table {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#usersTabManage .users-form-card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#usersTabManage {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 292px);
  align-items: start;
  column-gap: 16px;
}

#usersTabManage .users-photo-panel {
  align-self: start;
  max-width: 292px;
  width: 100%;
  margin-left: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

#usersTabManage .users-photo-card-side {
  margin: 0;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px;
}

#usersTabManage .users-photo-card-side .users-subsection-title {
  margin: 2px 0 8px;
}

#usersTabManage .users-photo-card-side .staff-photo-body {
  grid-template-columns: 1fr;
  gap: 10px;
}

#usersTabManage .users-photo-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
}

#usersTabManage .users-photo-square .staff-photo-preview {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

#usersTabManage .users-photo-actions-stack {
  display: grid;
  gap: 7px;
}

#usersTabManage .users-photo-actions-stack .users-upload-label,
#usersTabManage .users-photo-actions-stack #staffPhotoRemove {
  width: 100%;
}

#usersTabList,
#usersTabManage {
  padding-top: 20px;
}

#usersTabList .users-header-block {
  margin: 10px 0 16px;
}

#usersTabManage .users-header-block {
  margin: 10px 0 18px;
}

#usersModule .users-header-block h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

#usersModule .users-header-block h3::before {
  content: '';
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: var(--brand-primary);
}

#usersModule .card-header h3 {
  font-size: 11px;
}

#usersModule .card-header p {
  margin: 8px 0 0;
  color: #8b96ad;
  font-size: 10px;
}

#usersModule .users-directory-head {
  margin: 10px 0 12px;
}

#usersModule #staffSearchHint {
  margin: 0 0 10px;
}

#usersModule .users-search-input {
  min-height: 38px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
}

#usersModule .users-head-actions button {
  min-height: 38px;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 11px;
  box-shadow: none;
}

#usersModule .users-head-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

#usersModule .users-head-button svg {
  width: 12px;
  height: 12px;
}

#usersModule .users-head-actions .secondary {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.14);
}

#usersModule .users-add-button {
  background: color-mix(in srgb, var(--brand-primary) 90%, #121826);
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary) 58%, transparent);
  box-shadow: none;
}

#usersModule .users-add-button:hover {
  transform: none;
  filter: brightness(1.05);
}

#usersModule .users-table-wrap {
  margin-top: 8px;
  border: none;
  border-radius: 0;
  background: transparent;
}

#usersModule .users-table {
  min-width: 980px;
}

#usersModule th {
  background: rgba(255, 255, 255, 0.015);
  font-size: 8px;
  letter-spacing: 0.1em;
  padding: 6px 4px;
}

#usersModule td {
  padding: 6px 4px;
  font-size: 10px;
}

#usersModule tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}

#usersModule .users-name-cell {
  min-width: 170px;
}

#usersModule .users-identity {
  display: flex;
  align-items: center;
  gap: 5px;
}

#usersModule .users-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  font-size: 10px;
}

#usersModule .users-avatar-fallback {
  background: rgba(255, 255, 255, 0.03);
}

#usersModule .users-name-main {
  margin: 0;
  color: #e8edf8;
  font-size: 10px;
  font-weight: 600;
}

#usersModule .users-muted-text {
  color: #8996ad;
  font-size: 9px;
  letter-spacing: 0.01em;
}

#usersModule .users-role-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 2px 6px;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

#usersModule .users-role-pill.is-super-admin {
  color: #ffd6d3;
  border-color: color-mix(in srgb, var(--brand-primary) 42%, transparent);
  background: color-mix(in srgb, var(--brand-primary) 14%, transparent);
}

#usersModule .users-role-pill.is-admin {
  color: #ffdcb4;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
}

#usersModule .users-role-pill.is-gerente {
  color: #bcd9ff;
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(59, 130, 246, 0.14);
}

#usersModule .users-role-pill.is-cajero {
  color: #cae7f2;
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(56, 189, 248, 0.12);
}

#usersModule .users-role-pill.is-other {
  color: #c5cfdf;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

#usersModule .users-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

#usersModule .users-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #8390a8;
}

#usersModule .users-status-indicator.is-active {
  color: #80dfb3;
}

#usersModule .users-status-indicator.is-active .users-status-dot {
  background: #2ed7a1;
}

#usersModule .users-status-indicator.is-inactive {
  color: #f2abab;
}

#usersModule .users-status-indicator.is-inactive .users-status-dot {
  background: #ef5350;
}

#usersModule .users-status-indicator.is-pending {
  color: #f4ce7f;
}

#usersModule .users-status-indicator.is-pending .users-status-dot {
  background: var(--warn);
}

#usersModule .users-status-indicator.is-unknown {
  color: #b2bfd9;
}

#usersModule .users-status-indicator.is-unknown .users-status-dot {
  background: #7f8ca6;
}

#usersModule .users-config-cell {
  min-width: 92px;
  text-align: left;
}

#usersModule .users-inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
}

#usersModule .users-row-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: #d7deee;
  box-shadow: none;
  display: grid;
  place-items: center;
}

#usersModule .users-row-icon svg {
  width: 11px;
  height: 11px;
  display: block;
}

#usersModule .users-row-icon:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.06);
}

#usersModule .users-row-icon.danger {
  color: #ffc9c4;
  border-color: color-mix(in srgb, var(--brand-primary) 42%, transparent);
  background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

#usersModule .users-config-empty {
  color: #7e8aa2;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#usersModule .users-form-grid {
  row-gap: 12px;
  column-gap: 10px;
}

#usersModule .users-subsection-title {
  margin: 14px 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

#usersModule .users-form-grid > .users-subsection-title:first-of-type {
  margin-top: 4px;
}

#usersModule .users-subsection-bar {
  width: 3px;
  height: 15px;
  border-radius: 999px;
  background: var(--brand-primary);
}

#usersModule .users-subsection-title h4 {
  margin: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #d9e2f1;
}

#usersModule .users-field {
  display: grid;
  gap: 6px;
}

#usersModule .users-field-label {
  color: #8f9bb4;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#usersModule .users-form-grid input:not([type='hidden']):not([type='file']),
#usersModule .users-form-grid select {
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 11px;
}

#usersModule .users-form-grid input::placeholder {
  color: #7b889f;
}

#usersModule .staff-photo-card {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
  padding: 12px;
  gap: 10px;
  margin-bottom: 2px;
}

#usersModule .staff-photo-copy {
  color: #8895ad;
  font-size: 10px;
}

#usersModule .staff-photo-body {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

#usersModule .staff-photo-preview-wrap {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  min-height: 112px;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 8px;
}

#usersModule .staff-photo-preview {
  width: 100%;
  height: 96px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
  box-shadow: none;
}

#usersModule .staff-photo-preview:not([hidden]) + .staff-photo-placeholder-copy {
  display: none;
}

#usersModule .staff-photo-placeholder-copy {
  margin: 0;
  color: #7f8ba3;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#usersModule .staff-photo-actions {
  gap: 6px;
  align-content: center;
  position: relative;
}

#usersModule .staff-photo-actions input[type='file'] {
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

#usersModule .users-upload-label,
#usersModule #staffPhotoRemove {
  width: auto;
  min-width: 0;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  color: #d8e0ef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

#usersModule .users-upload-label:hover,
#usersModule #staffPhotoRemove:hover {
  background: rgba(255, 255, 255, 0.06);
}

#usersModule .users-upload-label svg,
#usersModule #staffPhotoRemove svg {
  width: 12px;
  height: 12px;
}

#usersModule .users-form-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
}

#usersModule .users-form-actions button {
  width: auto;
  min-width: 156px;
  min-height: 36px;
  border-radius: 6px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#usersModule .users-form-actions button svg {
  width: 12px;
  height: 12px;
}

#clientUsersModule .client-users-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

#clientUsersModule .client-users-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 22px 0;
}

#clientUsersModule .client-users-pane[hidden] {
  display: none;
}

#clientUsersModule .client-users-list-card {
  border-radius: 12px;
  box-shadow: none;
  background: rgba(8, 8, 8, 0.96);
}

#clientUsersModule .client-users-card-header {
  margin: 10px 0 16px;
}

#clientUsersModule .client-users-card-header .brand-section-title {
  margin: 0 0 8px;
}

#clientUsersModule .client-users-filters-head {
  align-items: flex-end;
  gap: 10px;
  margin-top: 0;
}

#clientUsersModule .client-users-filter-strip {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

#clientUsersModule .client-users-filter-field {
  display: grid;
  gap: 4px;
  min-width: 140px;
}

#clientUsersModule .client-users-filter-field span {
  color: #90a0bb;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
}

#clientUsersModule .client-users-filter-field select,
#clientUsersModule .client-users-filter-field input {
  min-height: 38px;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 11px;
}

#clientUsersModule .users-head-actions button {
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  box-shadow: none;
}

#clientUsersModule .users-head-button svg {
  width: 13px;
  height: 13px;
}

#clientUsersModule .client-users-table {
  min-width: 920px;
}

#clientUsersModule .users-config-cell {
  min-width: 130px;
  text-align: left;
}

#clientUsersModule .users-inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}

#clientUsersModule .users-row-actions-stack {
  display: grid;
  gap: 3px;
  justify-items: start;
}

#clientUsersModule .users-row-icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: #d7deee;
  box-shadow: none;
  display: grid;
  place-items: center;
}

#clientUsersModule .users-row-icon svg {
  width: 12px;
  height: 12px;
  display: block;
}

#clientUsersModule .users-row-icon:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.06);
}

#clientUsersModule .users-row-icon.danger {
  color: #ffc9c4;
  border-color: color-mix(in srgb, var(--brand-primary) 42%, transparent);
  background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

#clientUsersModule .client-users-quick-status {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 9px;
  color: #8f9bb4;
  line-height: 1;
}

#clientUsersModule .users-identity-no-avatar {
  gap: 0;
}

#clientUsersModule tbody tr.is-selected {
  background: rgba(255, 255, 255, 0.03);
}

#clientUsersModule .client-users-pager {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#clientUsersModule .client-users-pager .hint {
  flex: 1;
  margin: 0;
  text-align: center;
}

#clientUsersModule .client-users-pager button {
  width: auto;
  min-width: 150px;
}

#clientUsersModule .client-users-pager button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

#clientUsersModule .client-users-open-hint {
  margin-top: 10px;
}

#clientUserDetailModal {
  z-index: 96;
}

#clientUserDetailModal .client-user-detail-modal-card {
  width: min(1120px, calc(100vw - 30px));
  max-height: calc(100vh - 44px);
  padding: 0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#clientUserDetailModal .client-user-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

#clientUserDetailModal .client-user-modal-head .brand-section-title {
  margin: 0;
}

#clientUserDetailModal .client-user-modal-head p {
  margin: 8px 0 0;
  color: #8d9bb4;
  font-size: 12px;
}

#clientUserDetailModal .client-user-modal-scroll {
  overflow-y: auto;
  padding: 18px 22px 16px;
}

#clientUserDetailModal .client-users-form-grid {
  row-gap: 10px;
  column-gap: 10px;
}

#clientUserDetailModal .users-subsection-title {
  margin: 10px 0 4px;
}

#clientUserDetailModal .users-field {
  display: grid;
  gap: 6px;
}

#clientUserDetailModal .users-field-label {
  color: #8f9bb4;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#clientUserDetailModal .client-users-form-grid input:not([type='hidden']):not([type='file']),
#clientUserDetailModal .client-users-form-grid select {
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 11px;
}

#clientUserDetailModal .client-users-check-row {
  gap: 7px;
}

#clientUserDetailModal .client-users-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d8e0ef;
  font-size: 11px;
}

#clientUserDetailModal .client-users-check-inline input {
  width: 16px;
  min-width: 16px;
  height: 16px;
}

#clientUserDetailModal .client-users-advanced {
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  padding: 10px 12px;
}

#clientUserDetailModal .client-users-advanced summary {
  cursor: pointer;
  color: #98a8c4;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

#clientUserDetailModal .client-users-advanced-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#clientUserDetailModal .client-users-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

#clientUserDetailModal .client-users-actions button {
  width: auto;
  min-width: 150px;
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#clientUserDetailModal .client-users-danger {
  color: #ffd6d2;
  border-color: color-mix(in srgb, var(--brand-primary) 42%, transparent);
  background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

#clientUserDetailModal #clientUserFormMessage {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#guestBuyerDetailModal {
  z-index: 96;
}

#guestBuyerDetailModal .guest-buyer-detail-modal-card {
  width: min(1120px, calc(100vw - 30px));
  max-height: calc(100vh - 44px);
  padding: 0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#guestBuyerDetailModal .client-user-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

#guestBuyerDetailModal .client-user-modal-head .brand-section-title {
  margin: 0;
}

#guestBuyerDetailModal .client-user-modal-head p {
  margin: 8px 0 0;
  color: #8d9bb4;
  font-size: 12px;
}

#guestBuyerDetailModal .guest-buyer-modal-scroll {
  overflow-y: auto;
  padding: 18px 22px 16px;
}

#guestBuyerDetailModal .guest-buyer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 10px;
  column-gap: 10px;
}

#guestBuyerDetailModal .users-field {
  display: grid;
  gap: 6px;
}

#guestBuyerDetailModal .users-field-label {
  color: #8f9bb4;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#guestBuyerDetailModal input {
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 11px;
}

#guestBuyerDetailModal .guest-buyer-orders-wrap {
  margin-top: 8px;
}

#guestBuyerDetailModal #guestBuyerDetailMessage {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

th {
  color: #99a5bf;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(255, 255, 255, 0.03);
}

tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
tbody tr:last-child td { border-bottom: none; }

.hint { margin: 12px 0 0; font-size: 11px; color: #767f93; }

.table-actions {
  display: flex;
  gap: 8px;
}

.table-actions button {
  width: auto;
  min-width: 100px;
  font-size: 11px;
  padding: 8px 10px;
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.field-span-two {
  grid-column: 1 / -1;
}

.staff-photo-card {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.staff-photo-head {
  display: grid;
  gap: 3px;
}

.staff-photo-title {
  margin: 0;
  color: #dae3f5;
  font-size: 13px;
  font-weight: 700;
}

.staff-photo-copy {
  margin: 0;
  color: #95a2bb;
  font-size: 11px;
}

.staff-photo-body {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.staff-photo-preview {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.staff-photo-actions {
  display: grid;
  gap: 8px;
}

.staff-photo-actions button {
  width: auto;
  min-width: 130px;
}

.readonly-field {
  background: rgba(255, 255, 255, 0.015);
  color: #93a1bb;
  border-style: dashed;
  cursor: not-allowed;
}

.readonly-field:focus {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.2);
}

.inline-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.brand-grid { padding: 14px 22px 24px; }

.landing-builder-grid {
  padding: 14px 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  max-width: 1200px;
}

.landing-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.landing-pane-stack {
  display: grid;
  gap: 12px;
}

.landing-field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.landing-field-title {
  font-size: 12px;
  color: #d9e1f0;
  letter-spacing: 0.02em;
}

.landing-field-help {
  margin: 0;
  color: #8f9cb5;
  font-size: 11px;
  line-height: 1.45;
}

.landing-og-card {
  gap: 12px;
}

.landing-og-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.landing-og-preview {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.25);
}

.landing-og-actions {
  display: grid;
  gap: 8px;
}

.landing-brand-sync-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.landing-color-config-card {
  gap: 12px;
}

.landing-color-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.landing-color-picker {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-mid);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
}

.landing-switch-block {
  width: 100%;
  justify-content: flex-start;
  white-space: normal;
}

.landing-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.landing-tab {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.02);
  color: #c5cee0;
}

.landing-tab.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary) 50%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 72%, transparent) 0%, color-mix(in srgb, var(--brand-accent) 54%, transparent) 100%);
}

.landing-tab-pane[hidden] {
  display: none;
}

.landing-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.landing-section-card {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.landing-master-section-card {
  gap: 14px;
  padding: 16px;
  border-color: color-mix(in srgb, var(--brand-primary) 20%, var(--line-soft));
  background:
    linear-gradient(175deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.012) 100%),
    rgba(255, 255, 255, 0.02);
}

.landing-section-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.landing-header-switches {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.landing-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  padding: 7px 12px;
  color: #d7e2f7;
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.landing-switch input {
  width: 16px;
  min-width: 16px;
  height: 16px;
}

.premium-grid {
  gap: 10px;
}

.landing-guide-card {
  border-color: color-mix(in srgb, var(--brand-primary) 32%, transparent);
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--brand-primary) 10%, transparent) 0%, rgba(255, 255, 255, 0.02) 45%),
    rgba(255, 255, 255, 0.02);
}

.landing-guide-flat {
  border: none;
  background: transparent;
  padding: 0;
  margin-bottom: 12px;
}

.landing-section-card h4 {
  margin: 0;
  color: #d5def1;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spintax-field-card {
  gap: 8px;
  padding: 14px;
  border-color: color-mix(in srgb, var(--brand-accent) 22%, var(--line-soft));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.015) 100%),
    rgba(255, 255, 255, 0.02);
}

.spintax-field-card .landing-field-help {
  color: #9aa8c4;
  line-height: 1.5;
}

.spintax-field-card textarea {
  min-height: 118px;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(12, 17, 28, 0.7);
}

.spintax-quick-card {
  gap: 12px;
  border-color: color-mix(in srgb, var(--brand-primary) 36%, var(--line-soft));
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--brand-primary) 10%, transparent) 0%, rgba(255, 255, 255, 0.02) 62%),
    rgba(255, 255, 255, 0.02);
}

.spintax-actions-help {
  border: 1px dashed var(--line-soft);
  border-radius: 12px;
  padding: 10px;
  background: rgba(14, 20, 33, 0.38);
  display: grid;
  gap: 6px;
}

.spintax-actions-help p {
  margin: 0;
  color: #bfd0ee;
  font-size: 11px;
  line-height: 1.45;
}

.spintax-actions-help strong {
  color: #e7efff;
}

.spintax-token-inline-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 10px;
  background: rgba(14, 20, 33, 0.45);
  display: grid;
  gap: 8px;
}

.spintax-token-inline-title {
  margin: 0;
  color: #a6b4cf;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spintax-token-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.spintax-token-chip {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(10, 15, 25, 0.65);
  color: #9fb0d1;
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.spintax-token-chip strong {
  color: #ecf2ff;
  font-size: 11px;
  letter-spacing: 0;
}

.spintax-preview-toggle,
.spintax-advanced-toggle {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.spintax-preview-toggle > summary,
.spintax-advanced-toggle > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px;
  color: #d5def1;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.spintax-preview-toggle > summary::-webkit-details-marker,
.spintax-advanced-toggle > summary::-webkit-details-marker {
  display: none;
}

.spintax-preview-toggle[open] > summary,
.spintax-advanced-toggle[open] > summary {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}

.spintax-preview-toggle-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.spintax-advanced-toggle > p {
  margin: 0;
  padding: 12px 12px 0;
}

.spintax-advanced-toggle > form {
  padding: 12px;
}

/* Spintax groups (section headers inside advanced editor) */
.spintax-group {
  display: contents;
}

.spintax-group-label {
  grid-column: 1 / -1;
  margin: 14px 0 4px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--brand-primary, #d22d23);
  border-radius: 0 4px 4px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.spintax-group-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spintax-token-map-card,
.spintax-simple-card,
.spintax-preview-card {
  gap: 12px;
}

.spintax-token-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spintax-token-item {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px;
  background: rgba(12, 18, 30, 0.6);
  display: grid;
  gap: 4px;
}

.spintax-token-item h5 {
  margin: 0;
  color: #9fb0d1;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spintax-token-value {
  margin: 0;
  color: #ecf2ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.spintax-token-origin {
  margin: 0;
  color: #93a4c3;
  font-size: 10px;
  line-height: 1.4;
}

.spintax-simple-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spintax-simple-grid .field-span-two {
  grid-column: 1 / -1;
}

.spintax-simple-output {
  min-height: 92px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.spintax-preview-samples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.spintax-preview-current {
  grid-column: 1 / -1;
  margin: 0;
  color: #a6b4cf;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spintax-preview-item {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px;
  background: rgba(14, 20, 33, 0.7);
  display: grid;
  gap: 6px;
}

.spintax-preview-item h5 {
  margin: 0;
  color: #9eb0d4;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spintax-preview-item p {
  margin: 0;
  color: #d7e2f7;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.landing-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.landing-source-readonly-grid {
  margin-top: 4px;
}

.landing-source-readonly-grid .readonly-field {
  background: rgba(16, 24, 38, 0.78);
  border-color: rgba(255, 255, 255, 0.18);
  color: #c9d4ea;
}

.landing-section-grid textarea {
  grid-column: 1 / -1;
}

.landing-section-media-box {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line-mid);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.015);
}

.landing-header-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
}

.landing-smart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.landing-field-pair {
  border: 1px solid var(--line-mid);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  gap: 8px;
}

.landing-field-pair h5 {
  margin: 0;
  color: #d6deee;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.landing-header-media-box {
  grid-template-columns: 220px minmax(0, 1fr);
}

.landing-section-image-preview {
  width: 100%;
  max-width: 270px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
}

.landing-section-media-actions {
  display: grid;
  gap: 8px;
}

.landing-section-media-actions h5 {
  margin: 0;
  color: #d6deee;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.landing-root-source-card {
  gap: 12px;
  border-color: color-mix(in srgb, var(--brand-accent) 30%, var(--line-soft));
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--brand-accent) 7%, transparent) 0%, rgba(255, 255, 255, 0.015) 60%),
    rgba(255, 255, 255, 0.02);
}

.landing-root-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.landing-root-source-row select {
  min-height: 44px;
}

.landing-root-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f1013;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
}

.landing-actions-row {
  display: flex;
  gap: 10px;
}

.landing-actions-row button {
  width: auto;
  min-width: 200px;
}

.landing-check {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-mid);
  border-radius: 10px;
  padding: 10px 12px;
  color: #d8deeb;
}

.landing-check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
}

.landing-pages-wrap table {
  min-width: 760px;
}

.brand-form {
  display: grid;
  gap: 22px;
  max-width: 1120px;
}

.brand-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-tab {
  width: auto;
  min-width: 0;
  min-height: 40px;
  border-radius: 7px 7px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: #c7d0e2;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 9px 11px 10px;
  position: relative;
  top: 1px;
}

.brand-tab:hover {
  color: #eaf1ff;
  background: rgba(255, 255, 255, 0.04);
}

.brand-tab.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary) 34%, rgba(255, 255, 255, 0.2));
  background: rgba(10, 10, 10, 0.98);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--brand-primary) 76%, transparent);
}

.brand-tab.active::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 2px;
  background: rgba(10, 10, 10, 0.99);
}

.brand-tab-pane {
  display: grid;
  gap: 24px;
}

.brand-tab-pane[hidden] {
  display: none;
}

.brand-card {
  display: grid;
  gap: 15px;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-tab-pane > .brand-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.brand-section-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #dbe4f4;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
}

.brand-colors-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.brand-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.brand-theme-help {
  margin: 0;
  max-width: 860px;
}

.brand-theme-row {
  display: grid;
  gap: 10px;
}

.brand-theme-switch {
  width: fit-content;
}

.brand-theme-switch input {
  accent-color: var(--brand-primary);
}

.brand-theme-status {
  margin: 0;
}

.brand-field {
  display: grid;
  gap: 7px;
  align-content: start;
}

.brand-field-label {
  color: #9daac2;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#brandModule .brand-form input,
#brandModule .brand-form select,
#brandModule .brand-form textarea {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

#brandModule .brand-form input::placeholder,
#brandModule .brand-form textarea::placeholder {
  color: #6f788d;
}

#brandModule .brand-form .readonly-field {
  background: rgba(255, 255, 255, 0.012);
  border-style: solid;
}

.brand-color-field {
  gap: 8px;
}

.brand-form input[type='color'] {
  height: 46px;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
}

.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.logo-uploader {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
}

.logo-uploader-title {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9faac0;
}

.logo-preview-shell {
  position: relative;
  min-height: 132px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.016);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.logo-preview {
  width: 100%;
  height: 132px;
  object-fit: contain;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  z-index: 1;
}

.logo-preview[hidden] {
  display: none;
}

.logo-preview-placeholder {
  margin: 0;
  color: #7f8ba4;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-preview:not([hidden]) ~ .logo-preview-placeholder {
  display: none;
}

.logo-overlay-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.logo-preview-shell:hover .logo-overlay-actions,
.logo-preview-shell:focus-within .logo-overlay-actions {
  opacity: 1;
  transform: translateY(0);
}

.logo-preview-shell-loading .logo-overlay-actions {
  opacity: 0 !important;
  transform: translateY(-4px) !important;
}

.logo-upload-loading-copy {
  position: absolute;
  top: calc(50% + 24px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 110, 0.38);
  background: rgba(8, 12, 20, 0.86);
  color: #f4dfb8;
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  z-index: 32;
  pointer-events: none;
  white-space: nowrap;
}

.logo-upload-loading-copy[hidden] {
  display: none !important;
}

#brandModule .logo-overlay-btn {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.78);
  color: #e8eefb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  transform: none;
}

#brandModule .logo-overlay-btn:hover {
  background: rgba(20, 30, 47, 0.84);
  transform: none;
}

.logo-overlay-btn svg {
  width: 14px;
  height: 14px;
}

#brandModule .logo-overlay-btn.danger {
  color: #ffc8b5;
}

.logo-uploader input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (hover: none) {
  .logo-overlay-actions {
    opacity: 1;
    transform: none;
  }
}

.brand-hours-grid {
  display: grid;
  gap: 12px;
}

.brand-hour-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-hour-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.brand-hour-day {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d3dbec;
  font-size: 13px;
}

.brand-hour-day input {
  width: 18px;
  min-width: 18px;
  height: 18px;
}

.brand-hour-time {
  display: grid;
  gap: 6px;
}

.brand-hour-time span {
  color: #95a3bc;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#brandModule input[type='time'] {
  color: #eef3ff;
  color-scheme: dark;
}

#brandModule input[type='time']::-webkit-calendar-picker-indicator {
  opacity: 0.95;
  filter: invert(0.95) saturate(0.4) brightness(1.12);
}

.brand-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.brand-actions-row button {
  width: auto;
  min-width: 220px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand-actions-row button svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.brand-legal-actions {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-main-actions {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-actions-row button:not(.secondary) {
  box-shadow: 0 12px 24px color-mix(in srgb, var(--brand-primary) 24%, transparent);
}

.brand-actions-row button.secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(150deg, rgba(34, 42, 61, 0.96) 0%, rgba(18, 24, 37, 0.95) 100%);
}

.brand-legal-intro {
  display: grid;
  gap: 8px;
}

.brand-legal-grid {
  row-gap: 16px;
  column-gap: 14px;
}

#brandModule .brand-legal-grid .landing-field,
#brandModule .brand-legal-extra,
#brandModule .brand-legal-editors .landing-field {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

#brandModule .brand-legal-grid .landing-field-title,
#brandModule .brand-legal-extra .landing-field-title,
#brandModule .brand-legal-editors .landing-field-title {
  color: #d6deef;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#brandModule .brand-legal-grid .landing-field-help,
#brandModule .brand-legal-extra .landing-field-help,
#brandModule .brand-legal-editors .landing-field-help {
  color: #95a3bc;
  line-height: 1.5;
}

.brand-legal-extra textarea {
  min-height: 124px;
}

.brand-legal-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-legal-links a {
  color: #ffd389;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.brand-legal-editors {
  display: grid;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#brandModule .brand-legal-editors textarea {
  min-height: 240px;
  line-height: 1.55;
}

.email-marketing-grid,
.technical-grid {
  padding: 14px 22px 24px;
  display: grid;
  gap: 14px;
}

.email-marketing-card,
.technical-card {
  display: grid;
  gap: 14px;
}

.email-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.email-tab {
  width: auto;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #c8d2e6;
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
}

.email-tab.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary) 50%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 72%, transparent) 0%, color-mix(in srgb, var(--brand-accent) 54%, transparent) 100%);
}

.email-tab-pane {
  display: grid;
  gap: 12px;
}

.email-tab-pane[hidden] {
  display: none;
}

#clientPushModule .technical-grid {
  padding: 12px 18px 22px;
}

#clientPushModule .technical-card {
  border: none;
  background: transparent;
  box-shadow: none;
  gap: 14px;
  padding: 0;
}

#clientPushModule .email-kpis {
  padding: 0;
  margin: 0;
  gap: 10px;
}

#clientPushModule .email-kpis .kpi {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 10px;
  box-shadow: none;
  padding: 14px;
}

#clientPushModule .email-kpis .kpi .label {
  color: #94a3bd;
}

#clientPushModule .email-kpis .kpi .value {
  margin-top: 8px;
  font-size: clamp(26px, 2.8vw, 32px);
}

#clientPushModule .client-push-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#clientPushModule .client-push-tabs .email-tab {
  width: auto;
  min-height: 34px;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: #c1cee4;
  padding: 6px 9px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  top: 1px;
}

#clientPushModule .client-push-tabs .email-tab.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary) 28%, rgba(255, 255, 255, 0.2));
  background: rgba(16, 22, 34, 0.92);
}

#clientPushModule .client-push-tabs .email-tab.active::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 2px;
  background: rgba(16, 22, 34, 0.98);
}

#clientPushModule .email-panel {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.014);
  border-radius: 10px;
  box-shadow: none;
  padding: 12px;
  gap: 10px;
}

#clientPushModule .client-push-pane-head {
  display: grid;
  gap: 6px;
}

#clientPushModule .client-push-pane-head h4,
#clientPushModule .client-push-pane-head .hint {
  margin: 0;
}

#clientPushModule .client-push-pane-head .hint,
#clientPushModule .hint {
  color: #97a7c4;
  font-size: 10px;
  line-height: 1.42;
}

#clientPushModule .brand-section-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  gap: 8px;
}

#clientPushModule .brand-section-title::before {
  width: 3px;
  height: 15px;
}

#emailMarketingModule .brand-section-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  gap: 8px;
}

#emailMarketingModule .brand-section-title::before {
  width: 3px;
  height: 15px;
}

#emailMarketingModule .email-dashboard-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

#emailMarketingModule .email-dashboard-subscribers-panel .toolbar.email-toolbar {
  grid-template-columns: minmax(240px, 1fr) auto 180px auto auto;
  gap: 8px;
}

#emailMarketingModule .email-dashboard-subscribers-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(9, 15, 25, 0.42);
}

#emailMarketingModule .email-dashboard-subscribers-wrap table {
  min-width: 780px;
}

#emailMarketingModule .email-dashboard-subscribers-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(13, 20, 33, 0.98);
}

#emailMarketingModule .email-dashboard-subscribers-wrap tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.01);
}

#emailMarketingModule .email-dashboard-subscribers-wrap tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

#clientPushModule .landing-field-title {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#clientPushModule .landing-check {
  font-size: 11px;
  line-height: 1.35;
}

#clientPushModule .client-push-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 14px;
  align-items: start;
}

#clientPushModule .client-push-settings-form {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.012);
  padding: 10px;
  gap: 10px;
}

#clientPushModule .client-push-config-block {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  padding: 0 0 10px;
  display: grid;
  gap: 10px;
}

#clientPushModule .client-push-config-block:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

#clientPushModule .client-push-config-block h5 {
  margin: 0;
  color: #d5dff1;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#clientPushModule .email-form-grid {
  gap: 8px;
}

#clientPushModule .client-push-switch-grid,
#clientPushModule .client-push-compact-grid,
#clientPushModule .client-push-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#clientPushModule .client-push-switch-grid .landing-check {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.01);
  margin: 0;
  min-height: 38px;
  padding: 7px 9px;
}

#clientPushModule .client-push-color-field input[type='color'] {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-mid);
  border-radius: 6px;
  padding: 2px;
  background: rgba(9, 14, 24, 0.65);
}

#clientPushModule .client-push-settings-actions {
  margin-top: 2px;
}

#clientPushModule .client-push-settings-actions button {
  min-width: 190px;
}

#clientPushModule .client-push-preview-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.012);
  padding: 10px;
  display: grid;
  gap: 8px;
}

#clientPushModule .client-push-preview-overlay {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  min-height: 210px;
  padding: 10px;
  display: grid;
  place-items: center;
  background: rgba(10, 15, 27, 0.58);
}

#clientPushModule .client-push-preview-card {
  width: min(380px, 100%);
  border-radius: 16px;
  border: 1px solid #9D312C;
  background: linear-gradient(145deg, #fffaf7, #ffffff);
  box-shadow: 0 12px 30px rgba(20, 20, 20, 0.24);
  padding: 12px;
  color: #111827;
  display: grid;
  gap: 8px;
}

#clientPushModule .client-push-preview-kicker {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9D312C;
  font-weight: 700;
}

#clientPushModule .client-push-preview-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#clientPushModule .client-push-preview-close-subtle {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  padding: 0;
  opacity: 0.82;
  margin: 0;
  flex: 0 0 auto;
}

#clientPushModule .client-push-preview-card h5 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: #111827;
  text-transform: none;
  letter-spacing: 0;
}

#clientPushModule .client-push-preview-card p {
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.4;
}

#clientPushModule .client-push-preview-media {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

#clientPushModule .client-push-preview-media-thumb {
  width: 56px;
  height: 42px;
  border-radius: 8px;
  background: #e5e7eb;
  display: block;
  background-size: 24px 24px;
  background-position: center;
  background-repeat: no-repeat;
}

#clientPushModule .client-push-preview-media-lines {
  display: grid;
  gap: 1px;
  min-width: 0;
}

#clientPushModule .client-push-preview-media-lines span {
  display: block;
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.06;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#clientPushModule .client-push-preview-actions {
  margin-top: 2px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

#clientPushModule .client-push-preview-actions.is-single {
  justify-content: stretch;
}

#clientPushModule .client-push-preview-actions button {
  min-width: 98px;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
}

#clientPushModule #clientPushPreviewAccept {
  border: 1px solid #9D312C;
  background: #9D312C;
  color: #FFFFFF;
  box-shadow: none;
}

#clientPushModule .client-push-preview-card.is-subscribe-widget {
  width: min(320px, 100%);
  border-radius: 12px;
  padding: 11px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(9, 14, 24, 0.22);
}

#clientPushModule .client-push-preview-card.is-subscribe-widget h5 {
  display: none;
}

#clientPushModule .client-push-preview-card.is-subscribe-widget #clientPushPreviewBody {
  margin-top: 6px;
}

#clientPushModule .client-push-preview-card.is-subscribe-widget .client-push-preview-kicker {
  font-size: 11px;
}

#clientPushModule .client-push-preview-card.is-subscribe-widget .client-push-preview-close-subtle {
  display: inline-flex;
}

#clientPushModule .client-push-preview-card.is-subscribe-widget .client-push-preview-actions button {
  width: 100%;
  min-width: 0;
}

#clientPushModule .client-push-panel-subscriptions {
  display: grid;
  gap: 12px;
}

#clientPushModule .client-push-send-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

#clientPushModule .client-push-send-panel {
  grid-column: 1;
}

#clientPushModule .client-push-send-preview-panel {
  grid-column: 2;
}

#clientPushModule .client-push-campaign-panel {
  grid-column: 1;
}

#clientPushModule .client-push-recent-panel {
  grid-column: 1 / -1;
}

#clientPushModule .client-push-campaign-panel .email-form-grid {
  gap: 8px;
}

#clientPushModule .client-push-image-uploader {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
  padding: 8px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

#clientPushModule .client-push-image-thumb-wrap {
  width: 96px;
  height: 64px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  background: rgba(5, 8, 16, 0.42);
}

#clientPushModule .client-push-image-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#clientPushModule .client-push-image-meta {
  display: grid;
  gap: 4px;
}

#clientPushModule .client-push-send-preview-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.012);
  padding: 10px;
  display: grid;
  gap: 7px;
}

#clientPushModule .client-push-send-preview-kicker {
  margin: 0;
  color: #9fb0cb;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#clientPushModule .client-push-send-preview-card h5 {
  margin: 0;
  font-size: 14px;
}

#clientPushModule .client-push-subscribers-wrap th {
  font-size: 9px;
  letter-spacing: 0.12em;
}

#clientPushModule .client-push-subscribers-wrap td {
  font-size: 11px;
  padding: 10px 8px;
}

#clientPushModule .toolbar.email-toolbar > input,
#clientPushModule .toolbar.email-toolbar > select,
#clientPushModule .toolbar.email-toolbar > button {
  min-height: 36px;
  font-size: 11px;
  padding: 8px 10px;
}

#clientPushModule .client-push-send-preview-card p {
  margin: 0;
}

#couponsModule .technical-grid {
  padding: 12px 18px 22px;
}

#couponsModule .technical-card {
  border: none;
  background: transparent;
  box-shadow: none;
  gap: 14px;
  padding: 0;
}

#couponsModule .email-kpis {
  padding: 0;
  margin: 0;
  gap: 10px;
}

#couponsModule .email-kpis .kpi {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 10px;
  box-shadow: none;
  padding: 14px;
}

#couponsModule .email-kpis .kpi .label {
  color: #94a3bd;
}

#couponsModule .email-kpis .kpi .value {
  margin-top: 8px;
  font-size: clamp(26px, 2.8vw, 32px);
}

#couponsModule .email-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#couponsModule .email-panel {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.014);
  border-radius: 10px;
  box-shadow: none;
  padding: 12px;
  gap: 10px;
}

#couponsModule .brand-section-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  gap: 8px;
}

#couponsModule .brand-section-title::before {
  width: 3px;
  height: 15px;
}

#couponsModule .coupons-dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

#couponsModule .coupons-leads-panel .toolbar.email-toolbar {
  grid-template-columns: minmax(150px, 180px) minmax(340px, 1fr) minmax(210px, 240px) minmax(130px, 150px) minmax(130px, 150px);
  column-gap: 12px;
  row-gap: 10px;
  align-items: end;
  margin: 8px 0 10px;
}

#couponsModule .coupons-leads-panel .toolbar.email-toolbar .landing-field {
  margin: 0;
  min-width: 0;
}

#couponsModule .coupons-leads-panel .toolbar.email-toolbar #couponLeadsSearch,
#couponsModule .coupons-leads-panel .toolbar.email-toolbar #couponLeadsStatus,
#couponsModule .coupons-leads-panel .toolbar.email-toolbar #couponLeadsSearchRun,
#couponsModule .coupons-leads-panel .toolbar.email-toolbar #couponLeadsReload,
#couponsModule .coupons-leads-panel .toolbar.email-toolbar #couponLeadsMonth {
  min-height: 40px;
}

#couponsModule .coupons-leads-panel .toolbar.email-toolbar #couponLeadsSearchRun,
#couponsModule .coupons-leads-panel .toolbar.email-toolbar #couponLeadsReload {
  width: 100%;
  min-width: 0;
}

#couponsModule .coupons-leads-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(9, 15, 25, 0.42);
}

#couponsModule .coupons-leads-wrap table {
  min-width: 920px;
}

#couponsModule .coupons-leads-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(13, 20, 33, 0.98);
}

#couponsModule .coupons-leads-wrap tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.01);
}

#couponsModule .coupons-leads-wrap tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

#couponsModule .coupons-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  gap: 12px;
  align-items: start;
}

#couponsModule .coupons-create-form-panel {
  grid-column: 1;
}

#couponsModule .coupons-preview-panel {
  grid-column: 2;
  position: sticky;
  top: 8px;
}

#couponsModule .coupons-preview-frame-wrap {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  min-height: 560px;
}

#couponsModule .coupons-preview-label {
  margin: 2px 0 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#couponsModule #couponsLivePreviewFrame,
#couponsModule #couponsLivePreviewResultFrame {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
  background: #fff;
}

#couponsModule .coupons-preview-open {
  width: auto;
  min-width: 220px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  color: #d8e0ef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

#couponsModule .coupons-preview-open:hover {
  background: rgba(255, 255, 255, 0.06);
}

#couponsModule .client-push-image-uploader {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
  padding: 8px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

#couponsModule .client-push-image-thumb-wrap {
  width: 132px;
  height: 92px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  background: rgba(5, 8, 16, 0.42);
}

#couponsModule .client-push-image-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#couponsModule .client-push-image-meta {
  display: grid;
  gap: 4px;
}

#couponsModule .coupons-theme-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  gap: 8px;
}

#couponsModule .coupons-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#couponsModule .coupons-theme-grid input[type='color'] {
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  padding: 3px;
}

#surveysModule .technical-grid {
  padding: 12px 18px 22px;
}

#surveysModule .surveys-shell-card {
  border: none;
  background: transparent;
  box-shadow: none;
  gap: 14px;
  padding: 0;
}

#surveysModule .email-kpis {
  padding: 0;
  margin: 0;
  gap: 10px;
}

#surveysModule .email-kpis .kpi {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 10px;
  box-shadow: none;
  padding: 14px;
}

#surveysModule .email-kpis .kpi .label {
  color: #94a3bd;
}

#surveysModule .email-kpis .kpi .value {
  margin-top: 8px;
  font-size: clamp(26px, 2.8vw, 32px);
}

#surveysModule .surveys-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#surveysModule .email-panel {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.014);
  border-radius: 10px;
  box-shadow: none;
  padding: 12px;
  gap: 10px;
}

#surveysModule .brand-section-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  gap: 8px;
}

#surveysModule .brand-section-title::before {
  width: 3px;
  height: 15px;
}

#surveysModule .surveys-responses-toolbar {
  grid-template-columns: minmax(160px, 180px) minmax(300px, 1fr) minmax(220px, 240px) minmax(130px, 150px) minmax(130px, 150px);
  column-gap: 12px;
  row-gap: 10px;
  align-items: end;
}

#surveysModule .surveys-responses-toolbar .landing-field {
  margin: 0;
}

#surveysModule .surveys-responses-toolbar #surveyResponsesSearch,
#surveysModule .surveys-responses-toolbar #surveyResponsesSurvey,
#surveysModule .surveys-responses-toolbar #surveyResponsesSearchRun,
#surveysModule .surveys-responses-toolbar #surveyResponsesReload,
#surveysModule .surveys-responses-toolbar #surveyResponsesMonth {
  min-height: 40px;
}

#surveysModule .surveys-responses-wrap,
#surveysModule .surveys-list-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(9, 15, 25, 0.42);
}

#surveysModule .surveys-responses-wrap table {
  min-width: 940px;
}

#surveysModule .surveys-list-wrap table {
  min-width: 860px;
}

#surveysModule .surveys-responses-wrap thead th,
#surveysModule .surveys-list-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(13, 20, 33, 0.98);
}

#surveysModule .surveys-responses-wrap tbody tr:nth-child(odd),
#surveysModule .surveys-list-wrap tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.01);
}

#surveysModule .surveys-responses-wrap tbody tr:hover,
#surveysModule .surveys-list-wrap tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

#surveysModule .surveys-list-wrap tbody tr.is-selected {
  background: rgba(35, 108, 194, 0.18);
}

#surveysModule .surveys-list-toolbar {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 220px) minmax(120px, 140px) minmax(120px, 140px) minmax(150px, 170px);
  gap: 10px;
  align-items: end;
}

#surveysModule .surveys-list-toolbar #surveyListSearch,
#surveysModule .surveys-list-toolbar #surveyListStatus,
#surveysModule .surveys-list-toolbar #surveyListSearchRun,
#surveysModule .surveys-list-toolbar #surveyListReload,
#surveysModule .surveys-list-toolbar #surveyNewBtn {
  min-height: 40px;
}

#surveysModule .surveys-settings-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
  align-items: start;
}

#surveysModule .surveys-editor-panel {
  min-height: 100%;
}

#surveysModule .surveys-editor-panel.surveys-editor-panel-full {
  width: 100%;
}

#surveysModule .surveys-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#surveysModule .surveys-active-check {
  margin-top: 2px;
}

#surveysModule .surveys-theme-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  gap: 10px;
}

#surveysModule .surveys-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#surveysModule .surveys-theme-grid input[type='color'] {
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  padding: 3px;
}

#surveysModule .surveys-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#surveysModule .surveys-builder-head h5 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.01em;
}

#surveysModule .surveys-questions-container {
  display: grid;
  gap: 10px;
}

#surveysModule .surveys-question-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(11, 18, 30, 0.5);
  padding: 10px;
  display: grid;
  gap: 10px;
}

#surveysModule .surveys-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#surveysModule .surveys-question-head p {
  margin: 0;
  font-size: 12px;
  color: #dbe6f8;
  font-weight: 600;
}

#surveysModule .surveys-question-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#surveysModule .surveys-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#surveysModule .surveys-check-inline {
  min-height: 40px;
}

#surveysModule .surveys-options-wrap {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
  padding: 8px;
  display: grid;
  gap: 8px;
}

#surveysModule .surveys-options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#surveysModule .surveys-options-head p {
  margin: 0;
  color: #9eb0ca;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#surveysModule .surveys-options-list {
  display: grid;
  gap: 6px;
}

#surveysModule .surveys-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto auto;
  gap: 6px;
  align-items: center;
}

#surveysModule .surveys-option-row input {
  min-height: 34px;
  font-size: 12px;
  padding: 7px 10px;
}

#surveysModule .surveys-mini-btn {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#surveysModule .surveys-mini-icon {
  min-height: 30px;
  min-width: 30px;
  width: 30px;
  padding: 0;
  border-radius: 6px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#surveysModule .surveys-mini-icon.danger,
#surveysModule .surveys-mini-btn.danger {
  border-color: rgba(255, 90, 90, 0.35);
  color: #ff8585;
}

#surveysModule .surveys-list-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

#surveysModule .surveys-list-actions .surveys-mini-icon {
  min-width: 34px;
  width: 34px;
  min-height: 34px;
  height: 34px;
}

#surveysModule .surveys-list-actions .surveys-mini-icon svg {
  width: 15px;
  height: 15px;
}

#surveysModule .surveys-response-survey,
#surveysModule .surveys-response-customer,
#surveysModule .surveys-list-title {
  font-weight: 600;
}

#surveysModule .surveys-panel .email-subscribers-pager,
#surveysModule .surveys-list-panel .email-subscribers-pager {
  justify-content: flex-end;
}

.surveys-response-modal .surveys-response-modal-card {
  max-width: 860px;
  max-height: 82vh;
  overflow: auto;
}

.surveys-response-answers-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.surveys-response-answer-item {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(11, 18, 30, 0.45);
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}

.surveys-response-answer-question {
  margin: 0;
  font-size: 12px;
  color: #dbe6f8;
  font-weight: 600;
}

.surveys-response-answer-value {
  margin: 0;
  color: #a9bbd6;
}

#clientPushModule #clientPushSendPreviewImage {
  width: min(360px, 100%);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: block;
}

#clientPushModule .toolbar.email-toolbar {
  grid-template-columns: minmax(250px, 1fr) auto 170px 170px auto;
  gap: 8px;
}

#clientPushModule .client-push-subscribers-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(9, 15, 25, 0.42);
}

#clientPushModule .client-push-subscribers-wrap table {
  min-width: 980px;
}

#clientPushModule .client-push-subscribers-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(13, 20, 33, 0.98);
}

#clientPushModule .client-push-subscribers-wrap tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.01);
}

#clientPushModule .client-push-subscribers-wrap tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

#clientPushModule .client-push-recent-panel .client-push-recent-list {
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
  gap: 6px;
}

#clientPushModule .client-push-recent-panel .client-push-recent-row {
  border-radius: 8px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(130px, 0.85fr) minmax(132px, 0.9fr) minmax(170px, 1.05fr) minmax(230px, 1.2fr);
  align-items: center;
  gap: 8px;
  font-size: 10px;
  line-height: 1.25;
}

#clientPushModule .client-push-recent-panel .client-push-recent-row > * {
  margin: 0;
  min-width: 0;
}

#clientPushModule .client-push-recent-panel .client-push-recent-title {
  color: #f2f6ff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#clientPushModule .client-push-recent-panel .client-push-recent-time {
  color: #9fb0cb;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#clientPushModule .client-push-recent-panel .client-push-recent-metrics {
  color: #c9d5ea;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#clientPushModule .client-push-recent-panel .client-push-recent-click {
  color: #d3ddf1;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

#clientPushModule .client-push-recent-panel a.client-push-recent-click:hover {
  color: #ffd389;
  text-decoration: underline;
}

@media (max-width: 1280px) {
  #clientPushModule .client-push-settings-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  #clientPushModule .client-push-switch-grid,
  #clientPushModule .client-push-compact-grid,
  #clientPushModule .client-push-style-grid,
  #clientPushModule .client-push-send-layout,
  #clientPushModule .toolbar.email-toolbar {
    grid-template-columns: 1fr;
  }

  #clientPushModule .client-push-send-panel,
  #clientPushModule .client-push-send-preview-panel,
  #clientPushModule .client-push-campaign-panel,
  #clientPushModule .client-push-recent-panel {
    grid-column: 1;
  }

  #clientPushModule .client-push-image-uploader {
    grid-template-columns: 1fr;
  }

  #clientPushModule .client-push-recent-panel .client-push-recent-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  #clientPushModule .client-push-settings-actions button {
    min-width: 0;
    width: 100%;
  }
}

.email-kpis {
  margin-bottom: 0;
}

.email-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.email-panel {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 10px;
}

.email-panel h4 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d2daeb;
}

.email-realtime-feed,
.email-simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.email-realtime-item,
.email-simple-list li {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 4px;
}

.email-realtime-item p,
.email-simple-list li span,
.email-simple-list li strong {
  margin: 0;
}

.email-realtime-item a {
  color: #ffd389;
  font-size: 12px;
}

.email-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.email-form-grid textarea,
.email-form-grid .landing-actions-row,
.email-form-grid .landing-check {
  grid-column: 1 / -1;
}

.toolbar.email-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto 190px auto auto;
  align-items: center;
  gap: 8px;
}

.toolbar.email-toolbar > input {
  min-width: 0;
}

.toolbar.email-toolbar > select {
  min-width: 0;
}

.toolbar.email-toolbar > button {
  width: auto;
  min-width: 0;
  padding: 10px 12px;
  white-space: nowrap;
}

.toolbar.email-toolbar > input,
.toolbar.email-toolbar > select,
.toolbar.email-toolbar > button {
  min-height: 42px;
}

.toolbar.email-toolbar.email-history-toolbar {
  grid-template-columns: auto;
}

.toolbar.email-toolbar.email-history-toolbar > button {
  justify-self: start;
}

.email-subscribers-pager {
  margin-top: 4px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.email-subscribers-pager button {
  width: auto;
  min-width: 120px;
}

.email-subscribers-pager button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.email-campaign-image-box {
  border: 1px dashed var(--line-mid);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  gap: 8px;
}

.email-campaign-image-preview {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

.email-campaign-image-actions {
  margin-top: 0;
}

.email-campaign-image-actions button {
  width: auto;
  min-width: 170px;
}

.email-subscribers-wrap,
.email-campaigns-wrap {
  max-height: 320px;
}

.email-preview-modal-card {
  width: min(860px, 100%);
}

.email-preview-content {
  max-height: min(70vh, 620px);
  overflow: auto;
}

.email-preview-card {
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(150deg, rgba(250, 251, 255, 0.98) 0%, rgba(241, 245, 255, 0.94) 100%);
  color: #0f172a;
  display: grid;
  gap: 10px;
}

.email-preview-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #51607a;
}

.email-preview-card h4,
.email-preview-card p {
  margin: 0;
}

.email-preview-preheader {
  color: #4e5f7c;
  font-size: 13px;
}

.email-preview-card img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.email-preview-body {
  display: grid;
  gap: 10px;
  line-height: 1.6;
}

.email-preview-signature {
  border-top: 1px solid rgba(15, 23, 42, 0.15);
  padding-top: 10px;
}

.technical-form-grid {
  margin-top: 4px;
}

.technical-snapshot-card {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 8px;
}

.technical-snapshot-card h4 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d2daeb;
}

.technical-snapshot {
  margin: 0;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #c6d4ea;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.55;
}

/* ════════════════════════════════════════════════════════════════
   STORE MODULE — all under #storeModule scope for specificity
════════════════════════════════════════════════════════════════ */

/* ── Topbar ─────────────────────────────────────────────────── */
#storeModule[hidden] {
  display: none !important;
}

#storeModule:not([hidden]) {
  display: flex;
  flex-direction: column;
}

#storeModule .sm-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 0;
}

#storeModule .sm-topbar-left {
  min-width: 0;
}

#storeModule .sm-kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary);
  font-weight: 700;
  margin: 0 0 4px;
}

#storeModule .sm-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: #edf2ff;
  margin: 0;
  line-height: 1.1;
}

#storeModule .sm-status {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
  margin: 0;
}

/* ── Tabs rail ──────────────────────────────────────────────── */
#storeModule .sm-tabs-rail {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  padding: 0 2px;
  margin: 12px 0 0;
}

#storeModule .store-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  min-height: 40px;
  padding: 0 18px;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0 !important;
  background: transparent !important;
  color: #5c6880;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  top: 1px;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  transition: color 140ms ease;
}

#storeModule .store-tab:hover {
  color: #a4b4cc;
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

#storeModule .store-tab.active {
  color: #fff;
  border-bottom-color: var(--brand-primary);
  background: transparent !important;
  box-shadow: none !important;
}

#storeModule .store-tab-pane[hidden] {
  display: none !important;
}

/* ── Section ────────────────────────────────────────────────── */
#storeModule .sm-pane {
  display: flex;
  flex-direction: column;
}

#storeModule .sm-section {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#storeModule .sm-section:last-child {
  border-bottom: none;
}

#storeModule .sm-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#storeModule .sm-section-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

#storeModule .sm-products-reload-btn {
  min-height: 34px;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#storeModule .sm-products-refresh-meta {
  margin: 0;
  font-size: 11px;
  color: rgba(200, 216, 240, 0.76);
  white-space: nowrap;
}

/* Filtro discreto de categoría en el pane de productos */
.sm-prod-filter-bar {
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#storeModule .sm-prod-filter-grid {
  display: grid;
  grid-template-columns: minmax(125px, 0.8fr) minmax(200px, 1.2fr) auto auto minmax(180px, 1fr);
  gap: 8px;
  align-items: end;
}

#storeModule .sm-prod-search-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#storeModule .sm-prod-search-field > span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

#storeModule .sm-prod-search-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  color: #c8d8f0;
  font-size: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: .03em;
  padding: 0 10px;
  height: 28px;
  outline: none;
  transition: border-color .15s, color .15s, background .15s;
}

#storeModule .sm-prod-search-input::placeholder {
  color: rgba(200, 216, 240, 0.42);
}

#storeModule .sm-prod-search-input:focus,
#storeModule .sm-prod-search-input:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.055);
}

#storeModule .sm-prod-search-btn,
#storeModule .sm-prod-search-clear {
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

#storeModule .sm-prod-search-btn {
  border: 1px solid rgba(158, 181, 255, 0.36);
  background: linear-gradient(180deg, rgba(122, 160, 255, 0.28) 0%, rgba(91, 131, 242, 0.2) 100%);
  color: #e8efff;
  cursor: pointer;
  transition: filter .15s, border-color .15s;
}

#storeModule .sm-prod-search-btn:hover {
  filter: brightness(1.08);
  border-color: rgba(185, 205, 255, 0.52);
}

#storeModule .sm-prod-search-meta {
  margin: 0;
  font-size: 11px;
  color: rgba(200, 216, 240, 0.72);
}

#storeModule .sm-prod-pagination {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

#storeModule .sm-prod-pagination-info {
  margin: 0;
  font-size: 11px;
  color: rgba(200, 216, 240, 0.78);
  min-width: 185px;
  text-align: center;
}

#storeModule .sm-prod-pagination-btn {
  height: 28px;
  min-width: 92px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

#storeModule .sm-prod-pagination-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 1240px) {
  #storeModule .sm-prod-filter-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) auto auto;
  }

  #storeModule .sm-prod-cat-filter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  #storeModule .sm-prod-filter-grid {
    grid-template-columns: 1fr;
  }

  #storeModule .sm-prod-search-btn,
  #storeModule .sm-prod-search-clear,
  #storeModule .sm-prod-cat-filter {
    width: 100%;
  }

  #storeModule .sm-prod-pagination {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  #storeModule .sm-prod-pagination-info {
    order: -1;
    width: 100%;
  }

  #storeModule .sm-prod-pagination-btn {
    flex: 1;
  }
}

/* ── Paneles CSV (importar/exportar) ──────────────────────────────────────── */

#storeModule .sm-csv-panel {
  margin: 14px 0 18px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  overflow: hidden;
}

#storeModule .sm-csv-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  background: rgba(255,255,255,0.03);
  list-style: none;
  user-select: none;
  letter-spacing: 0.01em;
}
#storeModule .sm-csv-summary::-webkit-details-marker { display: none; }
#storeModule .sm-csv-panel[open] .sm-csv-summary {
  color: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#storeModule .sm-csv-body {
  padding: 14px 16px 16px;
}

#storeModule .sm-csv-hint {
  font-size: 11.5px;
  color: rgba(255,255,255,0.42);
  line-height: 1.55;
  margin: 0 0 10px;
}
#storeModule .sm-csv-hint strong { color: rgba(255,255,255,0.60); }
#storeModule .sm-csv-hint code {
  font-size: 10.5px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  padding: 1px 4px;
  font-family: monospace;
}

#storeModule .sm-csv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

#storeModule .sm-csv-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.65);
  transition: background 0.15s, color 0.15s;
}
#storeModule .sm-csv-btn:hover {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.88);
}

#storeModule .sm-csv-import-btn {
  border-color: rgba(139,195,74,0.30);
  color: rgba(139,195,74,0.80);
}
#storeModule .sm-csv-import-btn:hover {
  background: rgba(139,195,74,0.08);
  color: rgba(139,195,74,1);
}

#storeModule .sm-csv-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 14px 0;
}

#storeModule .sm-csv-result {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  line-height: 1.5;
}

#storeModule .sm-csv-result .sm-csv-ok {
  color: #8bc34a;
  font-weight: 500;
}
#storeModule .sm-csv-result .sm-csv-error {
  color: #ef5350;
  font-weight: 500;
}
#storeModule .sm-csv-result .sm-csv-loading {
  color: rgba(255,255,255,0.45);
  font-style: italic;
}
#storeModule .sm-csv-result .sm-csv-warn {
  color: rgba(255,193,7,0.85);
  margin: 6px 0 0;
  font-size: 11px;
}
#storeModule .sm-csv-result .sm-csv-warn code {
  font-size: 10px;
  word-break: break-all;
}
#storeModule .sm-csv-result .sm-csv-errors {
  margin: 6px 0 0;
  padding-left: 16px;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
}
#storeModule .sm-csv-result .sm-csv-errors li {
  margin-bottom: 2px;
}

.sm-prod-cat-filter {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  color: #8da0bc;
  font-size: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: .04em;
  padding: 5px 10px;
  height: 28px;
  cursor: pointer;
  outline: none;
  transition: border-color .15s, color .15s;
  width: 100%;
}

.sm-prod-cat-filter:focus,
.sm-prod-cat-filter:hover {
  border-color: rgba(255,255,255,0.22);
  color: #c8d8f0;
}

.sm-prod-cat-filter option {
  background: #111621;
  color: #c8d8f0;
}

#storeModule .sm-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: #e6edf8;
  margin: 0 0 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#storeModule .sm-section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  flex-shrink: 0;
}

#storeModule .sm-section-sub {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

#storeModule .sm-stripe-guide-inline {
  margin: 10px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

#storeModule .sm-stripe-guide-inline .sm-hint {
  margin: 0;
  font-size: 10px;
}

#storeModule .sm-stripe-guide-btn {
  width: auto !important;
  min-width: 0 !important;
  min-height: 30px;
  padding: 6px 11px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── "Nueva X" button ───────────────────────────────────────── */
#storeModule .sm-new-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  width: auto !important;
  min-width: 0 !important;
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent !important;
  color: var(--brand-primary);
  border: 1px solid rgba(210,45,35,0.5) !important;
  border-radius: 6px !important;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: none !important;
  min-height: 34px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

#storeModule .sm-new-btn:hover {
  background: rgba(210,45,35,0.1) !important;
  border-color: var(--brand-primary) !important;
  transform: none !important;
}

/* ── Category cards (image-led, reference style) ────────────── */
#storeModule .sm-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ── Category cards (redesign: buttons below image) ────────── */
#storeModule .sm-cat-card {
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#storeModule .sm-cat-card:hover {
  border-color: rgba(201,169,110,0.25);
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

#storeModule .sm-cat-img-area {
  position: relative;
  height: 140px;
  background: #111;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#storeModule .sm-cat-img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 400ms ease;
  display: block;
}

#storeModule .sm-cat-card:hover .sm-cat-img-area img {
  opacity: 0.85;
}

#storeModule .sm-cat-img-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  color: rgba(255,255,255,0.1);
  font-size: 36px;
  letter-spacing: 0;
  user-select: none;
}

#storeModule .sm-cat-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#storeModule .sm-cat-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: #c9a96e;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#storeModule .sm-cat-desc {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 8px;
  flex: 1;
}

#storeModule .sm-cat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

#storeModule .sm-cat-order {
  font-size: 9px;
  color: #5c6880;
  letter-spacing: 0.06em;
}

/* Action buttons — always visible below image */
#storeModule .sm-cat-card-actions {
  display: flex;
  gap: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 10px;
  pointer-events: all;
  position: static;
  opacity: 1;
}

#storeModule .sm-cat-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px !important;
  min-height: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 10px !important;
  font-size: 10px !important;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: #c0ccde !important;
  border-radius: 6px !important;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

#storeModule .sm-cat-action-btn:hover {
  background: rgba(255,255,255,0.09) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

#storeModule .sm-cat-action-btn.danger {
  color: #e08080 !important;
  border-color: rgba(210,80,80,0.2) !important;
}

#storeModule .sm-cat-action-btn.danger:hover {
  background: rgba(160,30,25,0.2) !important;
  border-color: rgba(210,45,35,0.4) !important;
  color: #ffc8c8 !important;
}

/* ── Product cards ──────────────────────────────────────────── */
#storeModule .sm-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

#storeModule .sm-prod-card {
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease;
}

#storeModule .sm-prod-card:hover {
  border-color: rgba(255,255,255,0.16);
}

#storeModule .sm-prod-img {
  width: 100%;
  height: 130px;
  background: #111;
  overflow: hidden;
  position: relative;
}

#storeModule .sm-prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity 300ms ease;
  display: block;
}

#storeModule .sm-prod-card:hover .sm-prod-img img {
  opacity: 0.9;
}

#storeModule .sm-prod-img-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.12);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
}

#storeModule .sm-prod-body {
  padding: 10px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

#storeModule .sm-prod-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: #c9a96e;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#storeModule .sm-prod-cat {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

#storeModule .sm-prod-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #7a8aa6;
  margin: 2px 0 0;
}

#storeModule .sm-prod-actions {
  padding: 8px 12px 10px;
  display: flex;
  gap: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

#storeModule .sm-prod-actions button {
  flex: 1;
  min-width: 0 !important;
  width: auto !important;
  padding: 5px 4px !important;
  font-size: 9px !important;
  letter-spacing: 0.05em;
  min-height: 26px !important;
  box-shadow: none !important;
  transform: none !important;
  border-radius: 5px !important;
  cursor: pointer;
}

#storeModule .sm-prod-actions button:hover {
  transform: none !important;
}

/* ── Banner cards ───────────────────────────────────────────── */
#storeModule .sm-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

#storeModule .sm-ban-card {
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease;
}

#storeModule .sm-ban-card:hover {
  border-color: rgba(255,255,255,0.16);
}

#storeModule .sm-ban-img {
  width: 100%;
  height: 160px;
  background: #111;
  overflow: hidden;
  position: relative;
}

#storeModule .sm-ban-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity 300ms ease;
  display: block;
}

#storeModule .sm-ban-card:hover .sm-ban-img img {
  opacity: 0.85;
}

#storeModule .sm-ban-img-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.12);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1a1a1a 0%, #0e0e0e 100%);
}

#storeModule .sm-ban-body {
  padding: 12px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

#storeModule .sm-ban-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: #c9a96e;
  margin: 0;
}

#storeModule .sm-ban-cta {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

#storeModule .sm-ban-actions {
  padding: 8px 14px 12px;
  display: flex;
  gap: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

#storeModule .sm-ban-actions button {
  flex: 1;
  min-width: 0 !important;
  width: auto !important;
  padding: 5px 8px !important;
  font-size: 9px !important;
  letter-spacing: 0.05em;
  min-height: 26px !important;
  box-shadow: none !important;
  transform: none !important;
  border-radius: 5px !important;
  cursor: pointer;
}

#storeModule .sm-ban-actions button:hover {
  transform: none !important;
}

/* ── Badges ─────────────────────────────────────────────────── */
#storeModule .sm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: #b4c0d8;
  line-height: 1.6;
}

#storeModule .sm-badge.is-active {
  border-color: rgba(46,215,161,0.4);
  background: rgba(46,215,161,0.12);
  color: #b8f7de;
}

#storeModule .sm-badge.is-draft {
  border-color: rgba(243,173,90,0.4);
  background: rgba(243,173,90,0.12);
  color: #ffecc8;
}

#storeModule .sm-badge.is-archived {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  color: #8896b2;
}

/* ── Image upload section ───────────────────────────────────── */
#storeModule .sm-image-upload-row {
  display: grid;
  grid-template-columns: 1fr 90px 1fr auto auto;
  gap: 8px;
  align-items: center;
}

#storeModule .sm-check-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #8896b2;
  white-space: nowrap;
  cursor: pointer;
  width: auto;
}

#storeModule .sm-check-inline input[type="checkbox"] {
  width: auto !important;
  min-width: 0;
  min-height: 0;
  height: auto;
}

#storeModule .sm-upload-btn {
  width: auto !important;
  min-width: 100px !important;
  min-height: 36px !important;
  padding: 6px 12px !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: #c6d4ea !important;
  font-size: 11px !important;
  letter-spacing: 0.04em;
  border-radius: 6px !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 120ms ease;
}

#storeModule .sm-upload-btn:hover {
  background: rgba(255,255,255,0.1) !important;
  transform: none !important;
  box-shadow: none !important;
}

#storeModule .sm-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

#storeModule .sm-image-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 7px;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#storeModule .sm-image-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  display: block;
}

#storeModule .sm-image-card button {
  width: auto !important;
  min-width: 0 !important;
}

/* ── Settings form ──────────────────────────────────────────── */
#storeModule .sm-settings-form {
  display: flex;
  flex-direction: column;
}

#storeModule .sm-settings-section {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line-soft);
}

#storeModule .sm-settings-section:last-child {
  border-bottom: none;
}

#storeModule .sm-settings-section .sm-section-title {
  margin-bottom: 16px;
}

#storeModule .sm-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  align-items: start;
}

#storeModule .sm-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#storeModule .sm-field-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

#storeModule .sm-field-wide {
  grid-column: 1 / -1;
}

#storeModule .sm-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9aabcc;
  cursor: pointer;
  padding-top: 10px;
  width: auto;
}

#storeModule .sm-check input[type="checkbox"] {
  width: auto !important;
  min-width: 0;
  min-height: 0;
  height: auto;
}

#storeModule .sm-required {
  color: var(--brand-primary);
}

#storeModule .sm-hint {
  font-size: 9px;
  color: var(--muted);
  margin: 1px 0 0;
}

#storeModule .sm-fallback-help-link {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 2px 0 0;
  background: transparent;
  text-align: left;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

#storeModule .sm-fallback-help-link:hover {
  color: #c9d6ef;
}

#storeShippingFallbackGuideModal .sm-modal-card {
  max-width: 680px;
}

#storeShippingFallbackGuideModal .sm-fallback-guide-list {
  margin-top: 10px;
}

#storeModule .sm-pkt1-inline-note {
  margin-top: 8px;
  color: #9fb0cf;
}

#storeModule .sm-pkt1-tests-grid {
  row-gap: 10px;
}

#storeModule .sm-pkt1-subtitle {
  margin: 4px 0 0;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b7c5e0;
  font-weight: 700;
}

#storeModule .sm-pkt1-package-hint {
  margin-top: -2px;
  color: #c9d6ef;
  font-size: 10px;
}

#storeModule .sm-shipping-advanced {
  margin-top: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 12px 12px;
  background: rgba(255, 255, 255, 0.01);
}

#storeModule .sm-shipping-advanced > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

#storeModule .sm-shipping-advanced > summary::-webkit-details-marker {
  display: none;
}

#storeModule .sm-shipping-advanced > summary::before {
  content: '▸';
  transition: transform 0.18s ease;
  font-size: 10px;
  color: var(--muted);
}

#storeModule .sm-shipping-advanced[open] > summary::before {
  transform: rotate(90deg);
}

#storeModule .sm-shipping-advanced > .sm-settings-grid {
  margin-top: 12px;
}

#storeModule .sm-settings-actions {
  padding: 18px 24px 22px;
  display: flex;
  justify-content: flex-end;
}

#storeModule .sm-settings-actions-inline {
  padding: 12px 0 2px;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

#storeModule .sm-settings-actions button {
  width: auto !important;
  min-width: 180px !important;
}

#storeModule .sm-settings-actions-inline button {
  min-width: 0 !important;
}

/* ── Empty state ────────────────────────────────────────────── */
#storeModule .sm-empty {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 10px;
}

/* ── Coupons pane ───────────────────────────────────────────── */
#storeModule .sm-coupon-global-form {
  border-top: 1px solid var(--line-soft);
}

#storeModule .sm-coupon-global-actions {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

#storeModule .sm-coupon-head-tight {
  margin-bottom: 14px;
}

#storeModule .sm-coupon-editor-grid {
  margin-top: 4px;
}

#storeModule .sm-coupon-editor-actions {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  justify-content: flex-start;
  gap: 8px;
}

#storeModule .sm-coupon-form-message {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#storeModule .sm-coupon-form-message[data-tone="error"] {
  color: #ffb7ad;
}

#storeModule .sm-coupon-form-message[data-tone="muted"] {
  color: var(--muted);
}

#storeModule .sm-coupon-table-wrap {
  overflow: hidden;
}

#storeModule .sm-coupon-table-scroll {
  overflow-x: auto;
}

#storeModule .sm-coupon-table {
  min-width: 980px;
}

#storeModule .sm-coupon-meta {
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted);
}

#storeModule .sm-coupon-actions {
  flex-wrap: nowrap;
}

#storeModule .sm-coupon-actions button {
  min-width: 96px;
}

#storeModule .sm-coupon-filters-grid {
  margin-top: 6px;
}

#storeModule .sm-coupon-filter-actions {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  justify-content: flex-start;
  gap: 8px;
}

#storeModule .sm-coupon-pager {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#storeModule .sm-coupon-pager .hint {
  flex: 1;
  margin: 0;
  text-align: center;
}

#storeModule .sm-coupon-pager button {
  width: auto;
  min-width: 130px;
}

/* ── Global input/select/textarea in storeModule ────────────── */
#storeModule input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#storeModule select,
#storeModule textarea {
  width: 100%;
  font-size: 12px;
  border-radius: 5px;
}

/* ── Variants box ───────────────────────────────────────────── */
#storeModule .sm-variants-box {
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.015);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

#storeModule .sm-variants-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#storeModule .sm-variants-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

#storeModule .sm-variants-head button {
  width: auto !important;
  min-width: 0 !important;
}

#storeModule .sm-variant-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#storeModule .store-variant-row {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.02);
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 8px;
  align-items: end;
}

#storeModule .store-variant-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a9ab8;
}

#storeModule .store-remove-variant {
  width: auto !important;
  min-width: 0 !important;
}

/* ── Legacy store-status kept for backward compat ───────────── */
.store-status { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 4px; font-size: 9px; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 700; }
.store-status.is-active { color: #c8fae1; }
.store-status.is-draft  { color: #fff0cc; }
.store-status.is-archived { color: #9aa6bc; }

/* ── Product modal — compact premium typography overrides ───── */
/* Reduce input/select height and font-size inside the product modal */
#storeProductModal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#storeProductModal select {
  font-size: 11px !important;
  padding: 5px 9px !important;
  min-height: 0 !important;
  height: 30px !important;
  border-radius: 5px !important;
  border-color: rgba(255,255,255,0.1) !important;
}

#storeProductModal textarea {
  font-size: 11px !important;
  padding: 7px 9px !important;
  min-height: 0 !important;
  height: auto !important;
  border-radius: 5px !important;
  border-color: rgba(255,255,255,0.1) !important;
  line-height: 1.5;
}

#storeProductModal .sm-field {
  gap: 4px;
}

#storeProductModal .sm-prod-modal-form {
  padding: 0 18px 4px;
}

/* Opciones — 3 checks compactos horizontales */
.sm-prod-checks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 6px;
}

#storeProductModal .sm-check.sm-check-block {
  align-items: flex-start;
  padding: 7px 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  gap: 8px;
  transition: background 120ms, border-color 120ms;
}

#storeProductModal .sm-check.sm-check-block:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.13);
}

#storeProductModal .sm-check.sm-check-block input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  width: auto !important;
  min-width: 0;
  min-height: 0;
  height: auto;
}

.sm-check-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sm-check-label {
  font-size: 10px;
  color: #b8c8e0;
  font-weight: 600;
  line-height: 1.2;
}

.sm-check-hint {
  font-size: 8px;
  color: #4a5c78;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* style_preset "Sin efecto aún" badge */
.sm-badge-pending {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(150,100,30,0.3);
  border: 1px solid rgba(200,150,50,0.3);
  color: #c9a030;
  margin-left: 5px;
  vertical-align: middle;
}

.sm-badge-auto {
  display: inline-block;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(30,80,150,0.25);
  border: 1px solid rgba(60,140,255,0.22);
  color: #6ab0f0;
  margin-left: 5px;
  vertical-align: middle;
}

.sm-slug-auto {
  background: rgba(255,255,255,0.02) !important;
  color: #3a5a80 !important;
  cursor: default !important;
  user-select: all;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px !important;
  letter-spacing: .04em;
}

/* Variantes — nueva estructura 2 columnas */
#storeProductModal .sm-variants-box {
  margin-top: 0;
  padding: 10px 10px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.015);
}

#storeProductModal .store-variant-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 10px 10px 8px !important;
  border-radius: 7px !important;
  background: rgba(255,255,255,0.025) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
}

/* Grid 2 columnas para los 6 campos */
#storeProductModal .sv-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-bottom: 8px;
}

#storeProductModal .sv-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#storeProductModal .sv-field label {
  font-size: 8px !important;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #4a5c78 !important;
  font-weight: 700;
}

#storeProductModal .sv-field input {
  font-size: 10px !important;
  padding: 4px 8px !important;
  height: 26px !important;
  min-height: 0 !important;
  border-radius: 4px !important;
  border-color: rgba(255,255,255,0.09) !important;
}

/* Footer con checks y botón quitar */
#storeProductModal .sv-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 7px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

#storeProductModal .sv-check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #7a8caa;
  cursor: pointer;
  user-select: none;
}

#storeProductModal .sv-check input[type="checkbox"] {
  width: auto !important;
  min-width: 0;
  min-height: 0;
  height: auto;
}

#storeProductModal .sv-remove {
  margin-left: auto;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 9px !important;
  font-size: 9px !important;
  height: 22px !important;
  min-height: 0 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Modal head kicker text */
#storeProductModal .modal-kicker {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5c6e8a;
  margin: 0 0 2px;
}

#storeProductModal .sm-modal-head h3 {
  font-size: 17px;
}

/* ── Upload loading overlay (spinner sobre zona de imagen) ───── */
@keyframes sm-spin {
  to { transform: rotate(360deg); }
}

.sm-img-loading {
  position: relative !important;
  pointer-events: none !important;
  user-select: none !important;
}

.sm-img-loading::before {
  content: attr(data-loading-label);
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 12, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 44px;
  color: #f6f0e4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 30;
  border-radius: inherit;
}

.sm-img-loading::after {
  content: '';
  position: absolute;
  top: calc(50% - 16px);
  left: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  margin-left: -14px;
  border: 2.5px solid rgba(201, 169, 110, 0.2);
  border-top-color: #c9a96e;
  border-radius: 50%;
  z-index: 31;
  animation: sm-spin 0.72s linear infinite;
}

#storeCategoryModal .modal-card,
#storeProductModal .modal-card,
#storeBannerModal .modal-card,
#storeStripeWebhookGuideModal .modal-card,
#storeCategoryModal .sm-modal-card,
#storeProductModal .sm-modal-card,
#storeBannerModal .sm-modal-card,
#storeStripeWebhookGuideModal .sm-modal-card {
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#storeProductModal .sm-modal-card {
  width: 820px;
}

#storeStripeWebhookGuideModal .sm-modal-card {
  width: 640px;
}

.sm-modal-card {
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sm-modal-wide {
  width: 820px;
}

.sm-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.sm-modal-head h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: #edf2ff;
  margin: 0;
}

.sm-modal-close {
  width: 32px !important;
  height: 32px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: #8896b2 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  flex-shrink: 0;
}

.sm-modal-close:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #e0e8f8 !important;
  transform: none !important;
  box-shadow: none !important;
}

.sm-modal-form {
  overflow-y: auto;
  padding: 18px 22px 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.sm-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  align-items: start;
}

.sm-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 22px 18px;
  flex-shrink: 0;
  background: var(--panel);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.sm-modal-actions button {
  width: auto !important;
  min-width: 120px !important;
}

#storeStripeWebhookGuideModal .sm-stripe-guide-modal {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#storeStripeWebhookGuideModal .sm-stripe-guide-mode {
  margin: 0;
  color: #c8d5ec;
  font-size: 12px;
  line-height: 1.45;
}

#storeStripeWebhookGuideModal .sm-stripe-guide-endpoint-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#storeStripeWebhookGuideModal .sm-stripe-guide-endpoint-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#storeStripeWebhookGuideModal .sm-stripe-guide-endpoint-row code {
  flex: 1;
  display: block;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  color: #e7eefc;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.35;
  word-break: break-all;
}

#storeStripeWebhookGuideModal .sm-stripe-guide-endpoint-row button {
  width: auto !important;
  min-width: 96px !important;
}

#storeStripeWebhookGuideModal .sm-stripe-guide-steps,
#storeStripeWebhookGuideModal .sm-stripe-guide-events {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: #d4e0f5;
  font-size: 12px;
  line-height: 1.45;
}

#storeStripeWebhookGuideModal .sm-stripe-guide-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

/* Banner modal preview */
.sm-banner-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  margin-bottom: 4px;
  display: block;
}

/* ── Banner modal — image zone ──────────────────────────────── */
#storeBannerModal .sm-ban-modal-form {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#storeBannerModal .sm-ban-img-zone {
  flex-shrink: 0;
  padding: 0;
}

#storeBannerModal .sm-ban-img-preview {
  position: relative;
  width: 100%;
  height: 160px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  cursor: pointer;
}

#storeBannerModal .sm-ban-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

#storeBannerModal .sm-ban-img-preview img.has-img {
  display: block;
}

#storeBannerModal .sm-ban-img-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: #5a6880; font-size: 12px;
}

#storeBannerModal .sm-ban-img-placeholder.hidden {
  display: none;
}

#storeBannerModal .sm-ban-img-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 10px; gap: 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
  opacity: 0; transition: opacity 160ms;
}

#storeBannerModal .sm-ban-img-preview:hover .sm-ban-img-overlay {
  opacity: 1;
}

#storeBannerModal .sm-ban-img-preview:not(.has-preview) .sm-ban-img-overlay {
  opacity: 1;
  background: none;
}

/* ── Section image zones (Promos, Club, etc. fuera de modales) ─────── */
#storeModule .sm-ban-img-zone {
  padding: 0;
}

#storeModule .sm-ban-img-preview {
  position: relative;
  width: 100%;
  height: 120px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  cursor: pointer;
}

#storeModule .sm-ban-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

#storeModule .sm-ban-img-preview img.has-img {
  display: block;
}

#storeModule .sm-ban-img-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: #5a6880; font-size: 12px;
}

#storeModule .sm-ban-img-placeholder.hidden {
  display: none;
}

#storeModule .sm-ban-img-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 8px; gap: 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
  opacity: 0; transition: opacity 160ms;
}

#storeModule .sm-ban-img-preview:hover .sm-ban-img-overlay {
  opacity: 1;
}

#storeModule .sm-ban-img-preview:not(.has-preview) .sm-ban-img-overlay {
  opacity: 1;
  background: none;
}

/* Banner modal fields grid */
.sm-ban-modal-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  padding: 14px 22px;
  align-items: start;
}

.sm-ban-field-wide {
  grid-column: 1 / -1;
}

/* Inline field note (smaller gray annotation) */
.sm-field-note {
  font-size: 10px;
  color: #4a566e;
  margin-left: 4px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 400;
}

/* Featured badge inside product card */
.sm-badge-featured {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  background: rgba(201,169,110,0.12);
  border: 1px solid rgba(201,169,110,0.32);
  border-radius: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .05em;
  color: #c9a96e;
  text-transform: uppercase;
}

/* Portada slot badge — indicates which 4 featured products show in home */
.sm-badge-portada {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  background: rgba(210, 45, 35, 0.12);
  border: 1px solid rgba(210, 45, 35, 0.38);
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #e8604c;
  text-transform: uppercase;
}

/* Promo badge — marks products in Promociones Especiales */
.sm-badge-promo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  background: rgba(80, 180, 100, 0.12);
  border: 1px solid rgba(80, 180, 100, 0.35);
  border-radius: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .05em;
  color: #5bc47a;
  text-transform: uppercase;
}

.sm-prod-badge-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

/* Banner role label */
.sm-ban-role-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.sm-ban-role {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6a7fa0;
}

/* Category image upload inside category modal */
/* ── Category modal — image zone ────────────────────────────── */
#storeCategoryModal .sm-cat-modal-form {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#storeCategoryModal .sm-cat-modal-img-zone {
  flex-shrink: 0;
  padding: 0;
}

#storeCategoryModal .sm-cat-modal-img-preview {
  position: relative;
  width: 100%;
  height: 180px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  cursor: pointer;
}

#storeCategoryModal .sm-cat-modal-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

#storeCategoryModal .sm-cat-modal-img-preview img.has-img {
  display: block;
}

#storeCategoryModal .sm-cat-modal-img-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: #5a6880; font-size: 12px;
}

#storeCategoryModal .sm-cat-modal-img-placeholder.hidden {
  display: none;
}

#storeCategoryModal .sm-cat-modal-img-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 10px; gap: 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
  opacity: 0; transition: opacity 160ms;
}

#storeCategoryModal .sm-cat-modal-img-preview:hover .sm-cat-modal-img-overlay {
  opacity: 1;
}

#storeCategoryModal .sm-cat-modal-img-preview:not(.has-preview) .sm-cat-modal-img-overlay {
  opacity: 1;
  background: none;
}

.sm-cat-modal-img-upload-btn,
.sm-cat-modal-img-del-btn {
  height: 28px !important; min-height: 0 !important;
  padding: 0 10px !important; font-size: 11px !important;
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 5px !important; box-shadow: none !important;
  transform: none !important; cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.sm-cat-modal-img-upload-btn {
  background: rgba(13,13,13,0.88) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: #edf2ff !important;
}

.sm-cat-modal-img-upload-btn:hover {
  background: rgba(30,30,30,0.96) !important;
  transform: none !important;
  box-shadow: none !important;
}

.sm-cat-modal-img-del-btn {
  background: rgba(100,20,20,0.75) !important;
  border: 1px solid rgba(200,60,60,0.3) !important;
  color: #ffc8c8 !important;
}

.sm-cat-modal-img-del-btn:hover {
  background: rgba(140,25,25,0.9) !important;
  transform: none !important;
  box-shadow: none !important;
}

.sm-cat-modal-img-hint {
  font-size: 10px; color: #4a566e;
  text-align: center; padding: 6px 0 4px;
  letter-spacing: 0.02em;
}

.sm-modal-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0; flex-shrink: 0;
}

#storeCategoryModal .sm-cat-modal-fields {
  padding: 14px 22px 4px;
  display: flex; flex-direction: column; gap: 10px;
}

#storeCategoryModal .sm-cat-modal-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px; align-items: start;
}

#storeCategoryModal .sm-cat-modal-check {
  align-self: end; padding-bottom: 4px;
}

/* ── Product modal — image section + form ───────────────────── */
#storeProductModal .sm-modal-card {
  display: flex; flex-direction: column; overflow: hidden;
}

.sm-prod-modal-images {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 14px 22px 12px;
  background: rgba(255,255,255,0.015);
}

.sm-prod-modal-img-head {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 10px;
}

.sm-prod-modal-img-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: #8896b2;
}

.sm-prod-modal-img-upload-controls {
  display: flex; align-items: center; gap: 8px;
}

.sm-prod-modal-img-btn {
  height: 26px !important; min-height: 0 !important;
  padding: 0 10px !important; font-size: 11px !important;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #c8d4ea !important; border-radius: 5px !important;
  box-shadow: none !important; transform: none !important; cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.sm-prod-modal-img-btn:hover {
  background: rgba(255,255,255,0.1) !important; color: #fff !important;
  transform: none !important; box-shadow: none !important;
}

.sm-prod-modal-img-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 7px;
}

.sm-prod-img-hint {
  margin: 8px 0 0;
  font-size: 9px;
  color: #3a5070;
  line-height: 1.55;
  letter-spacing: .01em;
}
.sm-prod-img-hint strong { color: #5580a0; }

.sm-prod-img-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
}

.sm-prod-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sm-prod-img-card .sm-prod-img-del {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px !important; min-width: 0 !important;
  height: 22px !important; min-height: 0 !important;
  padding: 0 !important; border-radius: 50% !important;
  background: rgba(13,13,13,0.9) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #e06060 !important;
  display: grid; place-items: center;
  font-size: 10px; cursor: pointer;
  box-shadow: none !important; transform: none !important;
  opacity: 0; transition: opacity 120ms;
}

.sm-prod-img-card:hover .sm-prod-img-del { opacity: 1; }

.sm-prod-img-card .sm-prod-img-badge-primary {
  position: absolute; bottom: 3px; left: 3px;
  font-size: 9px; padding: 1px 5px; border-radius: 3px;
  background: rgba(210,45,35,0.85); color: #fff;
  font-weight: 600; letter-spacing: 0.04em; pointer-events: none;
}

.sm-prod-modal-no-images {
  padding: 10px 22px;
  font-size: 11px; color: #4a566e;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sm-prod-modal-form {
  overflow-y: auto;
  padding: 0 22px 4px;
  display: flex; flex-direction: column; gap: 0; flex: 1;
}

.sm-prod-form-section {
  padding: 14px 0 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sm-prod-form-section:last-of-type {
  border-bottom: none;
}

.sm-prod-section-label {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #5a6880; margin-bottom: 10px;
}

.sm-prod-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; align-items: start;
}

.sm-field-span2 { grid-column: span 2; }

.sm-prod-checks-row {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
}

/* ── Banner upload ───────────────────────────────────────────── */
.sm-banner-upload-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sm-banner-upload-row input[type="file"] {
  flex: 1;
  min-width: 0;
}

.sm-banner-upload-row button {
  width: auto !important;
}

/* Editorial pass: smaller typography, straighter corners, less visual noise. */
#usersModule,
#brandModule,
#landingBuilderModule,
#emailMarketingModule,
#storeModule,
#technicalSettingsModule {
  --editor-radius-xs: 4px;
  --editor-radius-sm: 6px;
  --editor-radius-md: 8px;
}

#usersModule .card,
#landingBuilderModule .landing-card,
#landingBuilderModule .landing-section-card,
#emailMarketingModule .email-panel,
#technicalSettingsModule .technical-card,
#technicalSettingsModule .technical-snapshot-card {
  border-radius: var(--editor-radius-md);
  box-shadow: none;
}

#landingBuilderModule .landing-field-title,
#emailMarketingModule .landing-field-title,
#technicalSettingsModule .landing-field-title {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#landingBuilderModule .landing-field-help,
#emailMarketingModule .landing-field-help,
#storeModule .landing-field-help,
#technicalSettingsModule .landing-field-help,
#landingBuilderModule .hint,
#emailMarketingModule .hint,
#technicalSettingsModule .hint {
  font-size: 10px;
  line-height: 1.45;
}

#landingBuilderModule .landing-section-card h4,
#emailMarketingModule .email-panel h4,
#technicalSettingsModule .technical-snapshot-card h4,
#technicalSettingsModule .technical-card h4 {
  font-size: 12px;
  letter-spacing: 0.04em;
}

#landingBuilderModule input,
#landingBuilderModule select,
#landingBuilderModule textarea,
#clientPushModule input,
#clientPushModule select,
#clientPushModule textarea,
#emailMarketingModule input,
#emailMarketingModule select,
#emailMarketingModule textarea,
#storeModule input,
#storeModule select,
#storeModule textarea,
#storeCategoryModal input,
#storeCategoryModal select,
#storeCategoryModal textarea,
#storeProductModal input,
#storeProductModal select,
#storeProductModal textarea,
#storeBannerModal input,
#storeBannerModal select,
#storeBannerModal textarea,
#technicalSettingsModule input,
#technicalSettingsModule select,
#technicalSettingsModule textarea {
  border-radius: var(--editor-radius-xs);
  font-size: 12px;
}

#landingBuilderModule button,
#clientPushModule button,
#emailMarketingModule button,
#storeModule button,
#storeCategoryModal button,
#storeProductModal button,
#storeBannerModal button,
#technicalSettingsModule button,
#usersModule button,
#brandModule button {
  border-radius: var(--editor-radius-sm);
}

#landingBuilderModule .landing-tabs {
  align-items: end;
  gap: 6px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

#landingBuilderModule .landing-tab {
  width: auto;
  min-height: 38px;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: #c9d2e5;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px 9px;
  position: relative;
  top: 1px;
}

#landingBuilderModule .landing-tab:hover {
  color: #ebf2ff;
  background: rgba(255, 255, 255, 0.04);
}

#landingBuilderModule .landing-tab.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary) 34%, rgba(255, 255, 255, 0.2));
  background: rgba(16, 22, 34, 0.96);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--brand-primary) 74%, transparent);
}

#landingBuilderModule .landing-tab.active::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 2px;
  background: rgba(16, 22, 34, 0.98);
}

#emailMarketingModule .email-tabs {
  align-items: end;
  gap: 6px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

#emailMarketingModule .email-tab {
  width: auto;
  min-height: 38px;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: #c9d2e5;
  padding: 8px 10px 9px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  top: 1px;
}

#emailMarketingModule .email-tab:hover {
  color: #ebf2ff;
  background: rgba(255, 255, 255, 0.04);
}

#emailMarketingModule .email-tab.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary) 34%, rgba(255, 255, 255, 0.2));
  background: rgba(16, 22, 34, 0.96);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--brand-primary) 74%, transparent);
}

#emailMarketingModule .email-tab.active::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 2px;
  background: rgba(16, 22, 34, 0.98);
}

#emailMarketingModule .email-popup-color-field input[type='color'] {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-mid);
  border-radius: 6px;
  padding: 2px;
  background: rgba(9, 14, 24, 0.65);
}

#emailMarketingModule .email-popup-preview-shell {
  display: grid;
  gap: 10px;
}

#emailMarketingModule .email-popup-preview-stage {
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line-mid) 86%, rgba(255, 255, 255, 0.2));
  padding: 12px;
  background:
    radial-gradient(circle at 16% 8%, rgba(157, 49, 44, 0.16), transparent 62%),
    linear-gradient(152deg, rgba(13, 20, 33, 0.92), rgba(10, 16, 28, 0.96));
  position: relative;
  overflow: hidden;
}

#emailMarketingModule .email-popup-preview-card {
  --popup-preview-accent: #9D312C;
  width: min(740px, 100%);
  margin: 0 auto;
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(7, 12, 20, 0.4);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px;
  position: relative;
}

#emailMarketingModule .email-popup-preview-info {
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: center;
}

#emailMarketingModule .email-popup-preview-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 33px);
  line-height: 1.08;
}

#emailMarketingModule .email-popup-preview-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.44;
  opacity: 0.96;
}

#emailMarketingModule .email-popup-preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: fit-content;
  min-width: 160px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

#emailMarketingModule .email-popup-preview-art {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 32% 23%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05));
}

#emailMarketingModule .email-popup-preview-art.has-image {
  background: rgba(12, 18, 30, 0.8);
}

#emailMarketingModule .email-popup-preview-art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#emailMarketingModule .email-popup-preview-art.has-image::before,
#emailMarketingModule .email-popup-preview-art.has-image::after {
  display: none;
}

#emailMarketingModule .email-popup-preview-art::before {
  content: '';
  position: absolute;
  width: 136px;
  height: 136px;
  border-radius: 999px;
  right: -18px;
  top: -22px;
  background: rgba(255, 255, 255, 0.2);
}

#emailMarketingModule .email-popup-preview-art::after {
  content: '';
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 16px;
  left: 20px;
  bottom: 20px;
  background: color-mix(in srgb, var(--popup-preview-accent) 66%, rgba(255, 255, 255, 0.2));
  opacity: 0.56;
  transform: rotate(-13deg);
}

#emailMarketingModule .email-popup-image-zone {
  display: grid;
  gap: 8px;
  max-width: 460px;
  margin-top: 8px;
}

#emailMarketingModule .email-popup-image-preview {
  position: relative;
  min-height: 180px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line-mid) 88%, rgba(255, 255, 255, 0.16));
  background: rgba(10, 16, 28, 0.72);
  overflow: hidden;
}

#emailMarketingModule .email-popup-image-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#emailMarketingModule .email-popup-image-empty {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 6px;
  place-content: center;
  justify-items: center;
  color: #c9d2e5;
  font-size: 12px;
}

#emailMarketingModule .email-popup-image-empty[hidden],
#emailMarketingModule .email-popup-image-preview-img[hidden] {
  display: none !important;
}

#emailMarketingModule .email-popup-image-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#emailMarketingModule .email-popup-image-preview:hover .email-popup-image-overlay,
#emailMarketingModule .email-popup-image-preview:focus-within .email-popup-image-overlay {
  opacity: 1;
  transform: translateY(0);
}

#emailMarketingModule .email-popup-image-preview:not(.has-preview) .email-popup-image-overlay {
  opacity: 1;
  transform: none;
  justify-content: center;
}

#emailMarketingModule .email-popup-image-overlay .secondary {
  min-height: 30px;
  padding: 0 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#emailMarketingModule .email-popup-preview-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  opacity: 0.86;
}

#emailMarketingModule .email-popup-preview-stage.is-disabled .email-popup-preview-card {
  opacity: 0.68;
  filter: saturate(0.72);
}

#emailMarketingModule .email-popup-preview-stage.is-disabled::after {
  content: 'Popup desactivado';
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  background: rgba(11, 17, 29, 0.86);
  border: 1px solid color-mix(in srgb, var(--line-mid) 92%, rgba(255, 255, 255, 0.15));
  color: #c9d2e5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
}

@media (max-width: 820px) {
  #emailMarketingModule .email-popup-preview-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  #emailMarketingModule .email-popup-preview-art {
    min-height: 108px;
  }

  #emailMarketingModule .email-popup-preview-title {
    font-size: clamp(21px, 6.5vw, 29px);
  }
}

#storeModule .store-tabs {
  align-items: end;
  gap: 6px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

#storeModule .store-tab {
  width: auto;
  min-height: 38px;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: #c9d2e5;
  padding: 8px 10px 9px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  top: 1px;
}

#storeModule .store-tab:hover {
  color: #ebf2ff;
  background: rgba(255, 255, 255, 0.04);
}

#storeModule .store-tab.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary) 34%, rgba(255, 255, 255, 0.2));
  background: rgba(16, 22, 34, 0.96);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--brand-primary) 74%, transparent);
}

#storeModule .store-tab.active::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 2px;
  background: rgba(16, 22, 34, 0.98);
}

#landingBuilderModule .landing-switch,
#landingBuilderModule .landing-check,
#clientPushModule .landing-check,
#emailMarketingModule .landing-check,
#storeModule .landing-check,
#technicalSettingsModule .landing-check {
  border-radius: var(--editor-radius-sm);
}

#landingBuilderModule .landing-section-media-box,
#landingBuilderModule .landing-field-pair,
#landingBuilderModule .landing-og-card,
#landingBuilderModule .landing-root-source-card,
#landingBuilderModule .spintax-field-card,
#emailMarketingModule .email-campaign-image-box,
#emailMarketingModule .email-realtime-item,
#emailMarketingModule .email-simple-list li,
#storeModule .store-variants-box,
#storeModule .store-product-media-box,
#storeModule .store-image-card,
#technicalSettingsModule .technical-snapshot {
  border-radius: var(--editor-radius-sm);
  box-shadow: none;
}

#landingBuilderModule .landing-og-preview,
#landingBuilderModule .landing-section-image-preview,
#emailMarketingModule .email-campaign-image-preview {
  border-radius: var(--editor-radius-sm);
  box-shadow: none;
}

#landingBuilderModule .landing-root-pill {
  border-radius: var(--editor-radius-xs);
  font-size: 9px;
}

#landingBuilderModule .landing-actions-row button,
#landingBuilderModule .landing-root-source-row button,
#clientPushModule .landing-actions-row button,
#emailMarketingModule .landing-actions-row button,
#emailMarketingModule .toolbar.email-toolbar button,
#storeModule .landing-actions-row button,
#technicalSettingsModule .landing-actions-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#landingBuilderModule .landing-actions-row button::before,
#landingBuilderModule .landing-root-source-row button::before,
#clientPushModule .landing-actions-row button::before,
#emailMarketingModule .landing-actions-row button::before,
#emailMarketingModule .toolbar.email-toolbar button::before,
#storeModule .landing-actions-row button::before,
#technicalSettingsModule .landing-actions-row button::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  opacity: 0.78;
  flex: none;
}

#landingBuilderModule .landing-actions-row button.secondary::before,
#landingBuilderModule .landing-root-source-row button.secondary::before,
#clientPushModule .landing-actions-row button.secondary::before,
#emailMarketingModule .landing-actions-row button.secondary::before,
#emailMarketingModule .toolbar.email-toolbar button.secondary::before,
#storeModule .landing-actions-row button.secondary::before,
#technicalSettingsModule .landing-actions-row button.secondary::before {
  border-radius: 999px;
  width: 9px;
  height: 9px;
}

#landingBuilderModule .landing-auto-field {
  display: grid;
  gap: 6px;
  align-content: start;
}

#landingBuilderModule .landing-auto-field-label {
  margin: 0;
  color: #a0adc7;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

#landingBuilderModule .landing-section-grid .landing-auto-field.is-textarea,
#landingBuilderModule .landing-form-grid .landing-auto-field.field-span-two,
#landingBuilderModule .landing-form-grid .landing-auto-field.is-textarea {
  grid-column: 1 / -1;
}

/* Remove the oversized outer wrapper card in these modules. */
#landingBuilderModule .landing-card,
#emailMarketingModule .email-marketing-card,
#technicalSettingsModule .technical-card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#technicalSettingsModule .technical-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  align-items: end;
  gap: 6px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 12px;
}

#technicalSettingsModule .technical-tab {
  width: auto;
  min-height: 38px;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: #c9d2e5;
  padding: 8px 10px 9px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  top: 1px;
}

#technicalSettingsModule .technical-tab:hover {
  color: #ebf2ff;
  background: rgba(255, 255, 255, 0.04);
}

#technicalSettingsModule .technical-tab.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary) 34%, rgba(255, 255, 255, 0.2));
  background: rgba(16, 22, 34, 0.96);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--brand-primary) 74%, transparent);
}

#technicalSettingsModule .technical-tab.active::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 2px;
  background: rgba(16, 22, 34, 0.98);
}

#technicalSettingsModule .technical-tab-pane {
  display: grid;
  gap: 12px;
}

#technicalSettingsModule .technical-tab-pane[hidden] {
  display: none !important;
}

#technicalSettingsModule .technical-compressor-card {
  gap: 10px;
}

#technicalSettingsModule .technical-compressor-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#technicalSettingsModule .technical-compressor-warn {
  margin: 0;
  color: #f4c27a;
}

#technicalSettingsModule .technical-cleanup-card {
  display: grid;
  gap: 10px;
}

#technicalSettingsModule .technical-cleanup-toolbar {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
}

#technicalSettingsModule .technical-cleanup-toolbar > button {
  min-height: 38px;
}

#technicalSettingsModule .technical-cleanup-summary {
  min-height: 132px;
  max-height: 260px;
  overflow: auto;
}

#technicalSettingsModule .technical-cleanup-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}

#technicalSettingsModule .technical-cleanup-list li {
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-mid);
  background: rgba(12, 18, 30, 0.46);
  font-size: 11px;
  line-height: 1.45;
  word-break: break-word;
}

@media (max-width: 1120px) {
  #technicalSettingsModule .technical-compressor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #technicalSettingsModule .technical-cleanup-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #technicalSettingsModule .technical-compressor-grid {
    grid-template-columns: 1fr;
  }

  #technicalSettingsModule .technical-cleanup-toolbar {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ORDERS MODULE — orders-*
═══════════════════════════════════════════════════════════════════════════ */

#ordersModule[hidden] {
  display: none !important;
}

#ordersModule .orders-card {
  gap: 14px;
}

#ordersModule .orders-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#ordersModule .orders-kicker {
  margin: 0 0 4px;
  color: var(--brand-primary);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

#ordersModule .orders-topbar h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  line-height: 1.04;
}

#ordersModule .orders-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

#ordersModule .orders-tab {
  width: auto;
  min-width: 0;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.03);
  color: #c8d2e6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: none;
}

#ordersModule .orders-tab.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary) 48%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 72%, transparent) 0%, color-mix(in srgb, var(--brand-accent) 54%, transparent) 100%);
}

#ordersModule .orders-tab-pane {
  display: grid;
  gap: 14px;
}

#ordersModule .orders-tab-pane[hidden] {
  display: none;
}

#ordersModule .orders-dashboard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
}

#ordersModule .orders-dashboard-meta-copy {
  display: grid;
  gap: 4px;
}

#ordersModule .orders-dashboard-meta-copy .hint {
  margin: 0;
}

#ordersModule .orders-dashboard-manage-btn {
  width: auto;
  min-width: 160px;
}

#ordersModule .orders-kpis {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#ordersModule .orders-dashboard-strip {
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.016) 0%, rgba(255, 255, 255, 0.006) 100%);
}

#ordersModule .orders-strip-metric {
  min-width: 0;
  padding: 16px 18px 18px;
  border-right: 1px solid var(--line-soft);
  display: grid;
  gap: 8px;
}

#ordersModule .orders-strip-metric:last-child {
  border-right: none;
}

#ordersModule .orders-strip-metric .label {
  color: #8fa1bf;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#ordersModule .orders-strip-metric .value {
  font-size: 40px;
  line-height: 0.95;
  font-weight: 300;
  color: #f3f6ff;
}

#ordersModule .orders-strip-metric-revenue .value {
  letter-spacing: -0.03em;
}

#ordersModule .orders-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#ordersModule .orders-dashboard-panels {
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.85fr);
  align-items: start;
  gap: 18px;
}

#ordersModule .orders-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#ordersModule .orders-panel-head h4 {
  margin: 0;
}

#ordersModule .orders-panel-head .hint {
  margin: 4px 0 0;
}

#ordersModule .orders-panel-head-tight {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  flex-direction: column;
  align-items: stretch;
}

#ordersModule .orders-panel-kicker {
  margin: 0 0 6px;
  color: var(--brand-primary);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

#ordersModule .orders-dashboard-main,
#ordersModule .orders-dashboard-side {
  min-width: 0;
}

#ordersModule .orders-dashboard-block {
  min-width: 0;
  padding-top: 2px;
}

#ordersModule .orders-dashboard-block-primary {
  border-top: 2px solid color-mix(in srgb, var(--brand-primary) 42%, transparent);
}

#ordersModule .orders-dashboard-block-secondary {
  border-top: 1px solid color-mix(in srgb, var(--brand-primary) 22%, transparent);
}

#ordersModule .orders-dashboard-side .orders-dashboard-block + .orders-dashboard-block {
  margin-top: 16px;
}

#ordersModule #ordersManageListView {
  display: grid;
  gap: 12px;
}

#ordersModule .orders-detail-view {
  display: grid;
  gap: 12px;
}

#ordersModule .orders-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 320px);
  gap: 12px;
  align-items: start;
}

#ordersModule .orders-detail-head button {
  width: auto;
  min-width: 150px;
}

#ordersModule .orders-detail-head h4 {
  margin: 0;
  font-size: 20px;
  font-family: 'Cormorant Garamond', serif;
}

#ordersModule .orders-detail-head p {
  margin: 0;
}

#ordersModule .orders-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#ordersModule .orders-detail-panel {
  min-width: 0;
}

#ordersModule .orders-detail-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#ordersModule .orders-detail-kv {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 4px;
}

#ordersModule .orders-detail-kv span {
  color: #8f9cb5;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#ordersModule .orders-detail-kv strong {
  color: #e8eefb;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}

#ordersModule .orders-panel {
  min-width: 0;
}

#ordersModule .orders-table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
}

#ordersModule .orders-dashboard-table-wrap {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  background: transparent;
}

#ordersModule .orders-dashboard-pane .orders-table {
  min-width: 0;
}

#ordersModule .orders-dashboard-pane .orders-table th {
  background: rgba(255, 255, 255, 0.02);
}

#ordersModule .orders-table {
  min-width: 640px;
}

#ordersModule .orders-manage-table {
  min-width: 1240px;
}

#ordersModule .orders-checkout-table {
  min-width: 1220px;
}

#ordersModule .orders-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 170px auto auto;
  gap: 8px;
  align-items: center;
}

#ordersModule .orders-checkout-toolbar {
  grid-template-columns: minmax(220px, 1fr) 170px minmax(190px, 1fr) 160px 160px 170px auto auto;
}

#ordersModule .orders-toolbar > button {
  width: auto;
  min-width: 0;
  white-space: nowrap;
}

#ordersModule .orders-customer-cell,
#ordersModule .orders-totals-cell,
#ordersModule .orders-status-cell {
  display: grid;
  gap: 3px;
}

#ordersModule .orders-latest-row {
  cursor: pointer;
}

#ordersModule .orders-latest-row:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand-primary) 64%, white);
  outline-offset: -2px;
}

#ordersModule .orders-latest-link {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f5f7fb;
  font: inherit;
  text-align: left;
  box-shadow: none;
}

#ordersModule .orders-latest-link strong {
  color: inherit;
}

#ordersModule .orders-customer-cell small,
#ordersModule .orders-totals-cell small,
#ordersModule .orders-status-cell small,
#ordersModule .orders-row-meta {
  color: #8f9cb5;
  font-size: 11px;
  line-height: 1.35;
}

#ordersModule .orders-customer-mode {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 3px 9px;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
}

#ordersModule .orders-customer-mode.is-guest {
  color: #fff3d8;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.18);
}

#ordersModule .orders-customer-mode.is-registered {
  color: #ddfceb;
  border-color: rgba(46, 215, 161, 0.5);
  background: rgba(46, 215, 161, 0.17);
}

#ordersModule .orders-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

#ordersModule .orders-severity-badge,
#ordersModule .orders-risk-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

#ordersModule .orders-status-badge.is-pending {
  color: #fff3d8;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.18);
}

#ordersModule .orders-status-badge.is-paid,
#ordersModule .orders-status-badge.is-delivered {
  color: #ddfceb;
  border-color: rgba(46, 215, 161, 0.5);
  background: rgba(46, 215, 161, 0.17);
}

#ordersModule .orders-status-badge.is-processing,
#ordersModule .orders-status-badge.is-shipped {
  color: #d8e8ff;
  border-color: rgba(96, 165, 250, 0.48);
  background: rgba(96, 165, 250, 0.16);
}

#ordersModule .orders-status-badge.is-cancelled,
#ordersModule .orders-status-badge.is-refunded {
  color: #ffd9d6;
  border-color: rgba(239, 83, 80, 0.52);
  background: rgba(239, 83, 80, 0.16);
}

#ordersModule .orders-status-badge.is-unknown {
  color: #c8d3e8;
}

#ordersModule .orders-severity-badge.is-error {
  color: #ffd9d6;
  border-color: rgba(239, 83, 80, 0.52);
  background: rgba(239, 83, 80, 0.16);
}

#ordersModule .orders-severity-badge.is-warning {
  color: #fff3d8;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.18);
}

#ordersModule .orders-severity-badge.is-info {
  color: #d8e8ff;
  border-color: rgba(96, 165, 250, 0.48);
  background: rgba(96, 165, 250, 0.16);
}

#ordersModule .orders-risk-badge.is-high {
  color: #ffd9d6;
  border-color: rgba(239, 83, 80, 0.52);
  background: rgba(239, 83, 80, 0.16);
}

#ordersModule .orders-risk-badge.is-medium {
  color: #fff3d8;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.18);
}

#ordersModule .orders-risk-badge.is-low {
  color: #ddfceb;
  border-color: rgba(46, 215, 161, 0.5);
  background: rgba(46, 215, 161, 0.17);
}

#ordersModule .orders-risk-badge.is-unknown {
  color: #c8d3e8;
}

#ordersModule .orders-row-controls {
  display: grid;
  grid-template-columns: auto auto 150px minmax(200px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

#ordersModule .orders-detail-open {
  width: auto;
  min-width: 94px;
}

#ordersModule .orders-label-download {
  width: auto;
  min-width: 104px;
}

#ordersModule .orders-status-select,
#ordersModule .orders-note-input {
  min-height: 38px;
}

#ordersModule .orders-status-save {
  width: auto;
  min-width: 96px;
}

#ordersModule .orders-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#ordersModule .orders-pagination button {
  width: auto;
  min-width: 120px;
}

#ordersModule .orders-settings-grid {
  row-gap: 12px;
}

#ordersModule .orders-statuses {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

#ordersModule .orders-statuses legend {
  padding: 0 6px;
  color: #9cadc8;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#ordersModule .orders-statuses label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d4deef;
  font-size: 12px;
}

#ordersModule .orders-statuses input {
  width: 16px;
  min-width: 16px;
  height: 16px;
}

#ordersModule .orders-dashboard-panels .orders-table {
  min-width: 0;
}

.crm-orders-detail-body {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at -8% -10%, color-mix(in srgb, var(--brand-primary) 11%, transparent), transparent 62%),
    #000;
}

.crm-orders-detail-body .orders-report-shell {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 30px 26px 56px;
  display: grid;
  gap: 14px;
}

.crm-orders-detail-body .orders-report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--line-mid);
  padding-bottom: 12px;
}

.crm-orders-detail-body .orders-report-kicker {
  margin: 0 0 4px;
  color: var(--brand-primary);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.crm-orders-detail-body .orders-report-head h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  line-height: 1.04;
}

.crm-orders-detail-body .orders-report-subtitle {
  margin: 4px 0 0;
  color: #9aabc8;
  font-size: 12px;
}

.crm-orders-detail-body .orders-report-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.crm-orders-detail-body .orders-report-btn {
  width: auto;
  min-width: 164px;
  min-height: 40px;
  border-radius: 0;
  box-shadow: none;
}

.crm-orders-detail-body .orders-report-message {
  margin: 0;
}

.crm-orders-detail-body .orders-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.crm-orders-detail-body .orders-report-block {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.52);
  padding: 12px;
}

.crm-orders-detail-body .orders-report-block h2 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #e5edfb;
}

.crm-orders-detail-body .orders-report-kv-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}

.crm-orders-detail-body .orders-report-kv-table tr {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.crm-orders-detail-body .orders-report-kv-table tr:first-child {
  border-top: 0;
}

.crm-orders-detail-body .orders-report-kv-table th,
.crm-orders-detail-body .orders-report-kv-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px 0;
}

.crm-orders-detail-body .orders-report-kv-table th {
  width: 190px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa0bb;
  font-weight: 700;
}

.crm-orders-detail-body .orders-report-kv-table td {
  color: #e6eefc;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.crm-orders-detail-body .orders-report-table-wrap {
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.44);
}

.crm-orders-detail-body .orders-report-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.crm-orders-detail-body .orders-report-table th,
.crm-orders-detail-body .orders-report-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.crm-orders-detail-body .orders-report-table thead th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8f9fba;
  font-weight: 700;
}

.crm-orders-detail-body .orders-report-table tbody td {
  color: #e5ecf9;
  font-size: 12px;
}

.crm-orders-detail-body .orders-report-row-meta {
  margin-top: 3px;
  color: #8f9fba;
  font-size: 11px;
}

.crm-orders-detail-body .orders-report-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.crm-orders-detail-body .orders-report-badge.is-error,
.crm-orders-detail-body .orders-report-badge.is-high {
  color: #ffd9d6;
  border-color: rgba(239, 83, 80, 0.54);
  background: rgba(239, 83, 80, 0.15);
}

.crm-orders-detail-body .orders-report-badge.is-warning,
.crm-orders-detail-body .orders-report-badge.is-medium {
  color: #fff3d8;
  border-color: rgba(245, 158, 11, 0.52);
  background: rgba(245, 158, 11, 0.17);
}

.crm-orders-detail-body .orders-report-badge.is-info {
  color: #d8e8ff;
  border-color: rgba(96, 165, 250, 0.48);
  background: rgba(96, 165, 250, 0.15);
}

.crm-orders-detail-body .orders-report-badge.is-low {
  color: #ddfceb;
  border-color: rgba(46, 215, 161, 0.5);
  background: rgba(46, 215, 161, 0.15);
}

.crm-orders-detail-body .orders-report-badge.is-unknown {
  color: #c8d3e8;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; }
.state { font-size: 12px; font-weight: 700; }
.state.ok { color: var(--ok); }
.state.warn { color: var(--warn); }

@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: 1fr; }
  .landing-builder-grid { grid-template-columns: 1fr; }
  .landing-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .landing-form-grid { grid-template-columns: 1fr; }
  .landing-brand-sync-grid { grid-template-columns: 1fr; }
  .landing-color-config-grid { grid-template-columns: 1fr; }
  .landing-og-grid { grid-template-columns: 1fr; }
  .spintax-token-inline-grid { grid-template-columns: 1fr; }
  .spintax-token-grid { grid-template-columns: 1fr; }
  .spintax-simple-grid { grid-template-columns: 1fr; }
  .spintax-preview-samples { grid-template-columns: 1fr; }
  .email-dashboard-grid { grid-template-columns: 1fr; }
  .email-form-grid { grid-template-columns: 1fr; }
  .email-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #emailMarketingModule .email-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store-split-layout { grid-template-columns: 1fr; }
  .store-form-grid { grid-template-columns: 1fr; }
  .store-product-image-form { grid-template-columns: 1fr; }
  .store-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar.email-toolbar { grid-template-columns: minmax(180px, 1fr) auto 170px auto auto; }
  .brand-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  #couponsModule .coupons-create-layout {
    grid-template-columns: 1fr;
  }

  #couponsModule .coupons-dashboard-layout {
    grid-template-columns: 1fr;
  }

  #emailMarketingModule .email-dashboard-subscribers-panel .toolbar.email-toolbar {
    grid-template-columns: 1fr;
  }

  #couponsModule .coupons-leads-panel .toolbar.email-toolbar {
    grid-template-columns: 1fr;
  }

  #surveysModule .surveys-settings-layout {
    grid-template-columns: 1fr;
  }

  #surveysModule .surveys-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #surveysModule .surveys-responses-toolbar,
  #surveysModule .surveys-list-toolbar,
  #surveysModule .surveys-form-grid,
  #surveysModule .surveys-question-grid {
    grid-template-columns: 1fr;
  }

  #surveysModule .surveys-theme-grid {
    grid-template-columns: 1fr;
  }

  #couponsModule .coupons-preview-panel {
    grid-column: 1;
    position: static;
  }

  #couponsModule .coupons-preview-frame-wrap,
  #couponsModule #couponsLivePreviewFrame,
  #couponsModule #couponsLivePreviewResultFrame {
    min-height: 500px;
    height: 500px;
  }

  #couponsModule .coupons-theme-grid {
    grid-template-columns: 1fr;
  }

  #ordersModule .orders-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ordersModule .orders-panels {
    grid-template-columns: 1fr;
  }

  #ordersModule .orders-dashboard-meta {
    flex-direction: column;
    align-items: stretch;
  }

  #ordersModule .orders-dashboard-manage-btn {
    width: 100%;
    min-width: 0;
  }

  #ordersModule .orders-dashboard-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ordersModule .orders-strip-metric:nth-child(2n) {
    border-right: none;
  }

  #ordersModule .orders-strip-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  #ordersModule .orders-detail-head {
    grid-template-columns: 1fr;
  }

  #ordersModule .orders-detail-grid {
    grid-template-columns: 1fr;
  }

  #ordersModule .orders-detail-kv-grid {
    grid-template-columns: 1fr;
  }

  #ordersModule .orders-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ordersModule .orders-checkout-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ordersModule .orders-statuses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ordersModule .orders-row-controls {
    grid-template-columns: 1fr;
  }

  #ordersModule .orders-status-save {
    width: 100%;
  }

  .users-directory-head {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .users-search-wrap {
    max-width: none;
    width: 100%;
  }

  .users-head-actions {
    width: 100%;
  }

  .users-head-actions button {
    flex: 1;
    min-width: 0;
  }

  #usersTabManage {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  #usersTabManage .users-photo-panel {
    max-width: none;
    margin-left: 0;
  }

  #clientUsersModule .client-users-grid {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  #clientUsersModule .client-users-filter-strip {
    width: 100%;
  }

  #clientUsersModule .client-users-filter-field {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
    padding: 12px;
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    gap: 8px;
    padding-right: 0;
  }

  .menu-item {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .menu-label {
    max-width: 120px;
  }

  .menu-chevron {
    display: none;
  }

  #couponsModule .client-push-image-uploader {
    grid-template-columns: 1fr;
    align-items: start;
  }

  #couponsModule .client-push-image-thumb-wrap {
    width: 100%;
    height: 180px;
  }

  #couponsModule .coupons-leads-wrap table {
    min-width: 760px;
  }

  #surveysModule .surveys-responses-wrap table {
    min-width: 760px;
  }

  #surveysModule .surveys-list-wrap table {
    min-width: 720px;
  }

  #surveysModule .surveys-option-row {
    grid-template-columns: 1fr;
  }

  .surveys-response-modal .surveys-response-modal-card {
    width: min(96vw, 860px);
    max-height: 86vh;
  }

  #emailMarketingModule .email-dashboard-subscribers-wrap table {
    min-width: 680px;
  }

  #couponsModule .coupons-preview-frame-wrap,
  #couponsModule #couponsLivePreviewFrame,
  #couponsModule #couponsLivePreviewResultFrame {
    min-height: 430px;
    height: 430px;
  }

  .topbar { height: auto; padding: 12px; flex-direction: column; align-items: stretch; }
  .search-wrap { width: 100%; }
  .topbar-right { justify-content: space-between; margin-left: 0; }

  .email-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #emailMarketingModule .email-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-tabs {
    grid-template-columns: 1fr;
  }

  #ordersModule .orders-tabs {
    grid-template-columns: 1fr;
  }

  .store-table {
    min-width: 900px;
  }

  #ordersModule .orders-table {
    min-width: 760px;
  }

  #ordersModule .orders-manage-table {
    min-width: 1040px;
  }

  #ordersModule .orders-checkout-table {
    min-width: 1220px;
  }

  .store-image-grid {
    grid-template-columns: 1fr;
  }

  .toolbar.email-toolbar {
    grid-template-columns: 1fr;
  }

  #ordersModule .orders-toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar.email-toolbar.email-history-toolbar {
    grid-template-columns: 1fr;
  }

  .users-head-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .users-table {
    min-width: 900px;
  }

  #clientUsersModule .users-head-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #clientUsersModule .client-users-tabs {
    grid-template-columns: 1fr;
  }

  #clientUsersModule .client-users-filter-strip {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  #clientUsersModule .client-users-pager {
    flex-direction: column;
    align-items: stretch;
  }

  #clientUsersModule .client-users-pager button {
    width: 100%;
    min-width: 0;
  }

  #clientUserDetailModal .client-user-detail-modal-card {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 24px);
    border-radius: 14px;
  }

  #clientUserDetailModal .client-user-modal-head {
    padding: 16px 16px 12px;
  }

  #clientUserDetailModal .client-user-modal-scroll {
    padding: 14px 16px 14px;
  }

  #clientUserDetailModal .client-users-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #clientUserDetailModal .client-users-actions button {
    width: 100%;
    min-width: 0;
  }

  #clientUserDetailModal .client-users-advanced-grid {
    grid-template-columns: 1fr;
  }

  #guestBuyerDetailModal .guest-buyer-detail-modal-card {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 24px);
    border-radius: 14px;
  }

  #guestBuyerDetailModal .client-user-modal-head {
    padding: 16px 16px 12px;
  }

  #guestBuyerDetailModal .guest-buyer-modal-scroll {
    padding: 14px 16px 14px;
  }

  #guestBuyerDetailModal .guest-buyer-grid {
    grid-template-columns: 1fr;
  }

  #usersModule .users-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #usersModule .users-form-actions button {
    width: 100%;
    min-width: 0;
  }

  .email-subscribers-pager {
    flex-wrap: wrap;
  }

  .email-subscribers-pager button {
    width: 100%;
    min-width: 0;
  }

  .overview-head,
  .kpis,
  .grid,
  .landing-builder-grid,
  .brand-grid,
  .email-marketing-grid,
  .technical-grid { padding-left: 12px; padding-right: 12px; }

  #ordersModule .orders-kpis {
    grid-template-columns: 1fr;
  }

  #ordersModule .orders-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  #ordersModule .orders-pagination button {
    width: 100%;
    min-width: 0;
  }

  #ordersModule .orders-statuses {
    grid-template-columns: 1fr;
  }

  .brand-colors-row,
  .brand-form-grid,
  .brand-logo-grid { grid-template-columns: 1fr; }

  .brand-tabs { grid-template-columns: 1fr; }
  .brand-hour-row { grid-template-columns: 1fr; }

  .brand-actions-row { flex-direction: column; }
  .brand-actions-row button { width: 100%; min-width: 0; }
  .landing-actions-row { flex-direction: column; }
  .landing-actions-row button { width: 100%; min-width: 0; }
  .landing-tabs { grid-template-columns: 1fr; }
  .landing-section-grid { grid-template-columns: 1fr; }
  .landing-section-head { flex-direction: column; align-items: stretch; }
  .landing-header-switches { justify-content: flex-start; }
  .landing-header-logo-grid { grid-template-columns: 1fr; }
  .landing-section-media-box { grid-template-columns: 1fr; }
  .landing-root-source-row { grid-template-columns: 1fr; }

  .password-wrap {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .staff-photo-body {
    grid-template-columns: 1fr;
  }

  .staff-photo-preview {
    width: 100%;
    height: 180px;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .premium-confirm-actions {
    grid-template-columns: 1fr;
  }

  .modal-actions button {
    width: 100%;
    min-width: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   POLÍTICAS LEGALES DE LA TIENDA — sm-policy-*
   Mismo lenguaje visual que .sm-csv-panel (dark theme)
═══════════════════════════════════════════════════════════════════════════ */

#storeModule .sm-policy-card {
  margin: 0 0 10px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  overflow: hidden;
}

#storeModule .sm-policy-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.62);
  cursor: pointer;
  background: rgba(255,255,255,0.035);
  list-style: none;
  user-select: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

#storeModule .sm-policy-summary::-webkit-details-marker { display: none; }

#storeModule .sm-policy-card[open] > .sm-policy-summary {
  color: rgba(255,255,255,0.80);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#storeModule .sm-policy-summary::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent rgba(255,255,255,0.35);
  flex-shrink: 0;
  transition: transform 0.18s;
}

#storeModule .sm-policy-card[open] > .sm-policy-summary::before {
  transform: rotate(90deg);
}

#storeModule .sm-policy-icon-svg {
  flex-shrink: 0;
  color: rgba(255,255,255,0.40);
}

#storeModule .sm-policy-card[open] > .sm-policy-summary .sm-policy-icon-svg {
  color: var(--brand-primary);
}

#storeModule .sm-policy-name {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
}

#storeModule .sm-policy-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

#storeModule .sm-policy-badge-on {
  background: rgba(139,195,74,0.15);
  color: rgba(139,195,74,0.90);
  border: 1px solid rgba(139,195,74,0.25);
}

#storeModule .sm-policy-badge-off {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.30);
  border: 1px solid rgba(255,255,255,0.08);
}

#storeModule .sm-policy-body {
  padding: 16px 18px 18px;
}

#storeModule .sm-policy-context {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.55;
  margin: 0 0 14px;
  padding-left: 10px;
  border-left: 2px solid rgba(255,255,255,0.10);
}

#storeModule .sm-policy-meta-grid {
  margin-bottom: 4px;
}

#storeModule .sm-policy-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

#storeModule .sm-policy-actions .sm-policy-generate-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  width: auto !important;
  min-width: 0 !important;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px !important;
}

#storeModule .sm-policy-actions .sm-policy-save-btn {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  min-width: 80px !important;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
}

#storeModule .sm-policy-result {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.45;
}

#storeModule .sm-policy-result-ok {
  background: rgba(139,195,74,0.10);
  color: rgba(139,195,74,0.90);
  border: 1px solid rgba(139,195,74,0.20);
}

#storeModule .sm-policy-result-err {
  background: rgba(239,83,80,0.10);
  color: rgba(239,83,80,0.90);
  border: 1px solid rgba(239,83,80,0.20);
}

/* ═══════════════════════════════════════════════════════════════════════════
   EMAIL TRANSACCIONAL — storeEmailConfigForm
═══════════════════════════════════════════════════════════════════════════ */

#storeEmailConfigForm .sm-settings-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#storeEmailConfigForm .sm-settings-actions p {
  font-size: 11px;
  margin: 0;
}

/* Light UI theme (global override layer) */

:root[data-ui-theme='light'] body {
  color: var(--text);
  background:
    radial-gradient(900px 420px at -8% -10%, color-mix(in srgb, var(--brand-primary) 10%, #fff), transparent 64%),
    var(--bg);
}

:root[data-ui-theme='light'] .login-view {
  background:
    radial-gradient(980px 460px at -10% -8%, color-mix(in srgb, var(--brand-primary) 11%, #fff), transparent 68%),
    #eef3fb;
}

:root[data-ui-theme='light'] .login-view::before {
  background:
    linear-gradient(125deg, rgba(15, 23, 42, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(55deg, rgba(15, 23, 42, 0.03) 0 1px, transparent 1px 100%);
  opacity: 0.2;
}

:root[data-ui-theme='light'] .login-card {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-strong);
}

:root[data-ui-theme='light'] .login-kicker,
:root[data-ui-theme='light'] .login-copy,
:root[data-ui-theme='light'] .subscription-label,
:root[data-ui-theme='light'] .card-header p,
:root[data-ui-theme='light'] .label,
:root[data-ui-theme='light'] .hint,
:root[data-ui-theme='light'] .brand-field-label,
:root[data-ui-theme='light'] .landing-field-title,
:root[data-ui-theme='light'] .landing-field-help,
:root[data-ui-theme='light'] .sm-section-sub,
:root[data-ui-theme='light'] .overview-sub,
:root[data-ui-theme='light'] .search-input::placeholder {
  color: #3f4f66;
}

:root[data-ui-theme='light'] .sidebar {
  border-right: 1px solid var(--line-soft);
  background:
    radial-gradient(250px 190px at 14% 10%, color-mix(in srgb, var(--brand-primary) 16%, transparent), transparent 72%),
    radial-gradient(280px 220px at 92% 92%, color-mix(in srgb, var(--brand-accent) 12%, transparent), transparent 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(249, 251, 255, 0.98) 100%),
    #ffffff;
  box-shadow: 10px 0 24px rgba(15, 23, 42, 0.06);
}

:root[data-ui-theme='light'] .sidebar-brand {
  border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 12%, var(--line-soft));
}

:root[data-ui-theme='light'] .sidebar-brand-subtitle,
:root[data-ui-theme='light'] .menu-item {
  color: #334155;
}

:root[data-ui-theme='light'] .menu-item:hover {
  color: #111827;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 13%, transparent) 0%, transparent 72%),
    rgba(15, 23, 42, 0.06);
}

:root[data-ui-theme='light'] .menu-item.active {
  color: #111827;
  border-color: color-mix(in srgb, var(--brand-primary) 24%, rgba(15, 23, 42, 0.22));
  background: color-mix(in srgb, var(--brand-primary) 10%, #fff);
}

:root[data-ui-theme='light'] .subscription-box {
  border-color: var(--line-soft);
  background:
    radial-gradient(170px 120px at 16% 10%, color-mix(in srgb, var(--brand-primary) 14%, transparent), transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.95) 100%),
    #ffffff;
}

:root[data-ui-theme='light'] .subscription-bar {
  background: rgba(15, 23, 42, 0.12);
}

:root[data-ui-theme='light'] .topbar {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

:root[data-ui-theme='light'] .search-input,
:root[data-ui-theme='light'] .icon-button {
  background: rgba(248, 251, 255, 0.95);
  border-color: var(--line-mid);
  color: #253249;
}

:root[data-ui-theme='light'] .profile-name,
:root[data-ui-theme='light'] .brand-section-title {
  color: #1b273d;
}

:root[data-ui-theme='light'] .kpi,
:root[data-ui-theme='light'] .card,
:root[data-ui-theme='light'] .brand-card,
:root[data-ui-theme='light'] .landing-field-pair,
:root[data-ui-theme='light'] .landing-og-card,
:root[data-ui-theme='light'] .landing-root-source-card,
:root[data-ui-theme='light'] .spintax-field-card,
:root[data-ui-theme='light'] .email-panel,
:root[data-ui-theme='light'] .email-realtime-item,
:root[data-ui-theme='light'] .email-simple-list li,
:root[data-ui-theme='light'] .technical-snapshot,
:root[data-ui-theme='light'] #storeModule .sm-section,
:root[data-ui-theme='light'] #storeModule .sm-cat-card,
:root[data-ui-theme='light'] #storeModule .sm-prod-card,
:root[data-ui-theme='light'] #storeModule .sm-policy-card,
:root[data-ui-theme='light'] #storeModule .sm-csv-panel {
  background: #ffffff;
  border-color: var(--line-soft);
  color: #1f2937;
  box-shadow: none;
}

:root[data-ui-theme='light'] .brand-tabs,
:root[data-ui-theme='light'] .users-tabs,
:root[data-ui-theme='light'] #emailMarketingModule .email-tabs,
:root[data-ui-theme='light'] #storeModule .store-tabs {
  border-bottom: 1px solid var(--line-soft);
}

:root[data-ui-theme='light'] .brand-tab,
:root[data-ui-theme='light'] .users-tab,
:root[data-ui-theme='light'] #emailMarketingModule .email-tab,
:root[data-ui-theme='light'] #storeModule .store-tab {
  color: #334155;
}

:root[data-ui-theme='light'] .brand-tab:hover,
:root[data-ui-theme='light'] .users-tab:hover,
:root[data-ui-theme='light'] #emailMarketingModule .email-tab:hover,
:root[data-ui-theme='light'] #storeModule .store-tab:hover {
  color: #111827;
  background: rgba(15, 23, 42, 0.05);
}

:root[data-ui-theme='light'] .brand-tab.active,
:root[data-ui-theme='light'] .users-tab.active,
:root[data-ui-theme='light'] #emailMarketingModule .email-tab.active,
:root[data-ui-theme='light'] #storeModule .store-tab.active {
  color: #111827;
  border-color: color-mix(in srgb, var(--brand-primary) 26%, rgba(15, 23, 42, 0.26));
  background: #ffffff;
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--brand-primary) 68%, transparent);
}

:root[data-ui-theme='light'] .brand-tab.active::after,
:root[data-ui-theme='light'] #emailMarketingModule .email-tab.active::after,
:root[data-ui-theme='light'] #storeModule .store-tab.active::after {
  background: #ffffff;
}

:root[data-ui-theme='light'] .landing-check {
  border-color: var(--line-mid);
  background: rgba(246, 249, 255, 0.92);
  color: #1f2937;
}

:root[data-ui-theme='light'] input:not([type='checkbox']):not([type='radio']),
:root[data-ui-theme='light'] select,
:root[data-ui-theme='light'] textarea {
  border-color: var(--line-mid);
  background: #ffffff;
  color: #111827;
}

:root[data-ui-theme='light'] input::placeholder,
:root[data-ui-theme='light'] textarea::placeholder {
  color: #55657f;
}

:root[data-ui-theme='light'] #brandModule input[type='time'] {
  color: #111827;
  color-scheme: light;
}

:root[data-ui-theme='light'] #brandModule input[type='time']::-webkit-calendar-picker-indicator {
  opacity: 0.9;
  filter: none;
}

:root[data-ui-theme='light'] button.secondary,
:root[data-ui-theme='light'] .secondary {
  border-color: var(--line-mid);
  background: rgba(244, 248, 255, 0.95);
  color: #243249;
}

:root[data-ui-theme='light'] button.secondary:hover,
:root[data-ui-theme='light'] .secondary:hover {
  background: rgba(236, 243, 253, 0.96);
}

:root[data-ui-theme='light'] table thead th {
  color: #3f4f66;
}

:root[data-ui-theme='light'] tbody td,
:root[data-ui-theme='light'] .mono,
:root[data-ui-theme='light'] .value,
:root[data-ui-theme='light'] .kpi .value {
  color: #1a2436;
}

:root[data-ui-theme='light'] #storeModule .sm-cat-action-btn {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  color: #334155 !important;
}

:root[data-ui-theme='light'] #storeModule .sm-cat-action-btn:hover {
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(15, 23, 42, 0.24) !important;
  color: #0f172a !important;
}

:root[data-ui-theme='light'] #storeModule .sm-policy-summary,
:root[data-ui-theme='light'] #storeModule .sm-policy-context {
  color: rgba(15, 23, 42, 0.78);
}

:root[data-ui-theme='light'] .logo-uploader-title,
:root[data-ui-theme='light'] .profile-role,
:root[data-ui-theme='light'] #clientPushModule .hint,
:root[data-ui-theme='light'] #clientPushModule .client-push-pane-head .hint,
:root[data-ui-theme='light'] #emailMarketingModule .hint,
:root[data-ui-theme='light'] #storeModule .sm-csv-hint {
  color: #3f4f66;
}

/* Light theme contrast polish */

:root[data-ui-theme='light'] .hint,
:root[data-ui-theme='light'] .landing-field-help,
:root[data-ui-theme='light'] .brand-field-label,
:root[data-ui-theme='light'] .landing-field-title,
:root[data-ui-theme='light'] .card-header p,
:root[data-ui-theme='light'] .kpi .label,
:root[data-ui-theme='light'] .overview-sub,
:root[data-ui-theme='light'] .subscription-label,
:root[data-ui-theme='light'] .profile-role,
:root[data-ui-theme='light'] .logo-uploader-title,
:root[data-ui-theme='light'] #usersModule .card-header p,
:root[data-ui-theme='light'] #clientUsersModule .client-users-pager .hint,
:root[data-ui-theme='light'] #clientPushModule .client-push-pane-head .hint,
:root[data-ui-theme='light'] #clientPushModule .hint,
:root[data-ui-theme='light'] #emailMarketingModule .hint,
:root[data-ui-theme='light'] #storeModule .sm-csv-hint,
:root[data-ui-theme='light'] #storeModule .sm-policy-context,
:root[data-ui-theme='light'] #storeModule .sm-policy-summary {
  color: #34435a !important;
}

:root[data-ui-theme='light'] input::placeholder,
:root[data-ui-theme='light'] textarea::placeholder,
:root[data-ui-theme='light'] .search-input::placeholder,
:root[data-ui-theme='light'] #usersModule .users-form-grid input::placeholder,
:root[data-ui-theme='light'] #brandModule .brand-form input::placeholder,
:root[data-ui-theme='light'] #brandModule .brand-form textarea::placeholder {
  color: #4f607a !important;
  opacity: 1;
}

:root[data-ui-theme='light'] th,
:root[data-ui-theme='light'] table thead th,
:root[data-ui-theme='light'] #usersModule th,
:root[data-ui-theme='light'] #clientUsersModule th,
:root[data-ui-theme='light'] #emailMarketingModule th,
:root[data-ui-theme='light'] #storeModule th {
  color: #334155 !important;
}

:root[data-ui-theme='light'] td,
:root[data-ui-theme='light'] #usersModule td,
:root[data-ui-theme='light'] #clientUsersModule td,
:root[data-ui-theme='light'] #emailMarketingModule td,
:root[data-ui-theme='light'] #storeModule td {
  color: #0f172a;
}

:root[data-ui-theme='light'] .menu-item,
:root[data-ui-theme='light'] .brand-tab,
:root[data-ui-theme='light'] .users-tab,
:root[data-ui-theme='light'] #emailMarketingModule .email-tab,
:root[data-ui-theme='light'] #storeModule .store-tab {
  font-weight: 600;
}

/* Light theme deep polish: Email + Store */

:root[data-ui-theme='light'] #emailMarketingModule .email-dashboard-subscribers-wrap {
  background: #f7faff;
  border-color: rgba(15, 23, 42, 0.14);
}

:root[data-ui-theme='light'] #emailMarketingModule .email-dashboard-subscribers-wrap thead th {
  background: #eef3fb;
}

:root[data-ui-theme='light'] #emailMarketingModule .email-dashboard-subscribers-wrap tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.02);
}

:root[data-ui-theme='light'] #emailMarketingModule .email-dashboard-subscribers-wrap tbody tr:hover {
  background: rgba(15, 23, 42, 0.05);
}

:root[data-ui-theme='light'] #storeModule .sm-title,
:root[data-ui-theme='light'] #storeModule .sm-section-title {
  color: #0f172a;
}

:root[data-ui-theme='light'] #storeModule .sm-status,
:root[data-ui-theme='light'] #storeModule .sm-cat-order,
:root[data-ui-theme='light'] #storeModule .sm-prod-meta,
:root[data-ui-theme='light'] #storeModule .sm-field-label,
:root[data-ui-theme='light'] #storeModule .sm-hint,
:root[data-ui-theme='light'] #storeModule .sm-check,
:root[data-ui-theme='light'] #storeModule .sm-check-inline,
:root[data-ui-theme='light'] #storeModule .sm-variants-title,
:root[data-ui-theme='light'] #storeModule .store-variant-row label,
:root[data-ui-theme='light'] #storeModule .sm-ban-role,
:root[data-ui-theme='light'] #storeModule .sm-field-note,
:root[data-ui-theme='light'] #storeModule .sm-prod-img-hint,
:root[data-ui-theme='light'] #storeModule .sm-cat-modal-img-hint,
:root[data-ui-theme='light'] #storeModule .modal-kicker {
  color: #334155;
}

:root[data-ui-theme='light'] #storeModule .sm-tabs-rail {
  border-bottom: 1px solid rgba(15, 23, 42, 0.14);
}

:root[data-ui-theme='light'] #storeModule .store-tab {
  color: #334155 !important;
}

:root[data-ui-theme='light'] #storeModule .store-tab:hover {
  color: #0f172a !important;
}

:root[data-ui-theme='light'] #storeModule .store-tab.active {
  color: #0f172a !important;
  border-bottom-color: var(--brand-primary);
}

:root[data-ui-theme='light'] #storeModule .sm-csv-panel {
  border-color: rgba(15, 23, 42, 0.14);
  background: #ffffff;
}

:root[data-ui-theme='light'] #storeModule .sm-csv-summary {
  color: rgba(15, 23, 42, 0.72);
  background: rgba(15, 23, 42, 0.035);
}

:root[data-ui-theme='light'] #storeModule .sm-csv-panel[open] .sm-csv-summary {
  color: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

:root[data-ui-theme='light'] #storeModule .sm-csv-hint strong {
  color: rgba(15, 23, 42, 0.84);
}

:root[data-ui-theme='light'] #storeModule .sm-csv-hint code {
  background: rgba(15, 23, 42, 0.09);
}

:root[data-ui-theme='light'] #storeModule .sm-csv-btn {
  background: rgba(15, 23, 42, 0.045);
  border-color: rgba(15, 23, 42, 0.2);
  color: rgba(15, 23, 42, 0.78);
}

:root[data-ui-theme='light'] #storeModule .sm-csv-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.95);
}

:root[data-ui-theme='light'] #storeModule .sm-csv-divider {
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

:root[data-ui-theme='light'] #storeModule .sm-csv-result {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.14);
}

:root[data-ui-theme='light'] #storeModule .sm-csv-result .sm-csv-loading,
:root[data-ui-theme='light'] #storeModule .sm-csv-result .sm-csv-errors {
  color: rgba(15, 23, 42, 0.72);
}

:root[data-ui-theme='light'] #storeModule .sm-prod-cat-filter {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.2);
  color: #334155;
}

:root[data-ui-theme='light'] #storeModule .sm-prod-search-field > span {
  color: rgba(15, 23, 42, 0.6);
}

:root[data-ui-theme='light'] #storeModule .sm-prod-search-input {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

:root[data-ui-theme='light'] #storeModule .sm-prod-search-input::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

:root[data-ui-theme='light'] #storeModule .sm-prod-search-input:focus,
:root[data-ui-theme='light'] #storeModule .sm-prod-search-input:hover {
  border-color: rgba(15, 23, 42, 0.3);
  background: rgba(15, 23, 42, 0.015);
}

:root[data-ui-theme='light'] #storeModule .sm-prod-search-btn {
  color: #0f172a;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: linear-gradient(180deg, rgba(147, 197, 253, 0.55) 0%, rgba(125, 211, 252, 0.36) 100%);
}

:root[data-ui-theme='light'] #storeModule .sm-prod-search-meta {
  color: rgba(15, 23, 42, 0.72);
}

:root[data-ui-theme='light'] #storeModule .sm-prod-pagination-info {
  color: rgba(15, 23, 42, 0.76);
}

:root[data-ui-theme='light'] #storeModule .sm-products-refresh-meta {
  color: rgba(15, 23, 42, 0.72);
}

:root[data-ui-theme='light'] #storeModule .sm-prod-cat-filter:focus,
:root[data-ui-theme='light'] #storeModule .sm-prod-cat-filter:hover {
  border-color: rgba(15, 23, 42, 0.3);
  color: #0f172a;
}

:root[data-ui-theme='light'] #storeModule .sm-prod-cat-filter option {
  background: #ffffff;
  color: #0f172a;
}

:root[data-ui-theme='light'] #storeModule .sm-upload-btn {
  background: rgba(15, 23, 42, 0.05) !important;
  border: 1px solid rgba(15, 23, 42, 0.2) !important;
  color: #334155 !important;
}

:root[data-ui-theme='light'] #storeModule .sm-upload-btn:hover {
  background: rgba(15, 23, 42, 0.09) !important;
  color: #0f172a !important;
}

:root[data-ui-theme='light'] #storeModule .sm-image-card {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
}

:root[data-ui-theme='light'] #storeModule .sm-image-card img {
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-ui-theme='light'] .sm-modal-head {
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

:root[data-ui-theme='light'] .sm-modal-head h3 {
  color: #0f172a;
}

:root[data-ui-theme='light'] .sm-modal-close {
  background: rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(15, 23, 42, 0.2) !important;
  color: #334155 !important;
}

:root[data-ui-theme='light'] .sm-modal-close:hover {
  background: rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}

:root[data-ui-theme='light'] .sm-modal-actions {
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

:root[data-ui-theme='light'] #storeProductModal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
:root[data-ui-theme='light'] #storeProductModal select,
:root[data-ui-theme='light'] #storeProductModal textarea {
  border-color: rgba(15, 23, 42, 0.22) !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

:root[data-ui-theme='light'] #storeProductModal .sm-check.sm-check-block {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.14);
}

:root[data-ui-theme='light'] .sm-check-label {
  color: #1f2937;
}

:root[data-ui-theme='light'] .sm-check-hint,
:root[data-ui-theme='light'] #storeProductModal .sv-check,
:root[data-ui-theme='light'] #storeProductModal .sv-field label {
  color: #475569 !important;
}

:root[data-ui-theme='light'] #storeProductModal .sv-field input {
  border-color: rgba(15, 23, 42, 0.2) !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

:root[data-ui-theme='light'] .sm-prod-modal-images {
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
}

:root[data-ui-theme='light'] .sm-prod-modal-img-label {
  color: #334155;
}

:root[data-ui-theme='light'] .sm-prod-modal-img-btn {
  background: rgba(15, 23, 42, 0.05) !important;
  border: 1px solid rgba(15, 23, 42, 0.2) !important;
  color: #334155 !important;
}

:root[data-ui-theme='light'] .sm-prod-modal-img-btn:hover {
  background: rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}

:root[data-ui-theme='light'] #storeCategoryModal .sm-cat-modal-img-preview,
:root[data-ui-theme='light'] #storeBannerModal .sm-ban-img-preview,
:root[data-ui-theme='light'] #storeModule .sm-ban-img-preview {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

:root[data-ui-theme='light'] #emailMarketingModule .email-popup-image-preview {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.16);
}

:root[data-ui-theme='light'] #emailMarketingModule .email-popup-image-empty {
  color: #475569;
}

:root[data-ui-theme='light'] #storeCategoryModal .sm-cat-modal-img-upload-btn {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(15, 23, 42, 0.22) !important;
  color: #0f172a !important;
}

:root[data-ui-theme='light'] #storeCategoryModal .sm-cat-modal-img-upload-btn:hover {
  background: rgba(241, 245, 253, 0.98) !important;
}

/* Light theme module-by-module polish: tabs + shared modals */

:root[data-ui-theme='light'] .modal-backdrop {
  background:
    radial-gradient(760px 360px at 24% 20%, rgba(157, 49, 44, 0.12), transparent 70%),
    rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(4px);
}

:root[data-ui-theme='light'] .modal-card {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: #0f172a;
  box-shadow:
    0 26px 58px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

:root[data-ui-theme='light'] .modal-card h3,
:root[data-ui-theme='light'] .modal-card h4 {
  color: #0f172a;
}

:root[data-ui-theme='light'] .modal-kicker {
  color: #475569;
}

:root[data-ui-theme='light'] .modal-copy,
:root[data-ui-theme='light'] .modal-label,
:root[data-ui-theme='light'] .modal-card .hint {
  color: #334155;
}

:root[data-ui-theme='light'] .modal-card #resetIdentifier {
  border-color: rgba(15, 23, 42, 0.2);
  background: #ffffff;
  color: #0f172a;
}

:root[data-ui-theme='light'] .premium-confirm-card {
  border-color: rgba(15, 23, 42, 0.14);
  background: #ffffff;
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.22);
}

:root[data-ui-theme='light'] .premium-confirm-kicker,
:root[data-ui-theme='light'] .premium-confirm-copy {
  color: #334155;
}

:root[data-ui-theme='light'] #clientUserDetailModal .client-user-modal-head {
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

:root[data-ui-theme='light'] #guestBuyerDetailModal .client-user-modal-head {
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

:root[data-ui-theme='light'] #clientUserDetailModal .client-user-modal-head p,
:root[data-ui-theme='light'] #clientUserDetailModal .users-field-label,
:root[data-ui-theme='light'] #clientUserDetailModal .client-users-quick-status {
  color: #475569;
}

:root[data-ui-theme='light'] #guestBuyerDetailModal .client-user-modal-head p,
:root[data-ui-theme='light'] #guestBuyerDetailModal .users-field-label {
  color: #475569;
}

:root[data-ui-theme='light'] #landingBuilderModule .landing-tabs,
:root[data-ui-theme='light'] #emailMarketingModule .email-tabs,
:root[data-ui-theme='light'] #storeModule .store-tabs,
:root[data-ui-theme='light'] #clientPushModule .client-push-tabs,
:root[data-ui-theme='light'] #ordersModule .orders-tabs {
  border-bottom: 1px solid rgba(15, 23, 42, 0.16);
}

:root[data-ui-theme='light'] #landingBuilderModule .landing-tab,
:root[data-ui-theme='light'] #emailMarketingModule .email-tab,
:root[data-ui-theme='light'] #storeModule .store-tab,
:root[data-ui-theme='light'] #clientPushModule .client-push-tabs .email-tab,
:root[data-ui-theme='light'] #couponsModule .email-tab,
:root[data-ui-theme='light'] #surveysModule .email-tab,
:root[data-ui-theme='light'] #ordersModule .orders-tab {
  color: #1f2937 !important;
  background: rgba(244, 248, 255, 0.95) !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
}

:root[data-ui-theme='light'] #landingBuilderModule .landing-tab:hover,
:root[data-ui-theme='light'] #emailMarketingModule .email-tab:hover,
:root[data-ui-theme='light'] #storeModule .store-tab:hover,
:root[data-ui-theme='light'] #clientPushModule .client-push-tabs .email-tab:hover,
:root[data-ui-theme='light'] #couponsModule .email-tab:hover,
:root[data-ui-theme='light'] #surveysModule .email-tab:hover,
:root[data-ui-theme='light'] #ordersModule .orders-tab:hover {
  color: #0f172a !important;
  background: rgba(15, 23, 42, 0.06) !important;
}

:root[data-ui-theme='light'] #landingBuilderModule .landing-tab.active,
:root[data-ui-theme='light'] #emailMarketingModule .email-tab.active,
:root[data-ui-theme='light'] #storeModule .store-tab.active,
:root[data-ui-theme='light'] #clientPushModule .client-push-tabs .email-tab.active,
:root[data-ui-theme='light'] #couponsModule .email-tab.active,
:root[data-ui-theme='light'] #surveysModule .email-tab.active,
:root[data-ui-theme='light'] #ordersModule .orders-tab.active {
  color: #0f172a !important;
  border-color: color-mix(in srgb, var(--brand-primary) 26%, rgba(15, 23, 42, 0.26)) !important;
  background: #ffffff !important;
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--brand-primary) 68%, transparent);
}

:root[data-ui-theme='light'] #landingBuilderModule .landing-tab.active::after,
:root[data-ui-theme='light'] #emailMarketingModule .email-tab.active::after,
:root[data-ui-theme='light'] #storeModule .store-tab.active::after,
:root[data-ui-theme='light'] #clientPushModule .client-push-tabs .email-tab.active::after {
  background: #ffffff !important;
}

:root[data-ui-theme='light'] #clientPushModule .client-push-subscribers-wrap,
:root[data-ui-theme='light'] #couponsModule .coupons-leads-wrap,
:root[data-ui-theme='light'] #surveysModule .surveys-responses-wrap,
:root[data-ui-theme='light'] #surveysModule .surveys-list-wrap,
:root[data-ui-theme='light'] #ordersModule .orders-table-wrap,
:root[data-ui-theme='light'] #clientUsersModule .users-table-wrap {
  border-color: rgba(15, 23, 42, 0.14);
  background: #ffffff;
}

:root[data-ui-theme='light'] #clientPushModule .client-push-subscribers-wrap thead th,
:root[data-ui-theme='light'] #couponsModule .coupons-leads-wrap thead th,
:root[data-ui-theme='light'] #surveysModule .surveys-responses-wrap thead th,
:root[data-ui-theme='light'] #surveysModule .surveys-list-wrap thead th,
:root[data-ui-theme='light'] #ordersModule .orders-table-wrap thead th,
:root[data-ui-theme='light'] #clientUsersModule .users-table-wrap thead th {
  background: #eef3fb;
}

:root[data-ui-theme='light'] #clientPushModule .client-push-subscribers-wrap tbody tr:nth-child(odd),
:root[data-ui-theme='light'] #couponsModule .coupons-leads-wrap tbody tr:nth-child(odd),
:root[data-ui-theme='light'] #surveysModule .surveys-responses-wrap tbody tr:nth-child(odd),
:root[data-ui-theme='light'] #surveysModule .surveys-list-wrap tbody tr:nth-child(odd),
:root[data-ui-theme='light'] #ordersModule .orders-table-wrap tbody tr:nth-child(odd),
:root[data-ui-theme='light'] #clientUsersModule .users-table-wrap tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.02);
}

:root[data-ui-theme='light'] #clientPushModule .client-push-subscribers-wrap tbody tr:hover,
:root[data-ui-theme='light'] #couponsModule .coupons-leads-wrap tbody tr:hover,
:root[data-ui-theme='light'] #surveysModule .surveys-responses-wrap tbody tr:hover,
:root[data-ui-theme='light'] #surveysModule .surveys-list-wrap tbody tr:hover,
:root[data-ui-theme='light'] #ordersModule .orders-table-wrap tbody tr:hover,
:root[data-ui-theme='light'] #clientUsersModule .users-table-wrap tbody tr:hover {
  background: rgba(15, 23, 42, 0.05);
}

:root[data-ui-theme='light'] #clientUsersModule .client-users-list-card,
:root[data-ui-theme='light'] #ordersModule .orders-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
}

:root[data-ui-theme='light'] #clientUsersModule .client-users-filter-field span,
:root[data-ui-theme='light'] #ordersModule .orders-row-meta,
:root[data-ui-theme='light'] #ordersModule .orders-customer-cell small,
:root[data-ui-theme='light'] #ordersModule .orders-totals-cell small,
:root[data-ui-theme='light'] #ordersModule .orders-status-cell small {
  color: #475569;
}

:root[data-ui-theme='light'] #clientUsersModule .users-name-main {
  color: #0f172a;
}

:root[data-ui-theme='light'] #clientUsersModule .users-muted-text {
  color: #475569;
}

:root[data-ui-theme='light'] #clientUsersModule .users-status-indicator {
  color: #0f172a;
}

:root[data-ui-theme='light'] #clientPushModule .client-push-send-preview-kicker,
:root[data-ui-theme='light'] #clientPushModule .client-push-recent-panel .client-push-recent-time,
:root[data-ui-theme='light'] #clientPushModule .client-push-recent-panel .client-push-recent-metrics {
  color: #475569;
}

:root[data-ui-theme='light'] #clientPushModule .client-push-recent-panel .client-push-recent-title,
:root[data-ui-theme='light'] #clientPushModule .client-push-recent-panel .client-push-recent-click {
  color: #1f2937;
}

:root[data-ui-theme='light'] #surveysModule .surveys-question-card,
:root[data-ui-theme='light'] .surveys-response-answer-item {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(248, 251, 255, 0.95);
}

:root[data-ui-theme='light'] #surveysModule .surveys-question-head p,
:root[data-ui-theme='light'] .surveys-response-answer-question {
  color: #0f172a;
}

:root[data-ui-theme='light'] .surveys-response-answer-value,
:root[data-ui-theme='light'] #surveysModule .surveys-options-head p {
  color: #475569;
}

:root[data-ui-theme='light'] #surveysModule .surveys-options-wrap {
  border-color: rgba(15, 23, 42, 0.2);
  background: rgba(248, 251, 255, 0.92);
}

/* Light theme sweep: remove leftover white text/icons in Orders, Store and Client Users */

:root[data-ui-theme='light'] #storeModule .store-status.is-active {
  color: #166534;
}

:root[data-ui-theme='light'] #storeModule .store-status.is-draft {
  color: #8a4b00;
}

:root[data-ui-theme='light'] #storeModule .store-status.is-archived {
  color: #475569;
}

:root[data-ui-theme='light'] #storeModule .sm-policy-card[open] > .sm-policy-summary {
  color: #1f2937;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

:root[data-ui-theme='light'] #storeModule .sm-policy-summary::before {
  border-color: transparent transparent transparent rgba(15, 23, 42, 0.46);
}

:root[data-ui-theme='light'] #storeModule .sm-policy-icon-svg {
  color: rgba(15, 23, 42, 0.5);
}

:root[data-ui-theme='light'] #storeModule .sm-policy-badge-off {
  color: rgba(15, 23, 42, 0.62);
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.07);
}

:root[data-ui-theme='light'] #ordersModule .orders-statuses legend {
  color: #475569;
}

:root[data-ui-theme='light'] #ordersModule .orders-statuses label {
  color: #334155;
}

:root[data-ui-theme='light'] #ordersModule .orders-status-badge {
  color: #334155;
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.06);
}

:root[data-ui-theme='light'] #ordersModule .orders-status-badge.is-pending {
  color: #8a4b00;
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.2);
}

:root[data-ui-theme='light'] #ordersModule .orders-status-badge.is-paid,
:root[data-ui-theme='light'] #ordersModule .orders-status-badge.is-delivered {
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.38);
  background: rgba(16, 185, 129, 0.16);
}

:root[data-ui-theme='light'] #ordersModule .orders-status-badge.is-processing,
:root[data-ui-theme='light'] #ordersModule .orders-status-badge.is-shipped {
  color: #1e3a8a;
  border-color: rgba(59, 130, 246, 0.36);
  background: rgba(59, 130, 246, 0.16);
}

:root[data-ui-theme='light'] #ordersModule .orders-status-badge.is-cancelled,
:root[data-ui-theme='light'] #ordersModule .orders-status-badge.is-refunded {
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(239, 68, 68, 0.14);
}

:root[data-ui-theme='light'] #ordersModule .orders-status-badge.is-unknown {
  color: #334155;
}

:root[data-ui-theme='light'] #ordersModule .orders-customer-mode {
  color: #334155;
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.06);
}

:root[data-ui-theme='light'] #ordersModule .orders-customer-mode.is-guest {
  color: #8a4b00;
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.2);
}

:root[data-ui-theme='light'] #ordersModule .orders-customer-mode.is-registered {
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.38);
  background: rgba(16, 185, 129, 0.16);
}

:root[data-ui-theme='light'] #clientUsersModule .users-row-icon,
:root[data-ui-theme='light'] #usersModule .users-row-icon {
  border-color: rgba(15, 23, 42, 0.2);
  background: rgba(15, 23, 42, 0.03);
  color: #334155;
}

:root[data-ui-theme='light'] #clientUsersModule .users-row-icon:hover,
:root[data-ui-theme='light'] #usersModule .users-row-icon:hover {
  background: rgba(15, 23, 42, 0.08);
}

:root[data-ui-theme='light'] #clientUsersModule .users-row-icon.danger,
:root[data-ui-theme='light'] #usersModule .users-row-icon.danger {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.34);
  background: rgba(185, 28, 28, 0.08);
}

:root[data-ui-theme='light'] #clientUsersModule .client-users-quick-status {
  color: #475569;
}

:root[data-ui-theme='light'] #clientUserDetailModal .client-users-check-inline {
  color: #334155;
}

:root[data-ui-theme='light'] #clientUserDetailModal .client-users-advanced {
  border-color: rgba(15, 23, 42, 0.16);
  background: rgba(15, 23, 42, 0.04);
}

:root[data-ui-theme='light'] #clientUserDetailModal .client-users-advanced summary {
  color: #334155;
}

:root[data-ui-theme='light'] #clientUserDetailModal .client-users-danger {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.34);
  background: rgba(185, 28, 28, 0.08);
}

:root[data-ui-theme='light'] #guestBuyerDetailModal #guestBuyerDetailMessage {
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

:root[data-ui-theme='light'] #clientUserDetailModal #clientUserFormMessage {
  border-top: 1px solid rgba(15, 23, 42, 0.14);
}

:root[data-ui-theme='light'] #ordersModule button svg,
:root[data-ui-theme='light'] #storeModule button svg,
:root[data-ui-theme='light'] #clientUsersModule button svg,
:root[data-ui-theme='light'] #usersModule button svg {
  color: currentColor;
}

/* Global readability polish: typography weight + minimum legible sizing */

body {
  font-weight: 500;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font-weight: 500;
}

.menu-item,
.users-tab,
.brand-tab,
#landingBuilderModule .landing-tab,
#emailMarketingModule .email-tab,
#storeModule .store-tab,
#clientPushModule .client-push-tabs .email-tab,
#couponsModule .email-tab,
#surveysModule .email-tab,
#ordersModule .orders-tab {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em;
}

.kpi .value,
#clientPushModule .email-kpis .kpi .value,
#couponsModule .email-kpis .kpi .value,
#surveysModule .email-kpis .kpi .value {
  font-weight: 600 !important;
}

.hint,
.label,
.card-header p,
.overview-sub,
.modal-kicker,
.modal-copy,
#clientUsersModule .client-users-pager .hint,
#clientPushModule .client-push-pane-head .hint,
#clientPushModule .hint,
#emailMarketingModule .hint,
#storeModule .sm-hint,
#storeModule .sm-field-note,
#storeModule .sm-prod-img-hint,
#storeModule .sm-cat-modal-img-hint {
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.45;
}

table thead th,
#usersModule th,
#clientUsersModule th,
#emailMarketingModule th,
#clientPushModule th,
#couponsModule th,
#surveysModule th,
#storeModule th,
#ordersModule th {
  font-weight: 700 !important;
  letter-spacing: 0.09em;
}

tbody td,
#usersModule td,
#clientUsersModule td,
#emailMarketingModule td,
#clientPushModule td,
#couponsModule td,
#surveysModule td,
#storeModule td,
#ordersModule td {
  font-weight: 500;
}

.brand-section-title,
.card h3,
.card h4,
.email-panel h4,
#storeModule .sm-title,
#storeModule .sm-section-title,
.sm-modal-head h3,
#clientUserDetailModal .brand-section-title,
#surveyResponseModalTitle {
  font-weight: 700;
}

@media (max-width: 1180px) {
  .crm-orders-detail-body .orders-report-head {
    grid-template-columns: 1fr;
  }

  .crm-orders-detail-body .orders-report-actions {
    justify-content: flex-start;
  }

  .crm-orders-detail-body .orders-report-grid {
    grid-template-columns: 1fr;
  }

  .crm-orders-detail-body .orders-report-kv-table th {
    width: 152px;
  }
}

@media (max-width: 680px) {
  .crm-orders-detail-body .orders-report-shell {
    padding: 24px 18px 40px;
  }

  .crm-orders-detail-body .orders-report-btn {
    width: 100%;
    min-width: 0;
  }

  .crm-orders-detail-body .orders-report-kv-table th,
  .crm-orders-detail-body .orders-report-kv-table td {
    display: block;
    width: auto;
    padding: 5px 0;
  }

  .crm-orders-detail-body .orders-report-kv-table th {
    padding-bottom: 2px;
  }

  .crm-orders-detail-body .orders-report-table {
    min-width: 760px;
  }
}

:root[data-ui-theme='light'] .crm-orders-detail-body {
  background:
    radial-gradient(900px 420px at -8% -10%, color-mix(in srgb, var(--brand-primary) 8%, transparent), transparent 62%),
    var(--bg);
}

:root[data-ui-theme='light'] .crm-orders-detail-body .orders-report-subtitle,
:root[data-ui-theme='light'] .crm-orders-detail-body .orders-report-kv-table th,
:root[data-ui-theme='light'] .crm-orders-detail-body .orders-report-table thead th,
:root[data-ui-theme='light'] .crm-orders-detail-body .orders-report-row-meta {
  color: #4c5f7a;
}

:root[data-ui-theme='light'] .crm-orders-detail-body .orders-report-block,
:root[data-ui-theme='light'] .crm-orders-detail-body .orders-report-table-wrap {
  border-color: rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

:root[data-ui-theme='light'] .crm-orders-detail-body .orders-report-kv-table td,
:root[data-ui-theme='light'] .crm-orders-detail-body .orders-report-table tbody td,
:root[data-ui-theme='light'] .crm-orders-detail-body .orders-report-block h2 {
  color: #13233a;
}

:root[data-ui-theme='light'] .crm-orders-detail-body .orders-report-table th,
:root[data-ui-theme='light'] .crm-orders-detail-body .orders-report-table td,
:root[data-ui-theme='light'] .crm-orders-detail-body .orders-report-kv-table tr {
  border-color: rgba(15, 23, 42, 0.12);
}
