/* ==========================================================================
   ROVEX v5 UNIFIED DESIGN LAYER
   Ink-Slate ramp (#090b10 / #0e1015 / #12151c / #161922 / #1d212c)
   Piazzolla (500/600) + Manrope (400/500/600) + JetBrains Mono (400/500)
   Covers profile, CMS pages (/rovex, /plus, /rules, /privacy), shop, support.
   ========================================================================== */

#mainNavbar .nav-hamburger-btn { min-width: 44px; min-height: 44px; }

/* ══════════════════════════════════════════════════════════════════════════
   1. ЛИЧНЫЙ КАБИНЕТ / ПРОФИЛЬ (.rv-profile)
   ══════════════════════════════════════════════════════════════════════════ */
body .rv-profile {
  --rv-bg: #0e1015 !important;
  --rv-card: #161922 !important;
  --rv-line: rgba(238, 240, 245, .08) !important;
  --rv-text: #eef0f5 !important;
  --rv-muted: #7c8396 !important;
  --rv-accent: #8b78f0 !important;
  font-family: 'Manrope', system-ui, sans-serif !important;
  color: #eef0f5 !important;
}

body .rv-profile__hero {
  border: 1px solid rgba(238, 240, 245, .1) !important;
  border-radius: 18px !important;
  background: #161922 !important;
  box-shadow: none !important;
}

body .rv-profile__hero:after {
  display: none !important;
}

body .rv-profile__ava {
  background: #1d212c !important;
  border: 1px solid rgba(238, 240, 245, .14) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  padding: 4px !important;
}

body .rv-profile__ava img {
  border: 0 !important;
  border-radius: 10px !important;
  background: #090b10 !important;
}

body .rv-profile__eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: #7c8396 !important;
}

body .rv-profile__name,
body .rv-profile__section-head h2,
body .rv-profile .card-title {
  font-family: 'Piazzolla', Georgia, serif !important;
  font-weight: 500 !important;
  letter-spacing: -.018em !important;
  color: #eef0f5 !important;
}

body .rv-profile__signal {
  background: #8b78f0 !important;
}

body .rv-profile__stats {
  border-top-color: rgba(238, 240, 245, .08) !important;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

body .rv-profile__stats i {
  color: #7c8396 !important;
}

body .rv-profile__tabs {
  background: #12151c !important;
  border: 1px solid rgba(238, 240, 245, .1) !important;
  border-radius: 12px !important;
  padding: 4px !important;
}

body .rv-profile__tab {
  border-radius: 8px !important;
  font-weight: 500 !important;
  color: #a2a8b8 !important;
}

body .rv-profile__tab[aria-pressed="true"] {
  background: #eef0f5 !important;
  border-color: transparent !important;
  color: #0e1015 !important;
}

body .rv-profile .card {
  background: #161922 !important;
  border: 1px solid rgba(238, 240, 245, .08) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

body .rv-profile .card-title:before {
  background: #8b78f0 !important;
  height: 2px !important;
}

body .rv-profile .form-control,
body .rv-profile .form-select {
  background: #090b10 !important;
  border: 1px solid rgba(238, 240, 245, .14) !important;
  border-radius: 8px !important;
  color: #eef0f5 !important;
}

body .rv-profile .form-control:focus,
body .rv-profile .form-select:focus {
  border-color: #b5a8ff !important;
  box-shadow: 0 0 0 3px rgba(139, 120, 240, .14) !important;
}

body .rv-profile .btn-primary {
  background: #eef0f5 !important;
  border-color: transparent !important;
  color: #0e1015 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

body .rv-profile .btn-primary:hover {
  background: #ffffff !important;
  color: #0e1015 !important;
}

body .rv-profile .btn-secondary {
  background: #1d212c !important;
  border-color: rgba(238, 240, 245, .14) !important;
  color: #eef0f5 !important;
  border-radius: 8px !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   2. МАГАЗИН (остаточные плагинные стили #shop / .rps)
   ══════════════════════════════════════════════════════════════════════════ */
body main:has(#shop) > h1,
body main:has(.cart-items) > h1 {
  font-family: 'Piazzolla', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  color: #eef0f5;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(238, 240, 245, .08);
}

body .rps .rps-banner {
  min-height: 320px;
  border-radius: 14px;
  border: 1px solid rgba(238, 240, 245, .1);
}

body .rps .rps-banner > .rps-banner__bg,
body .rps .rps-banner > .rps-banner__scrim {
  position: absolute;
  inset: 0;
}

body .rps .rps-banner > .rps-banner__bg { z-index: 0; }

body .rps .rps-banner > .rps-banner__scrim {
  z-index: 1;
  background: linear-gradient(0deg, rgba(14, 16, 21, .94), rgba(14, 16, 21, .18) 95%), linear-gradient(90deg, rgba(14, 16, 21, .7), transparent);
}

body .rps .rps-banner > div:not(.rps-banner__bg):not(.rps-banner__scrim) {
  position: relative;
  z-index: 2;
}

body .rps .rps-perks {
  gap: 12px;
  margin-top: 16px;
}

body .rps .rps-perk {
  min-height: 112px;
  border-radius: 14px;
  padding: 20px;
  background: #161922;
  border: 1px solid rgba(238, 240, 245, .08);
  transition: border-color 150ms cubic-bezier(0.22, 1, 0.36, 1), background-color 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

body .rps .rps-perk:hover {
  border-color: rgba(238, 240, 245, .2);
  background-color: #1d212c;
}

body .rps .rps-perk .bi {
  color: #a2a8b8;
  font-size: 18px;
}

body .rps .rps-perk > div {
  color: #a2a8b8;
  font-size: 14px;
  line-height: 1.55;
}

body .rps .rps-perk strong {
  display: block;
  color: #eef0f5;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

body .rps .rps-hint {
  color: #7c8396;
  margin-top: 20px;
}

/* ══════════════════════════════════════════════════════════════════════════
   3. ПРАВИЛА (.rl) — Ink-Slate переработка CMS-контента
   ══════════════════════════════════════════════════════════════════════════ */
body .rl {
  font-family: 'Manrope', system-ui, sans-serif !important;
  color: #eef0f5 !important;
}

body .rl .rl-hero,
body .rl .rl-hero::after {
  display: none !important;
}

body .rl .rl-section__title {
  font-family: 'Piazzolla', Georgia, serif !important;
  letter-spacing: -.018em !important;
  font-weight: 500 !important;
  color: #eef0f5 !important;
}

body .rl .rl-warn {
  background: rgba(214, 178, 94, .06) !important;
  border: 1px solid rgba(214, 178, 94, .22) !important;
  border-radius: 14px !important;
  padding: 18px 22px !important;
  margin-bottom: 24px !important;
}

body .rl .rl-warn::before {
  display: none !important;
}

body .rl .rl-warn__icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(214, 178, 94, .16);
  color: #d6b25e;
  font-size: 0 !important;
  flex-shrink: 0;
  margin-top: 2px;
}

body .rl .rl-warn__icon::before {
  content: "!";
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
}

body .rl .rl-warn__text {
  color: #b7bdcc !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
}

body .rl .rl-warn__text strong {
  color: #eef0f5 !important;
  font-weight: 600 !important;
}

body .rl .rl-toc {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  grid-template-columns: none !important;
  padding: 20px !important;
  background: #161922 !important;
  border: 1px solid rgba(238, 240, 245, .08) !important;
  border-radius: 14px !important;
}

body .rl .rl-toc__title {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: #7c8396 !important;
  margin-bottom: 8px !important;
}

body .rl .rl-toc__title::after {
  background: rgba(238, 240, 245, .1) !important;
}

body .rl .rl-toc a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 8px 10px !important;
  border-radius: 8px;
  color: #a2a8b8 !important;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
  transition: background 150ms cubic-bezier(0.22, 1, 0.36, 1), color 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

body .rl .rl-rule__icon {
  font-size: 0 !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #8b78f0 !important;
  margin-top: 10px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

body .rl .rl-panel--crit .rl-rule__icon {
  background: #e5484d !important;
}

body .rl .rl-punish {
  font-family: 'Manrope', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
}

body .rl .rl-toc a::before {
  background: #8b78f0 !important;
}

body .rl .rl-toc a:hover {
  color: #eef0f5 !important;
  background: rgba(238, 240, 245, .05) !important;
}

body .rl .rl-section {
  scroll-margin-top: 96px;
}

body .rl .rl-section__head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(238, 240, 245, .08);
}

body .rl .rl-section__num {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-weight: 500 !important;
  background: #1d212c !important;
  color: #b5a8ff !important;
  border: 1px solid rgba(238, 240, 245, .14) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body .rl .rl-panel {
  border-radius: 14px !important;
  border: 1px solid rgba(238, 240, 245, .08) !important;
  background: #161922 !important;
  box-shadow: none !important;
  transition: border-color 150ms cubic-bezier(0.22, 1, 0.36, 1), background-color 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

body .rl .rl-panel:not(.rl-panel--crit)::before {
  background: #8b78f0 !important;
}

body .rl .rl-panel:not(.rl-panel--crit):hover {
  border-color: rgba(238, 240, 245, .18) !important;
  background: #191d27 !important;
}

body .rl .rl-panel--crit {
  background: #1c1418 !important;
  border-color: rgba(229, 72, 77, .32) !important;
}

body .rl .rl-rule__text {
  color: #a2a8b8 !important;
  line-height: 1.65 !important;
}

body .rl .rl-div__line {
  background: rgba(238, 240, 245, .08) !important;
}

body .rl .rl-div__dot {
  background: #8b78f0 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   4. ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ (.rv-priv)
   ══════════════════════════════════════════════════════════════════════════ */
body .rv-priv {
  font-family: 'Manrope', system-ui, sans-serif !important;
  color: #eef0f5 !important;
}

body .rv-priv__head {
  display: none !important;
}

body .rv-priv__card {
  border-radius: 14px !important;
  background: #161922 !important;
  border: 1px solid rgba(238, 240, 245, .08) !important;
  padding: 24px 28px !important;
  box-shadow: none !important;
}

body .rv-priv__card h2 {
  font-family: 'Piazzolla', Georgia, serif !important;
  font-weight: 500 !important;
  color: #eef0f5 !important;
}

body .rv-priv__card p,
body .rv-priv__card li {
  color: #a2a8b8 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   5. ПОДДЕРЖКА (#support, .rv-support)
   ══════════════════════════════════════════════════════════════════════════ */
body main:has(#support) > h1,
body main:has(form[action*="tickets"]) > h1 {
  font-family: 'Piazzolla', Georgia, serif;
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 500;
  color: #eef0f5;
  margin-bottom: 20px;
}

body .rv-support .card,
body main:has(#support) .card {
  background: #161922 !important;
  border: 1px solid rgba(238, 240, 245, .08) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

body .rv-support .table th,
body main:has(#support) .table th {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #7c8396 !important;
  padding: 12px 16px;
}

body .rv-support .table td,
body main:has(#support) .table td {
  padding: 14px 16px;
  vertical-align: middle;
}

body .rv-support .list-group-item {
  padding: 20px 24px;
  border-color: rgba(238, 240, 245, .08);
}

body .rv-support .text-primary {
  color: #a2a8b8 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   6. ROVEX+ (.rp) и О СЕРВЕРЕ (.rvp) — CMS-контент в v5 Ink-Slate
   ══════════════════════════════════════════════════════════════════════════ */
body .rp {
  color: #eef0f5 !important;
  font-family: 'Manrope', system-ui, sans-serif !important;
}

body .rp h2,
body .rp h3 {
  font-family: 'Piazzolla', Georgia, serif !important;
  font-weight: 500 !important;
  letter-spacing: -.018em !important;
  color: #eef0f5 !important;
}

body .rp p {
  color: #a2a8b8 !important;
}

body .rp .rp-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: #7c8396 !important;
}

body .rp .rp-card,
body .rp .rp-plan,
body .rp .rp-once,
body .rp .rp-goal {
  background: #161922 !important;
  border: 1px solid rgba(238, 240, 245, .08) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

body .rp .rp-card:hover {
  transform: none !important;
  border-color: rgba(238, 240, 245, .18) !important;
  box-shadow: none !important;
}

body .rp .rp-btn-a,
body .rvp .btn-a {
  background: #eef0f5 !important;
  color: #0e1015 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

body .rp .rp-btn-a:hover,
body .rvp .btn-a:hover {
  background: #ffffff !important;
  color: #0e1015 !important;
}

body .rvp {
  background: #0e1015 !important;
  color: #eef0f5 !important;
  font-family: 'Manrope', system-ui, sans-serif !important;
}

body .rvp h1,
body .rvp h2,
body .rvp h3 {
  font-family: 'Piazzolla', Georgia, serif !important;
  font-weight: 500 !important;
  letter-spacing: -.018em !important;
}

body .rvp .kick,
body .rvp p {
  color: #a2a8b8 !important;
}

body .rvp .rvp-pack,
body .rvp .rvp-dir,
body .rvp .rvp-spec {
  background: #161922 !important;
  border: 1px solid rgba(238, 240, 245, .08) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

body .rvp .rvp-pack:hover,
body .rvp .rvp-dir:hover,
body .rvp .rvp-spec:hover {
  transform: none !important;
  border-color: rgba(238, 240, 245, .18) !important;
}

@media (max-width: 575px) {
  body .rps .rps-banner { min-height: 260px; padding: 24px 20px; }
  body .rps .rps-perks { grid-template-columns: 1fr; }
  body .rl .rl-toc { padding: 16px !important; }
  body .rv-priv__card { padding: 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body .rv-profile *,
  body .rl *,
  body .rps *,
  body .rp *,
  body .rvp * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
