/* No Subscription Accounting — shared desktop / tablet / mobile chrome */

.nsa-meter,
.nsa-plan-card,
.nsa-offer-card,
.nsa-upgrade-modal {
  font-family: inherit;
  color: inherit;
}

.nsa-meter,
.nsa-plan-card,
.nsa-offer-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1rem 1.15rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.nsa-meter h2,
.nsa-plan-card h2,
.nsa-offer-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.nsa-meter .nsa-sub,
.nsa-offer-card .nsa-sub {
  margin: 0 0 0.85rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.nsa-progress {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.nsa-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
  transition: width 0.3s ease;
}

.nsa-progress.is-warn > span {
  background: #d97706;
}

.nsa-progress.is-critical > span {
  background: #dc2626;
}

.nsa-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.nsa-stats div {
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}

.nsa-stats strong {
  display: block;
  font-size: 1.05rem;
}

.nsa-stats span {
  color: #6b7280;
  font-size: 0.8rem;
}

.nsa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.nsa-actions a,
.nsa-actions button,
.nsa-offer-card button {
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.nsa-actions a.secondary,
.nsa-actions button.secondary {
  background: #e5e7eb;
  color: #111827;
}

.nsa-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fef3c7;
  color: #92400e;
}

.nsa-banner.is-critical {
  background: #fee2e2;
  color: #991b1b;
}

.nsa-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.nsa-offer-grid p {
  margin: 0;
  padding: 0.8rem;
  background: #f8fafc;
  border-radius: 12px;
}

.nsa-upgrade-modal[hidden] {
  display: none;
}

.nsa-upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.45);
  padding: 1rem;
}

.nsa-upgrade-modal .nsa-dialog {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem;
}

.nsa-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.25rem;
}

.nsa-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.9rem;
}

.nsa-admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.nsa-admin-form input,
.nsa-admin-form select,
.nsa-admin-form textarea {
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .nsa-stats,
  .nsa-offer-grid,
  .nsa-admin-grid,
  .nsa-admin-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nsa-meter,
  .nsa-plan-card,
  .nsa-offer-card {
    border-radius: 12px;
    padding: 0.9rem;
  }
}
