/* ATMMIX PRIME 2.0 — шаблон atmcyber (палитра atmcyber.css: --ac-*) */
.apr {
  --bg: var(--ac-bg, #0c0d10);
  --surface: var(--ac-surface, #15171c);
  --surface-2: var(--ac-surface-2, #1b1e24);
  --surface-3: var(--ac-surface-3, #22262e);
  --line: var(--ac-line, #262a33);
  --text: var(--ac-text, #f1f1ee);
  --text-2: var(--ac-text-2, #b9bcc6);
  --muted: var(--ac-muted, #868b98);
  --accent: var(--ac-accent, #ffac1c);
  --ac: var(--ac-on-accent, #121212);
  --blue: #4da3ff;
  --pink: #f764e6;
  --ok: var(--ac-green, #3ddc84);
  --red: var(--ac-red, #ff4d5e);
  --head: var(--ac-font-head, "Inter", system-ui, sans-serif);
  --body: var(--ac-font, "Golos Text", system-ui, sans-serif);
  --r: 12px;
  --t: var(--accent);
  font-family: var(--body);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0 30px
}

.apr * {
  box-sizing: border-box
}

.apr a {
  color: inherit;
  text-decoration: none
}

.apr [hidden] {
  display: none !important
}

.apr-muted {
  color: var(--muted)
}

.apr-small {
  font-size: 12px;
  margin: 8px 0 0
}

.apr-eyb {
  color: var(--blue);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 6px
}

.apr-h1 {
  font: italic 900 40px/1.05 var(--head);
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 0
}

.apr-h1 b {
  color: var(--accent)
}

.apr-h2 {
  font: italic 800 16px/1.2 var(--head);
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px
}

.apr-h2 i {
  color: var(--accent);
  font-size: 18px
}

.apr-h2 b {
  color: var(--accent)
}

.apr-lead {
  max-width: 560px;
  margin: 6px 0 0
}

.apr-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap
}

.apr-seg {
  display: inline-flex;
  gap: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px
}

.apr-seg button {
  border: 0;
  background: none;
  color: var(--text-2);
  font: 600 13px var(--body);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center
}

.apr-seg button.on {
  background: var(--accent);
  color: var(--ac)
}

.apr-seg small {
  font-size: 10px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(61, 220, 132, .15);
  color: var(--ok)
}

.apr-seg button.on small {
  background: rgba(0, 0, 0, .15);
  color: inherit
}

.apr-current {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--r);
  border: 1px solid color-mix(in srgb, var(--t) 40%, transparent);
  background: color-mix(in srgb, var(--t) 8%, transparent)
}

.apr-current img {
  width: 30px;
  height: 30px;
  object-fit: contain
}

.apr-current b {
  color: var(--t)
}

.apr-current a {
  margin-left: auto;
  color: var(--accent);
  font-weight: 600
}

.apr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  font: 600 13px var(--body);
  cursor: pointer;
  white-space: nowrap;
  transition: filter .2s, background .2s
}

.apr-btn.a {
  background: var(--accent);
  color: var(--ac)
}

.apr-btn.a:hover {
  filter: brightness(1.1)
}

.apr-btn.g {
  background: var(--surface-2);
  color: var(--text)
}

.apr-btn.g:hover {
  background: var(--surface-3)
}

.apr-btn:disabled {
  opacity: .5;
  pointer-events: none
}

.apr-btn.apr-sm {
  padding: 6px 10px;
  font-size: 12px
}

.apr-btn.apr-ico {
  padding: 9px 10px
}

.apr-shine {
  position: relative;
  overflow: hidden
}

.apr-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  animation: apr-sh 3.2s ease-in-out infinite
}

@keyframes apr-sh {
  from {
    transform: translateX(-120%) skewX(-20deg)
  }

  to {
    transform: translateX(260%) skewX(-20deg)
  }
}

.apr-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 999px;
  padding: 6px 12px;
  font: 500 13px var(--body);
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center
}

.apr-chip.on {
  background: var(--accent);
  color: var(--ac);
  border-color: transparent
}

.apr-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px
}

.apr-box-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap
}

.apr-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 12px
}

.apr-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.apr-grid2.solo {
  grid-template-columns: 1fr
}

/* карточки тарифов — компактные */
.apr-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.apr-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: radial-gradient(120% 90% at 0 0, color-mix(in srgb, var(--t) 16%, transparent), transparent 55%), var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: apr-up .5s both;
  transition: transform .2s
}

.apr-card:nth-child(2) {
  animation-delay: .08s
}

.apr-card:nth-child(3) {
  animation-delay: .16s
}

.apr-card:hover {
  transform: translateY(-2px)
}

@keyframes apr-up {
  from {
    opacity: 0;
    transform: translateY(10px)
  }
}

.apr-card.hot {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent)
}

.apr-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent)
}

.apr-card-top {
  display: flex;
  gap: 12px;
  align-items: center
}

.apr-card-img {
  position: relative;
  width: 76px;
  height: 76px;
  flex: none
}

.apr-card-img i {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--t) 40%, transparent);
  filter: blur(16px)
}

.apr-card-img img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s
}

.apr-card:hover .apr-card-img img {
  transform: scale(1.1) rotate(-3deg)
}

.apr-nm {
  font: italic 900 17px/1.15 var(--head);
  color: var(--t)
}

.apr-pr {
  color: var(--muted)
}

.apr-pr b {
  color: var(--text);
  font-size: 20px
}

.apr-sub {
  font-size: 11px;
  color: var(--muted)
}

.apr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  font-size: 12px;
  color: var(--text-2)
}

.apr-list li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.apr-list li::before {
  content: "✓ ";
  color: var(--t);
  font-weight: 700
}

.apr-card-act {
  display: flex;
  gap: 8px;
  align-items: center
}

.apr-card-act .apr-btn:not(.apr-ico) {
  flex: 1
}

.apr-coins {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600
}

.apr-usp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.apr-usp>div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px
}

.apr-usp>div>i,
.apr-usp>div>svg {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 172, 28, .1);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 19px;
  padding: 8px
}

.apr-usp b {
  font-size: 13px
}

.apr-usp small {
  font-size: 11px;
  color: var(--muted)
}

/* сравнение */
.apr-cmp {
  padding: 0;
  overflow: hidden
}

.apr-cmp .apr-box-h {
  padding: 14px 16px 0
}

.apr-cmp-f {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line)
}

.apr-diff {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer
}

.apr-table {
  overflow-x: auto
}

.apr-table table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px
}

.apr-table th {
  padding: 12px 8px;
  font-weight: 600
}

.apr-table th:first-child {
  text-align: left;
  padding-left: 16px;
  width: 40%;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted)
}

.apr-table th img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin: 0 auto 4px
}

.apr-table th b {
  display: block;
  font: italic 900 13px var(--head);
  color: var(--t)
}

.apr-table th small {
  color: var(--muted);
  font-size: 11px
}

.apr-table th em {
  display: inline-block;
  margin-top: 3px;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: var(--ok);
  background: rgba(61, 220, 132, .15);
  border-radius: 999px;
  padding: 0 7px
}

.apr-table td {
  padding: 10px 8px;
  text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent)
}

.apr-table td:first-child {
  text-align: left;
  padding-left: 16px;
  font-weight: 500
}

.apr-table tr.apr-grp td {
  background: var(--surface-2);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 16px;
  text-align: left
}

.apr-table .hl {
  background: rgba(255, 255, 255, .03)
}

.apr-table tfoot td {
  border-top: 1px solid var(--line)
}

.apr-yes,
.apr-no {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-style: normal
}

.apr-yes {
  background: rgba(61, 220, 132, .15);
  color: var(--ok)
}

.apr-no {
  background: var(--surface-2);
  color: var(--muted);
  opacity: .6
}

.apr-ptag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font: italic 800 10.5px var(--head);
  background: color-mix(in srgb, var(--t) 20%, transparent);
  color: var(--t)
}

.apr-x2 {
  background: var(--accent);
  color: var(--ac);
  border-radius: 6px;
  padding: 1px 8px;
  font: italic 900 14px var(--head)
}

.apr-cv {
  display: inline-flex;
  gap: 4px;
  align-items: center
}

/* FAQ, подарок */
.apr-giftbox {
  position: relative;
  overflow: hidden
}

.apr-giftbox p {
  max-width: 380px
}

.apr-faq details {
  border-bottom: 1px solid var(--line);
  padding: 10px 4px
}

.apr-faq details:last-child {
  border: 0
}

.apr-faq summary {
  cursor: pointer;
  font-weight: 600
}

.apr-faq p {
  color: var(--text-2);
  margin: 8px 0 0;
  font-size: 13px
}

/* модалка оформления */
.apr-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 6, 8, .75);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto
}

.apr-modal-in {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  animation: apr-up .25s both
}

.apr-x {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer
}

.apr-m-h {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px
}

.apr-m-h i {
  color: var(--accent);
  font-size: 22px
}

.apr-m-h h3 {
  margin: 0;
  font: 800 20px var(--head)
}

.apr-m-who {
  margin-bottom: 14px;
  border-radius: 12px
}

.apr-m-who button {
  border-radius: 9px
}

.apr-m-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 16px
}

.apr-m-left {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.apr-m-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px
}

.apr-m-tiers button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center
}

.apr-m-tiers button.on {
  border-color: var(--accent);
  background: rgba(255, 172, 28, .1)
}

.apr-m-tiers img {
  width: 52px;
  height: 52px;
  object-fit: contain
}

.apr-m-tiers b {
  font: italic 900 12px var(--head);
  color: var(--t)
}

.apr-m-tiers small {
  color: var(--muted);
  font-size: 11px
}

.apr-m-periods {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.apr-m-periods button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit
}

.apr-m-periods button.on {
  border-color: color-mix(in srgb, var(--blue) 70%, transparent);
  background: rgba(77, 163, 255, .1)
}

.apr-m-periods button>i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--muted)
}

.apr-m-periods button.on>i {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 3px var(--surface-2)
}

.apr-m-periods em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--ok);
  background: rgba(61, 220, 132, .15);
  border-radius: 6px;
  padding: 2px 8px
}

.apr-m-periods span {
  margin-left: auto;
  text-align: right
}

.apr-m-periods span small {
  display: block;
  color: var(--muted);
  font-size: 11px
}

.apr-m-coins {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-2)
}

.apr-m-right {
  display: flex;
  flex-direction: column;
  background: rgba(12, 13, 16, .7);
  border-radius: 14px;
  padding: 16px
}

.apr-m-right dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px
}

.apr-m-right dl div {
  display: flex;
  justify-content: space-between
}

.apr-m-right dt {
  color: var(--muted)
}

.apr-m-right dd {
  margin: 0
}

.apr-m-right s {
  color: var(--muted)
}

.apr-m-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px
}

.apr-m-total span {
  font: 800 18px var(--head)
}

.apr-m-total b {
  font: 900 24px var(--head)
}

.apr-agree {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  margin: 12px 0;
  cursor: pointer
}

.apr-m-lack {
  background: rgba(255, 77, 94, .1);
  color: var(--red);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 8px
}

.apr-m-pay {
  width: 100%;
  height: 48px;
  text-transform: uppercase;
  margin-top: auto
}

.apr-m-small {
  width: 100%;
  margin-top: 8px;
  font-size: 12px
}

.apr-gift-f {
  display: flex;
  gap: 8px
}

.apr-in {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  outline: none
}

.apr-err {
  color: var(--red);
  font-size: 12px;
  margin: 6px 0 0
}

.apr-found {
  margin-top: 8px;
  border: 1px solid rgba(61, 220, 132, .4);
  border-radius: 12px;
  padding: 10px;
  background: rgba(61, 220, 132, .05) center/cover
}

.apr-found-h {
  color: var(--ok);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px
}

.apr-found-u {
  display: flex;
  gap: 10px;
  align-items: center
}

.apr-found-u img {
  width: 44px;
  height: 44px;
  border-radius: 50%
}

.apr-found-u div {
  flex: 1;
  display: flex;
  flex-direction: column
}

.apr-found-u small {
  color: var(--muted);
  font-size: 12px
}

body.apr-lock {
  overflow: hidden
}

.apr-toast {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 1100;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45)
}

.apr-toast.err {
  border-color: var(--red)
}

/* кабинет /prime */
.apr-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  border-color: color-mix(in srgb, var(--t) 40%, transparent);
  background: radial-gradient(70% 140% at 0 0, color-mix(in srgb, var(--t) 20%, transparent), transparent 60%), var(--surface)
}

.apr-status-badge {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .5))
}

.apr-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px
}

.apr-stats div {
  background: rgba(12, 13, 16, .6);
  border-radius: 12px;
  padding: 8px 12px
}

.apr-stats small {
  display: block;
  color: var(--muted);
  font-size: 11px
}

.apr-stats b {
  display: inline-flex;
  gap: 4px;
  align-items: center
}

.apr-status-act {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.apr-status--empty {
  --t: var(--accent)
}

.apr-status-trio {
  display: flex
}

.apr-status-trio img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin-left: -22px
}

.apr-status-trio img:first-child {
  margin: 0;
  transform: rotate(-8deg)
}

.apr-status-trio img:last-child {
  transform: rotate(8deg)
}

.apr-filter {
  position: sticky;
  top: var(--ac-head, 64px);
  z-index: 5;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(6px)
}

.apr-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px
}

.apr-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 4px
}

.apr-day small {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600
}

.apr-day>i {
  font-size: 26px;
  color: var(--accent)
}

.apr-day b {
  font-size: 11px
}

.apr-day.done {
  border-color: rgba(61, 220, 132, .4);
  background: rgba(61, 220, 132, .05)
}

.apr-day.done::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 7px;
  color: var(--ok);
  font-size: 11px
}

.apr-day.today {
  border-color: var(--accent);
  background: rgba(255, 172, 28, .1)
}

.apr-season-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 10px
}

.apr-season-bar .apr-bar {
  flex: 1
}

.apr-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden
}

.apr-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--accent))
}

.apr-mfilter,
.apr-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px
}

.apr-mfilter .apr-chip,
.apr-cats .apr-chip {
  padding: 4px 10px;
  font-size: 12px
}

.apr-missions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.apr-mission {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--t) 30%, var(--line));
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--t) 8%, transparent), transparent 50%)
}

.apr-mission-h {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.apr-mission-h .apr-ptag {
  align-self: flex-start
}

.apr-mission-h small {
  color: var(--muted);
  font-size: 12px
}

.apr-mission-r {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-weight: 700
}

.apr-mission-r s {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px
}

.apr-mission-r em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  border-radius: 5px;
  padding: 1px 6px;
  background: rgba(255, 172, 28, .1);
  color: var(--accent)
}

.apr-mission-r em.on {
  background: var(--accent);
  color: var(--ac)
}

.apr-mission .apr-bar {
  grid-column: 1/-1
}

.apr-mission-f {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px
}

.apr-have {
  color: var(--ok);
  font-weight: 600;
  font-size: 12px
}

.apr-shop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.apr-item {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  border-radius: 12px;
  padding: 10px
}

.apr-item-ic {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--t) 15%, transparent);
  color: var(--t);
  font-size: 20px
}

.apr-item-ic img {
  width: 30px;
  height: 30px;
  object-fit: contain
}

.apr-item div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column
}

.apr-item b {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.apr-item small {
  color: var(--muted);
  font-size: 11px
}

.apr-console {
  background: #0a0b0d;
  border-radius: 12px;
  padding: 12px;
  font: 13px ui-monospace, monospace;
  margin-bottom: 12px
}

.apr-console small {
  display: block;
  font: 600 10px var(--body);
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 4px
}

.apr-console small:first-child {
  margin-top: 0
}

.apr-tabrow {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, .05);
  border-radius: 4px;
  padding: 4px 8px
}

.apr-prefs {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.apr-prefs>label:not(.apr-sw) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted)
}

.apr-prefs select {
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 10px;
  font: inherit
}

.apr-sw {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer
}

.apr-sw span {
  display: flex;
  flex-direction: column
}

.apr-sw b {
  font-size: 13px
}

.apr-sw small {
  font-size: 11px;
  color: var(--muted)
}

.apr-sw input {
  position: absolute;
  opacity: 0
}

.apr-sw i {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface-3);
  position: relative;
  flex: none;
  transition: .2s
}

.apr-sw i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: .2s
}

.apr-sw input:checked+i {
  background: var(--accent)
}

.apr-sw input:checked+i::after {
  left: 19px
}

.apr-sw input:disabled+i {
  opacity: .4
}

.apr-rating {
  list-style: none;
  margin: 0;
  padding: 0
}

.apr-rating li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line)
}

.apr-rating li:last-child {
  border: 0
}

.apr-rating li>span:first-child {
  width: 22px;
  text-align: center;
  font: italic 900 14px var(--head);
  color: var(--muted)
}

.apr-rating li:nth-child(-n+3)>span:first-child {
  color: var(--accent)
}

.apr-rating img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block
}

.apr-rating strong {
  margin-left: auto
}

.apr-rating li.me {
  background: rgba(255, 172, 28, .06)
}

/* ---------- Рамка и значок PRIME — используются ВЕЗДЕ (шаблон, профили, мини-профиль) ---------- */
.apr-frame {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  padding: 2px;
  flex: none
}

.apr-frame>img {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ac-bg, #0c0d10)
}

.apr-frame--prime {
  background: #4da3ff
}

.apr-frame--plus {
  background: linear-gradient(135deg, #f764e6, #a86bff)
}

.apr-frame--elite {
  overflow: hidden
}

.apr-frame--elite::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(#ffac1c, #ff8a00, #fff4c9, #ffac1c);
  animation: apr-spin 3s linear infinite
}

@keyframes apr-spin {
  to {
    transform: rotate(360deg)
  }
}

.apr-nick-badge {
  display: inline-block;
  vertical-align: -3px;
  margin-left: 4px;
  object-fit: contain;
  cursor: help;
  width: 16px!important;
  height: 16px!important;
}

/* ---------- Окно «Что нового в PRIME» ---------- */
.apr-news {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(5, 6, 8, .75);
  backdrop-filter: blur(4px);
  padding: 16px
}

.apr-news-in {
  width: 100%;
  max-width: 420px;
  background: var(--ac-surface, #15171c);
  border: 1px solid var(--ac-line, #262a33);
  border-radius: 20px;
  overflow: hidden;
  color: var(--ac-text, #f1f1ee);
  font-family: var(--ac-font, "Golos Text", sans-serif);
  animation: apr-up .3s both
}

.apr-news-img {
  position: relative;
  height: 180px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 70%, rgba(255, 172, 28, .35), transparent 65%), #1b1e24
}

.apr-news-img img {
  max-height: 160px;
  max-width: 80%;
  object-fit: contain
}

.apr-news-img span {
  position: absolute;
  left: 14px;
  top: 14px;
  background: #ffac1c;
  color: #121212;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 999px;
  padding: 4px 10px
}

.apr-news-b {
  padding: 18px
}

.apr-news-b h3 {
  margin: 6px 0 0;
  font: italic 900 20px var(--ac-font-head, "Inter", sans-serif);
  text-transform: uppercase
}

.apr-news-b p {
  color: #b9bcc6;
  font-size: 13px;
  white-space: pre-line
}

.apr-news-b button {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  padding: 11px;
  background: #ffac1c;
  color: #121212;
  font-weight: 700;
  cursor: pointer
}

@media (max-width:1100px) {

  .apr-cards,
  .apr-usp {
    grid-template-columns: 1fr
  }

  .apr-grid2,
  .apr-missions,
  .apr-shop {
    grid-template-columns: 1fr
  }

  .apr-m-grid {
    grid-template-columns: 1fr
  }

  .apr-status {
    grid-template-columns: 1fr
  }

  .apr-stats {
    grid-template-columns: 1fr 1fr
  }

  .apr-days {
    grid-template-columns: repeat(4, 1fr)
  }
}

@media (max-width:640px) {
  .apr-h1 {
    font-size: 30px
  }

  .apr-m-tiers {
    grid-template-columns: repeat(3, 1fr)
  }

  .apr-modal-in {
    padding: 16px
  }
}

/* ---------- Баннер плюшки PRIME в модулях сайта ---------- */
.apr-perk {
  --t: #ffac1c;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--t) 40%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--t) 12%, transparent), var(--ac-surface, #15171c) 60%);
  color: var(--ac-text, #f1f1ee);
  font-family: var(--ac-font, "Golos Text", sans-serif)
}

.apr-perk img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: none
}

.apr-perk>div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.apr-perk small {
  color: var(--ac-text-2, #b9bcc6);
  font-size: 13px
}

.apr-perk .apr-ptag {
  margin-left: 6px;
  vertical-align: 1px
}

.apr-perk-on {
  color: var(--ac-green, #3ddc84);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap
}

.apr-perk .apr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 13px;
  background: #ffac1c;
  color: #121212;
  text-decoration: none;
  white-space: nowrap
}

@media(max-width:700px) {
  .apr-perk {
    flex-wrap: wrap
  }
}