/* v0.8.3 — public tags / topics directory and tag landing pages */
.ng-tags-wrap {
  --ng-tags-card: #fff;
  --ng-tags-card-soft: #f7f9fc;
  --ng-tags-text: #0f1d31;
  --ng-tags-muted: #6b7f94;
  --ng-tags-border: #e1e9f3;
  --ng-tags-blue: #2563ff;
  --ng-tags-blue-soft: #edf4ff;
  color: var(--ng-tags-text);
}
.ng-tags-speedbar {
  padding-bottom: 0;
}
.ng-tags-section {
  padding-top: 22px;
}
.ng-tags-section > .cn-container {
  max-width: 1320px;
}
.ng-tags-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 46px;
  padding: clamp(30px, 4vw, 58px);
  overflow: hidden;
  border: 1px solid var(--ng-tags-border);
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 0%, rgba(37, 99, 255, .16), transparent 31%),
    radial-gradient(circle at 70% 110%, rgba(0, 195, 252, .09), transparent 35%),
    linear-gradient(145deg, #fff 0%, #f6f9fd 100%);
  box-shadow: 0 18px 48px rgba(15, 32, 57, .07);
}
.ng-tags-hero::after {
  content: "#";
  position: absolute;
  right: 38px;
  top: -46px;
  font: 900 250px/1 Arial, sans-serif;
  color: rgba(37, 99, 255, .045);
  pointer-events: none;
  transform: rotate(7deg);
}
.ng-tags-hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.ng-tags-eyebrow,
.ng-tags-block__kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--ng-tags-blue);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .12em;
}
.ng-tags-hero h1 {
  margin: 0 0 16px;
  color: var(--ng-tags-text);
  font-size: clamp(36px, 5vw, 64px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.045em;
}
.ng-tags-hero p {
  max-width: 760px;
  margin: 0;
  color: #52677d;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.62;
}
.ng-tags-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.ng-tags-hero__meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 13px;
  border: 1px solid #dbe7f6;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #60758b;
  font-size: 13px;
  font-weight: 700;
}
.ng-tags-hero__meta strong {
  color: var(--ng-tags-text);
  font-size: 15px;
  font-weight: 900;
}
.ng-tags-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: #61758a !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}
.ng-tags-back:hover {
  color: var(--ng-tags-blue) !important;
}
.ng-tags-back span {
  font-size: 18px;
}
.ng-tags-search {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(100%, 390px);
  flex: 0 0 390px;
}
.ng-tags-search__label {
  display: block;
  margin: 0 0 9px 4px;
  color: #576d83;
  font-size: 13px;
  font-weight: 800;
}
.ng-tags-search__field {
  position: relative;
}
.ng-tags-search__field input {
  width: 100%;
  height: 60px;
  padding: 0 52px 0 50px;
  border: 1px solid #d6e2ef;
  border-radius: 18px;
  outline: none;
  background: rgba(255,255,255,.94);
  color: var(--ng-tags-text);
  box-shadow: 0 9px 26px rgba(15, 32, 57, .06);
  font: 700 15px/1.2 inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ng-tags-search__field input:focus {
  border-color: #83aefb;
  box-shadow: 0 0 0 4px rgba(37,99,255,.08), 0 9px 26px rgba(15, 32, 57, .07);
}
.ng-tags-search__field input::placeholder {
  color: #95a5b6;
  font-weight: 500;
}
.ng-tags-search__icon {
  position: absolute;
  z-index: 1;
  left: 20px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid #7289a0;
  border-radius: 50%;
  transform: translateY(-55%);
  pointer-events: none;
}
.ng-tags-search__icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #7289a0;
  transform: rotate(45deg);
}
.ng-tags-search__clear {
  position: absolute;
  right: 12px;
  top: 50%;
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf2f8;
  color: #63768b;
  cursor: pointer;
  font: 500 23px/30px Arial, sans-serif;
  transform: translateY(-50%);
}
.ng-tags-search__clear.is-visible {
  display: block;
}
.ng-tags-block {
  margin: 0 0 46px;
  padding: 30px;
  border: 1px solid var(--ng-tags-border);
  border-radius: 28px;
  background: var(--ng-tags-card);
}
.ng-tags-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}
.ng-tags-block__head h2 {
  margin: 0;
  color: var(--ng-tags-text);
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -.025em;
}
.ng-tags-block__head p {
  max-width: 440px;
  margin: 0;
  color: var(--ng-tags-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}
.ng-tags-popular {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ng-topic-card {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 88px;
  padding: 15px 16px;
  border: 1px solid #e3eaf3;
  border-radius: 20px;
  background: #f8fafc;
  color: var(--ng-tags-text) !important;
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.ng-topic-card:hover {
  transform: translateY(-2px);
  border-color: #b8d1fa;
  background: #fff;
  box-shadow: 0 10px 25px rgba(20, 55, 105, .08);
}
.ng-topic-card__index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin-right: 13px;
  border-radius: 13px;
  background: #e9f1ff;
  color: #3d70c9;
  font-size: 12px;
  font-weight: 900;
}
.ng-topic-card:nth-child(-n+3) .ng-topic-card__index {
  background: linear-gradient(145deg, #2b72ff, #138fea);
  color: #fff;
  box-shadow: 0 6px 15px rgba(37,99,255,.2);
}
.ng-topic-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ng-topic-card__body strong {
  overflow: hidden;
  color: inherit;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ng-topic-card__body small {
  color: #7b8da0;
  font-size: 12px;
  font-weight: 600;
}
.ng-topic-card__arrow,
.ng-tag-row__arrow {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-left: auto;
  border-top: 2px solid #8da0b2;
  border-right: 2px solid #8da0b2;
  transform: rotate(45deg);
}
.ng-tags-block__head--catalog {
  align-items: center;
}
.ng-tags-result-count {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5fa;
  color: #718397;
  font-size: 13px;
  font-weight: 800;
}
.ng-tags-alphabet {
  display: flex;
  gap: 7px;
  margin: 0 -3px 22px;
  padding: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ng-tags-alphabet button {
  min-width: 39px;
  height: 39px;
  padding: 0 11px;
  flex: 0 0 auto;
  border: 1px solid #dfe7f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #64798e;
  cursor: pointer;
  font: 800 13px/1 inherit;
  transition: .16s ease;
}
.ng-tags-alphabet button:hover {
  border-color: #bcd0eb;
  background: #fff;
  color: #315f9d;
}
.ng-tags-alphabet button.is-active {
  border-color: var(--ng-tags-blue);
  background: var(--ng-tags-blue);
  color: #fff;
  box-shadow: 0 6px 15px rgba(37,99,255,.2);
}
.ng-tags-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.ng-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 55px;
  padding: 11px 13px 11px 16px;
  border: 1px solid #e8edf4;
  border-radius: 15px;
  background: #fff;
  color: var(--ng-tags-text) !important;
  text-decoration: none !important;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.ng-tag-row:hover {
  z-index: 1;
  border-color: #c2d6f3;
  background: #f8fbff;
  transform: translateX(2px);
}
.ng-tag-row__title {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ng-tag-row__count {
  flex: 0 0 auto;
  color: #8a9bad;
  font-size: 11px;
  font-weight: 700;
}
.ng-tags-empty,
.ng-tag-feed-empty {
  padding: 48px 24px;
  border: 1px dashed #cfdae7;
  border-radius: 20px;
  background: #f8fafc;
  text-align: center;
}
.ng-tags-empty strong,
.ng-tag-feed-empty strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ng-tags-text);
  font-size: 19px;
  font-weight: 900;
}
.ng-tags-empty span,
.ng-tag-feed-empty p {
  margin: 0;
  color: #7c8ea1;
  font-size: 14px;
}

/* Tags directory hero: compact like the individual topic header */
.ng-tags-hero--directory {
  min-height: 0;
  align-items: center;
  gap: 34px;
  margin-bottom: 30px;
  padding: 28px 36px 30px;
  border-radius: 26px;
}
.ng-tags-hero--directory .ng-tags-hero__content {
  max-width: 720px;
}
.ng-tags-hero--directory .ng-tags-eyebrow {
  margin-bottom: 8px;
}
.ng-tags-hero--directory h1 {
  margin-bottom: 10px;
  font-size: clamp(38px, 4.4vw, 56px);
}
.ng-tags-hero--directory p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.5;
}
.ng-tags-hero--directory .ng-tags-hero__meta {
  margin-top: 16px;
}
.ng-tags-hero--directory .ng-tags-search {
  flex-basis: 360px;
  width: 360px;
}

/* Filtering must win over the card display rules. */
.ng-tag-row[hidden],
.ng-tag-row.is-filtered-out,
.ng-tags-block.is-filtered-out {
  display: none !important;
}

/* Individual topic page */
.ng-tags-hero--topic {
  min-height: 0;
  align-items: center;
  margin-bottom: 30px;
  padding: 28px 36px 30px;
  border-radius: 26px;
}
.ng-tags-hero--topic .ng-tags-hero__content {
  max-width: 980px;
}
.ng-tags-hero--topic .ng-tags-back {
  margin-bottom: 15px;
}
.ng-tags-hero--topic .ng-tags-eyebrow {
  margin-bottom: 8px;
}
.ng-tags-hero--topic h1 {
  margin-bottom: 10px;
  font-size: clamp(38px, 4.4vw, 56px);
}
.ng-tags-hero--topic p {
  max-width: 900px;
  font-size: 16px;
  line-height: 1.5;
}
.ng-tags-hero--topic .ng-tags-hero__meta {
  margin-top: 16px;
}
.ng-tag-feed {
  margin-bottom: 46px;
}
.ng-tag-feed__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--ng-tags-border);
  border-radius: 20px;
  background: #fff;
}
.ng-tag-feed__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ng-tag-feed__filters a,
.ng-tag-feed__sort a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 9px 13px;
  border: 1px solid #e1e8f1;
  border-radius: 12px;
  background: #f8fafc;
  color: #5c7187 !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  transition: .16s ease;
}
.ng-tag-feed__filters a:hover,
.ng-tag-feed__sort a:hover {
  border-color: #b9ceed;
  background: #fff;
  color: #315f9d !important;
}
.ng-tag-feed__filters a.is-active,
.ng-tag-feed__sort a.is-active {
  border-color: var(--ng-tags-blue);
  background: var(--ng-tags-blue);
  color: #fff !important;
  box-shadow: 0 6px 15px rgba(37,99,255,.18);
}
.ng-tag-feed__filters a span {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(105,126,148,.11);
  text-align: center;
  font-size: 10px;
}
.ng-tag-feed__filters a.is-active span {
  background: rgba(255,255,255,.17);
}
.ng-tag-feed__sort {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}
.ng-tag-feed__sort > span {
  margin-right: 3px;
  color: #8a9aac;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ng-tag-feed__summary {
  margin: 0 2px 17px;
  color: #788b9f;
  font-size: 13px;
  font-weight: 600;
}
.ng-tag-feed__summary strong {
  color: var(--ng-tags-text);
  font-weight: 900;
}
.ng-tag-material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ng-tag-material-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e8f2;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(15, 32, 57, .045);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ng-tag-material-card:hover {
  transform: translateY(-3px);
  border-color: #bfd1eb;
  box-shadow: 0 15px 32px rgba(15, 32, 57, .09);
}
.ng-tag-material-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eaf0f7;
}
.ng-tag-material-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
}
.ng-tag-material-card:hover .ng-tag-material-card__media img {
  transform: scale(1.025);
}
.ng-tag-material-card__media.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e9f2ff, #f4f8fc);
  color: #6b8cb3;
  font-size: 52px;
  font-weight: 900;
  text-decoration: none !important;
}
.ng-tag-material-card__type {
  position: absolute;
  left: 13px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(11, 18, 32, .83);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.ng-tag-material-card__body {
  padding: 20px 22px 18px;
}
.ng-tag-material-card h2 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 0 0 10px;
  color: var(--ng-tags-text);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -.015em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ng-tag-material-card h2 a {
  color: inherit !important;
  text-decoration: none !important;
}
.ng-tag-material-card h2 a:hover {
  color: var(--ng-tags-blue) !important;
}
.ng-tag-material-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 66px;
  margin: 0 0 17px;
  color: #6e8195;
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.ng-tag-material-card__meta {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 13px;
  border-top: 1px solid #edf1f6;
  color: #8a9aac;
  font-size: 11px;
  font-weight: 700;
}
.ng-tag-material-card__date {
  margin-right: auto;
}
.ng-tag-material-card__comments,
.ng-tag-material-card__metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.ng-tag-material-card__comments svg,
.ng-tag-material-card__metric svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ng-tag-material-card__admin-stats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid #e4eaf1;
}
.ng-tag-material-card__metric--like {
  color: #4e8a6c;
}
.ng-tag-material-card__metric--dislike {
  color: #a46a72;
}
.ng-tag-material-card__metric--dislike svg {
  transform: rotate(180deg);
}
.ng-tag-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.ng-tag-pagination__pages {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ng-tag-pagination a,
.ng-tag-pagination__pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #dde6ef;
  border-radius: 11px;
  background: #fff;
  color: #61768c !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
}
.ng-tag-pagination a:hover {
  border-color: #b8ccea;
  color: #2f68b4 !important;
}
.ng-tag-pagination a.is-active {
  border-color: var(--ng-tags-blue);
  background: var(--ng-tags-blue);
  color: #fff !important;
}
.ng-tag-pagination__pages span {
  border-color: transparent;
  background: transparent;
}
.ng-tag-pagination__nav {
  min-width: 92px !important;
}
.ng-tag-feed-empty a {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 11px;
  background: var(--ng-tags-blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}
.ng-related-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.ng-related-tags__list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 12px 9px 15px;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: #f8fafc;
  color: #4e647a !important;
  text-decoration: none !important;
  transition: .16s ease;
}
.ng-related-tags__list a:hover {
  border-color: #bcd1ee;
  background: #fff;
  color: #245aa5 !important;
}
.ng-related-tags__list strong {
  font-size: 13px;
  font-weight: 800;
}
.ng-related-tags__list span {
  padding: 3px 6px;
  border-radius: 999px;
  background: #eaf0f7;
  color: #8091a2;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* Search page */
.ng-search-page {
  --ng-search-blue: #2563ff;
  --ng-search-text: #142235;
  --ng-search-muted: #718399;
}
.ng-search-section { padding: 0 0 72px; }
.ng-search-hero {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: 44px;
  margin: 18px 0 32px;
  padding: 30px 34px;
  border: 1px solid #dce6f1;
  border-radius: 26px;
  background: linear-gradient(135deg, #f8fbff 0%, #f0f6ff 100%);
  box-shadow: 0 10px 30px rgba(15,32,57,.045);
  overflow: hidden;
  position: relative;
}
.ng-search-hero::after {
  content: "?";
  position: absolute;
  right: 22px;
  top: -40px;
  color: rgba(37,99,255,.045);
  font-size: 180px;
  line-height: 1;
  font-weight: 900;
  pointer-events: none;
}
.ng-search-hero__copy,
.ng-search-form { position: relative; z-index: 1; }
.ng-search-eyebrow {
  margin-bottom: 8px;
  color: var(--ng-search-blue);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.ng-search-hero h1 {
  margin: 0 0 10px;
  color: var(--ng-search-text);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.035em;
}
.ng-search-hero p {
  max-width: 520px;
  margin: 0;
  color: var(--ng-search-muted);
  font-size: 15px;
  line-height: 1.55;
}
.ng-search-form label {
  display: block;
  margin: 0 0 8px;
  color: #55708d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ng-search-form__row {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 5px;
  border: 1px solid #cbd8e8;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15,32,57,.055);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ng-search-form__row:focus-within {
  border-color: var(--ng-search-blue);
  box-shadow: 0 0 0 3px rgba(37,99,255,.10), 0 10px 25px rgba(15,32,57,.075);
}
.ng-search-form__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  flex: 0 0 42px;
  color: #6f879f;
}
.ng-search-form__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.ng-search-form input[type="search"] {
  min-width: 0;
  flex: 1 1 auto;
  height: 46px;
  padding: 0 12px 0 0;
  border: 0 !important;
  background: transparent !important;
  color: #16263a;
  font-size: 15px;
  font-weight: 650;
  box-shadow: none !important;
}
.ng-search-form input[type="search"]::placeholder { color: #93a3b5; }
.ng-search-form input[type="search"]::-webkit-search-cancel-button { display: none; }
.ng-search-form button {
  flex: 0 0 auto;
  min-width: 100px;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  background: var(--ng-search-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(37,99,255,.20);
}
.ng-search-form button:hover { background: #1756e4; transform: translateY(-1px); }

.ng-search-results {
  margin-top: 0;
  padding: 26px;
  border: 1px solid #dce6f1;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15,32,57,.04);
}
.ng-search-results__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}
.ng-search-results__head h2 {
  margin: 0;
  color: var(--ng-search-text);
  font-size: 27px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.02em;
}
.ng-search-results__count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4fb;
  color: #72869b;
  font-size: 11px;
  font-weight: 800;
}
.ng-search-results__count strong { color: #203854; font-size: 13px; }
.ng-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 12px;
  border: 1px solid #e2eaf3;
  border-radius: 17px;
  background: #f8fafc;
}
.ng-search-filters a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #dce6f0;
  border-radius: 11px;
  background: #fff;
  color: #31506e !important;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none !important;
}
.ng-search-filters a:hover { border-color: #b8cce6; color: #1f5bb8 !important; }
.ng-search-filters a span {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf2f7;
  color: #75899e;
  font-size: 10px;
  text-align: center;
}
.ng-search-filters a.is-active {
  border-color: var(--ng-search-blue);
  background: var(--ng-search-blue);
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(37,99,255,.17);
}
.ng-search-filters a.is-active span { background: rgba(255,255,255,.18); color: #fff; }
.ng-search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ng-search-results-grid .ng-tag-material-card__body { padding: 20px 22px 18px; }
.ng-search-results-grid .ng-tag-material-card h2 { min-height: 52px; font-size: 20px; }
.ng-search-results-grid .ng-tag-material-card p { min-height: 66px; -webkit-line-clamp: 3; }
.ng-search-pagination { margin-top: 28px; text-align: center; }
.ng-search-message,
.ng-search-start,
.ng-search-empty {
  border: 1px solid #dce6f1;
  border-radius: 20px;
  background: #fff;
  color: #6c8197;
}
.ng-search-message {
  padding: 18px 22px;
  font-weight: 800;
}
.ng-search-message--error { border-color: #f0c8cd; background: #fff7f8; color: #b84451; }
.ng-search-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}
.ng-search-start strong { color: #27415e; }
.ng-search-start span { font-size: 12px; }
.ng-search-empty {
  padding: 52px 24px;
  text-align: center;
  background: #f9fbfd;
}
.ng-search-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: #eaf2ff;
  color: #2563ff;
  font-size: 23px;
  font-weight: 900;
}
.ng-search-empty h3 { margin: 0 0 7px; color: #263d56; font-size: 21px; font-weight: 900; }
.ng-search-empty p { margin: 0; color: #7f91a4; font-size: 13px; }

body.dark .ng-search-page { --ng-search-text: #eef5ff; --ng-search-muted: #91a6ba; }
body.dark .ng-search-hero {
  border-color: #223a55;
  background: linear-gradient(135deg, #101d2c 0%, #10233b 100%);
  box-shadow: none;
}
body.dark .ng-search-hero::after { color: rgba(61,137,255,.055); }
body.dark .ng-search-form label { color: #8ea6be; }
body.dark .ng-search-form__row {
  border-color: #29415c;
  background: #0d1927;
  box-shadow: none;
}
body.dark .ng-search-form__row:focus-within { border-color: #357ee0; box-shadow: 0 0 0 3px rgba(37,99,255,.13); }
body.dark .ng-search-form input[type="search"] { color: #eef5ff; }
body.dark .ng-search-form input[type="search"]::placeholder { color: #657c93; }
body.dark .ng-search-results,
body.dark .ng-search-message,
body.dark .ng-search-start,
body.dark .ng-search-empty {
  border-color: #22384f;
  background: #0f1b2a;
  box-shadow: none;
}
body.dark .ng-search-results__count { background: #17283a; color: #8ca1b7; }
body.dark .ng-search-results__count strong { color: #dbe9f7; }
body.dark .ng-search-filters {
  border-color: #22384f;
  background: #0c1724;
}
body.dark .ng-search-filters a {
  border-color: #2a4057;
  background: #122235;
  color: #b8c9db !important;
}
body.dark .ng-search-filters a span { background: #1d3044; color: #8fa5ba; }
body.dark .ng-search-filters a:hover { border-color: #3f6590; color: #fff !important; }
body.dark .ng-search-filters a.is-active { border-color: #2563ff; background: #2563ff; color: #fff !important; }
body.dark .ng-search-filters a.is-active span { background: rgba(255,255,255,.18); color: #fff; }
body.dark .ng-search-start strong,
body.dark .ng-search-empty h3 { color: #dce8f5; }
body.dark .ng-search-empty { background: #0d1927; }
body.dark .ng-search-empty__icon { background: #142b49; color: #5ca8ff; }
body.dark .ng-search-message--error { border-color: #5b3038; background: #25171b; color: #ff949d; }

@media (max-width: 991px) {
  .s-head .e-search__stripe { width: min(560px, calc(100vw - 130px)); }
  .ng-search-hero { grid-template-columns: 1fr; gap: 23px; padding: 26px; }
  .ng-search-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .s-head .e-search__stripe { width: calc(100vw - 100px); right: 0; }
  .ng-search-section { padding-bottom: 42px; }
  .ng-search-hero { margin-top: 10px; padding: 22px 18px; border-radius: 20px; }
  .ng-search-hero h1 { font-size: 34px; }
  .ng-search-form__row { min-height: 54px; }
  .ng-search-form button { min-width: 82px; padding: 0 14px; }
  .ng-search-results { padding: 18px; border-radius: 20px; }
  .ng-search-results__head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ng-search-results__head h2 { font-size: 23px; }
  .ng-search-filters { flex-wrap: nowrap; overflow-x: auto; padding: 10px; scrollbar-width: none; }
  .ng-search-filters::-webkit-scrollbar { display: none; }
  .ng-search-filters a { flex: 0 0 auto; }
  .ng-search-results-grid { grid-template-columns: 1fr; }
  .ng-search-start { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .ng-search-form__row { display: grid; grid-template-columns: 38px 1fr; padding: 5px; }
  .ng-search-form__icon { width: 38px; }
  .ng-search-form input[type="search"] { width: 100%; }
  .ng-search-form button { grid-column: 1 / -1; width: 100%; margin-top: 5px; }
}


/* v0.8.75 — public user profiles in site search */
.ng-search-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 13px;
}
.ng-search-group-head h3 {
  margin: 0;
  color: var(--ng-search-text);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
}
.ng-search-users-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.ng-search-users-grid:last-child { margin-bottom: 0; }
.ng-search-user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dfe8f2;
  border-radius: 18px;
  background: #f9fbfd;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ng-search-user-card:hover {
  border-color: #bfd2e8;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15,32,57,.055);
}
.ng-search-user-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  overflow: hidden;
  border: 2px solid #d8e4f0;
  border-radius: 22px;
  background: linear-gradient(135deg, #e9f3ff, #dceaff);
  color: #2563ff !important;
  text-decoration: none !important;
}
.ng-search-user-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ng-search-user-card__avatar > span {
  position: relative;
  z-index: 1;
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
}
.ng-search-user-card__body {
  min-width: 0;
  flex: 1 1 auto;
}
.ng-search-user-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: #8192a4;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ng-search-user-card__meta b {
  padding: 3px 6px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #2563ff;
  font-size: 9px;
  letter-spacing: .03em;
}
.ng-search-user-card h3 {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0 0 6px;
  color: #203854;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}
.ng-search-user-card h3 > a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #203854;
  text-decoration: none !important;
}
.ng-search-user-card p {
  display: -webkit-box;
  min-height: 38px;
  margin: 0 0 9px;
  overflow: hidden;
  color: #6f8296;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ng-search-user-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8394a7;
  font-size: 10px;
  font-weight: 750;
}
.ng-search-user-card__footer > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ng-search-user-card__footer > a {
  flex: 0 0 auto;
  color: #2563ff !important;
  font-weight: 900;
  text-decoration: none !important;
}
.ng-search-user-card__footer > a:hover { text-decoration: underline !important; }

body.dark .ng-search-group-head h3 { color: #dce8f5; }
body.dark .ng-search-user-card {
  border-color: #233a52;
  background: #0d1927;
}
body.dark .ng-search-user-card:hover {
  border-color: #36597d;
  box-shadow: none;
}
body.dark .ng-search-user-card__avatar {
  border-color: #2c4661;
  background: linear-gradient(135deg, #142840, #172f4d);
  color: #67b5ff !important;
}
body.dark .ng-search-user-card__meta { color: #758ca3; }
body.dark .ng-search-user-card__meta b { background: #152c49; color: #66b1ff; }
body.dark .ng-search-user-card h3,
body.dark .ng-search-user-card h3 > a { color: #e7f0fa; }
body.dark .ng-search-user-card p { color: #8fa3b7; }
body.dark .ng-search-user-card__footer { color: #768ba0; }
body.dark .ng-search-user-card__footer > a { color: #65adff !important; }

@media (max-width: 767px) {
  .ng-search-users-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ng-search-user-card { align-items: flex-start; gap: 13px; padding: 14px; }
  .ng-search-user-card__avatar { width: 58px; height: 58px; flex-basis: 58px; border-radius: 18px; }
  .ng-search-user-card__avatar > span { font-size: 21px; }
  .ng-search-user-card h3 { font-size: 16px; }
  .ng-search-user-card p { min-height: 0; }
  .ng-search-user-card__footer { align-items: flex-start; flex-direction: column; gap: 5px; }
}


/* v0.8.24 — public login page recovery */
.ng-auth-page {
  min-height: calc(100vh - 150px);
  padding: 72px 0 90px;
}

.ng-auth-page > .cn-container {
  display: flex;
  justify-content: center;
}

.ng-auth-card {
  width: min(100%, 560px);
  padding: 34px;
  border: 1px solid #d9e2ee;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(18, 40, 70, .10);
}

.ng-auth-card__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #2563ff;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .12em;
}

.ng-auth-card__head h1 {
  margin: 0 0 10px;
  color: #101827;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
}

.ng-auth-card__head p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

.ng-auth-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.ng-auth-field {
  display: grid;
  gap: 8px;
}

.ng-auth-field > span {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ng-auth-field input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 15px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ng-auth-field input:focus {
  border-color: #2563ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,255,.12);
}

.ng-auth-recaptcha {
  min-height: 78px;
}

.ng-auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ng-auth-submit {
  min-width: 150px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: #2563ff;
  color: #fff;
  font: inherit;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.ng-auth-submit:hover { background: #1d4ed8; transform: translateY(-1px); }
.ng-auth-submit:disabled { cursor: default; opacity: .6; transform: none; }

.ng-auth-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(37,99,255,.2);
  border-top-color: #2563ff;
  border-radius: 50%;
  opacity: 0;
  animation: ng-auth-spin .7s linear infinite;
}
.ng-auth-loader.is-active { opacity: 1; }
@keyframes ng-auth-spin { to { transform: rotate(360deg); } }

.ng-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.ng-auth-links a {
  color: #2563ff;
  font-size: 13px;
  font-weight: 700;
}

body.dark .ng-auth-card {
  border-color: #22334c;
  background: linear-gradient(180deg, #101a28 0%, #0e1724 100%);
  box-shadow: 0 28px 80px rgba(0,0,0,.30);
}
body.dark .ng-auth-card__head h1 { color: #e7edf7; }
body.dark .ng-auth-card__head p { color: #9eb0c7; }
body.dark .ng-auth-field > span { color: #b9c8da; }
body.dark .ng-auth-field input {
  border-color: #2a3d59;
  background: #0b1421;
  color: #e7edf7;
}
body.dark .ng-auth-field input:focus {
  border-color: #2563ff;
  background: #0d1827;
}
body.dark .ng-auth-links { border-top-color: #22334c; }

@media (max-width: 640px) {
  .ng-auth-page { padding: 34px 0 60px; }
  .ng-auth-card { padding: 24px 18px; border-radius: 18px; }
  .ng-auth-recaptcha { overflow-x: auto; }
}

/* v0.8.26 — registration and password recovery auth pages */
.ng-auth-card--wide {
  width: min(100%, 640px);
}

.ng-auth-grid {
  display: grid;
  gap: 18px;
}

.ng-auth-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ng-auth-hint {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

.ng-auth-result {
  display: none;
  margin-top: 24px;
  padding: 15px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
}

.ng-auth-result.is-error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #9f1239;
}

.ng-auth-result.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.ng-auth-result__actions {
  margin-top: 14px;
}

.ng-auth-inline-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  background: #2563ff;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
}

.ng-auth-result__note {
  margin-top: 10px;
  opacity: .78;
  font-size: 12px;
}

.ng-auth-local-link {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 14px 15px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
}

.ng-auth-local-link a {
  color: #2563ff;
  font-weight: 800;
}

body.dark .ng-auth-hint { color: #71839b; }
body.dark .ng-auth-result.is-error {
  border-color: #5d2632;
  background: #2a151c;
  color: #fda4af;
}
body.dark .ng-auth-result.is-success,
body.dark .ng-auth-local-link {
  border-color: #22543a;
  background: #10251b;
  color: #86efac;
}

@media (max-width: 640px) {
  .ng-auth-grid--two { grid-template-columns: 1fr; }
  .ng-auth-submit { width: 100%; }
  .ng-auth-actions { align-items: center; }
}

/* v0.8.27 — e-mail confirmation auth page */
.ng-auth-card--status {
  text-align: center;
}

.ng-auth-card__head--status {
  max-width: 470px;
  margin: 0 auto;
}

.ng-auth-status-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 18px;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.ng-auth-status-icon.is-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #16a34a;
}

.ng-auth-status-icon.is-error {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #e11d48;
}

.ng-auth-status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.ng-auth-primary-link,
.ng-auth-secondary-link {
  display: inline-flex;
  min-height: 46px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.ng-auth-primary-link {
  border: 1px solid #2563ff;
  background: #2563ff;
  color: #fff !important;
}

.ng-auth-primary-link:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.ng-auth-secondary-link {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155 !important;
}

.ng-auth-secondary-link:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

body.dark .ng-auth-status-icon.is-success {
  border-color: #22543a;
  background: #10251b;
  color: #86efac;
}

body.dark .ng-auth-status-icon.is-error {
  border-color: #5d2632;
  background: #2a151c;
  color: #fda4af;
}

body.dark .ng-auth-secondary-link {
  border-color: #2a3d59;
  background: #0b1421;
  color: #b9c8da !important;
}

body.dark .ng-auth-secondary-link:hover {
  border-color: #3a5272;
  background: #0d1827;
}

@media (max-width: 640px) {
  .ng-auth-status-actions {
    display: grid;
  }

  .ng-auth-primary-link,
  .ng-auth-secondary-link {
    width: 100%;
  }
}


/* NOWGAME profile / progression foundation */
.ng-profile-page .s-content {
  padding-top: 22px;
  padding-bottom: 56px;
}

.ng-profile-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: center;
  min-height: 280px;
  padding: 36px 38px;
  border: 1px solid #22344e;
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 18%, rgba(37, 99, 255, .24), transparent 34%),
    linear-gradient(135deg, #0b1220 0%, #0d192a 58%, #101f35 100%);
  box-shadow: 0 24px 70px rgba(11, 18, 32, .18);
  color: #e7edf7;
}

.ng-profile-hero.has-custom-cover {
  background-image:
    linear-gradient(90deg, rgba(7, 14, 26, .90) 0%, rgba(8, 17, 31, .68) 52%, rgba(8, 18, 34, .58) 100%),
    var(--ng-profile-cover-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.ng-profile-hero.has-custom-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 18, 32, .04), rgba(10, 18, 32, .22));
}

.ng-profile-hero.has-custom-cover > * { z-index: 1; }

.ng-profile-hero__glow {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -110px;
  top: -180px;
  border-radius: 50%;
  background: rgba(37, 99, 255, .16);
  filter: blur(12px);
  pointer-events: none;
}

.ng-profile-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}

.ng-profile-avatar {
  flex: 0 0 118px;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(126, 167, 225, .35);
  border-radius: 32px;
  background: linear-gradient(145deg, #16263d, #0d1727);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.025), 0 16px 40px rgba(0,0,0,.25);
}

.ng-profile-avatar span {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #68b8ff;
}

.ng-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ng-profile-identity__body { min-width: 0; }
.ng-profile-kicker,
.ng-profile-panel__eyebrow,
.ng-profile-progress-card__eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .14em;
  color: #6f8cad;
}

.ng-profile-identity h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.025em;
  color: #f4f8ff;
}

.ng-profile-rank-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.ng-profile-level-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(74, 141, 255, .48);
  border-radius: 999px;
  background: rgba(37, 99, 255, .16);
  color: #8fc0ff;
  font-size: 12px;
  font-weight: 800;
}

.ng-profile-rank {
  color: #a9bacf;
  font-size: 13px;
  font-weight: 700;
}

.ng-profile-bio {
  max-width: 620px;
  overflow-wrap: anywhere;
  margin: 17px 0 0;
  color: #a9b9cd;
  font-size: 14px;
  line-height: 1.6;
}
.ng-profile-bio--muted { color: #6f8198; }

.ng-profile-progress-card {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(126, 167, 225, .18);
  border-radius: 18px;
  background: rgba(7, 14, 25, .58);
  backdrop-filter: blur(8px);
}

.ng-profile-progress-card__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.ng-profile-progress-card__head strong {
  display: block;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.ng-profile-progress-card__head > span {
  max-width: 145px;
  color: #7f93ad;
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.ng-profile-xpbar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #17253a;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}

.ng-profile-xpbar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563ff, #2ba8ff);
  box-shadow: 0 0 16px rgba(43, 168, 255, .42);
}

.ng-profile-progress-card__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: #61758e;
  font-size: 10px;
}

.ng-profile-system-note {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  background: #f8fbff;
  color: #61738b;
  font-size: 12px;
  line-height: 1.5;
}

.ng-profile-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.ng-profile-stat {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.ng-profile-stat strong {
  display: block;
  margin-bottom: 5px;
  color: #0b1220;
  font-size: 22px;
  line-height: 1;
}
.ng-profile-stat span {
  color: #738197;
  font-size: 11px;
  font-weight: 700;
}

.ng-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
  gap: 18px;
  margin-top: 18px;
}

.ng-profile-panel {
  padding: 24px;
  border: 1px solid #e1e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .045);
}

.ng-profile-panel--collection { margin-top: 18px; }
.ng-profile-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.ng-profile-panel__head h2 {
  margin: 0;
  color: #0b1220;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}
.ng-profile-panel__meta {
  max-width: 420px;
  color: #8390a3;
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

.ng-profile-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ng-profile-showcase-item,
.ng-profile-showcase-empty {
  min-height: 132px;
  border-radius: 16px;
}

.ng-profile-showcase-item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dde6f0;
  background: #f8fbff;
}
.ng-profile-showcase-item::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--achievement-accent, #94a3b8);
}
.ng-profile-showcase-item img {
  width: 86px;
  height: 92px;
  object-fit: contain;
}
.ng-profile-showcase-item strong {
  display: block;
  color: #142033;
  font-size: 13px;
  line-height: 1.3;
}
.ng-profile-showcase-item span {
  display: block;
  margin-top: 5px;
  color: #7d8ba0;
  font-size: 10px;
}

.ng-profile-showcase-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  border: 1px dashed #cfd9e6;
  background: #fafcff;
  text-align: center;
}
.ng-profile-showcase-empty__plus {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #edf4ff;
  color: #2563ff;
  font-size: 21px;
  line-height: 1;
}
.ng-profile-showcase-empty strong {
  color: #3f4d61;
  font-size: 12px;
}
.ng-profile-showcase-empty > span:last-child {
  max-width: 160px;
  margin-top: 4px;
  color: #93a0b1;
  font-size: 9px;
  line-height: 1.4;
}

.ng-profile-about-list { margin: 0; }
.ng-profile-about-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f5;
}
.ng-profile-about-list > div:last-child { border-bottom: 0; }
.ng-profile-about-list dt {
  color: #8b98a9;
  font-size: 11px;
}
.ng-profile-about-list dd {
  margin: 0;
  color: #223047;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.ng-profile-achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ng-profile-achievement {
  --achievement-accent: #94a3b8;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 13px;
  min-width: 0;
  min-height: 148px;
  padding: 13px;
  border: 1px solid #e0e7ef;
  border-radius: 17px;
  background: #fbfdff;
}

.rarity-common { --achievement-accent: #94a3b8; }
.rarity-uncommon { --achievement-accent: #37a66a; }
.rarity-rare { --achievement-accent: #2f7de1; }
.rarity-epic { --achievement-accent: #8a5bd6; }
.rarity-legendary { --achievement-accent: #d69d2d; }
.rarity-hidden { --achievement-accent: #4f6f9d; }

.ng-profile-achievement__icon {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 13px;
  background: linear-gradient(160deg, #edf4fb, #f8fbff);
}
.ng-profile-achievement__icon::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--achievement-accent);
  opacity: .75;
}
.ng-profile-achievement__icon img {
  width: 96px;
  height: 108px;
  object-fit: contain;
}
.ng-profile-achievement.is-locked .ng-profile-achievement__icon img {
  filter: grayscale(.82) saturate(.35);
  opacity: .42;
}
.ng-profile-achievement__lock {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(11, 18, 32, .78);
  color: #9fb0c5;
  font-size: 13px;
}
.ng-profile-achievement__body {
  min-width: 0;
  padding: 3px 2px 2px;
}
.ng-profile-achievement__category {
  display: block;
  margin-bottom: 6px;
  color: var(--achievement-accent);
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ng-profile-achievement__body strong {
  display: block;
  overflow: hidden;
  color: #172235;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
}
.ng-profile-achievement__body p {
  min-height: 34px;
  margin: 6px 0 10px;
  color: #7b899d;
  font-size: 10px;
  line-height: 1.45;
}
.ng-profile-achievement__progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf4;
}
.ng-profile-achievement__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--achievement-accent);
}
.ng-profile-achievement__body small {
  display: block;
  margin-top: 5px;
  color: #8794a5;
  font-size: 9px;
}
.ng-profile-achievement__body small.is-complete {
  color: var(--achievement-accent);
  font-weight: 800;
}

.ng-profile-empty-state {
  padding: 30px;
  border: 1px dashed #ccd7e5;
  border-radius: 16px;
  background: #fafcff;
  text-align: center;
}
.ng-profile-empty-state strong {
  display: block;
  color: #243247;
  font-size: 14px;
}
.ng-profile-empty-state span {
  display: block;
  max-width: 680px;
  margin: 7px auto 0;
  color: #8795a8;
  font-size: 11px;
  line-height: 1.55;
}

body.dark .ng-profile-system-note {
  border-color: #24364e;
  background: #0d1827;
  color: #7890aa;
}
body.dark .ng-profile-stat,
body.dark .ng-profile-panel {
  border-color: #203047;
  background: #0d1827;
  box-shadow: none;
}
body.dark .ng-profile-stat strong,
body.dark .ng-profile-panel__head h2 { color: #e7edf7; }
body.dark .ng-profile-stat span,
body.dark .ng-profile-panel__meta { color: #71859d; }
body.dark .ng-profile-showcase-item,
body.dark .ng-profile-achievement {
  border-color: #22334a;
  background: #0b1523;
}
body.dark .ng-profile-showcase-item strong,
body.dark .ng-profile-achievement__body strong,
body.dark .ng-profile-about-list dd,
body.dark .ng-profile-empty-state strong { color: #dce7f4; }
body.dark .ng-profile-showcase-item span,
body.dark .ng-profile-achievement__body p,
body.dark .ng-profile-achievement__body small,
body.dark .ng-profile-about-list dt { color: #7489a1; }
body.dark .ng-profile-showcase-empty,
body.dark .ng-profile-empty-state {
  border-color: #2b3c53;
  background: #0b1522;
}
body.dark .ng-profile-showcase-empty__plus {
  background: #132745;
  color: #66a8ff;
}
body.dark .ng-profile-showcase-empty strong { color: #aab9cb; }
body.dark .ng-profile-about-list > div { border-bottom-color: #1d2c40; }
body.dark .ng-profile-achievement__icon { background: linear-gradient(160deg, #101d2c, #0c1623); }
body.dark .ng-profile-achievement__progress { background: #1c2b3e; }
body.dark .ng-profile-empty-state span { color: #74879e; }

@media (max-width: 1100px) {
  .ng-profile-hero { grid-template-columns: 1fr; }
  .ng-profile-progress-card { max-width: 520px; }
  .ng-profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ng-profile-achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .ng-profile-hero { padding: 28px; border-radius: 20px; }
  .ng-profile-grid { grid-template-columns: 1fr; }
  .ng-profile-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ng-profile-page .s-content { padding-top: 12px; }
  .ng-profile-hero { padding: 22px 18px; gap: 24px; }
  .ng-profile-identity { align-items: flex-start; gap: 16px; }
  .ng-profile-avatar { flex-basis: 78px; width: 78px; height: 78px; border-radius: 23px; }
  .ng-profile-avatar span { font-size: 24px; }
  .ng-profile-identity h1 { font-size: 28px; }
  .ng-profile-bio { font-size: 12px; }
  .ng-profile-progress-card { padding: 17px; }
  .ng-profile-progress-card__head { align-items: flex-start; }
  .ng-profile-progress-card__head strong { font-size: 21px; }
  .ng-profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-profile-stat { padding: 15px; }
  .ng-profile-panel { padding: 18px; border-radius: 17px; }
  .ng-profile-panel__head { display: block; }
  .ng-profile-panel__meta { display: block; margin-top: 8px; text-align: left; }
  .ng-profile-showcase { grid-template-columns: 1fr; }
  .ng-profile-achievement-grid { grid-template-columns: 1fr; }
  .ng-profile-achievement { grid-template-columns: 92px minmax(0, 1fr); }
  .ng-profile-achievement__icon img { width: 84px; height: 100px; }
}

/* NOWGAME profile editor + secret achievements · 0.8.29 */
.ng-profile-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.ng-profile-title-row h1 { margin-right: auto; }
.ng-profile-edit-button,
.ng-profile-primary-button,
.ng-profile-secondary-button,
.ng-profile-file-button {
  appearance: none;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}
.ng-profile-edit-button {
  padding: 10px 13px;
  border: 1px solid rgba(108, 166, 255, .28);
  background: rgba(37, 99, 255, .12);
  color: #75b4ff;
}
.ng-profile-edit-button:hover,
.ng-profile-primary-button:hover,
.ng-profile-secondary-button:hover,
.ng-profile-file-button:hover { transform: translateY(-1px); }

.ng-profile-edit-panel {
  margin-top: 18px;
  scroll-margin-top: 18px;
}
.ng-profile-edit-panel[hidden] { display: none !important; }
.ng-profile-edit-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #dce4ee;
  border-radius: 10px;
  background: #f7faff;
  color: #66768b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ng-profile-edit-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
}
.ng-profile-edit-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid #e3e9f1;
  border-radius: 17px;
  background: #f9fbfe;
}
.ng-profile-edit-avatar-preview {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  overflow: hidden;
  border: 1px solid #d8e3ef;
  border-radius: 34px;
  background: linear-gradient(145deg, #eef4fb, #dfe8f3);
  color: #2563ff;
  font-size: 34px;
  font-weight: 900;
}
.ng-profile-edit-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ng-profile-file-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  background: #2563ff;
  color: #fff;
  text-align: center;
}
.ng-profile-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ng-profile-check {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: #69798d;
  font-size: 10px;
  cursor: pointer;
}
.ng-profile-check.is-disabled { opacity: .45; cursor: default; }
.ng-profile-check input { accent-color: #2563ff; }
.ng-profile-edit-avatar-block > small {
  color: #96a2b2;
  font-size: 9px;
  text-align: center;
}
.ng-profile-edit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ng-profile-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}
.ng-profile-field--wide { grid-column: 1 / -1; }
.ng-profile-field > span,
.ng-profile-edit-section-title strong {
  color: #344258;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}
.ng-profile-field input[type="text"],
.ng-profile-field textarea,
.ng-profile-field select,
.ng-profile-slug-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dce5ef;
  border-radius: 11px;
  background: #fbfdff;
  color: #172235;
  font: inherit;
  font-size: 12px;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.ng-profile-field input[type="text"],
.ng-profile-field select { height: 42px; padding: 0 12px; }
.ng-profile-field textarea { min-height: 116px; padding: 11px 12px; resize: vertical; line-height: 1.5; }
.ng-profile-field input[type="text"]:focus,
.ng-profile-field textarea:focus,
.ng-profile-field select:focus,
.ng-profile-slug-input:focus-within {
  border-color: #5b8dff;
  box-shadow: 0 0 0 3px rgba(37,99,255,.09);
}
.ng-profile-field small,
.ng-profile-edit-section-title span,
.ng-profile-edit-hint {
  color: #909dad;
  font-size: 9px;
  line-height: 1.45;
}
.ng-profile-slug-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 42px;
}
.ng-profile-slug-input > span {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid #e3e9f1;
  background: #f1f5fa;
  color: #8b98a9;
  font-size: 11px;
  font-weight: 800;
}
.ng-profile-slug-input input {
  flex: 1;
  min-width: 0;
  height: 100% !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.ng-profile-cover-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .85fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #e3e9f1;
  border-radius: 16px;
  background: #f9fbfe;
}
.ng-profile-cover-editor__preview {
  min-height: 156px;
  border: 1px solid #d8e3ef;
  border-radius: 13px;
  background:
    radial-gradient(circle at 82% 18%, rgba(37, 99, 255, .24), transparent 34%),
    linear-gradient(135deg, #0b1220 0%, #0d192a 58%, #101f35 100%);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.ng-profile-cover-editor__preview.has-image {
  background-image:
    linear-gradient(90deg, rgba(7, 14, 26, .52), rgba(8, 18, 34, .24)),
    var(--ng-profile-cover-preview);
}
.ng-profile-cover-editor__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  min-width: 0;
}
.ng-profile-cover-editor__controls > strong {
  color: #344258;
  font-size: 11px;
}
.ng-profile-cover-editor__controls > span,
.ng-profile-cover-editor__controls > small {
  color: #909dad;
  font-size: 9px;
  line-height: 1.45;
}
.ng-profile-file-button--cover { width: auto; min-width: 145px; }

body.dark .ng-profile-cover-editor {
  border-color: #203047;
  background: #0b1523;
}
body.dark .ng-profile-cover-editor__preview { border-color: #263951; }
body.dark .ng-profile-cover-editor__controls > strong { color: #b9c8da; }

.ng-profile-edit-showcase {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #edf1f5;
}
.ng-profile-edit-section-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}
.ng-profile-edit-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ng-profile-edit-hint { margin-top: 10px; }
.ng-profile-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.ng-profile-primary-button,
.ng-profile-secondary-button { padding: 12px 16px; }
.ng-profile-primary-button { background: #2563ff; color: #fff; }
.ng-profile-primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.ng-profile-secondary-button {
  border: 1px solid #dce4ed;
  background: #f7f9fc;
  color: #53657a;
}
.ng-profile-edit-message {
  margin-right: auto;
  font-size: 10px;
  font-weight: 700;
}
.ng-profile-edit-message.is-success { color: #2f9c63; }
.ng-profile-edit-message.is-error { color: #d65454; }

.ng-profile-panel--secrets { margin-top: 18px; }
.ng-profile-secret-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ng-profile-secret {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe7ef;
  border-radius: 17px;
  background: #fbfdff;
}
.ng-profile-secret__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  background: linear-gradient(160deg, #edf4fb, #f8fbff);
}
.ng-profile-secret__art img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}
.ng-profile-secret.is-locked .ng-profile-secret__art img { opacity: .95; }
.ng-profile-secret__mystery {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 12, 24, .72);
  color: #e7edf7;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: .16em;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  text-shadow: 0 0 24px rgba(37, 99, 255, .55);
}
.ng-profile-secret.is-locked:hover .ng-profile-secret__mystery,
.ng-profile-secret.is-locked:focus-within .ng-profile-secret__mystery { opacity: 1; }
.ng-profile-secret.is-locked:hover .ng-profile-secret__art img { transform: scale(1.025); filter: brightness(.72); }
.ng-profile-secret__body {
  min-height: 72px;
  padding: 13px 14px 15px;
  border-top: 1px solid #e8edf3;
}
.ng-profile-secret__body strong {
  display: block;
  color: #172235;
  font-size: 12px;
  line-height: 1.3;
}
.ng-profile-secret__body span {
  display: block;
  margin-top: 5px;
  color: #8190a3;
  font-size: 9px;
  line-height: 1.45;
}
.ng-profile-secret.is-unlocked { box-shadow: inset 0 -2px 0 #2563ff; }

body.dark .ng-profile-edit-close,
body.dark .ng-profile-secondary-button {
  border-color: #263850;
  background: #101d2d;
  color: #8ea1b8;
}
body.dark .ng-profile-edit-avatar-block {
  border-color: #203047;
  background: #0b1523;
}
body.dark .ng-profile-edit-avatar-preview {
  border-color: #263951;
  background: linear-gradient(145deg, #142238, #0d1725);
}
body.dark .ng-profile-field > span,
body.dark .ng-profile-edit-section-title strong { color: #b9c8da; }
body.dark .ng-profile-field input[type="text"],
body.dark .ng-profile-field textarea,
body.dark .ng-profile-field select,
body.dark .ng-profile-slug-input {
  border-color: #263850;
  background: #0a1421;
  color: #e7edf7;
}
body.dark .ng-profile-slug-input > span {
  border-right-color: #263850;
  background: #111f30;
  color: #70859d;
}
body.dark .ng-profile-edit-showcase { border-top-color: #1d2c40; }
body.dark .ng-profile-secret {
  border-color: #22334a;
  background: #0b1523;
}
body.dark .ng-profile-secret__art { background: linear-gradient(160deg, #101d2c, #0c1623); }
body.dark .ng-profile-secret__body { border-top-color: #1d2c40; }
body.dark .ng-profile-secret__body strong { color: #dce7f4; }
body.dark .ng-profile-secret__body span { color: #7489a1; }

@media (max-width: 1000px) {
  .ng-profile-secret-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .ng-profile-edit-layout { grid-template-columns: 1fr; }
  .ng-profile-cover-editor { grid-template-columns: 1fr; }
  .ng-profile-cover-editor__preview { min-height: 132px; }
  .ng-profile-edit-avatar-block { align-items: flex-start; }
  .ng-profile-edit-avatar-preview { width: 112px; height: 112px; }
  .ng-profile-file-button { width: auto; }
  .ng-profile-edit-showcase-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ng-profile-title-row { display: block; }
  .ng-profile-edit-button { margin-top: 12px; }
  .ng-profile-edit-fields { grid-template-columns: 1fr; }
  .ng-profile-field--wide { grid-column: auto; }
  .ng-profile-edit-section-title { display: block; }
  .ng-profile-edit-section-title span { display: block; margin-top: 5px; }
  .ng-profile-edit-actions { flex-wrap: wrap; }
  .ng-profile-edit-message { width: 100%; margin: 0 0 4px; }
  .ng-profile-secret-grid { grid-template-columns: 1fr; }
  .ng-profile-secret__art,
  .ng-profile-secret__art img { height: 200px; min-height: 200px; }
}

/* NOWGAME profile avatars + compact secrets + avatar cropper · 0.8.30 */
.b-user__toggle.has-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border: 2px solid rgba(89, 178, 255, .72);
  border-radius: 50%;
  background-position: 50% 50% !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 255, .08);
}
.b-user__toggle.has-avatar::before,
.b-user__toggle.has-avatar::after { display: none !important; }

.ng-article-hero__author-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(188, 218, 244, .55);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.ng-article-hero__author { gap: 12px; }

.ng-profile-cropper {
  width: 100%;
  padding: 12px;
  border: 1px solid #dfe7f0;
  border-radius: 14px;
  background: #f4f8fd;
}
.ng-profile-cropper[hidden] { display: none !important; }
.ng-profile-cropper__stage {
  position: relative;
  width: min(100%, 180px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 10px;
  overflow: hidden;
  border: 2px solid #2563ff;
  border-radius: 50%;
  background: #0b1220;
  cursor: grab;
  touch-action: none;
  user-select: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 255, .08);
}
.ng-profile-cropper__stage:active { cursor: grabbing; }
.ng-profile-cropper__stage img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  user-select: none;
}
.ng-profile-cropper__zoom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: #617289;
  font-size: 9px;
  font-weight: 800;
}
.ng-profile-cropper__zoom input {
  width: 100%;
  accent-color: #2563ff;
}
.ng-profile-cropper > small {
  display: block;
  margin-top: 7px;
  color: #8c9aac;
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

/* Secret achievements intentionally use the same card geometry as normal achievements. */
.ng-profile-panel--secrets { margin-top: 18px; }
.ng-profile-secret-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ng-profile-secret {
  min-height: 148px;
  overflow: hidden;
}
.ng-profile-secret__art {
  min-height: 120px;
  overflow: hidden;
}
.ng-profile-secret__art img {
  width: 96px;
  height: 108px;
  object-fit: contain;
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}
.ng-profile-secret__body {
  min-height: 0;
  padding: 3px 2px 2px;
  border: 0;
}
.ng-profile-secret__mystery {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: rgba(5, 12, 24, .72);
  color: #e7edf7;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: .12em;
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
  text-shadow: 0 0 18px rgba(37, 99, 255, .65);
}
.ng-profile-secret.is-locked:hover .ng-profile-secret__mystery,
.ng-profile-secret.is-locked:focus-within .ng-profile-secret__mystery { opacity: 1; }
.ng-profile-secret.is-locked:hover .ng-profile-secret__art img {
  transform: scale(1.03);
  filter: brightness(.7);
}
.ng-profile-secret.is-unlocked { box-shadow: inset 0 -2px 0 #2563ff; }

body.dark .ng-profile-cropper {
  border-color: #253850;
  background: #0a1421;
}
body.dark .ng-profile-cropper__zoom { color: #8ea1b8; }
body.dark .ng-profile-cropper > small { color: #70849c; }

@media (max-width: 1000px) {
  .ng-profile-secret-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ng-profile-secret-grid { grid-template-columns: 1fr; }
  .ng-profile-secret__art,
  .ng-profile-secret__art img { min-height: 0; }
  .ng-profile-secret__art img { width: 84px; height: 100px; }
}
.b-user__toggle.has-avatar::after { display: none !important; }
.b-user__toggle.has-avatar::before {
  display: block !important;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%) scale(.82);
}
.b-user.open .b-user__toggle.has-avatar,
.b-user__toggle.has-avatar:hover { background-color: transparent !important; }


/* NOWGAME public profiles + header spacing · 0.8.31 */
.s-head .b-user { margin-left: 14px; }
.ng-article-hero__author-link {
  color: inherit;
  text-decoration: none;
  transition: opacity .16s ease;
}
.ng-article-hero__author-link:hover { opacity: .82; }
.b-comment .elem-img-hover[href^="/u/"],
.b-comment .typo-cresc[href^="/u/"] { cursor: pointer; }
@media (max-width: 991px) {
  .s-head .b-user { margin-left: 8px; }
}

/* NOWGAME profile posts + stats placement · 0.8.36 */
.ng-profile-stats--after-achievements {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.ng-profile-stats--after-achievements.ng-profile-stats--own {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.ng-profile-stats--after-achievements .ng-profile-stat {
  padding: 12px 12px;
  border-radius: 13px;
}
.ng-profile-stats--after-achievements .ng-profile-stat strong {
  margin-bottom: 4px;
  font-size: 18px;
}
.ng-profile-stats--after-achievements .ng-profile-stat span {
  display: block;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ng-profile-stat--link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.ng-profile-stat--link:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 255, .48);
  box-shadow: 0 12px 28px rgba(37, 99, 255, .12);
}
.ng-profile-stat--link:hover strong,
.ng-profile-stat--link:hover span {
  color: #2563ff;
}

.ng-profile-panel--posts {
  margin-top: 18px;
}
.ng-profile-panel--posts .ng-section-material-grid,
.ng-profile-panel--bookmarks .ng-section-material-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ng-profile-posts-close {
  color: #6f829a;
  text-decoration: none;
  transition: color .18s ease;
}
.ng-profile-posts-close:hover {
  color: #2563ff;
}
.ng-profile-posts-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 800;
}
.ng-profile-posts-pagination a {
  color: #2563ff;
  text-decoration: none;
}
.ng-profile-posts-pagination span {
  color: #718096;
}

body.dark .ng-profile-stat--link:hover {
  border-color: rgba(72, 137, 255, .58);
  background: #0d1b2c;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}
body.dark .ng-profile-stat--link:hover strong,
body.dark .ng-profile-stat--link:hover span,
body.dark .ng-profile-posts-close:hover {
  color: #66a8ff;
}

@media (max-width: 1100px) {
  .ng-profile-stats--after-achievements,
  .ng-profile-stats--after-achievements.ng-profile-stats--own { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ng-profile-panel--posts .ng-section-material-grid,
  .ng-profile-panel--bookmarks .ng-section-material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ng-profile-stats--after-achievements,
  .ng-profile-stats--after-achievements.ng-profile-stats--own { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-profile-panel--posts .ng-section-material-grid,
  .ng-profile-panel--bookmarks .ng-section-material-grid { grid-template-columns: 1fr; }
}

/* === NOWGAME homepage prototype v0.8.82 === */
.ng-home {
  --ng-home-bg: #d9e8ff;
  --ng-home-card: #fff;
  --ng-home-card-soft: #f8faff;
  --ng-home-text: #0b1220;
  --ng-home-muted: #697b91;
  --ng-home-line: #dfe7f1;
  --ng-home-blue: #2563ff;
  background: transparent;
  padding: 0;
  color: var(--ng-home-text);
}
.ng-home__container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 84px 15px 64px;
  background: var(--ng-home-bg);
}
.ng-home__layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.ng-home__layout--single { grid-template-columns: minmax(0, 1fr); }
.ng-home__main { min-width: 0; }
.ng-home__aside { display: grid; gap: 16px; min-width: 0; }

@media (min-width: 761px) and (max-width: 991px) {
  .ng-home__container { max-width: 720px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .ng-home__container { max-width: 960px; }
}

.ng-home-hero {
  position: relative;
  height: 510px;
  min-height: 510px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--ng-home-line);
  border-radius: 20px;
  background: #111827;
  box-shadow: 0 18px 46px rgba(32, 52, 76, .10);
}
.ng-home-hero__track { position: relative; height: 100%; min-height: 0; }
.ng-home-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s ease, visibility .5s ease; }
.ng-home-hero__slide.is-active { position: absolute; inset: 0; opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.ng-home-hero__media { position: absolute; inset: 0; display: block; }
.ng-home-hero__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 6.5s ease; }
.ng-home-hero__slide.is-active .ng-home-hero__media img { transform: scale(1.025); }
.ng-home-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 12, 23, .91) 0%, rgba(5, 12, 23, .74) 38%, rgba(5, 12, 23, .28) 70%, rgba(5, 12, 23, .10) 100%),
              linear-gradient(0deg, rgba(5, 12, 23, .42), transparent 52%);
  pointer-events: none;
}
.ng-home-hero__content {
  position: relative;
  z-index: 2;
  width: min(650px, 68%);
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 38px 44px 38px;
  color: #fff;
}
.ng-home-kicker { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 8px; background: var(--ng-home-blue); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(37, 99, 255, .25); }
.ng-home-hero__title { margin: 13px 0 18px; font-size: clamp(32px, 2.25vw, 43px); line-height: 1.03; font-weight: 850; letter-spacing: -.04em; }
.ng-home-hero__title a { color: #fff !important; text-decoration: none !important; }
.ng-home-hero__content > p { margin: 0; max-width: 590px; color: #cbd7e5; font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ng-home-hero__footer { width: 100%; margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 18px; flex: 0 0 auto; flex-wrap: wrap; }
.ng-home-primary { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 18px; border-radius: 12px; background: #fff; color: #111827 !important; font-size: 14px; font-weight: 800; text-decoration: none !important; box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.ng-home-primary:hover { background: #eaf2ff; color: var(--ng-home-blue) !important; transform: translateY(-1px); }
.ng-home-meta { display: flex; align-items: center; gap: 14px; color: #a9b8c9; font-size: 13px; font-weight: 600; }
.ng-home-meta__comments { display: inline-flex; align-items: center; gap: 5px; }
.ng-home-meta__comments::before { content: ""; width: 13px; height: 10px; border: 1.7px solid currentColor; border-radius: 4px; box-sizing: border-box; }
.ng-home-hero__controls { position: absolute; z-index: 5; right: 20px; bottom: 18px; display: flex; align-items: center; gap: 10px; }
.ng-home-hero__arrow { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.20); border-radius: 50%; background: rgba(5,12,23,.58); color: #fff; font: 400 25px/1 Arial,sans-serif; cursor: pointer; backdrop-filter: blur(8px); transition: background .18s ease, border-color .18s ease; }
.ng-home-hero__arrow:hover { background: rgba(37,99,255,.92); border-color: rgba(255,255,255,.28); }
.ng-home-hero__dots { display: flex; align-items: center; gap: 6px; }
.ng-home-hero__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.38); cursor: pointer; transition: width .22s ease, background .22s ease; }
.ng-home-hero__dot.is-active { width: 24px; background: #fff; }
.ng-home-hero__counter { min-width: 44px; color: rgba(255,255,255,.70); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.ng-home-hero__counter b { color: #fff; }

.ng-home-section { margin-top: 28px; }
.ng-home-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 15px; }
.ng-home-section__head > div { position: relative; padding-left: 16px; }
.ng-home-section__head > div::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 1px; width: 4px; border-radius: 4px; background: var(--ng-home-blue); }
.ng-home-section__eyebrow { display: block; margin-bottom: 3px; color: var(--ng-home-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.ng-home-section__head h2 { color: var(--ng-home-text); font-size: 25px; line-height: 1.1; font-weight: 850; letter-spacing: -.025em; }
.ng-home-section__head > a { color: var(--ng-home-blue) !important; font-size: 13px; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.ng-home-section__head > a span { margin-left: 5px; }

.ng-home-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ng-home-news-card { min-width: 0; overflow: hidden; border: 1px solid var(--ng-home-line); border-radius: 18px; background: var(--ng-home-card); box-shadow: 0 8px 24px rgba(32, 52, 76, .045); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ng-home-news-card:hover { transform: translateY(-2px); border-color: #c5d6ea; box-shadow: 0 12px 28px rgba(32, 52, 76, .08); }
.ng-home-news-card__image { position: relative; display: block; aspect-ratio: 16 / 6.5; overflow: hidden; background: #dfe7f1; }
.ng-home-news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ng-home-news-card:hover .ng-home-news-card__image img { transform: scale(1.025); }
.ng-home-news-card__image > span { position: absolute; left: 10px; top: 10px; padding: 5px 7px; border-radius: 7px; background: rgba(11, 18, 32, .82); color: #fff; font-size: 8px; line-height: 1; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.ng-home-news-card__body { min-height: 88px; box-sizing: border-box; display: flex; flex-direction: column; padding: 12px 13px 11px; }
.ng-home-news-card h3 { min-height: 36px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; line-height: 1.35; font-weight: 750; }
.ng-home-news-card h3 a { color: var(--ng-home-text) !important; text-decoration: none !important; }
.ng-home-news-card h3 a:hover { color: var(--ng-home-blue) !important; }
.ng-home-news-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; color: var(--ng-home-muted); font-size: 10px; }

.ng-home-trending,
.ng-home-support,
.ng-home-ad { border: 1px solid var(--ng-home-line); border-radius: 20px; background: var(--ng-home-card); box-shadow: 0 8px 24px rgba(32, 52, 76, .045); }
.ng-home-trending { height: 510px; min-height: 510px; box-sizing: border-box; padding: 18px; display: flex; flex-direction: column; }
.ng-home-aside-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--ng-home-line); }
.ng-home-aside-head > div { display: flex; align-items: center; gap: 9px; }
.ng-home-aside-head__icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: #eaf1ff; color: var(--ng-home-blue); font-weight: 900; }
.ng-home-aside-head h2 { font-size: 18px; font-weight: 850; letter-spacing: -.02em; }
.ng-home-aside-head > a { color: var(--ng-home-blue) !important; font-size: 11px; font-weight: 800; text-decoration: none !important; }
.ng-home-trending__list { flex: 1; display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; margin: 4px 0 0; }
.ng-home-trending__list > li { display: grid; grid-template-columns: 28px 68px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf1f6; min-height: 0; }
.ng-home-trending__list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.ng-home-trending__number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 10px; background: var(--ng-home-card-soft); color: #718399; font-size: 12px; font-weight: 850; }
.ng-home-trending__list > li:first-child .ng-home-trending__number { background: var(--ng-home-blue); color: #fff; }
.ng-home-trending__thumb { display: block; width: 68px; height: 52px; border-radius: 10px; overflow: hidden; background: #e6edf6; }
.ng-home-trending__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ng-home-trending__body { min-width: 0; }
.ng-home-trending__body > a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--ng-home-text) !important; font-size: 13px; line-height: 1.35; font-weight: 750; text-decoration: none !important; }
.ng-home-trending__body > a:hover { color: var(--ng-home-blue) !important; }
.ng-home-trending__body > span { display: block; margin-top: 4px; color: var(--ng-home-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.ng-home-support { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 66px; min-height: 196px; margin-top: 12px; padding: 24px 20px; color: var(--ng-home-text); }
.ng-home-support::after { content: ""; position: absolute; right: -40px; top: -52px; width: 132px; height: 132px; border-radius: 50%; background: rgba(37, 99, 255, .10); pointer-events: none; }
.ng-home-support > div:not(.ng-home-support__mark) { position: relative; z-index: 2; grid-column: 1; grid-row: 1; min-width: 0; align-self: center; }
.ng-home-support__eyebrow { color: #6f9fff; font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.ng-home-support h2 { margin-top: 5px; font-size: 20px; line-height: 1.1; font-weight: 850; }
.ng-home-support p { margin-top: 10px; max-width: 225px; color: var(--ng-home-muted); font-size: 12px; line-height: 1.5; }
.ng-home-support a { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 13px; border-radius: 10px; background: var(--ng-home-blue); color: #fff !important; font-size: 11px; font-weight: 800; text-decoration: none !important; }
.ng-home-support a:hover { background: #3974ff; }
.ng-home-support__mark { position: relative; z-index: 2; grid-column: 2; grid-row: 1; align-self: center; justify-self: end; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border: 1px solid var(--ng-home-line); border-radius: 18px; background: var(--ng-home-card-soft); color: var(--ng-home-text); font-size: 16px; font-weight: 900; letter-spacing: -.04em; }
.ng-home-ad { position: relative; min-height: 108px; padding: 18px 20px; overflow: hidden; background: var(--ng-home-card-soft); color: var(--ng-home-text); }
.ng-home-ad::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 4px; background: var(--ng-home-blue); opacity: .42; }
.ng-home-ad--alt { background: var(--ng-home-card-soft); }
.ng-home-ad--alt::after { opacity: .24; }
.ng-home-ad span, .ng-home-ad strong, .ng-home-ad small { position: relative; z-index: 2; display: block; max-width: 230px; }
.ng-home-ad span { color: var(--ng-home-muted); font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ng-home-ad strong { margin-top: 7px; font-size: 16px; line-height: 1.18; font-weight: 850; }
.ng-home-ad small { margin-top: 7px; color: var(--ng-home-muted); font-size: 10px; }
.ng-home-empty, .ng-home-aside-empty { padding: 24px; border: 1px dashed var(--ng-home-line); border-radius: 16px; background: var(--ng-home-card-soft); color: var(--ng-home-muted); font-size: 13px; }
.ng-home-aside-empty { margin-top: 14px; padding: 18px; }

/* Rendering slot for future Admin 2.0 managed homepage content sections. */
.ng-home-custom { display: grid; gap: 30px; margin-top: 30px; }
.ng-home-custom:empty { display: none; }
.ng-home-custom-section { min-width: 0; }
.ng-home-custom-section__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }


/* === Homepage content-section model v0.8.92 === */
.ng-home-model { display: grid; gap: 42px; margin-top: 42px; }
.ng-home-model-section { min-width: 0; }
.ng-home-model-section__head { margin-bottom: 18px; }
.ng-home-model-section__actions { display: flex; align-items: center; gap: 12px; }
.ng-home-model-section__actions > a { color: var(--ng-home-blue) !important; font-size: 13px; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.ng-home-model-section__actions > a span { margin-left: 5px; }
.ng-home-model-section + .ng-home-model-section { padding-top: 2px; }
.ng-home-model-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 7px; background: rgba(8,17,31,.82); color: #fff; font-size: 8px; line-height: 1; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.ng-home-model-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ng-home-muted); font-size: 10px; }

.ng-home-feature-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 14px; min-height: 438px; }
.ng-home-feature-main { position: relative; min-height: 438px; overflow: hidden; border: 1px solid var(--ng-home-line); border-radius: 20px; background: var(--ng-home-card); }
.ng-home-feature-main__media { position: absolute; inset: 0; display: block; }
.ng-home-feature-main__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ng-home-feature-main:hover .ng-home-feature-main__media img { transform: scale(1.025); }
.ng-home-feature-main__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,12,23,.94) 0%, rgba(5,12,23,.58) 48%, rgba(5,12,23,.08) 82%); pointer-events: none; }
.ng-home-feature-main__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 28px 30px; color: #fff; }
.ng-home-feature-main__body h3 { margin-top: 11px; max-width: 760px; font-size: clamp(25px, 2.1vw, 34px); line-height: 1.08; font-weight: 850; letter-spacing: -.03em; }
.ng-home-feature-main__body h3 a { color: #fff !important; text-decoration: none !important; }
.ng-home-feature-main__body p { margin: 10px 0 16px; max-width: 660px; color: #c6d2df; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ng-home-feature-main .ng-home-model-meta { justify-content: flex-start; gap: 16px; color: #b5c3d2; }
.ng-home-feature-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ng-home-feature-small { min-width: 0; overflow: hidden; border: 1px solid var(--ng-home-line); border-radius: 18px; background: var(--ng-home-card); transition: transform .2s ease, border-color .2s ease; }
.ng-home-feature-small:hover { transform: translateY(-2px); border-color: #315173; }
.ng-home-feature-small__media { position: relative; display: block; aspect-ratio: 16 / 8.7; overflow: hidden; background: var(--ng-home-card-soft); }
.ng-home-feature-small__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ng-home-feature-small:hover img { transform: scale(1.025); }
.ng-home-feature-small__media .ng-home-model-badge { position: absolute; left: 10px; top: 10px; }
.ng-home-feature-small__body { min-height: 94px; box-sizing: border-box; display: flex; flex-direction: column; padding: 11px 12px; }
.ng-home-feature-small h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; line-height: 1.35; font-weight: 780; }
.ng-home-feature-small h3 a { color: var(--ng-home-text) !important; text-decoration: none !important; }
.ng-home-feature-small h3 a:hover { color: var(--ng-home-blue) !important; }
.ng-home-feature-small .ng-home-model-meta { margin-top: auto; padding-top: 8px; }

.ng-home-content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ng-home-content-card { min-width: 0; overflow: hidden; border: 1px solid var(--ng-home-line); border-radius: 18px; background: var(--ng-home-card); transition: transform .2s ease, border-color .2s ease; }
.ng-home-content-card:hover { transform: translateY(-2px); border-color: #315173; }
.ng-home-content-card__media { position: relative; display: block; aspect-ratio: 16 / 8.6; overflow: hidden; background: var(--ng-home-card-soft); }
.ng-home-content-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.ng-home-content-card:hover .ng-home-content-card__media img { transform: scale(1.025); }
.ng-home-content-card__media .ng-home-model-badge { position: absolute; left: 11px; top: 11px; }
.ng-home-content-card__body { min-height: 142px; box-sizing: border-box; display: flex; flex-direction: column; padding: 14px 15px 13px; }
.ng-home-content-card h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; line-height: 1.32; font-weight: 800; }
.ng-home-content-card h3 a { color: var(--ng-home-text) !important; text-decoration: none !important; }
.ng-home-content-card h3 a:hover { color: var(--ng-home-blue) !important; }
.ng-home-content-card p { margin: 8px 0 12px; color: var(--ng-home-muted); font-size: 11px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ng-home-content-card .ng-home-model-meta { margin-top: auto; }

.ng-home-strip-shell { min-width: 0; overflow: hidden; }
.ng-home-strip-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 42px) / 4); gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.ng-home-strip-grid::-webkit-scrollbar { display: none; }
.ng-home-strip-card { scroll-snap-align: start; }
.ng-home-strip-controls { display: flex; align-items: center; gap: 7px; }
.ng-home-strip-controls button { width: 34px; height: 34px; border: 1px solid var(--ng-home-line); border-radius: 10px; background: var(--ng-home-card); color: var(--ng-home-text); font-size: 23px; line-height: 1; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease, opacity .18s ease; }
.ng-home-strip-controls button:hover:not(:disabled) { border-color: var(--ng-home-blue); color: #fff; background: var(--ng-home-blue); }
.ng-home-strip-controls button:disabled { opacity: .35; cursor: default; }
.ng-home-strip-card { min-width: 0; overflow: hidden; border: 1px solid var(--ng-home-line); border-radius: 18px; background: var(--ng-home-card); transition: transform .2s ease, border-color .2s ease; }
.ng-home-strip-card:hover { transform: translateY(-2px); border-color: #315173; }
.ng-home-strip-card__media { position: relative; display: block; aspect-ratio: 16 / 9.2; overflow: hidden; background: var(--ng-home-card-soft); }
.ng-home-strip-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.ng-home-strip-card:hover .ng-home-strip-card__media img { transform: scale(1.025); }
.ng-home-strip-card__media .ng-home-model-badge { position: absolute; left: 10px; top: 10px; }
.ng-home-strip-card__body { min-height: 106px; box-sizing: border-box; display: flex; flex-direction: column; padding: 12px 13px; }
.ng-home-strip-card h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; line-height: 1.35; font-weight: 780; }
.ng-home-strip-card h3 a { color: var(--ng-home-text) !important; text-decoration: none !important; }
.ng-home-strip-card h3 a:hover { color: var(--ng-home-blue) !important; }
.ng-home-strip-card .ng-home-model-meta { margin-top: auto; padding-top: 10px; }

body.dark .ng-home { --ng-home-bg: radial-gradient(circle at 50% 0%, rgba(37, 99, 255, .10), transparent 38%), linear-gradient(180deg, #0c162e 0%, #0d1729 52%, #0c1627 100%); --ng-home-card: #101a27; --ng-home-card-soft: #132131; --ng-home-text: #e7edf7; --ng-home-muted: #91a6ba; --ng-home-line: #23364a; background: transparent; }
body.dark .ng-home__container { border-left: 1px solid #262b2e; border-right: 1px solid #262b2e; }
body.dark .ng-home-hero { border-color: #26394f; box-shadow: none; }
body.dark .ng-home-news-card, body.dark .ng-home-trending, body.dark .ng-home-support, body.dark .ng-home-ad { box-shadow: none; }
body.dark .ng-home-news-card:hover { border-color: #315173; box-shadow: none; }
body.dark .ng-home-trending__list > li { border-bottom-color: #17283b; }
body.dark .ng-home-aside-head__icon { background: #142b49; color: #63a7ff; }
body.dark .ng-home-news-card__image, body.dark .ng-home-trending__thumb { background: #17283b; }

@media (max-width: 1240px) {
  .ng-home__layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .ng-home-hero__content { width: 72%; padding-left: 38px; padding-right: 34px; }
  .ng-home-trending__list > li { grid-template-columns: 26px 58px minmax(0,1fr); gap: 8px; }
  .ng-home-trending__thumb { width: 58px; height: 46px; }
}
@media (max-width: 1040px) {
  .ng-home-strip-grid { grid-auto-columns: calc((100% - 28px) / 3); }
  .ng-home__container { padding-top: 78px; }
  .ng-home__layout { grid-template-columns: 1fr; }
  .ng-home__aside { grid-template-columns: 1.35fr 1fr; align-items: stretch; }
  .ng-home-trending { grid-row: span 2; height: auto; min-height: auto; }
  .ng-home-support { margin-top: 0; }
  .ng-home-trending__list { display: block; }
  .ng-home-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ng-home-custom-section__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ng-home {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: var(--ng-home-bg);
  }
  .ng-home__container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 72px 12px 42px;
    border-left: 0 !important;
    border-right: 0 !important;
  }
  .ng-home__layout {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .ng-home__main,
  .ng-home__aside,
  .ng-home-model,
  .ng-home-custom,
  .ng-home-model-section,
  .ng-home-custom-section,
  .ng-home-section {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .ng-home__aside,
  .ng-home-feature-side,
  .ng-home-content-grid,
  .ng-home-news-grid,
  .ng-home-custom-section__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ng-home-trending { grid-row: auto; }
  .ng-home-model { gap: 32px; margin-top: 32px; }
  .ng-home-model-section__actions { gap: 8px; }

  .ng-home-hero {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: clamp(420px, 115vw, 520px);
    min-height: 0;
    border-radius: 18px;
  }
  .ng-home-hero__track { height: 100%; min-height: 0; }
  .ng-home-hero__shade { background: linear-gradient(0deg, rgba(5,12,23,.94) 0%, rgba(5,12,23,.72) 58%, rgba(5,12,23,.20) 100%); }
  .ng-home-hero__content {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    justify-content: flex-end;
    padding: clamp(18px, 5vw, 26px) clamp(16px, 5vw, 24px) 66px;
  }
  .ng-home-hero__title {
    max-width: 100%;
    margin: 11px 0 13px;
    font-size: clamp(25px, 7.4vw, 32px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }
  .ng-home-hero__content > p {
    max-width: 100%;
    font-size: clamp(12px, 3.6vw, 14px);
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }
  .ng-home-hero__footer { width: 100%; margin-top: auto; padding-top: 14px; gap: 12px; }
  .ng-home-primary { max-width: 100%; min-height: 44px; padding: 0 16px; }
  .ng-home-meta { width: 100%; gap: 12px; }
  .ng-home-hero__controls { left: 16px; right: 16px; bottom: 16px; justify-content: flex-start; gap: 8px; }
  .ng-home-hero__counter { min-width: 38px; margin-right: auto; }
  .ng-home-hero__arrow { flex: 0 0 32px; width: 32px; height: 32px; }

  .ng-home-section { margin-top: 26px; }
  .ng-home-section__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }
  .ng-home-section__head > div { min-width: 0; padding-left: 14px; }
  .ng-home-section__eyebrow { display: none; }
  .ng-home-section__head h2 {
    min-width: 0;
    font-size: clamp(20px, 5.8vw, 24px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .ng-home-section__head > a {
    min-width: 0;
    max-width: 100%;
    font-size: clamp(10px, 3vw, 12px);
    white-space: nowrap;
  }

  .ng-home-news-card,
  .ng-home-feature-main,
  .ng-home-feature-small,
  .ng-home-content-card,
  .ng-home-strip-card,
  .ng-home-trending,
  .ng-home-support,
  .ng-home-ad {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .ng-home-news-card__image { aspect-ratio: 16 / 8.6; }
  .ng-home-news-card__body { min-width: 0; padding: 12px; }
  .ng-home-news-card h3,
  .ng-home-news-card h3 a,
  .ng-home-feature-main h3,
  .ng-home-feature-main h3 a,
  .ng-home-feature-small h3,
  .ng-home-feature-small h3 a,
  .ng-home-content-card h3,
  .ng-home-content-card h3 a,
  .ng-home-strip-card h3,
  .ng-home-strip-card h3 a {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .ng-home-news-card h3 { min-height: 0; font-size: 14px; }

  .ng-home-feature-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ng-home-feature-main { min-height: 0; }
  .ng-home-feature-main__body { padding: 22px 18px; }
  .ng-home-feature-main__body h3 { font-size: clamp(22px, 6vw, 28px); }
  .ng-home-strip-grid { grid-auto-columns: min(86%, 360px); }
  .ng-home-seo { margin-top: 32px; padding: 24px 18px 26px; }
}
@media (max-width: 380px) {
  .ng-home__container { padding-left: 10px; padding-right: 10px; }
  .ng-home-hero__content { padding-left: 16px; padding-right: 16px; }
  .ng-home-section__head { gap: 8px; }
  .ng-home-section__head > a { font-size: 10px; }
  .ng-home-primary { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ng-home-hero__slide, .ng-home-hero__media img { transition: none; }
}


/* v0.8.96 — SEO copy at the bottom of the homepage; one-way expand. */
.ng-home-seo {
  margin-top: 42px;
  padding: 30px 32px 32px;
  border-top: 1px solid var(--ng-home-line);
  background: color-mix(in srgb, var(--ng-home-card) 72%, transparent);
}
.ng-home-seo__inner { max-width: 980px; }
.ng-home-seo__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--ng-home-blue);
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ng-home-seo h2 {
  margin: 0 0 16px;
  color: var(--ng-home-text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -.02em;
}
.ng-home-seo p {
  margin: 0 0 14px;
  color: var(--ng-home-muted);
  font-size: 14px;
  line-height: 1.72;
}
.ng-home-seo p:last-child { margin-bottom: 0; }
.ng-home-seo a {
  color: var(--ng-home-blue) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.ng-home-seo a:hover { text-decoration: underline !important; }
.ng-home-seo__details { margin-top: 2px; }
.ng-home-seo__details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 2px;
  padding: 0;
  color: var(--ng-home-blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ng-home-seo__details summary::-webkit-details-marker { display: none; }
.ng-home-seo__summary-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--ng-home-line);
  border-radius: 50%;
  font-size: 12px;
  transition: transform .2s ease, border-color .2s ease;
}
.ng-home-seo__details[open] summary { display: none; }
.ng-home-seo__rest { padding-top: 8px; }

@media (max-width: 760px) {
  .ng-home-seo { margin-top: 32px; padding: 24px 20px 26px; }
  .ng-home-seo h2 { font-size: 21px; }
  .ng-home-seo p { font-size: 13px; line-height: 1.65; }
}

/* ========================================================================== 
   v0.8.98 — Articles / Reviews navigation group
   ========================================================================== */
.s-head,
.s-head .b-head,
.s-head .e-menu--main,
.s-head .e-menu--main > li {
  overflow: visible;
}

.s-head .e-menu--main > li.ng-nav-dropdown-item {
  position: relative;
}

.ng-nav-dropdown {
  position: relative;
  height: 62px;
}

.ng-nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  gap: 8px;
  user-select: none;
}

.ng-nav-dropdown > summary::-webkit-details-marker,
.ng-mobile-nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.ng-nav-dropdown > summary::marker,
.ng-mobile-nav-dropdown > summary::marker {
  content: '';
}

.ng-nav-dropdown__chevron {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .72;
  transition: transform .16s ease, margin .16s ease;
}

.ng-nav-dropdown[open] > summary .ng-nav-dropdown__chevron,
.ng-mobile-nav-dropdown[open] > summary .ng-nav-dropdown__chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

.ng-nav-dropdown__panel {
  position: absolute;
  z-index: 1300;
  top: 56px;
  left: 50%;
  width: 246px;
  padding: 8px;
  border: 1px solid rgba(15, 32, 57, .12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 32, 57, .18);
  transform: translateX(-50%);
}

.ng-nav-dropdown__panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: #172235 !important;
  line-height: 1.3;
}

.ng-nav-dropdown__panel a + a {
  margin-top: 3px;
}

.ng-nav-dropdown__panel a:hover,
.ng-nav-dropdown__panel a.is-active {
  background: rgba(37, 99, 255, .08);
  color: #2563ff !important;
}

.ng-nav-dropdown__panel strong,
.ng-nav-dropdown__panel small {
  display: block;
}

.ng-nav-dropdown__panel strong {
  font-size: 13px;
  font-weight: 800;
}

.ng-nav-dropdown__panel small {
  margin-top: 3px;
  color: #728197;
  font-size: 10px;
  font-weight: 600;
}

body.dark .ng-nav-dropdown__panel {
  border-color: #24374d;
  background: #0f1b2c;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .42);
}

body.dark .ng-nav-dropdown__panel a {
  color: #d6e1ee !important;
}

body.dark .ng-nav-dropdown__panel a:hover,
body.dark .ng-nav-dropdown__panel a.is-active {
  background: #162842;
  color: #fff !important;
}

body.dark .ng-nav-dropdown__panel small {
  color: #7890aa;
}

.ng-mobile-nav-dropdown > summary {
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
}

.ng-mobile-nav-dropdown__panel {
  display: grid;
  gap: 4px;
  margin: 2px 8px 8px 18px;
  padding-left: 12px;
  border-left: 1px solid rgba(37, 99, 255, .34);
}

.ng-mobile-nav-dropdown__panel a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: #d3dfed;
  font-size: 13px;
  font-weight: 700;
}

.ng-mobile-nav-dropdown__panel a:hover,
.ng-mobile-nav-dropdown__panel a:active {
  background: #142237;
  color: #fff;
}

/* v0.9.08 — SEO copy blocks at the bottom of public section pages. */
.ng-section-seo-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px 52px;
  background: #fff;
}
.ng-section-seo {
  --ng-section-seo-text: #0b1220;
  --ng-section-seo-muted: #60758d;
  --ng-section-seo-line: #dfe7f1;
  --ng-section-seo-card: #f8faff;
  --ng-section-seo-blue: #2563ff;
  padding: 30px 32px 32px;
  border-top: 1px solid var(--ng-section-seo-line);
  background: var(--ng-section-seo-card);
}
.ng-section-seo__inner { max-width: 980px; }
.ng-section-seo__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--ng-section-seo-blue);
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ng-section-seo h2 {
  margin: 0 0 16px;
  color: var(--ng-section-seo-text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -.02em;
}
.ng-section-seo p {
  margin: 0 0 14px;
  color: var(--ng-section-seo-muted);
  font-size: 14px;
  line-height: 1.72;
}
.ng-section-seo p:last-child { margin-bottom: 0; }
.ng-section-seo a {
  color: var(--ng-section-seo-blue) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.ng-section-seo a:hover { text-decoration: underline !important; }
.ng-section-seo__details { margin-top: 2px; }
.ng-section-seo__details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 2px;
  padding: 0;
  color: var(--ng-section-seo-blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ng-section-seo__details summary::-webkit-details-marker { display: none; }
.ng-section-seo__summary-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--ng-section-seo-line);
  border-radius: 50%;
  font-size: 12px;
}
.ng-section-seo__details[open] summary { display: none; }
.ng-section-seo__rest { padding-top: 8px; }

body.dark .ng-section-seo-wrap { background: #0d1624; }
body.dark .ng-section-seo {
  --ng-section-seo-text: #e7edf7;
  --ng-section-seo-muted: #91a6ba;
  --ng-section-seo-line: #23364a;
  --ng-section-seo-card: rgba(16, 26, 39, .72);
}

@media (max-width: 760px) {
  .ng-section-seo-wrap { padding: 0 0 36px; }
  .ng-section-seo { padding: 24px 20px 26px; }
  .ng-section-seo h2 { font-size: 21px; }
  .ng-section-seo p { font-size: 13px; line-height: 1.65; }
}

/* v0.9.20 — contacts page refresh. */
.ng-contact-page {
  padding: 56px 20px 8px;
}
.ng-contact-page__inner {
  width: min(1170px, 100%);
  margin: 0 auto;
}
.ng-contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid #d9e3ef;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 12%, rgba(37,99,255,.16), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f3f7fc 100%);
  box-shadow: 0 22px 70px rgba(15,23,42,.08);
}
.ng-contact-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(37,99,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(37,99,255,.035), 0 0 0 82px rgba(37,99,255,.025);
  pointer-events: none;
}
.ng-contact-hero__eyebrow,
.ng-contact-card__head > span,
.ng-contact-info__kicker {
  display: block;
  color: #2563ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ng-contact-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-top: 12px;
  color: #0f172a;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
}
.ng-contact-hero p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-top: 20px;
  color: #64748b;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
}
.ng-contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 22px;
  margin-top: 22px;
}
.ng-contact-info,
.ng-contact-card {
  border: 1px solid #d9e3ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15,23,42,.06);
}
.ng-contact-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(26px, 3.5vw, 40px);
}
.ng-contact-info__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border: 1px solid rgba(37,99,255,.22);
  border-radius: 17px;
  background: #edf4ff;
  color: #2563ff;
}
.ng-contact-info__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ng-contact-info h2 {
  margin-top: 8px;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.ng-contact-info > div > p {
  margin-top: 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}
.ng-contact-info__points {
  display: grid;
  gap: 0;
  margin-top: auto;
  padding-top: 34px;
}
.ng-contact-info__points > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid #e6edf5;
}
.ng-contact-info__points > div > span {
  color: #2563ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}
.ng-contact-info__points p {
  display: grid;
  gap: 4px;
}
.ng-contact-info__points strong {
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
}
.ng-contact-info__points small {
  color: #7b899d;
  font-size: 12px;
  line-height: 1.55;
}
.ng-contact-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 44px);
}
.ng-contact-card__head {
  margin-bottom: 28px;
}
.ng-contact-card__head h2 {
  margin-top: 8px;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.ng-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ng-contact-field {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.ng-contact-field:nth-of-type(3) {
  grid-column: 1 / -1;
}
.ng-contact-field > span {
  color: #344256;
  font-size: 13px;
  font-weight: 700;
}
.ng-contact-field input,
.ng-contact-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d6e0ec;
  border-radius: 14px;
  background: #f8fafc;
  color: #172033;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.ng-contact-field input {
  height: 52px;
  padding: 0 16px;
}
.ng-contact-field textarea {
  min-height: 168px;
  padding: 15px 16px;
  resize: vertical;
}
.ng-contact-field input::placeholder,
.ng-contact-field textarea::placeholder {
  color: #9aa7b8;
}
.ng-contact-field input:hover,
.ng-contact-field textarea:hover {
  border-color: #b8c8da;
}
.ng-contact-field input:focus,
.ng-contact-field textarea:focus {
  border-color: #2563ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,255,.11);
}
.ng-contact-captcha {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
}
.ng-contact-form__footer {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 54px;
  margin-top: 2px;
}
.ng-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 172px;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  background: #2563ff;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(37,99,255,.22);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.ng-contact-submit:hover {
  background: #174fd7;
  box-shadow: 0 12px 30px rgba(37,99,255,.28);
  transform: translateY(-1px);
}
.ng-contact-submit:disabled {
  cursor: wait;
  opacity: .58;
  transform: none;
}
.ng-contact-form__loader.cssload-loader {
  position: absolute;
  left: auto;
  right: 188px;
  width: 34px;
  height: 34px;
  margin: 0;
  perspective: 260px;
}
.ng-contact-form__loader .cssload-inner.cssload-one { border-bottom-color: #2563ff; }
.ng-contact-form__loader .cssload-inner.cssload-two { border-right-color: #7aa5ff; }
.ng-contact-form__loader .cssload-inner.cssload-three { border-top-color: #bfdbfe; }

body.dark .ng-contact-hero {
  border-color: #1d2e45;
  background:
    radial-gradient(circle at 92% 12%, rgba(37,99,255,.2), transparent 34%),
    linear-gradient(135deg, #0b1728 0%, #0a1321 100%);
  box-shadow: 0 22px 70px rgba(0,0,0,.18);
}
body.dark .ng-contact-hero h1,
body.dark .ng-contact-info h2,
body.dark .ng-contact-card__head h2 { color: #f2f6fc; }
body.dark .ng-contact-hero p,
body.dark .ng-contact-info > div > p { color: #91a2b8; }
body.dark .ng-contact-info,
body.dark .ng-contact-card {
  border-color: #1d2e45;
  background: #0b1626;
  box-shadow: 0 18px 48px rgba(0,0,0,.16);
}
body.dark .ng-contact-info__icon {
  border-color: rgba(67,119,255,.3);
  background: #102442;
}
body.dark .ng-contact-info__points > div { border-top-color: #1d2e45; }
body.dark .ng-contact-info__points strong { color: #e7edf7; }
body.dark .ng-contact-info__points small { color: #7f91a8; }
body.dark .ng-contact-field > span { color: #c5d0df; }
body.dark .ng-contact-field input,
body.dark .ng-contact-field textarea {
  border-color: #25364d;
  background: #0d1b2d;
  color: #ecf2fa;
}
body.dark .ng-contact-field input::placeholder,
body.dark .ng-contact-field textarea::placeholder { color: #60738c; }
body.dark .ng-contact-field input:hover,
body.dark .ng-contact-field textarea:hover { border-color: #355276; }
body.dark .ng-contact-field input:focus,
body.dark .ng-contact-field textarea:focus {
  border-color: #2563ff;
  background: #0e1d31;
}

