.wnmc-owner-shell,
.wnmc-owner-dashboard {
  --wnmc-green: #0a9b73;
  --wnmc-ink: #102820;
  --wnmc-muted: #5c6d67;
  --wnmc-soft: #f4fbf7;
  color: var(--wnmc-ink);
  display: grid;
  gap: 18px;
  margin: 24px auto;
  max-width: 1180px;
  padding: 0 clamp(14px, 4vw, 24px);
}

.wnmc-owner-dashboard[dir="rtl"],
.wnmc-owner-shell[dir="rtl"] {
  font-family: Cairo, var(--wn-font, system-ui), sans-serif;
}

.wnmc-owner-hero,
.wnmc-owner-card,
.wnmc-review-card,
.wnmc-trust-panel,
.wnmc-owner-shell {
  background: #fff;
  border: 1px solid rgba(16, 40, 32, .1);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(16, 40, 32, .08);
}

.wnmc-owner-hero {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .35fr);
  padding: clamp(18px, 4vw, 28px);
}

.wnmc-owner-hero h1 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 4px 0 0;
}

.wnmc-owner-switcher label,
.wnmc-owner-form label,
.wnmc-settings-grid label {
  color: var(--wnmc-ink);
  display: grid;
  font-weight: 700;
  gap: 6px;
}

.wnmc-owner-form input,
.wnmc-owner-form select,
.wnmc-owner-form textarea,
.wnmc-owner-switcher select,
.wnmc-settings-grid input {
  border: 1px solid rgba(16, 40, 32, .18);
  border-radius: 10px;
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

.wnmc-owner-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}

.wnmc-owner-tabs::-webkit-scrollbar {
  display: none;
}

.wnmc-owner-tabs a,
.wnmc-owner-btn,
.wnmc-verify-badge,
.wnmc-qr-review-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.wnmc-owner-tabs a {
  background: #eaf7f2;
  color: #0f5f49;
  min-height: 38px;
  padding: 8px 13px;
}

.wnmc-owner-card {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 3vw, 24px);
}

.wnmc-owner-card h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: 0;
  margin: 0;
}

.wnmc-owner-stat-grid,
.wnmc-qr-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.wnmc-owner-stat-grid article,
.wnmc-qr-grid article {
  background: var(--wnmc-soft);
  border: 1px solid rgba(10, 155, 115, .12);
  border-radius: 12px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.wnmc-owner-stat-grid strong {
  color: var(--wnmc-green);
  font-size: 1.55rem;
  line-height: 1;
}

.wnmc-owner-stat-grid span,
.wnmc-muted {
  color: var(--wnmc-muted);
}

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

.wnmc-owner-form .is-wide,
.wnmc-owner-form button,
.wnmc-settings-grid p {
  grid-column: 1 / -1;
}

.wnmc-check {
  align-items: center;
  display: flex !important;
  gap: 8px;
}

.wnmc-check input {
  min-height: auto;
  width: auto;
}

.wnmc-owner-btn {
  background: var(--wnmc-green);
  border: 0;
  color: #fff;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 16px;
}

.wnmc-owner-btn.is-secondary {
  background: #eaf7f2;
  color: #0f5f49;
}

.wnmc-owner-alert {
  background: #eaf7f2;
  border: 1px solid rgba(10, 155, 115, .22);
  border-radius: 12px;
  color: #0f5f49;
  font-weight: 800;
  padding: 12px 14px;
}

.wnmc-owner-alert.is-error {
  background: #fff1f1;
  border-color: #f0b8b8;
  color: #a62323;
}

.wnmc-quality-meter {
  background: #e4eee9;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.wnmc-quality-meter span {
  background: linear-gradient(90deg, #0a9b73, #41c494);
  display: block;
  height: 100%;
}

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

.wnmc-chip-list span {
  background: #fff7df;
  border-radius: 999px;
  color: #7a4c00;
  font-weight: 800;
  padding: 7px 11px;
}

.wnmc-review-card {
  box-shadow: none;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.wnmc-review-card form {
  display: grid;
  gap: 8px;
}

.wnmc-verify-badge {
  background: #fff2bd;
  color: #6f4700;
  min-height: 32px;
  padding: 6px 11px;
}

.wnmc-verify-badge.is-verified,
.wnmc-verify-badge.is-premium_verified {
  background: #e1fff0;
  color: #00724f;
}

.wnmc-qr-review-badge {
  background: #e9f2ff;
  color: #1559a6;
  margin: 0 0 8px;
  min-height: 28px;
  padding: 5px 10px;
}

.wnmc-trust-panel {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
}

.wnmc-owner-reply {
  background: #f4fbf7;
  border-inline-start: 4px solid var(--wnmc-green);
  border-radius: 10px;
  margin: 10px 0;
  padding: 10px 12px;
}

.wnmc-qr-fallback {
  align-items: center;
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, rgba(16,40,32,.12) 1px, transparent 1px),
    linear-gradient(rgba(16,40,32,.12) 1px, transparent 1px),
    #fff;
  background-size: 18px 18px;
  border: 12px solid #fff;
  box-shadow: inset 0 0 0 1px rgba(16, 40, 32, .14);
  display: grid;
  justify-items: center;
  max-width: 190px;
  padding: 18px;
  text-align: center;
}

.wnmc-qr-fallback span {
  background: #102820;
  border-radius: 8px;
  color: #fff;
  padding: 7px 9px;
}

.wnmc-qr-fallback small {
  background: rgba(255,255,255,.9);
  color: var(--wnmc-muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.wnmc-owner-admin .wnmc-admin-inline-form {
  display: grid;
  gap: 6px;
  min-width: 240px;
}

.wnmc-settings-grid {
  background: #fff;
  border: 1px solid #dce7e2;
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 1100px;
  padding: 18px;
}

@media (max-width: 760px) {
  .wnmc-owner-hero,
  .wnmc-owner-form {
    grid-template-columns: 1fr;
  }
}
