:root {
  --nrc-bg: #07101f;
  --nrc-panel: #0d182c;
  --nrc-panel-2: #101d35;
  --nrc-text: #f6f7ff;
  --nrc-muted: #aab5d1;
  --nrc-border: rgba(164, 180, 224, .17);
  --nrc-purple: #9b7cff;
  --nrc-blue: #52a7ff;
  --nrc-green: #42dfa3;
  --nrc-radius: 24px;
}

.nrc-auth-shell,
.nrc-section,
.nrc-dashboard,
.nrc-jam,
.nrc-jam-empty {
  width: min(1180px, calc(100% - 32px));
  margin: 56px auto 88px;
  color: var(--nrc-text);
}

.nrc-auth-shell {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 7vw, 96px);
  align-items: center;
  min-height: 62vh;
}

.nrc-auth-shell--compact {
  min-height: 48vh;
}

.nrc-auth-copy h1,
.nrc-section-heading h1,
.nrc-dashboard__header h1,
.nrc-jam-summary h1,
.nrc-jam-empty h1 {
  margin: 8px 0 16px;
  color: var(--nrc-text);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.nrc-auth-copy > p,
.nrc-section-heading > div > p,
.nrc-dashboard__header p,
.nrc-jam-empty > p {
  max-width: 650px;
  color: var(--nrc-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.nrc-eyebrow {
  color: var(--nrc-purple);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nrc-check-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: #dce3f7;
}

.nrc-check-list li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--nrc-green);
  font-weight: 900;
}

.nrc-form {
  display: grid;
  gap: 18px;
}

.nrc-auth-form,
.nrc-panel-form,
.nrc-form--wide {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--nrc-border);
  border-radius: var(--nrc-radius);
  background: linear-gradient(160deg, rgba(18, 31, 57, .96), rgba(8, 17, 34, .98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.nrc-form label,
.nrc-choice-field legend {
  display: grid;
  gap: 8px;
  color: #dce3f7;
  font-size: .92rem;
  font-weight: 700;
}

.nrc-form small {
  color: var(--nrc-muted);
  font-weight: 500;
}

.nrc-form input:not([type="checkbox"], [type="radio"]),
.nrc-form textarea,
.nrc-form select,
.nrc-filter-bar input,
.nrc-filter-bar select {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgba(165, 181, 225, .24);
  border-radius: 12px;
  outline: 0;
  background: #070f20;
  color: #fff;
  font: inherit;
  padding: 11px 13px;
}

.nrc-form textarea {
  resize: vertical;
}

.nrc-form input:focus,
.nrc-form textarea:focus,
.nrc-form select:focus,
.nrc-filter-bar input:focus,
.nrc-filter-bar select:focus {
  border-color: var(--nrc-purple);
  box-shadow: 0 0 0 3px rgba(155, 124, 255, .17);
}

.nrc-checkbox {
  display: flex !important;
  grid-template-columns: auto 1fr;
  gap: 10px !important;
  align-items: flex-start;
  font-weight: 500 !important;
  line-height: 1.45;
}

.nrc-checkbox input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: var(--nrc-purple);
}

.nrc-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.nrc-button:hover {
  transform: translateY(-1px);
}

.nrc-button:focus-visible,
.nrc-text-link:focus-visible,
.nrc-poll-options button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.nrc-button--primary {
  background: linear-gradient(135deg, #8b62ff, #3d8dff);
  color: #fff;
  box-shadow: 0 14px 34px rgba(90, 87, 255, .22);
}

.nrc-button--secondary {
  border-color: var(--nrc-border);
  background: rgba(255, 255, 255, .04);
  color: #fff;
}

.nrc-text-link,
.nrc-form-links a,
.nrc-form-foot a {
  color: #c8b8ff;
  font-weight: 700;
}

.nrc-form-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.nrc-form-foot {
  margin: 0;
  color: var(--nrc-muted);
}

.nrc-hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.nrc-notice {
  padding: 13px 15px;
  border: 1px solid var(--nrc-border);
  border-radius: 12px;
  background: rgba(82, 167, 255, .1);
  color: #eaf2ff;
}

.nrc-notice--success {
  border-color: rgba(66, 223, 163, .35);
  background: rgba(66, 223, 163, .1);
}

.nrc-notice--error {
  border-color: rgba(255, 105, 122, .38);
  background: rgba(255, 105, 122, .1);
}

.nrc-dashboard__header,
.nrc-section-heading {
  margin-bottom: 34px;
}

.nrc-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0;
}

.nrc-dashboard-card {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--nrc-border);
  border-radius: var(--nrc-radius);
  background: linear-gradient(150deg, var(--nrc-panel-2), var(--nrc-panel));
  color: var(--nrc-text);
  text-decoration: none;
}

.nrc-dashboard-card > span {
  color: var(--nrc-purple);
  font-size: .8rem;
  font-weight: 900;
}

.nrc-dashboard-card h2 {
  margin: 42px 0 8px;
  color: #fff;
  font-size: 1.55rem;
}

.nrc-dashboard-card p {
  margin: 0;
  color: var(--nrc-muted);
}

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

.nrc-choice-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.nrc-choice-field legend {
  margin-bottom: 10px;
}

.nrc-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.nrc-choice-grid label {
  display: block;
  cursor: pointer;
}

.nrc-choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nrc-choice-grid span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--nrc-border);
  border-radius: 11px;
  background: rgba(255, 255, 255, .03);
}

.nrc-choice-grid input:checked + span {
  border-color: var(--nrc-purple);
  background: rgba(155, 124, 255, .14);
  color: #fff;
}

.nrc-choice-grid input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.nrc-choice-grid--channels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nrc-lead-box {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--nrc-border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 0 0, rgba(155, 124, 255, .18), transparent 40%),
    var(--nrc-panel);
}

.nrc-home-lead {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 88px;
}

.nrc-lead-box h2 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.nrc-lead-box > div > p {
  color: var(--nrc-muted);
  line-height: 1.6;
}

.nrc-lead-box--compact {
  grid-template-columns: 1fr;
  margin-top: 28px;
}

.nrc-section-heading--split {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.nrc-panel-form {
  margin: 0 0 24px;
}

.nrc-panel-form[hidden] {
  display: none;
}

.nrc-filter-bar {
  display: flex;
  gap: 10px;
  margin: 0 0 24px;
}

.nrc-filter-bar label:first-child {
  flex: 1;
}

.nrc-filter-bar label:nth-child(2) {
  width: 88px;
}

.nrc-connection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.nrc-connection-card,
.nrc-empty {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 22px;
  border: 1px solid var(--nrc-border);
  border-radius: 20px;
  background: linear-gradient(155deg, var(--nrc-panel-2), var(--nrc-panel));
}

.nrc-connection-card__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
}

.nrc-kind,
.nrc-location,
.nrc-owner-label {
  color: var(--nrc-purple);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.nrc-location {
  color: var(--nrc-muted);
  text-align: right;
}

.nrc-connection-card h2,
.nrc-empty h2 {
  margin: 22px 0 10px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.15;
}

.nrc-connection-card > p,
.nrc-empty p {
  color: var(--nrc-muted);
  line-height: 1.55;
}

.nrc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 18px;
  padding: 0;
  list-style: none;
}

.nrc-tags li {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #dce3f7;
  font-size: .72rem;
}

.nrc-application-form {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.nrc-application-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--nrc-border);
  border-radius: 10px;
  background: #070f20;
  color: #fff;
  padding: 10px;
}

.nrc-jam-product {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(28px, 5vw, 64px);
}

.nrc-jam-gallery__main {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--nrc-border);
  border-radius: 24px;
  background: var(--nrc-panel);
}

.nrc-jam-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nrc-jam-gallery__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--nrc-muted);
  font-size: 1.5rem;
  font-weight: 900;
}

.nrc-jam-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 12px;
  padding: 2px;
  scrollbar-width: thin;
}

.nrc-jam-gallery__thumbs button {
  width: 82px;
  height: 62px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--nrc-panel);
  cursor: pointer;
}

.nrc-jam-gallery__thumbs button.is-active {
  border-color: var(--nrc-purple);
}

.nrc-jam-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nrc-jam-summary {
  align-self: center;
}

.nrc-jam-summary h1 {
  font-size: clamp(2.6rem, 5vw, 5.2rem);
}

.nrc-jam-lead {
  color: var(--nrc-muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.nrc-jam-facts {
  display: grid;
  gap: 0;
  margin: 24px 0;
  border-top: 1px solid var(--nrc-border);
}

.nrc-jam-facts > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--nrc-border);
}

.nrc-jam-facts dt {
  color: var(--nrc-muted);
}

.nrc-jam-facts dd {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.nrc-jam-body {
  max-width: 800px;
  margin: 58px auto 0;
  color: #dbe2f6;
  line-height: 1.75;
}

.nrc-secure-note {
  color: var(--nrc-muted);
  font-size: .75rem;
  line-height: 1.45;
}

.nrc-poll-card h2 {
  margin: 11px 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.08;
}

.nrc-poll-card > p {
  color: var(--nrc-muted);
  line-height: 1.5;
}

.nrc-poll-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.nrc-poll-live {
  color: #dbe6ff;
  font-size: .72rem;
  font-weight: 800;
}

.nrc-poll-live i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--nrc-green);
  box-shadow: 0 0 0 5px rgba(66, 223, 163, .1);
}

.nrc-poll-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.nrc-poll-options button {
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--nrc-border);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.nrc-poll-options button:hover {
  border-color: var(--nrc-purple);
  background: rgba(155, 124, 255, .12);
}

.nrc-poll-results {
  display: grid;
  gap: 10px;
  margin: 18px 0 10px;
}

.nrc-poll-results > div > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #dce3f7;
  font-size: .8rem;
}

.nrc-poll-results > div > i {
  display: block;
  height: 7px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
}

.nrc-poll-results > div > i::after {
  content: "";
  display: block;
  width: var(--nrc-poll-value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nrc-purple), var(--nrc-blue));
}

.nrc-poll-results .is-selected strong::before {
  content: "✓ ";
  color: var(--nrc-green);
}

.nrc-poll-card > small {
  color: var(--nrc-muted);
}

@media (max-width: 900px) {
  .nrc-auth-shell,
  .nrc-lead-box,
  .nrc-jam-product {
    grid-template-columns: 1fr;
  }

  .nrc-dashboard-grid,
  .nrc-connection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nrc-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nrc-auth-shell,
  .nrc-section,
  .nrc-dashboard,
  .nrc-jam,
  .nrc-jam-empty {
    width: min(100% - 24px, 1180px);
    margin-top: 28px;
  }

  .nrc-auth-shell {
    min-height: auto;
  }

  .nrc-auth-copy h1,
  .nrc-section-heading h1,
  .nrc-dashboard__header h1,
  .nrc-jam-summary h1,
  .nrc-jam-empty h1 {
    font-size: clamp(2.25rem, 13vw, 3.7rem);
  }

  .nrc-dashboard-grid,
  .nrc-connection-grid,
  .nrc-form-grid,
  .nrc-choice-grid,
  .nrc-choice-grid--channels,
  .nrc-poll-options {
    grid-template-columns: 1fr;
  }

  .nrc-section-heading--split {
    display: grid;
    align-items: start;
  }

  .nrc-filter-bar {
    display: grid;
    grid-template-columns: 1fr 72px;
  }

  .nrc-filter-bar label:nth-child(2) {
    width: auto;
  }

  .nrc-filter-bar .nrc-button {
    grid-column: 1 / -1;
  }

  .nrc-jam-product {
    gap: 24px;
  }

  .nrc-jam-facts > div {
    grid-template-columns: 110px 1fr;
  }

  .nrc-form-links {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nrc-button {
    transition: none;
  }
}
