.nn-app-wrap {
  max-width: 1000px;
  margin: 32px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.nn-header-card,
.nn-card,
.nn-auth-box {
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(18, 38, 63, 0.06);
}

.nn-header-card {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.nn-card,
.nn-auth-box {
  padding: 22px;
}

.nn-title {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.15;
}

.nn-subtitle {
  margin: 0;
  color: #5b6777;
}

.nn-grid {
  display: grid;
  gap: 18px;
}

.nn-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nn-stat-label {
  font-size: 14px;
  color: #617082;
  margin-bottom: 8px;
}

.nn-stat-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: #0c1726;
}

.nn-site-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.nn-site-list {
  display: grid;
  gap: 10px;
}

.nn-site-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
}

.nn-site-row:last-child {
  border-bottom: 0;
}

.nn-site-meta {
  color: #5b6777;
  font-size: 14px;
}

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

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

.nn-field-full {
  grid-column: 1 / -1;
}

.nn-field label {
  font-weight: 600;
  color: #0c1726;
}

.nn-field input,
.nn-field select {
  width: 100%;
  border: 1px solid #ced8e4;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 46px;
  box-sizing: border-box;
  background: #fff;
}

.nn-field input:focus,
.nn-field select:focus {
  outline: none;
  border-color: #2b7cff;
  box-shadow: 0 0 0 3px rgba(43, 124, 255, 0.14);
}

.nn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.nn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  background: #0f62fe;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.nn-button:hover {
  opacity: 0.95;
  color: #ffffff;
}

.nn-button-secondary {
  background: #edf4ff;
  color: #0f62fe;
}

.nn-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  display: none;
}

.nn-result.is-success {
  display: block;
  background: #eefbf3;
  color: #116534;
  border: 1px solid #bde6c9;
}

.nn-result.is-error {
  display: block;
  background: #fff1f2;
  color: #b42318;
  border: 1px solid #fecdd3;
}

.nn-result.is-info {
  display: block;
  background: #f5f9ff;
  color: #194185;
  border: 1px solid #c7d7fe;
}

@media (max-width: 767px) {
  .nn-grid-3,
  .nn-form-grid {
    grid-template-columns: 1fr;
  }

  .nn-header-card,
  .nn-site-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .nn-title {
    font-size: 24px;
  }
}
