
:root {
  --ui-rgb: 255, 255, 255;
  --border-gold: rgba(var(--accent-rgb, 214, 179, 106), 0.22);
  --text: #f6f7fb;
  --muted: #98a0ad;
  --bg-main: #090909;
  --bg-soft: #0d0d0d;
  --panel-bg: #0f0f0f;
  --panel-bg-strong: #0b0b0b;
  --surface: rgba(var(--ui-rgb), 0.025);
  --surface-2: rgba(var(--ui-rgb), 0.04);
  --surface-3: rgba(var(--ui-rgb), 0.055);
  --surface-hover: rgba(var(--ui-rgb), 0.06);
  --border: rgba(var(--ui-rgb), 0.10);
  --border-strong: rgba(var(--ui-rgb), 0.16);
  --gray-panel: #0f0f0f;
  --gray-panel-2: #121212;
  --gray-panel-3: #151515;
  --gray-control: #131313;
  --gray-control-hover: #181818;
  --ui-text-soft: rgba(var(--ui-rgb), .78);
  --ui-text-muted: var(--muted);
  --ui-text-subtle: rgba(152, 160, 173, .72);
  --ui-text-faint: rgba(152, 160, 173, .52);
  --gold: var(--accent-color, #d6b36a);
  --gold-2: var(--accent-dark, #c5913d);
  --gold-gradient: linear-gradient(135deg, var(--accent-color, #d6b36a), var(--accent-dark, #c5913d));
  --gold-shadow: none;
  --gold-button-bg: var(--accent-color, #d6b36a);
  --gold-button-text: #111111;
  --gold-button-shadow: none;
  --gold-button-shadow-hover: none;
  --gold-button-focus-ring: 0 0 0 3px rgba(var(--accent-rgb, 214, 179, 106), 0.18);
  --gold-accent-shadow: none;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: var(--font-sans);
  --type-page-title: clamp(24px, 2.2vw, 30px);
  --type-section-title: clamp(18px, 1.6vw, 24px);
  --type-card-title: 16px;
  --type-card-heading: 13px;
  --type-body-lg: 13px;
  --type-body: 12px;
  --type-body-sm: 11px;
  --type-label: 10px;
  --field-border: rgba(var(--ui-rgb), 0.10);
  --field-border-hover: rgba(var(--ui-rgb), 0.17);
  --field-border-focus: rgba(var(--accent-rgb, 214, 179, 106), 0.32);
  --field-bg: #131313;
  --field-bg-focus: #151515;
  --shadow-xl: none;
  --shadow-lg: none;
  --shadow-md: none;
  --shadow-sm: none;
  --radius-xl: 16px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --control-height: 40px;
  --control-height-lg: 44px;
  --control-radius: 8px;
  --control-radius-pill: 999px;
  --control-padding-x: 14px;
  --control-shadow-soft: none;
  --control-shadow-strong: none;
  --sidebar-width: 76px;
  --page-rail-width: 236px;
  --layout-rail-gap: 18px;
  --public-shell-max: 1360px;
  --scrollbar-size: 8px;
  --scrollbar-track: rgba(5, 5, 5, 0.98);
  --scrollbar-track-soft: rgba(10, 10, 10, 0.96);
  --scrollbar-thumb-color: rgba(var(--accent-rgb, 214, 179, 106), 0.82);
  --scrollbar-thumb-color-hover: rgba(var(--accent-rgb, 214, 179, 106), 0.58);
  --scrollbar-thumb-bg: rgba(var(--accent-rgb, 214, 179, 106), 0.74);
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ui-rgb: 20, 29, 45;
  --text: #172033;
  --muted: #687386;
  --bg-main: #f4f6f8;
  --bg-soft: #edf1f5;
  --panel-bg: #ffffff;
  --panel-bg-strong: #f8fafc;
  --surface: rgba(var(--ui-rgb), 0.025);
  --surface-2: rgba(var(--ui-rgb), 0.04);
  --surface-3: rgba(var(--ui-rgb), 0.06);
  --surface-hover: rgba(var(--ui-rgb), 0.075);
  --border: rgba(var(--ui-rgb), 0.11);
  --border-strong: rgba(var(--ui-rgb), 0.18);
  --gray-panel: #ffffff;
  --gray-panel-2: #f8fafc;
  --gray-panel-3: #f1f4f8;
  --gray-control: #eef2f6;
  --gray-control-hover: #e6ebf1;
  --ui-text-soft: rgba(var(--ui-rgb), .76);
  --ui-text-muted: var(--muted);
  --ui-text-subtle: rgba(var(--ui-rgb), .62);
  --ui-text-faint: rgba(var(--ui-rgb), .46);
  --gold: var(--accent-dark, #9a6d24);
  --gold-2: var(--accent-color, #d6b36a);
  --field-border: rgba(var(--ui-rgb), 0.13);
  --field-border-hover: rgba(var(--ui-rgb), 0.22);
  --field-bg: #f2f5f8;
  --field-bg-focus: #ffffff;
  --scrollbar-track: #e4e8ed;
  --scrollbar-track-soft: #edf0f4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  font-weight: 400;
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.auth-modal-open {
  overflow: hidden;
}

html,
body {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-soft);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  min-height: 42px;
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
  background: var(--scrollbar-thumb-bg);
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(var(--accent-light-rgb, 229, 202, 135), 0.98) 0%, rgba(var(--accent-dark-rgb, 197, 145, 61), 0.98) 100%);
  background-clip: padding-box;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

::selection {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.22);
  color: var(--accent-light, #e5ca87);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
.btn,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  cursor: pointer;
}

button:disabled,
.is-disabled {
  cursor: not-allowed;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 650;
}

:where(a, button):focus-visible {
  outline: none;
  box-shadow: none;
}

:where(input, select, textarea):focus-visible {
  outline: none;
  border-color: var(--field-border-focus);
  box-shadow: none;
}

select:not([multiple]):not([size]) {
  min-height: var(--control-height);
  padding: 0 46px 0 16px;
  border: 1px solid var(--field-border);
  border-radius: var(--control-radius);
  color: var(--text);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-color, #d6b36a) 50%),
    linear-gradient(135deg, var(--accent-color, #d6b36a) 50%, transparent 50%),
    linear-gradient(180deg, rgba(var(--ui-rgb), 0.05), rgba(var(--ui-rgb), 0.03));
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: calc(100% - 19px) center, calc(100% - 14px) center, center;
  background-size: 5px 5px, 5px 5px, auto;
  background-color: var(--field-bg);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

select:not([multiple]):not([size]):hover {
  border-color: var(--field-border-hover);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-light, #e5ca87) 50%),
    linear-gradient(135deg, var(--accent-light, #e5ca87) 50%, transparent 50%),
    linear-gradient(180deg, rgba(var(--accent-rgb, 214, 179, 106), 0.10), rgba(var(--ui-rgb), 0.035));
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: calc(100% - 19px) center, calc(100% - 14px) center, center;
  background-size: 5px 5px, 5px 5px, auto;
  background-color: rgba(var(--ui-rgb), 0.05);
  box-shadow: none;
}

select:not([multiple]):not([size]):focus,
select:not([multiple]):not([size]):focus-visible {
  border-color: var(--field-border-focus);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-light, #e5ca87) 50%),
    linear-gradient(135deg, var(--accent-light, #e5ca87) 50%, transparent 50%),
    linear-gradient(180deg, rgba(var(--accent-rgb, 214, 179, 106), 0.11), rgba(var(--ui-rgb), 0.04));
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: calc(100% - 19px) center, calc(100% - 14px) center, center;
  background-size: 5px 5px, 5px 5px, auto;
  background-color: rgba(var(--ui-rgb), 0.05);
  box-shadow: none;
}

select:not([multiple]):not([size]) option,
select:not([multiple]):not([size]) optgroup {
  color: var(--text);
  background: #10141b;
}

/* Единая система кнопок сайта: основная и второстепенная. */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--control-height);
  padding: 0 var(--control-padding-x);
  border-radius: var(--control-radius);
  border: 0;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  max-width: 100%;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.site-btn--primary {
  border: 0;
  background: var(--gold-gradient);
  color: #111;
  box-shadow: none;
}

.site-btn--primary:visited,
.site-btn--primary:active,
.site-btn--primary:hover,
.site-btn--primary:focus-visible {
  color: #111;
}

.site-btn--primary:hover,
.site-btn--primary:focus-visible {
  transform: none;
  box-shadow: none;
}

.site-btn--secondary {
  border: 1px solid rgba(var(--ui-rgb), 0.08);
  background:
    linear-gradient(180deg, rgba(var(--ui-rgb), 0.05), rgba(var(--ui-rgb), 0.03)),
    rgba(var(--ui-rgb), 0.04);
  color: var(--text);
  box-shadow: none;
}

.site-btn--secondary:visited,
.site-btn--secondary:active {
  color: var(--text);
}

.site-btn--secondary:hover,
.site-btn--secondary:focus-visible {
  transform: none;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.2);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb, 214, 179, 106), 0.10), rgba(var(--ui-rgb), 0.035)),
    rgba(var(--ui-rgb), 0.05);
  color: var(--gold);
  box-shadow: none;
}

.site-btn--pill {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--control-radius-pill);
  font-size: 13px;
}

.site-btn--icon {
  width: var(--control-height);
  min-width: var(--control-height);
  padding: 0;
}

.site-btn.is-disabled,
.site-btn:disabled {
  cursor: default;
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.layout,
.sidebar,
.sidebar__top,
.content,
.profile-page,
.profile-page__main,
.profile-page__aside {
  min-width: 0;
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  align-items: stretch;
}

.layout--with-rail {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--page-rail-width);
  column-gap: var(--layout-rail-gap);
  padding-right: 18px;
  align-items: start;
}

.layout--no-rail {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  column-gap: 0;
  align-items: start;
}

.sidebar {
  position: relative;
  z-index: 26;
  align-self: stretch;
  min-height: 100%;
  border-right: 1px solid var(--border);
  background: var(--panel-bg-strong);
  backdrop-filter: none;
  overflow: visible;
}

.sidebar__rail {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px 18px;
}

.sidebar__top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  padding-bottom: 12px;
}

.sidebar__bottom,
.sidebar__card,
.sidebar__card-icon,
.sidebar__card-title,
.sidebar__card-text,
.sidebar__categories-placeholder,
.sidebar__empty,
.site-auth-badge {
  display: none;
}

.sidebar__brand {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.sidebar__logo-mark,
.site-auth-rail__button {
  position: relative;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  border-radius: 8px;
}

.sidebar__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-button-bg);
  color: #111;
  font-size: 18px;
  box-shadow: none;
}

.sidebar__logo-mark--image {
  background: linear-gradient(180deg, rgba(23, 23, 23, 0.96), rgba(17, 17, 17, 0.96));
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.26);
  box-shadow: none;
}

.sidebar__logo-mark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sidebar__brand-meta {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-bg);
  box-shadow: none;
  white-space: nowrap;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 40;
}

.sidebar__brand:hover .sidebar__brand-meta,
.sidebar__brand:focus-visible .sidebar__brand-meta {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.sidebar__logo-title {
  font-size: var(--type-card-heading);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.sidebar__logo-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.sidebar__menu-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
}

.sidebar__mobile-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(var(--ui-rgb), 0.08);
  background:
    linear-gradient(180deg, rgba(var(--ui-rgb), 0.045), rgba(var(--ui-rgb), 0.02)),
    rgba(17, 17, 17, 0.88);
  color: var(--text);
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.sidebar__mobile-toggle:hover,
.sidebar__mobile-toggle:focus-visible,
.sidebar.is-mobile-menu-open .sidebar__mobile-toggle {
  transform: none;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.34);
  color: var(--gold);
}

.sidebar__mobile-toggle i {
  font-size: 18px;
}

.sidebar__nav,
.sidebar__nav--pretty {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 12px;
  align-content: start;
}

.sidebar__categories {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 8px;
  align-content: start;
  padding-bottom: 8px;
}

.sidebar__section-title {
  width: 32px;
  height: 1px;
  margin: 4px 0 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb, 214, 179, 106), 0), rgba(var(--accent-rgb, 214, 179, 106), 0.45), rgba(var(--accent-rgb, 214, 179, 106), 0));
  color: transparent;
  font-size: 0;
}

.sidebar__nav--pretty > .sidebar__link,
.sidebar__categories .sidebar__link,
.sidebar__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-bg);
  color: rgba(var(--accent-rgb, 214, 179, 106), 0.92);
  overflow: visible;
  box-shadow: none;
  transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.sidebar__nav--pretty > .sidebar__link:hover,
.sidebar__categories .sidebar__link:hover,
.sidebar__link:hover,
.site-auth-rail__button:hover,
.site-auth-rail__button.is-active {
  transform: none;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.34);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.08);
  box-shadow: none;
}

.sidebar__link--muted {
  color: rgba(var(--ui-rgb), 0.72);
  background: rgba(var(--ui-rgb), 0.03);
}

.sidebar__nav--pretty > .sidebar__link i,
.sidebar__categories .sidebar__link i,
.sidebar__link i {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-size: 16px;
}

.sidebar__nav--pretty > .sidebar__link span,
.sidebar__categories .sidebar__link span,
.sidebar__link span,
.site-auth-rail__tooltip,
.site-auth-rail__logout::after {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  min-width: max-content;

  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-bg);
  color: var(--text);

  
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: none;
  z-index: 40;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.sidebar__nav--pretty > .sidebar__link:hover span,
.sidebar__nav--pretty > .sidebar__link:focus-visible span,
.sidebar__categories .sidebar__link:hover span,
.sidebar__categories .sidebar__link:focus-visible span,
.sidebar__link:hover span,
.sidebar__link:focus-visible span,
.site-auth-rail__button:hover .site-auth-rail__tooltip,
.site-auth-rail__button:focus-visible .site-auth-rail__tooltip,
.site-auth-rail__logout:hover::after,
.site-auth-rail__logout:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.site-auth-block {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
  overflow: visible;
}

.site-auth-rail {
  position: relative;
  width: 64px;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.site-auth-rail__button,
.site-auth-rail__logout {
  flex: 0 0 auto;
}

.site-auth-rail__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid rgba(var(--ui-rgb), 0.06);
  background:
    linear-gradient(180deg, rgba(var(--ui-rgb), 0.045), rgba(var(--ui-rgb), 0.02)),
    rgba(17, 17, 17, 0.88);
  color: var(--gold);
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  overflow: visible;
}

.site-auth-rail__button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 10px;
  border: 1px solid rgba(var(--ui-rgb), 0.03);
}

.site-auth-rail__button--guest i {
  font-size: 24px;
}

.site-auth-rail__button.is-disabled {
  opacity: 0.56;
  transform: none;
}

.site-auth-rail__button--user {
  overflow: hidden;
  color: var(--text);
}

.site-auth-rail__avatar-stack,
.profile-overview__avatar-stack,
.profile-aside-user__avatar-stack {
  position: relative;
  display: block;
}

.site-auth-rail__avatar-stack {
  width: 100%;
  height: 100%;
}

.site-auth-rail__avatar-stack .site-auth-rail__avatar,
.site-auth-rail__avatar-stack .site-auth-rail__avatar-fallback,
.profile-overview__avatar-stack .profile-overview__avatar,
.profile-overview__avatar-stack .profile-overview__avatar-fallback,
.profile-aside-user__avatar-stack .profile-aside-user__avatar,
.profile-aside-user__avatar-stack .profile-aside-user__avatar-fallback {
  position: absolute;
  inset: 0;
}

.site-auth-rail__avatar,
.site-auth-rail__avatar-fallback,
.profile-overview__avatar,
.profile-overview__avatar-fallback,
.profile-aside-user__avatar,
.profile-aside-user__avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.site-auth-rail__avatar,
.profile-overview__avatar,
.profile-aside-user__avatar {
  display: block;
  object-fit: cover;
  color: transparent;
  font-size: 0;
}

.site-auth-rail__avatar-fallback,
.profile-overview__avatar-fallback,
.profile-aside-user__avatar-fallback {

  

  line-height: 1;
  letter-spacing: 0.02em;
  background: var(--gold-gradient);
  color: #111;
  font-weight: 650;
  overflow: hidden;
  padding: 0;
  text-align: center;
  white-space: nowrap;
}

.site-auth-rail__avatar-fallback,
.profile-overview__avatar-fallback,
.profile-aside-user__avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-auth-rail__avatar-fallback {
  font-size: 14px;
  box-shadow: none;
}

.site-auth-rail__logout {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.24);
  background:
    linear-gradient(180deg, rgba(18, 21, 28, 0.96), rgba(10, 12, 16, 0.98)),
    rgba(17, 17, 17, 0.94);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.site-auth-rail__logout::after {

  border-radius: 10px;
  padding: 10px 12px;
}

.site-auth-rail__logout:hover,
.site-auth-rail__logout:focus-visible {
  transform: none;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.36);
}

.admin-quick-link {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 160;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.34);
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb, 214, 179, 106), 0.24), transparent 36%),
    linear-gradient(180deg, rgba(23, 23, 23, 0.96), rgba(14, 14, 14, 0.98));
  color: var(--gold);
  text-decoration: none;
  box-shadow: none;
  backdrop-filter: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.admin-quick-link::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(var(--ui-rgb), 0.045);
  pointer-events: none;
}

.admin-quick-link:hover,
.admin-quick-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.52);
  color: var(--accent-light, #e5ca87);
}

.admin-quick-link i {
  font-size: 15px;
  line-height: 1;
}

.admin-quick-link span {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
}

.auth-entry-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(var(--ui-rgb), 0.07);
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb, 214, 179, 106), 0.14), transparent 34%),
    linear-gradient(180deg, rgba(var(--ui-rgb), 0.05), rgba(var(--ui-rgb), 0.02)),
    rgba(18, 18, 18, 0.98);
  box-shadow: none;
}

.auth-entry-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -24px;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.08);
  filter: blur(8px);
  pointer-events: none;
}

.auth-entry-card--compact,
.auth-entry-card--empty {
  gap: 12px;
}

.auth-entry-card--empty {
  background:
    linear-gradient(180deg, rgba(var(--ui-rgb), 0.04), rgba(var(--ui-rgb), 0.02)),
    rgba(18, 18, 18, 0.98);
}

.auth-entry-card__eyebrow,
.auth-sheet__eyebrow,
.profile-card-section__eyebrow,
.profile-aside__label,
.profile-page__eyebrow,
.intro-promo__eyebrow,
.intro__badge,
.maintenance-screen__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.18);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.1);
  color: var(--gold);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro__badge,
.profile-page__eyebrow,
.maintenance-screen__badge {
  min-height: 40px;
  padding: 0 18px;
  font-size: 12px;
}

.auth-entry-card__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: var(--type-card-title);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.auth-entry-card__text,
.auth-sheet__text,
.auth-hint,
.profile-card-section__text,
.profile-provider-note,
.profile-readonly-note,
.profile-aside-user__subtitle,
.profile-nav-link__content small,
.profile-security-link small,
.profile-purchase-item__meta,
.profile-info-card__label,
.profile-page__text,
.catalog__subtext,
.intro__text,
.intro-promo__text,
.site-footer__text,
.payment-status-note {
  color: var(--muted);
}

.auth-entry-card__text {
  position: relative;
  z-index: 1;
  max-width: 280px;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.auth-entry-card__chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-entry-chip,
.profile-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  max-width: 100%;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(var(--ui-rgb), 0.045);
  color: #d9deea;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  white-space: normal;
}

.auth-entry-chip {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(var(--ui-rgb), 0.08);
  font-size: 11px;
}

.profile-status-pill.is-success {
  background: rgba(114, 201, 140, 0.12);
  color: #c9f7db;
}

.profile-status-pill.is-danger,
.profile-status-pill.is-admin {
  background: rgba(255, 106, 106, 0.14);
  color: #ffd4d4;
}

.profile-status-pill.is-warning,
.profile-status-pill.is-premium {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.18);
  color: var(--accent-light, #e5ca87);
}

.profile-status-pill.is-muted,
.profile-status-pill.is-user {
  background: rgba(var(--ui-rgb),.06);
  color: #cfd5df;
}

.profile-status-pill,
.profile-status-pill__text,
.profile-connection-card__name,
.profile-connection-card__text,
.profile-purchase-item__title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-status-pill i {
  flex: 0 0 auto;
  margin-top: 1px;
}

.auth-open-btn,
.auth-submit,
.auth-btn,
.auth-icon-btn,
.auth-social-btn {
  text-decoration: none;
}

.site-btn,
.auth-open-btn,
.auth-submit,
.site-btn--secondary,
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control-height);
  padding: 0 var(--control-padding-x);
  border-radius: var(--control-radius);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  transition: opacity .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.auth-open-btn,
.auth-submit {
  width: 100%;
  border: 0;
  background: var(--gold-gradient);
  color: #111;
  box-shadow: none;
}

.site-btn--primary:hover,
.site-btn--primary:focus-visible,
.auth-open-btn:hover,
.auth-submit:hover {
  transform: none;
  filter: brightness(1.06);
  box-shadow: none;
}

.site-btn--secondary,
.auth-btn {
  border: 1px solid rgba(var(--ui-rgb), 0.08);
  background: var(--gray-control, #131313);
  color: var(--text);
  box-shadow: none;
}

.site-btn--secondary:hover,
.site-btn--secondary:focus-visible,
.auth-btn:hover,
.auth-icon-btn:hover,
.auth-social-btn:hover,
.profile-nav-link:hover,
.profile-security-link:hover {
  transform: none;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.28);
  background: var(--gray-control-hover, #181818);
  box-shadow: none;
}

.auth-btn--profile {
  width: 100%;
  min-height: var(--control-height);
}

.auth-btn--danger {
  border-color: rgba(255, 104, 104, 0.18);
  background: rgba(255, 104, 104, 0.10);
  color: #ffd2d2;
}

.auth-btn--danger:hover {
  border-color: rgba(255, 120, 120, 0.28);
  background: rgba(255, 120, 120, 0.14);
  color: #ffe1e1;
}

.auth-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-height);
  height: var(--control-height);
  border-radius: var(--control-radius);
  border: 1px solid rgba(var(--ui-rgb), 0.08);
  background:
    linear-gradient(180deg, rgba(var(--ui-rgb), 0.05), rgba(var(--ui-rgb), 0.03)),
    rgba(var(--ui-rgb), 0.04);
  color: var(--text);
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.auth-submit--small {
  width: auto;
  min-width: 0;
  padding-inline: 18px;
}

.site-auth-user__logout--standalone {
  flex-shrink: 0;
}

.auth-status {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(var(--ui-rgb), 0.08);
  font-size: 13px;
  line-height: 1.55;
}

.auth-status--success {
  background: rgba(46, 204, 113, 0.08);
  border-color: rgba(46, 204, 113, 0.22);
  color: #c9f7db;
}

.auth-status--error {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.22);
  color: #ffd1d1;
}

.auth-status--info {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.08);
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.18);
  color: var(--accent-light, #e5ca87);
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, 0.76);
  backdrop-filter: none;
}

.auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 26px;
  border-radius: 10px;
  border: 1px solid rgba(var(--ui-rgb), 0.07);
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb, 214, 179, 106), 0.12), transparent 26%),
    linear-gradient(180deg, rgba(var(--ui-rgb), 0.05), rgba(var(--ui-rgb), 0.02)),
    rgba(14, 14, 14, 0.985);
  box-shadow: none;
  transform: translateY(8px) scale(.985);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.auth-modal.is-open .auth-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.auth-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(var(--ui-rgb), 0.08);
  border-radius: 999px;
  background: rgba(var(--ui-rgb), 0.045);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.auth-modal__close:hover {
  transform: none;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.18);
  background: rgba(var(--ui-rgb), 0.08);
}

.auth-modal__header {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  padding-right: 58px;
}

.auth-modal__title {
  font-size: var(--type-section-title);
  line-height: 1.04;
  font-weight: 650;
}

.auth-modal__text {
  max-width: 760px;
  font-size: var(--type-body);
  line-height: 1.7;
  color: var(--muted);
}

.auth-modal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.auth-modal__layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.auth-sheet,
.profile-card-section,
.profile-aside__card {
  border-radius: 10px;
  border: 1px solid rgba(var(--ui-rgb), 0.06);
  background: rgba(var(--ui-rgb), 0.035);
}

.auth-sheet {
  padding: 20px;
}

.auth-sheet__title {
  margin-top: 8px;
  font-size: var(--type-card-title);
  font-weight: 650;
}

.auth-sheet__text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
}

.auth-modal__tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  margin-top: 16px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(var(--ui-rgb), 0.04);
}

.auth-modal__tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.auth-modal__tab:hover {
  transform: none;
  color: var(--text);
}

.auth-modal__tab.is-active {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.12);
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.18);
  color: var(--gold);

}

.auth-panels {
  margin-top: 16px;
}

.auth-panel {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-panel.is-active {
  display: block;
}

.auth-credentials-form,
.profile-form,
.profile-security-stack,
.profile-connection-list,
.profile-security-list,
.profile-purchases-list,
.profile-aside__list {
  display: grid;
  gap: 10px;
}

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

.auth-field__label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}

.auth-field__input {
  width: 100%;
  min-height: var(--control-height);
  padding: 0 16px;
  border-radius: var(--control-radius);
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--text);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-field__input:focus {
  border-color: var(--field-border-focus);
  background: var(--field-bg-focus);
  box-shadow: none;
}

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

.auth-panel-switch {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.auth-switch-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.auth-social-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.auth-social-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(var(--ui-rgb), 0.08);
  background:
    linear-gradient(180deg, rgba(var(--ui-rgb), 0.045), rgba(var(--ui-rgb), 0.03)),
    rgba(var(--ui-rgb), 0.04);
  color: var(--text);
  overflow: hidden;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-social-btn__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--ui-rgb), 0.06);
  font-size: 20px;
  flex: 0 0 auto;
}

.auth-social-btn--telegram .auth-social-btn__icon {
  color: #2ca5e0;
}

.auth-social-btn--discord .auth-social-btn__icon {
  color: #8ea1ff;
}

.auth-social-btn__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.auth-social-btn__title {
  font-size: var(--type-card-heading);
  font-weight: 650;
}

.auth-social-btn__text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.auth-social-btn--telegram script,
.auth-social-btn--telegram iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.01 !important;
  border: none !important;
  z-index: 3 !important;
}

.content {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 22px 0;
}

.layout--with-rail > .content,
.layout--no-rail > .content {
  grid-column: 2;
  width: 100%;
  justify-self: stretch;
  padding-left: 22px;
  padding-right: 22px;
}

.content > * {
  width: min(100%, var(--public-shell-max));
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

.page-rail {
  grid-column: 3;
  width: var(--page-rail-width);
  min-width: var(--page-rail-width);
  max-width: var(--page-rail-width);
  padding-top: 22px;
  align-self: start;
  justify-self: end;
}

.page-rail__inner {
  position: sticky;
  display: grid;
  gap: 12px;
  align-content: start;
  width: 100%;
  max-width: var(--page-rail-width);
}

.page-rail--home .page-rail__inner,
.page-rail--product .page-rail__inner {
  position: fixed;
  right: 18px;
  width: var(--page-rail-width);
  max-width: var(--page-rail-width);
  max-height: calc(100vh - 36px);
  overflow: auto;
  z-index: 18;
  scrollbar-width: none;
}

.page-rail--home .page-rail__inner::-webkit-scrollbar,
.page-rail--product .page-rail__inner::-webkit-scrollbar {
  display: none;
}

.intro,
.profile-page__hero,
.maintenance-screen__card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel-bg);
}

.intro::before,
.profile-page__hero::before,
.maintenance-screen__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 250px;
  margin-bottom: 20px;
  padding: clamp(24px, 4vw, 48px);
  isolation: isolate;
}

.intro::before {
  z-index: -2;
  background:
    linear-gradient(rgba(var(--ui-rgb),.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ui-rgb),.02) 1px, transparent 1px),
    radial-gradient(circle at 78% 44%, rgba(var(--accent-rgb, 214, 179, 106), .10), transparent 27%);
  background-size: 32px 32px, 32px 32px, auto;
}

.intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -74px;
  top: -158px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), .17);
  border-radius: 50%;
  box-shadow:
    0 0 0 46px rgba(var(--accent-rgb, 214, 179, 106), .022),
    0 0 0 94px rgba(var(--accent-rgb, 214, 179, 106), .012);
  animation: intro-orbit 20s linear infinite;
}

.intro__content {
  position: relative;
  z-index: 1;
}

.intro__content::after {
  content: "STORE / 01";
  display: block;
  margin-top: 26px;
  color: rgba(var(--ui-rgb),.22);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .16em;
}

.intro__title,
.catalog__title,
.profile-card-section__title,
.maintenance-screen__title {
  letter-spacing: -.03em;
}

.intro__title {
  max-width: 760px;
  margin: 18px 0 12px;
  font-size: clamp(27px, 3.5vw, 43px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.05em;
}

.intro__text {
  max-width: 680px;
  margin: 0;
  font-size: var(--type-body-lg);
  line-height: 1.7;
}

@keyframes intro-orbit {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .intro::after { animation: none; }
}

.home-banners {
  position: relative;
  width: 100%;
  max-width: min(100%, var(--public-shell-max));
  min-width: 0;
  margin: 0 auto 20px;
  border-radius: var(--radius-xl);
  overflow: visible;
  box-sizing: border-box;
}

.home-banners__viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 5 / 1;
  min-height: 150px;
  max-height: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(var(--ui-rgb),.025);
  overflow: hidden;
  box-sizing: border-box;
  contain: layout paint;
  isolation: isolate;
}

.home-banners__slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.home-banners__slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-banners__image {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.home-banners__arrow {
  position: absolute;
  z-index: 10;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border: 1px solid rgba(var(--ui-rgb),.10);
  border-radius: 999px;
  appearance: none;
  background: rgba(10,12,16,.72);
  color: rgba(var(--ui-rgb),.86);
  line-height: 1;
  box-shadow: none;
  transform: translate3d(0, -50%, 0);
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  backdrop-filter: none;
  cursor: pointer;
  backface-visibility: hidden;
}

.home-banners__arrow i {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

.home-banners__arrow:hover,
.home-banners__arrow:focus-visible,
.home-banners__arrow:active {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .26);
  background: rgba(var(--accent-rgb, 214, 179, 106), .12);
  color: var(--gold);
  outline: none;
  transform: translate3d(0, -50%, 0);
}

.home-banners__arrow--prev {
  left: 14px;
  right: auto;
}

.home-banners__arrow--next {
  right: 14px;
  left: auto;
}

.home-banners__dots {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transform: translate3d(-50%, 0, 0);
}

.home-banners__dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: rgba(var(--ui-rgb),.26);
  box-shadow: none;
  transition: width .22s ease, background .22s ease, box-shadow .22s ease;
}

.home-banners__dot.is-active {
  width: 24px;
  background: var(--gold);
  box-shadow: none;
}

.intro-promo {
  position: relative;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-bg);
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.intro-promo::before {
  content: none;
  display: none;
}

.intro-promo::after {
  content: none;
  display: none;
}

.intro-promo__outline,
.intro-promo__outline-svg,
.intro-promo__outline-track,
.intro-promo__outline-glow {
  display: none !important;
}

.intro-promo:hover {
  transform: none;
  box-shadow: none;
}

.intro-promo__code {
  min-width: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.intro-promo__discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;

  
  font-size: 17px;
  font-weight: 650;
  line-height: 1;

}

.intro-promo__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(var(--ui-rgb), 0.72);
}

.intro-promo--channel {
  background: transparent;
  box-shadow: none;
}

.intro-promo--channel::before {
  content: none;
  display: none;
}

.intro-promo--channel::after,
.intro-promo--channel.intro-promo--product::after {
  content: none;
  display: none;
}

.intro-channel-card {
  color: inherit;
}

.intro-channel-card__eyebrow {
  border-color: rgba(var(--ui-rgb), 0.09);
  background: rgba(var(--ui-rgb), 0.045);
  color: rgba(var(--ui-rgb), 0.74);
}

.intro-channel-card__eyebrow i {
  color: rgba(var(--ui-rgb), 0.74);
}

.intro-channel-card__title {
  display: block;
  font-size: var(--type-card-title);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.intro-channel-card__text {
  display: block;
}

.intro-channel-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 10px;

  
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;

}

.intro-channel-card__button:hover,
.intro-channel-card__button:focus-visible {

  text-decoration: none;
}

.intro-channel-card__button i {
  font-size: 12px;
}

.intro-promo--product::after {
  content: none;
  display: none;
}

.catalog__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.catalog__heading {
  min-width: 0;
}

.catalog__title {
  margin: 0 0 8px;
  font-size: var(--type-section-title);
  line-height: 1.1;
}

.catalog__subtext {
  margin: 0;
  font-size: var(--type-body);
}

.catalog__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 0 1 590px;
  min-width: 0;
}

.catalog-search {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: var(--control-height);
  margin: 0;
}

.catalog-search__panel {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  width: min(100%, 540px);
  margin: 0;
}

.catalog-search__field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 250px;
  height: var(--control-height);
  min-height: var(--control-height);
  border: 1px solid var(--field-border);
  border-radius: var(--control-radius);
  background: var(--field-bg);
  box-shadow: none;
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.catalog-search__field:focus-within {
  border-color: var(--field-border-focus);
  background: var(--field-bg-focus);
  box-shadow: none;
}

.catalog-search__field i {
  flex: 0 0 auto;
  width: 18px;
  margin-left: 16px;
  color: rgba(var(--accent-rgb, 214, 179, 106), 0.92);
  font-size: 14px;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

.catalog-search__field input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 0 16px 0 10px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.catalog-search__field input:focus,
.catalog-search__field input:focus-visible,
.catalog-search__field input:active {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none;
}

.catalog-search__field input::placeholder {
  color: rgba(var(--ui-rgb), 0.4);
}

.catalog-search__button,
.catalog-search__clear {
  height: var(--control-height);
  min-height: var(--control-height);
}

.catalog-search__button {
  padding-inline: 18px;
}

.catalog-search__button i {
  font-size: 13px;
}

.catalog-search__clear {
  flex: 0 0 var(--control-height);
  width: var(--control-height);
  min-width: var(--control-height);
}

.catalog-search__button:focus,
.catalog-search__button:focus-visible,
.catalog-search__clear:focus,
.catalog-search__clear:focus-visible {
  outline: 0;
}

.catalog-search__button:active,
.catalog-search__clear:active {
  transform: translateY(0);
}

.product-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
}

.product-pagination__btn,
.product-pagination__num,
.product-pagination__dots {
  min-width: 44px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--control-radius);
  font-size: 13px;
  font-weight: 650;
}

.product-pagination__btn {
  gap: 8px;
}

.product-pagination__num.is-active {
  border-color: transparent;
  background: var(--gold-gradient);
  color: #121212;
  box-shadow: none;
}

.product-pagination__btn.is-disabled,
.product-pagination__btn:disabled {
  cursor: default;
  opacity: 0.45;
  transform: none;
}

.product-pagination__dots {
  min-width: 24px;
  padding: 0 4px;
  color: rgba(var(--ui-rgb), 0.4);
}





.product-skeleton {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 100%;
  aspect-ratio: 1 / 1.12;
  border: 1px solid rgba(var(--ui-rgb),0.075);
  border-radius: 10px;
  background: var(--gray-panel-2, var(--panel-bg));
  box-shadow: none;
}

.product-skeleton::after,
.site-notification-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);

  animation: nmSkeletonSweep 1.55s ease-in-out infinite;
  animation-delay: var(--skeleton-delay, 0ms);
  pointer-events: none;
}

.product-skeleton__media {
  min-height: 180px;

}

.product-skeleton__body {
  display: grid;
  gap: 9px;
  padding: 18px 18px 0;
}

.product-skeleton__line,
.product-skeleton__pill,
.product-skeleton__button,
.site-notification-skeleton__icon,
.site-notification-skeleton__line {
  border-radius: 999px;

}

.product-skeleton__line {
  width: 100%;
  height: 12px;
}

.product-skeleton__line--title {
  width: 78%;
  height: 18px;
  background: rgba(var(--ui-rgb),0.075);
}

.product-skeleton__line--short {
  width: 48%;
}

.product-skeleton__footer {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  gap: 10px;
  padding: 16px 18px 18px;
  align-items: center;
}

.product-skeleton__pill,
.product-skeleton__button {
  height: 42px;
  border-radius: 10px;
}

/* Unified neutral skeleton surfaces */
.product-skeleton,
.site-notification-skeleton {
  border-color: rgba(var(--ui-rgb),0.075);
  background: var(--gray-panel-2, var(--panel-bg));
}

.product-skeleton__media {
  background: #1b1b1b;
}

.product-skeleton__line,
.product-skeleton__pill,
.product-skeleton__button,
.site-notification-skeleton__icon,
.site-notification-skeleton__line {
  background: rgba(var(--ui-rgb),0.06);
}

.product-skeleton__line--title,
.site-notification-skeleton__line--title {
  background: rgba(var(--ui-rgb),0.075);
}

.product-skeleton__button {
  background: rgba(var(--ui-rgb),0.07);
}

.product-skeleton::after,
.site-notification-skeleton::after {
  background: linear-gradient(90deg, transparent 0%, rgba(var(--ui-rgb),0.055) 46%, transparent 100%);
}

@keyframes nmSkeletonSweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}

.products__empty,
.product-loading,
.product-error {
  min-height: 120px;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(var(--ui-rgb), 0.03);
  box-shadow: none;
  color: var(--muted);
}

.products__empty--soft {
  background: rgba(var(--ui-rgb), 0.025);
}

.site-empty-state {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 132px;
  padding: 24px;
  border: 1px solid rgba(var(--ui-rgb),0.075);
  border-radius: 10px;
  background:
    radial-gradient(circle at 16% 12%, rgba(var(--accent-rgb, 214, 179, 106), 0.11), transparent 34%),
    rgba(var(--ui-rgb),0.028);
  color: rgba(var(--ui-rgb),0.70);
}

.site-empty-state__icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: var(--gold-gradient);
  box-shadow: none;
}

.site-empty-state__icon i {
  font-size: 21px;
}

.site-empty-state__body {
  min-width: 0;
}

.site-empty-state__title {
  color: var(--text);
  font-size: var(--type-card-heading);
  font-weight: 650;
  letter-spacing: -.02em;
}

.site-empty-state__text {
  margin-top: 5px;
  color: rgba(var(--ui-rgb),0.60);
  font-size: var(--type-body);
  line-height: 1.55;
}

.site-empty-state--loading .site-empty-state__icon {
  color: rgba(var(--ui-rgb),0.86);
  background: rgba(var(--ui-rgb),0.07);
  box-shadow: none;
}



































































.page-transition,
.page-transition__loader,
.page-transition__dot {
  display: none !important;
}

html.is-transitioning,
html.is-transitioning body {
  overflow: auto;
}

body {
  animation: nm-page-fade-in .12s ease-out both;
}

html.page-transition-enabled body,
html.page-transition-leaving body {
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

@keyframes nm-page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

.page-enter,
.page-enter.is-ready,
[data-page-root],
#siteAuthBadge {
  opacity: 1 !important;
}

.profile-page {
  display: grid;
  gap: 16px;
}

.profile-page__hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  min-height: 180px;
  align-content: center;
  padding: clamp(22px, 3vw, 34px);
  isolation: isolate;
}

.profile-page__hero::before {
  z-index: -2;
  background:
    linear-gradient(110deg, transparent 54%, rgba(var(--accent-rgb, 214, 179, 106), .055)),
    linear-gradient(rgba(var(--ui-rgb),.016) 1px, transparent 1px);
  background-size: auto, 100% 28px;
}

.profile-page__hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -72px;
  top: -124px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), .14);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(var(--accent-rgb, 214, 179, 106), .018);
  animation: profile-orbit 19s linear infinite;
}

.profile-page__title {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
}

@keyframes profile-orbit {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .profile-page__hero::after { animation: none; }
}

.profile-page__text {
  margin: 0;
  max-width: 760px;
  font-size: var(--type-body-lg);
  line-height: 1.7;
}

.profile-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 360px);
  gap: 16px;

}

.profile-page__main,
.profile-page__aside,
.profile-overview,
.profile-nav-list {
  display: grid;
  gap: 16px;
}

.profile-card-section,
.profile-aside__card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-radius: 10px;
  border-color: rgba(var(--ui-rgb),.08);
  background: var(--panel-bg);
  box-shadow: none;
}

.profile-aside__card {
  background: var(--panel-bg);
}

.profile-card-section__title {
  margin: 0;
  font-size: var(--type-card-title);
  line-height: 1.18;
}

.profile-card-section__text {
  margin: 0;
  font-size: var(--type-body);
  line-height: 1.75;
}

.profile-overview__head,
.profile-aside-user,
.profile-purchase-item__top,
.profile-connection-card__head,
.profile-connection-card__title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-overview__avatar-stack {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  flex: 0 0 60px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.profile-overview__avatar,
.profile-overview__avatar-fallback {
  border-radius: 10px;
}

.profile-overview__avatar {
  display: block;
}

.profile-overview__avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.profile-overview__avatar {
  border: 1px solid rgba(var(--ui-rgb),.08);
  box-shadow: none;
}

.profile-overview__avatar-fallback {
  font-size: 24px;
  box-shadow: none;
}

.profile-overview__meta,
.profile-aside-user__meta,
.profile-nav-link__content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-aside__card--nav .profile-nav-list,
.profile-aside__card--summary .profile-aside__list {
  gap: 12px;
}

.profile-overview__name,
.profile-aside-user__name {
  font-weight: 650;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.profile-overview__name {
  font-size: var(--type-card-title);
}

.profile-overview__badges,
.profile-aside__badges,
.profile-inline-actions,
.profile-connection-card__badges,
.profile-connection-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.profile-info-grid,
.profile-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-form__grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.profile-info-card,
.profile-readonly-note,
.profile-provider-note,
.profile-connection-card,
.profile-security-link,
.profile-purchase-item,
.profile-nav-link {
  border-radius: 8px;
  border: 1px solid rgba(var(--ui-rgb),.07);
  background: rgba(var(--ui-rgb),.03);
}

.profile-info-card {
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 14px;
  border-radius: 10px;
}

.profile-info-card__value,
.profile-aside__value,
.profile-purchase-item__title,
.profile-nav-link__content strong,
.profile-security-link strong {
  color: #f4f7ff;
}

.profile-info-card__value {
  font-size: 15px;

  font-weight: 650;
  word-break: break-word;
}

.profile-avatar-note {
  margin-top: 12px;
}

.profile-inline-actions > * {
  flex: 1 1 220px;
  min-width: 0;
}

.profile-inline-actions--aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
}

.profile-inline-actions--aside .auth-btn--profile,
.profile-inline-actions .auth-submit,
.profile-inline-actions .site-btn--secondary,
.auth-btn {
  width: 100%;
  min-width: 0;
}

.profile-inline-actions .auth-icon-btn,
.profile-inline-actions--aside .auth-btn--profile {
  min-height: 40px;
}

.profile-inline-actions .auth-icon-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
}

.profile-inline-actions--aside .auth-icon-btn {
  justify-self: end;
}

.profile-aside__row {
  display: grid;

  padding-bottom: 14px;
  border-bottom: 1px solid rgba(var(--ui-rgb),.06);
}

.profile-aside__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-aside__value {
  font-size: 14px;
  line-height: 1.65;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.profile-aside-user__avatar-stack {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  flex: 0 0 56px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.profile-aside-user__avatar,
.profile-aside-user__avatar-fallback {
  border-radius: 8px;
}

.profile-aside-user__avatar {
  display: block;
}

.profile-aside-user__avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.profile-aside-user__avatar {
  border: 1px solid rgba(var(--ui-rgb),.08);
  box-shadow: none;
}

.profile-aside-user__avatar-fallback {
  font-size: 18px;
}

.profile-aside-user__name {
  font-size: 18px;
  line-height: 1.2;
}

.profile-nav-link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;

  align-items: center;
  padding: 10px 12px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.profile-nav-link.is-active,
.profile-connection-card.is-linked {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .24);
  background: rgba(var(--accent-rgb, 214, 179, 106), .08);
  box-shadow: none;
}

.profile-nav-link__icon,
.profile-security-link__icon,
.profile-connection-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--ui-rgb),.06);
  border: 1px solid rgba(var(--ui-rgb),.08);
  color: var(--gold);
  font-size: 14px;
}

.profile-connection-card__icon {
  width: 46px;
  height: 46px;
  font-size: 18px;
}

.profile-nav-link__content strong,
.profile-security-link strong,
.profile-purchase-item__title,
.profile-connection-card__name {
  font-size: var(--type-card-heading);
  line-height: 1.5;
  font-weight: 650;
}

.profile-nav-link__arrow {
  color: rgba(var(--ui-rgb),.28);
  font-size: 13px;
  justify-self: end;
}

.profile-nav-link.is-active .profile-nav-link__arrow {
  color: var(--gold);
}

.profile-security-link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);

  align-items: start;
  padding: 12px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.profile-connection-card {

  
  padding: 14px;
  border-radius: 10px;
}

.profile-connection-card__head {
  justify-content: space-between;
  align-items: flex-start;
}

.profile-connection-card__text {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.65;
}

.profile-connection-card__title > div:last-child {
  min-width: 0;
}

.profile-provider-note,
.profile-readonly-note {
  padding: 13px 15px;
  border-radius: 10px;
  background: rgba(7,10,14,.45);
  font-size: 13px;
  line-height: 1.7;
}

.profile-readonly-note.site-empty-state {
  display: grid;
  margin-top: 14px;
  min-height: 126px;
  padding: 22px;
  background:
    radial-gradient(circle at 12% 10%, rgba(var(--accent-rgb, 214, 179, 106), 0.12), transparent 36%),
    rgba(7,10,14,.45);
}

.profile-readonly-note .site-empty-state__title {
  font-size: var(--type-card-heading);
}

.profile-telegram-widget {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
}

.profile-purchase-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

.profile-purchase-item__top {
  justify-content: space-between;
}

.profile-purchase-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  line-height: 1.6;
}

.site-footer__inner {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(var(--ui-rgb),.08);
  background: rgba(var(--ui-rgb),.022);
}

.site-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
}

.site-footer__brand {
  display: grid;
  gap: 3px;
}

.site-footer__title {
  font-size: var(--type-card-heading);
  font-weight: 650;
  color: rgba(var(--ui-rgb),.96);
  letter-spacing: -.02em;
}

.site-footer__text {
  font-size: var(--type-body);
  line-height: 1.5;
  color: rgba(var(--ui-rgb),.44);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ui-rgb),.07);
  background: rgba(var(--ui-rgb),.03);
  color: rgba(var(--ui-rgb),.68);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .01em;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: rgba(var(--accent-light-rgb, 229, 202, 135), .92);
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .18);
  background: rgba(var(--accent-rgb, 214, 179, 106), .08);
}

.site-footer__bottom {
  padding-top: 8px;
  border-top: 1px solid rgba(var(--ui-rgb),.05);
  color: rgba(var(--ui-rgb),.34);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-live-visitors {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 10px;
  padding: 8px 14px 0;
  color: rgba(var(--ui-rgb),.34);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}

.site-live-visitors__author {
  color: rgba(var(--ui-rgb),.22);
}

.site-live-visitors__separator {
  color: rgba(var(--ui-rgb),.16);
}

.site-live-visitors__label {
  color: rgba(var(--ui-rgb),.26);
}

.site-live-visitors__group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.site-live-visitors__group--users {
  color: inherit;
}

.site-live-visitors__value {
  color: rgba(var(--ui-rgb),.44);
  font-weight: 650;
}

.site-live-visitors--profile {
  width: min(100%, 1180px);
  margin: 20px auto 0;
  padding: 14px 18px;
  gap: 8px 12px;
  border: 1px solid rgba(var(--ui-rgb),.08);
  border-radius: 8px;
  background: rgba(11,15,26,.68);
  box-shadow: none;
  backdrop-filter: none;
}

.site-live-visitors--profile .site-live-visitors__author {
  color: rgba(var(--ui-rgb),.64);
}

.site-live-visitors--profile .site-live-visitors__separator {
  color: rgba(var(--ui-rgb),.16);
}

.site-live-visitors--profile .site-live-visitors__label {
  color: rgba(var(--ui-rgb),.58);
}

.site-live-visitors--profile .site-live-visitors__value {
  color: var(--text);
  font-size: 12px;
}

.maintenance-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.maintenance-screen__card {
  width: min(100%, 620px);
  padding: 34px;
  text-align: center;
}

.maintenance-screen__badge {
  justify-self: center;
  margin-inline: auto;
}

.maintenance-screen__title {
  position: relative;
  z-index: 1;
  margin: 18px 0 10px;
  font-size: var(--type-page-title);
  line-height: 1.05;
}

.maintenance-screen__text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: var(--type-body-lg);
}

.payment-status-note {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gold);
}

.payment-actions {
  margin-top: 18px;
}

.legal-card--status {
  margin-top: 18px;
}



@media (max-width: 1400px) {
  .layout--with-rail {
    --page-rail-width: 230px;
    --layout-rail-gap: 18px;
  }
}



@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .layout--with-rail,
  .layout--no-rail {
    padding-right: 0;
  }

  .layout--with-rail > .content,
  .layout--no-rail > .content {
    grid-column: auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .page-rail {
    display: none;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 16px 18px;
  }

  .sidebar__rail {
    position: static;
    min-height: 0;
    width: 100%;
    padding: 0;
  }

  .sidebar__top {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding-bottom: 0;
  }

  .site-auth-block {
    flex: 0 0 auto;
  }

  .sidebar__menu-shell {
    width: 100%;
    flex: 0 0 100%;
    justify-content: flex-start;
  }

  .sidebar__nav,
  .sidebar__nav--pretty,
  .sidebar__categories {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .sidebar__nav::-webkit-scrollbar,
  .sidebar__categories::-webkit-scrollbar {
    display: none;
  }

  .sidebar__section-title {
    width: 1px;
    height: 28px;
    margin: 0 4px;
    background: linear-gradient(180deg, rgba(var(--accent-rgb, 214, 179, 106), 0), rgba(var(--accent-rgb, 214, 179, 106), 0.45), rgba(var(--accent-rgb, 214, 179, 106), 0));
  }

  .sidebar__brand-meta,
  .sidebar__nav--pretty > .sidebar__link span,
  .sidebar__categories .sidebar__link span,
  .sidebar__link span,
  .site-auth-rail__tooltip,
  .site-auth-rail__logout::after {
    display: none;
  }
}

@media (max-width: 980px) {
  .profile-page__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-page__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .site-footer__inner {
    padding: 16px;
  }

  .site-footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__links {
    width: 100%;
    justify-content: flex-start;
  }

  .site-live-visitors {
    justify-content: flex-start;
    padding-left: 4px;
    text-align: left;
  }

  .site-live-visitors--profile {
    margin-top: 18px;
    padding: 14px 16px;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .site-footer__inner {
    padding: 14px;
    border-radius: 8px;
  }

  .site-footer__title {
    font-size: var(--type-card-heading);
  }

  .site-footer__text {
    font-size: 12px;
  }

  .site-footer__link {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .site-footer__bottom {
    font-size: 10px;
  }
}

@media (max-width: 760px) {
  

  

  

  .catalog {
    scroll-margin-top: 88px;
  }

  .catalog__title {
    font-size: var(--type-section-title);
    line-height: 1.1;
  }

  .catalog__subtext {
    font-size: var(--type-body);
    line-height: 1.5;
  }

  .catalog__actions {
    width: 100%;
  }

  .catalog-search {
    width: 100%;
  }

  .catalog-search__panel {
    width: 100%;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .content,
  .sidebar {
    padding: 16px;
  }

  .layout {
    gap: 0;
  }

  .layout--with-rail > .content,
  .layout--no-rail > .content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(var(--ui-rgb), 0.08);
    background: rgba(5, 8, 13, 0.9);
  backdrop-filter: none;
    overflow: visible;
  }

  .sidebar__rail {
    overflow: visible;
  }

  .sidebar__top {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    overflow: visible;
  }

  .sidebar__brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    gap: 12px;
  }

  .sidebar__brand-meta {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .sidebar__logo-title {
    font-size: var(--type-card-heading);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar__logo-subtitle {
    font-size: 11px;
    line-height: 1.1;
    opacity: 0.72;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar__mobile-toggle {
    display: inline-flex;
    justify-self: end;
    order: 2;
  }

  .site-auth-block {
    width: auto;
    justify-self: end;
    justify-content: flex-end;
    order: 3;
  }

  .site-auth-rail {
    width: auto;
  }

  .sidebar__logo-mark,
  .site-auth-rail__button,
  .sidebar__mobile-toggle {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 10px;
  }

  .site-auth-rail__button::before {
    border-radius: 10px;
  }

  .admin-quick-link {
    right: 14px;
    bottom: 14px;
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 10px;
  }

  .admin-quick-link span {
    display: none;
  }

  .sidebar__section-title,
  .site-auth-rail__tooltip,
  .site-auth-rail__logout::after {
    display: none;
  }

  .site-auth-rail__logout {
    width: 22px;
    height: 22px;
    right: -2px;
    bottom: -2px;
  }

  .sidebar__menu-shell {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(var(--ui-rgb), 0.08);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(16, 20, 28, 0.98), rgba(11, 11, 11, 0.98));
    box-shadow: none;
    z-index: 5;
  }

  .sidebar.is-mobile-menu-open .sidebar__menu-shell {
    display: block;
  }

  .sidebar__nav,
  .sidebar__nav--pretty,
  .sidebar__categories {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }

  .sidebar__categories {
    min-width: 0;
    padding: 0;
  }

  .sidebar__nav--pretty > .sidebar__link,
  .sidebar__categories .sidebar__link,
  .sidebar__link {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 48px;
    justify-content: flex-start;
    padding: 12px 14px;
    gap: 10px;
    border-radius: 10px;
  }

  .sidebar__nav--pretty > .sidebar__link i,
  .sidebar__categories .sidebar__link i,
  .sidebar__link i,
  .site-auth-rail__button--guest i {
    width: 18px;
    min-width: 18px;
    height: auto;
    font-size: 15px;
  }

  .sidebar__nav--pretty > .sidebar__link span,
  .sidebar__categories .sidebar__link span,
  .sidebar__link span {
    position: static;
    display: inline-flex !important;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    box-shadow: none;
  }

  .intro {
    padding: 24px;
    margin-bottom: 24px;
  }

  .intro__title {
    font-size: var(--type-page-title);
    line-height: 1.08;
  }

  .home-banners {
    margin-bottom: 24px;
  }

  .home-banners__viewport {
    aspect-ratio: 16 / 5;
    min-height: 140px;
    border-radius: 10px;
  }

  .home-banners__arrow {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .home-banners__arrow--prev {
    left: 10px;
  }

  .home-banners__arrow--next {
    right: 10px;
  }

  .catalog__top {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
  }

  .catalog__actions,
  .catalog-search,
  .catalog-search__panel {
    width: 100%;
  }

  .catalog-search {
    min-height: auto;
  }

  .catalog-search__panel {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }

  .catalog-search__field {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 46px;
    min-height: 46px;
    border-radius: 10px;
  }

  .catalog-search__field i {
    margin-left: 14px;
  }

  .catalog-search__button {
    flex: 0 0 auto;
    width: auto;
    min-width: 92px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 10px;
  }

  .catalog-search__clear {
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 10px;
  }

  

  

  .product-pagination {
    justify-content: flex-start;
  }

  .product-pagination__btn,
  .product-pagination__num {
    flex: 1 1 auto;
  }
}

@media (max-width: 380px) {
  .catalog-search__panel {
    gap: 7px;
  }

  .catalog-search__button {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }

  .catalog-search__button span {
    display: none;
  }

  .catalog-search__clear {
    flex-basis: 44px;
    width: 44px;
    min-width: 44px;
  }

  .catalog-search__field input {
    padding-right: 12px;
    font-size: 13px;
  }
}

/* Unified public blocks: no black drop shadows, only borders/backgrounds. */
.products__empty,
.product-loading,
.product-error,
.intro-promo,
.intro-promo--channel,
.profile-card-section,
.profile-aside__card,
.profile-nav-link.is-active,
.profile-connection-card.is-linked,
.site-footer__inner,
.site-live-visitors--profile,
.auth-entry-card,
.auth-shell-card,
.mobile-menu__panel{
  box-shadow: none;
}



@media (max-width: 520px) {
  .home-banners__viewport {
    aspect-ratio: 16 / 6.4;
    min-height: 120px;
    border-radius: 10px;
  }

  .home-banners__arrow {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .home-banners__arrow--prev {
    left: 8px;
  }

  .home-banners__arrow--next {
    right: 8px;
  }

  .home-banners__dots {
    bottom: 10px;
  }
}

/* Mobile home/catalog final layout */
@media (max-width: 980px) {
  .content {
    padding-top: 16px !important;
  }

  .home-banners {
    margin: 0 0 26px !important;
  }

  .home-banners:empty {
    display: none !important;
  }

  .intro {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 0 22px !important;
    padding: clamp(22px, 6vw, 34px) !important;
    border-radius: 10px !important;
    overflow: visible !important;
  }

  .intro__content {
    max-width: 100% !important;
  }

  .intro__badge {
    margin-bottom: 16px !important;
  }

  .intro__title {
    margin: 0 !important;
    font-size: var(--type-page-title) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em !important;
  }

  .intro__text {
    max-width: 100% !important;
    margin: 16px 0 0 !important;
    font-size: var(--type-body-lg) !important;
    line-height: 1.7 !important;
  }

  .catalog {
    margin-top: 0 !important;
    padding-top: 0 !important;
    scroll-margin-top: 88px !important;
  }

  .catalog__top {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;
    gap: 12px !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
  }

  .catalog__heading {
    display: block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  .catalog__title {
    margin: 0 !important;
    font-size: var(--type-section-title) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em !important;
  }

  .catalog__subtext {
    margin: 6px 0 0 !important;
    font-size: var(--type-body) !important;
    line-height: 1.45 !important;
  }

  .catalog__actions {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .catalog-search {
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .catalog-search__panel {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
  }

  .catalog-search__field {
    min-width: 0 !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 10px !important;
  }

  .catalog-search__button {
    display: inline-flex !important;
    width: auto !important;
    min-width: 92px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 15px !important;
    border-radius: 10px !important;
  }

  .catalog-search__button span {
    display: inline !important;
  }

  .catalog-search__clear {
    position: absolute !important;
    right: 100px !important;
    top: 0 !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 10px !important;
    z-index: 2 !important;
  }

  

  

  
}

@media (max-width: 430px) {
  .layout--with-rail > .content,
  .layout--no-rail > .content,
  .content,
  .sidebar {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .intro {
    margin-bottom: 16px !important;
    padding: 18px !important;
    border-radius: 14px !important;
  }

  .intro__badge {
    margin-bottom: 14px !important;
  }

  .intro__title {
    font-size: var(--type-page-title) !important;
  }

  .intro__text {
    margin-top: 14px !important;
    font-size: var(--type-body-lg) !important;
    line-height: 1.7 !important;
  }

  .catalog__top {
    gap: 12px !important;
    margin-bottom: 16px !important;
  }

  .catalog-search__field input {
    font-size: 13px !important;
  }
}

/* Auth modal mobile hard fix */
@media (max-width: 1024px) {
  .auth-modal {
    align-items: stretch !important;
    justify-content: center !important;
    padding: 10px !important;
    overflow: hidden !important;
  }

  .auth-modal__dialog {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 520px !important;
    max-height: calc(100dvh - 20px) !important;
    margin: auto !important;
    padding: 20px !important;
    border-radius: 10px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .auth-modal__header {
    display: grid !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    padding-right: 52px !important;
  }

  .auth-modal__title {
    font-size: var(--type-section-title) !important;
    line-height: 1.04 !important;
  }

  .auth-modal__text {
    max-width: 100% !important;
    font-size: var(--type-body) !important;
    line-height: 1.55 !important;
  }

  .auth-modal__layout,
  .auth-modal__layout.auth-modal__layout--single {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 14px !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .auth-modal__layout > *,
  .auth-sheet,
  .auth-sheet--credentials,
  .auth-sheet--social,
  .auth-panels,
  .auth-panel,
  .auth-credentials-form,
  .auth-field,
  .auth-social-grid,
  .auth-social-btn,
  .auth-social-btn__body {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    grid-column: auto !important;
    grid-row: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .auth-sheet {
    width: 100% !important;
    padding: 17px !important;
    border-radius: 10px !important;
  }

  .auth-sheet--credentials {
    order: 1 !important;
  }

  .auth-sheet--social {
    order: 2 !important;
  }

  .auth-sheet__eyebrow {
    width: fit-content !important;
  }

  .auth-sheet__title {
    margin-top: 8px !important;
    font-size: var(--type-card-title) !important;
    line-height: 1.15 !important;
  }

  .auth-sheet__text {
    margin-top: 8px !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  .auth-modal__tabs {
    display: grid !important;
    grid-auto-flow: initial !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    margin-top: 14px !important;
  }

  .auth-modal__tab {
    width: 100% !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
  }

  .auth-panels {
    margin-top: 14px !important;
  }

  .auth-panel.is-active {
    display: block !important;
  }

  .auth-credentials-form {
    display: grid !important;
    gap: 10px !important;
  }

  .auth-field__input {
    width: 100% !important;
    min-width: 0 !important;
  }

  .auth-panel-switch {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    margin-top: 12px !important;
    line-height: 1.45 !important;
  }

  .auth-social-grid {
    display: grid !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }

  .auth-social-btn {
    display: flex !important;
    align-items: center !important;
    min-height: 64px !important;
    padding: 12px !important;
    gap: 12px !important;
    border-radius: 8px !important;
  }

  .auth-social-btn__icon {
    flex: 0 0 42px !important;
  }

  .auth-social-btn__body {
    overflow: hidden !important;
  }

  .auth-social-btn__title,
  .auth-social-btn__text {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 430px) {
  .auth-modal {
    padding: 8px !important;
  }

  .auth-modal__dialog {
    max-width: 100% !important;
    max-height: calc(100dvh - 16px) !important;
    padding: 18px !important;
    border-radius: 10px !important;
  }

  .auth-modal__close {
    top: 14px !important;
    right: 14px !important;
    width: 40px !important;
    height: 40px !important;
  }

  .auth-modal__header {
    padding-right: 48px !important;
  }

  .auth-entry-card__eyebrow,
  .auth-sheet__eyebrow {
    min-height: 28px !important;
    padding: 0 12px !important;
    font-size: 10px !important;
  }
}

/* Email verification code form */
.auth-credentials-form--resend {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--ui-rgb), 0.07);
}

.auth-field__input--code {
  font-weight: 650;
  letter-spacing: 0.18em;
  text-align: center;
}

/* Profile library */
.profile-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding-bottom: 10px;
  overflow: visible;
}

.profile-library-card {
  display: grid;

  

  min-width: 0;

  border-radius: 10px;
  border: 1px solid rgba(var(--ui-rgb), 0.07);

}

.profile-library-card__image {
  position: relative;

  
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(var(--accent-rgb, 214, 179, 106), 0.18), transparent 52%),
    rgba(var(--ui-rgb), 0.045);
}

.profile-library-card__image img {
  width: 100%;
  height: 100%;
  display: block;

}

.profile-library-card__image.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 24px;
}

.profile-library-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;

}

.profile-library-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.profile-library-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.18);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.10);
  color: var(--gold);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-library-badge--purchase,
.profile-library-badge--premium {
  background: linear-gradient(180deg, rgba(var(--accent-light-rgb, 229, 202, 135), 0.95), rgba(var(--accent-dark-rgb, 197, 145, 61), 0.92));
  border-color: transparent;
  color: #111;
}

.profile-library-badge--free {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.12);
  color: var(--gold);
}

.profile-library-badge--muted {
  border-color: rgba(var(--ui-rgb),0.08);

  
}

.profile-library-card__title,
.profile-download-row__title {
  min-width: 0;
  color: var(--text);
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.profile-library-card__title:hover,
.profile-download-row__title:hover {
  color: var(--gold);
}

.profile-library-card__meta,
.profile-download-row__meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.profile-download-history {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.profile-download-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);

  
  padding: 13px;
  border-radius: 8px;
  border: 1px solid rgba(var(--ui-rgb),0.07);
  background: var(--gray-panel-2, var(--panel-bg));
}

.profile-download-row__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.18);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.10);
}

.profile-download-row__body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.profile-download-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

@media (max-width: 980px) {
  .profile-library-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .profile-library-card {
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 10px;
    border-radius: 8px;
  }

  .profile-library-card__image {
    min-height: 78px;
    border-radius: 10px;
  }

  .profile-download-row {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 12px;
  }

  .profile-download-row__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
}

.profile-library-card__actions {
  margin-top: auto;
  padding-bottom: 8px;
  overflow: visible;
}

.profile-library-card__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--gold-gradient);
  color: #111;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: none;
  transition: transform .18s ease, opacity .18s ease;
}

.profile-library-card__download:hover {
  transform: none;
  color: #111;
}

/* Profile library visual polish */
.profile-library-card {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  background:
    radial-gradient(circle at 22% 18%, rgba(var(--accent-rgb, 214, 179, 106), 0.11), transparent 34%),
    linear-gradient(135deg, rgba(var(--ui-rgb), 0.07), rgba(var(--ui-rgb), 0.025)),
    rgba(15, 17, 22, 0.94);
}

.profile-library-card__image {

  
  border-radius: 8px;
  border: 1px solid rgba(var(--ui-rgb),0.08);
  box-shadow: none;
}

.profile-library-card__image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(5,7,10,0.46));
  pointer-events: none;
}

.profile-library-card__image img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.03);
}

.profile-library-badge--premium,
.profile-library-badge--purchase {
  border: none;
  background: linear-gradient(180deg, rgba(var(--accent-light-rgb, 229, 202, 135), 0.98) 0%, rgba(var(--accent-dark-rgb, 197, 145, 61), 0.96) 100%);
  color: #111;
  box-shadow: none;
}

.profile-library-badge--muted {
  border: none;
  background: rgba(var(--ui-rgb),0.08);
  color: rgba(var(--ui-rgb),0.68);

}

@media (max-width: 520px) {
  .profile-library-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 13px;
    padding: 12px;
  }

  .profile-library-card__image {
    min-height: 104px;
    border-radius: 8px;
  }
}

/* Profile library overlap fix */
.profile-library-card {
  align-items: start;
}

.profile-library-card__image {
  width: 100%;
  max-width: 118px;
  min-width: 0;
  height: 118px;
  min-height: 0;
  aspect-ratio: auto;
  flex: 0 0 auto;
}

.profile-library-card__body {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.profile-library-card__title {
  display: block;
  max-width: 100%;
  font-size: var(--type-card-heading);
}


@media (max-width: 620px) {
  .profile-library-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .profile-library-card__image {
    max-width: none;
    width: 100%;
    height: 150px;
    border-radius: 8px;
  }

  .profile-library-card__body {
    overflow: visible;
  }

  .profile-library-card__top {
    margin-top: 0;
  }

  .profile-library-card__download {
    width: fit-content;
  }
}

@media (max-width: 420px) {
  .profile-library-card__image {
    height: 132px;
  }
}

/* Library update badges */
.profile-library-badge--update {
  border: none;
  background: linear-gradient(180deg, rgba(var(--accent-light-rgb, 229, 202, 135), 0.98), rgba(var(--accent-dark-rgb, 197, 145, 61), 0.96));
  color: #111;
  box-shadow: none;
}

.profile-library-badge--update i {
  margin-right: 5px;
}

.profile-library-card__meta--update {
  color: var(--gold);
  font-weight: 650;
}

/* Sidebar chat unread pulse */
@keyframes sidebarChatUnreadPulse {
  0%, 100% {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.28);
    background: rgba(var(--accent-rgb, 214, 179, 106), 0.10);
    box-shadow:
      0 0 0 0 rgba(var(--accent-rgb, 214, 179, 106), 0.00),
      0 14px 28px rgba(var(--accent-dark-rgb, 197, 145, 61), 0.08);
  }

  50% {
  border-color: rgba(var(--accent-light-rgb, 229, 202, 135), 0.72);
    background: rgba(var(--accent-rgb, 214, 179, 106), 0.18);
    box-shadow:
      0 0 0 7px rgba(var(--accent-rgb, 214, 179, 106), 0.09),
      0 0 28px rgba(var(--accent-rgb, 214, 179, 106), 0.22),
      0 14px 28px rgba(var(--accent-dark-rgb, 197, 145, 61), 0.16);
  }
}

.sidebar__link.sidebar__link--chat-unread {
  color: var(--gold);
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.46);
  animation: sidebarChatUnreadPulse 1.85s ease-in-out infinite;
}

.sidebar__link.sidebar__link--chat-unread::after {
  content: attr(data-chat-unread);
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--gold-gradient);
  color: #111;
  font-size: 10px;
  line-height: 1;
  font-weight: 650;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .sidebar__link.sidebar__link--chat-unread {
    animation: none;
  }
}

/* Chat unread badge border fix */
.sidebar__link.sidebar__link--chat-unread::after {
  border: none;
}

/* Product favorites */
.favorite-btn {
  position: relative;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(var(--accent-rgb, 214, 179, 106), 0.92);
  background:
    linear-gradient(180deg, rgba(var(--ui-rgb),0.055), rgba(var(--ui-rgb),0.018)),
    rgba(11,14,20,0.88);
  cursor: pointer;
  transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.favorite-btn:hover {
  transform: none;
  color: var(--gold);
}

.favorite-btn.is-active {
  color: #111;
  background: var(--gold-gradient);
  box-shadow: none;
}

.favorite-btn:disabled {
  opacity: .65;
  cursor: wait;
}



.profile-favorites-grid .profile-library-card__download {
  min-width: 0;
}



/* Gold borders and favorite hover actions cleanup */





.profile-library-badge--purchase,
.profile-library-badge--premium,
.profile-library-badge--update,
.site-btn--primary,
.favorite-btn.is-active{
  border: none !important;
}

.profile-library-badge--purchase,
.profile-library-badge--premium,
.profile-library-badge--update {
  box-shadow: none;
}



/* Gold-only border cleanup */


.favorite-btn.is-active,
.site-btn--primary,
.profile-library-badge--purchase,
.profile-library-badge--premium,
.profile-library-badge--update {
  border: none !important;
}



/* Shared public UI system */
.ui-card {
  position: relative;
  border: 1px solid rgba(var(--ui-rgb),0.08);
  border-radius: var(--radius-lg, 10px);
  background: var(--panel-bg, #0f0f0f);
  box-shadow: none;
}

.ui-card--padded {
  padding: 18px;
}

.ui-card--soft {
  background: var(--gray-panel-2, #121212);
}

.ui-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ui-card__eyebrow,
.ui-kicker {
  color: var(--gold);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ui-card__title,
.ui-title {
  margin: 4px 0 0;
  color: var(--text);
  font-size: var(--type-card-title);
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ui-card__text,
.ui-text {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.65;
}

.ui-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ui-rgb),0.08);
  background: rgba(var(--ui-rgb),0.045);
  color: rgba(var(--ui-rgb),0.72);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ui-badge--gold {
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.22);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.10);
  color: var(--gold);
  box-shadow: none;
}

.ui-badge--dark {
  border: 1px solid rgba(var(--ui-rgb),0.08);
  background: rgba(11,14,18,0.72);
  color: rgba(var(--ui-rgb),0.78);
}

.ui-badge--gold-soft {
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.18);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.10);
  color: var(--gold);
}

.ui-btn {
  border: 1px solid rgba(var(--ui-rgb),0.08);
  border-radius: var(--control-radius, 10px);
  min-height: var(--control-height, 48px);
  padding: 0 var(--control-padding-x, 18px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.ui-btn--gold {
  border: none;
  background: var(--gold-button-bg);
  color: #111;
  box-shadow: none;
}

.ui-btn--gold:hover,
.ui-btn--gold:focus-visible {
  color: #111;
  transform: none;
  filter: brightness(1.06);
  box-shadow: none;
}

.ui-btn--dark {
  border-color: rgba(var(--ui-rgb),0.08);
  background: var(--gray-control, #131313);
  color: var(--text);
}

.ui-btn--dark:hover,
.ui-btn--dark:focus-visible {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.2);
  color: var(--gold);
  transform: none;
}

@media (max-width: 620px) {
  .ui-card__head {
    flex-direction: column;
    gap: 12px;
  }
}

/* Shared UI adoption overrides */
.profile-card-section.ui-card,
.profile-info-card.ui-card,
.profile-library-card.ui-card,
.profile-download-row.ui-card {
  box-shadow: none;
}

.profile-card-section.ui-card {
  display: block;
}

.profile-card-section .ui-card__eyebrow,
.profile-card-section .ui-card__title,
.profile-card-section .ui-card__text {
  margin-top: 0;
}





.profile-library-badge.ui-badge {
  border-radius: 999px;
}

.profile-library-badge--purchase.ui-badge,
.profile-library-badge--premium.ui-badge,
.profile-library-badge--update.ui-badge {
  border: none;
  background: var(--gold-gradient);
  color: #111;
}



.favorite-btn.ui-btn {
  padding: 0;
}







/* Favorite hover action stability */






.favorite-btn--product i {
  display: inline-block;
  color: currentColor;
  opacity: 1;
  visibility: visible;
  line-height: 1;
}





.favorite-btn.is-active {
  border: none !important;
  background: var(--gold-gradient);
  color: #111;
  box-shadow: none;
}

.favorite-btn.is-active i {
  color: #111;
  opacity: 1;
}





/* Product card hover buy fixed width */






/* Product card hover buy fixed height */








/* Site notifications center */
@keyframes sidebarNotificationsPulse {
  0%, 100% {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.28);
    background: rgba(var(--accent-rgb, 214, 179, 106), 0.10);
    box-shadow:
      0 0 0 0 rgba(var(--accent-rgb, 214, 179, 106), 0.00),
      0 14px 28px rgba(var(--accent-dark-rgb, 197, 145, 61), 0.08);
  }

  50% {
  border-color: rgba(var(--accent-light-rgb, 229, 202, 135), 0.72);
    background: rgba(var(--accent-rgb, 214, 179, 106), 0.18);
    box-shadow:
      0 0 0 7px rgba(var(--accent-rgb, 214, 179, 106), 0.09),
      0 0 28px rgba(var(--accent-rgb, 214, 179, 106), 0.22),
      0 14px 28px rgba(var(--accent-dark-rgb, 197, 145, 61), 0.16);
  }
}

button.sidebar__link {
  width: 100%;
  border: 1px solid transparent;
  font: inherit;
  text-align: left;
}

.sidebar__link--notifications {
  position: relative;
}

.sidebar__link.sidebar__link--notifications-unread {
  color: var(--gold);
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.46);
  animation: sidebarNotificationsPulse 1.85s ease-in-out infinite;
}

.sidebar__link.sidebar__link--notifications-unread::after {
  content: attr(data-notifications-unread);
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--gold-gradient);
  color: #111;
  font-size: 10px;
  line-height: 1;
  font-weight: 650;
  box-shadow: none;
}

.site-notifications-open {
  overflow: hidden;
}

.site-notifications-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.site-notifications-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.site-notifications-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(var(--accent-rgb, 214, 179, 106), 0.11), transparent 28%),
    rgba(3,4,7,0.58);
  backdrop-filter: none;
  opacity: 0;
  transition: opacity .24s ease;
}

.site-notifications-modal.is-open .site-notifications-modal__backdrop {
  opacity: 1;
}

.site-notifications-modal__dialog {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: min(430px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid rgba(var(--ui-rgb),0.09);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb, 214, 179, 106), 0.16), transparent 35%),
    linear-gradient(180deg, rgba(var(--ui-rgb),0.065), rgba(var(--ui-rgb),0.025)),
    rgba(10,12,17,0.98);
  box-shadow: none;
  overflow: hidden;
  transform: translateX(calc(100% + 36px));
  transition: transform .34s cubic-bezier(.22, 1, .36, 1);
}

.site-notifications-modal.is-open .site-notifications-modal__dialog {
  transform: translateX(0);
}

.site-notifications-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px 14px;
  border-bottom: 1px solid rgba(var(--ui-rgb),0.06);
}

.site-notifications-modal__eyebrow {
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.09);
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.18);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-notifications-modal__head h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: var(--type-card-title);
  line-height: 1.12;
}

.site-notifications-modal__close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(var(--ui-rgb),0.08);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--ui-rgb),0.045);
  color: rgba(var(--ui-rgb),0.72);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.site-notifications-modal__close:hover,
.site-notifications-modal__close:focus-visible {
  color: var(--text);
  background: rgba(var(--ui-rgb),0.06);
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.22);
  transform: none;
}

.site-notifications-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px 8px;
}

.site-notifications-modal__read-all,
.ui-btn.profile-notifications-read-all {
  gap: 7px;
  min-height: 30px;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.24);
  border-radius: 999px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.10);
  color: var(--accent-light, #e5ca87);
  font-size: 12px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: none;
}

.site-notifications-modal__read-all:hover,
.site-notifications-modal__read-all:focus-visible,
.ui-btn.profile-notifications-read-all:hover,
.ui-btn.profile-notifications-read-all:focus-visible {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.46);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.16);
  color: var(--accent-light, #e5ca87);
}

.site-notifications-modal__read-all i,
.ui-btn.profile-notifications-read-all i {
  font-size: 12px;
}

.site-notifications-modal__read-all[hidden] {
  display: none;
}

.site-notifications-modal__list {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 12px 12px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb, 214, 179, 106), 0.34) rgba(var(--ui-rgb),0.04);
}

.site-notifications-modal__list::-webkit-scrollbar {
  width: 8px;
}

.site-toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 12000;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 28px));
  pointer-events: none;
}

.site-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(var(--ui-rgb),0.08);

  box-shadow: none;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
  backdrop-filter: none;
}

.site-toast.is-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-toast.is-leaving {
  opacity: 0;
  transform: translateY(8px) scale(.985);
}

.site-toast__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: var(--gold-gradient);
}

.site-toast--warning .site-toast__icon {
  color: var(--gold-button-text, #111111);
  background: linear-gradient(135deg, var(--accent-light, #e5ca87), var(--accent-dark, #c5913d));
}

.site-toast__body {
  min-width: 0;
}

.site-toast__title {
  margin-bottom: 2px;

  font-size: 13px;
  font-weight: 650;
}

.site-toast__text {

  font-size: var(--type-body);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.site-toast__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--ui-rgb),0.58);
  background: rgba(var(--ui-rgb),0.055);
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

.site-toast__close:hover,
.site-toast__close:focus-visible {
  color: var(--text);
  background: rgba(var(--ui-rgb),0.075);
  outline: none;
}

.product-reviews-empty.site-empty-state {
  display: grid;
  margin-top: 14px;
  min-height: 120px;
}

.site-notifications-modal__list::-webkit-scrollbar-track {
  background: rgba(var(--ui-rgb),0.04);
  border-radius: 999px;
}

.site-notifications-modal__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.34);
}

.site-notifications-modal__empty {
  min-height: 130px;
  padding: 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  color: rgba(var(--ui-rgb),0.62);
  background: var(--gray-panel-2, var(--panel-bg));
  border: 1px dashed rgba(var(--ui-rgb),0.10);
}

.site-notifications-modal__empty > i {
  color: var(--gold);
  font-size: 22px;
}

.site-notifications-modal__empty--error > i {
  color: #ffb7a8;
}

.site-notification,
.profile-notification-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid rgba(var(--ui-rgb),0.07);
  background: rgba(var(--ui-rgb),0.033);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.site-notification:hover {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.16);
  background: rgba(var(--ui-rgb),0.048);
  transform: none;
}

.site-notification + .site-notification,
.profile-notification-item + .profile-notification-item {
  margin-top: 10px;
}

.site-notification.is-unread,
.profile-notification-item.is-unread {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.24);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb, 214, 179, 106), 0.10), rgba(var(--accent-rgb, 214, 179, 106), 0.025)),
    rgba(var(--ui-rgb),0.035);
}

.site-notification__icon,
.profile-notification-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: var(--gold-gradient);
  box-shadow: none;
}

.site-notification.is-read .site-notification__icon {
  color: rgba(var(--ui-rgb),0.72);
  background: rgba(var(--ui-rgb),0.065);
  box-shadow: none;
}

.site-notification__body,
.profile-notification-item__content {
  min-width: 0;
}

.site-notification__top,
.profile-notification-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.site-notification__title,
.profile-notification-item__title {
  color: var(--text);
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.site-notification__badge,
.profile-notification-item__badge {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--gold-gradient);
  color: #111;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-notification__badge i {
  font-size: 6px;
}

.site-notification__text,
.profile-notification-item__body {
  margin-top: 7px;
  color: rgba(var(--ui-rgb),0.68);
  font-size: var(--type-body);
  line-height: 1.52;
  overflow-wrap: anywhere;
}

.site-notification__meta,
.profile-notification-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
  color: rgba(var(--ui-rgb),0.46);
  font-size: 12px;
}

.site-notification__meta span,
.site-notification__meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-notification__meta a,
.profile-notification-item__meta a {
  color: var(--gold);
  font-weight: 650;
  text-decoration: none;
}

.site-notification__meta a:hover,
.profile-notification-item__meta a:hover {
  text-decoration: none;
  color: var(--accent-light, #e5ca87);
}

.site-notifications-modal__footer {
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(var(--ui-rgb),0.06);
  background: rgba(0,0,0,0.12);
}

.site-notifications-modal__all {
  min-height: 42px;
  width: 100%;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: rgba(var(--ui-rgb),0.82);
  background: rgba(var(--ui-rgb),0.045);
  border: 1px solid rgba(var(--ui-rgb),0.075);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.site-notifications-modal__all:hover,
.site-notifications-modal__all:focus-visible {
  color: var(--text);
  background: rgba(var(--ui-rgb),0.06);
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.2);
}

@media (max-width: 620px) {
  .site-notifications-modal__backdrop {
    background: rgba(3,4,7,0.66);
    backdrop-filter: none;
  }

  .site-notifications-modal__dialog {
    top: auto;
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
    height: min(78vh, 680px);
    border-radius: 10px;
    transform: translateY(calc(100% + 28px));
    box-shadow: none;
  }

  .site-notifications-modal.is-open .site-notifications-modal__dialog {
    transform: translateY(0);
  }

  .site-notifications-modal__head {
    padding: 18px 18px 12px;
  }

  .site-notifications-modal__head h2 {
    font-size: var(--type-card-title);
  }

  .site-notifications-modal__actions {
    padding: 12px 18px 10px;
  }

  .site-notifications-modal__read-all,
  .site-notifications-modal__all,
  .ui-btn.profile-notifications-read-all {
    width: 100%;
  }

  .site-notification,
  .profile-notification-item {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 12px;
  }

  .site-notification__icon,
  .profile-notification-item__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .profile-section-inline-head {
    flex-direction: column;
  }

  .profile-notifications-read-form,
  .ui-btn.profile-notifications-read-all {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-notifications-modal,
  .site-notifications-modal__backdrop,
  .site-notifications-modal__dialog,
  .site-notification,
  .site-notifications-modal__close,
  .site-notifications-modal__all {
    transition: none;
  }

  .sidebar__link.sidebar__link--notifications-unread {
    animation: none;
  }
}

.profile-section-inline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.profile-notifications-list {
  display: grid;

}

.profile-notifications-read-form {
  flex: 0 0 auto;
  margin: 0;
}

@media (max-width: 620px) {
  .site-notifications-modal {
    padding: 14px;
  }

  .site-notifications-modal__dialog {
    max-height: calc(100vh - 28px);
    border-radius: 10px;
  }

  .site-notifications-modal__actions {
    padding: 0 18px 12px;
  }
}

/* Profile badges after UI unification fix */
.profile-overview__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.profile-status-pill.ui-badge {
  justify-content: flex-start;
  min-height: 34px;
  max-width: 100%;
  padding: 0 14px;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ui-rgb),0.08);
  background: rgba(var(--ui-rgb),0.045);
  color: #d9deea;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
  white-space: nowrap;
  box-shadow: none;
}

.profile-status-pill.ui-badge i {
  flex: 0 0 auto;
  margin-top: 0;
  font-size: 12px;
  color: currentColor;
}

.profile-status-pill__text {
  display: inline;

  padding: 0;
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: none;
  white-space: nowrap;

  
}

.profile-status-pill.ui-badge.is-success {
  border-color: rgba(114, 201, 140, 0.16);
  background: rgba(114, 201, 140, 0.12);
  color: #c9f7db;
}

.profile-status-pill.ui-badge.is-danger,
.profile-status-pill.ui-badge.is-admin {
  border-color: rgba(255, 106, 106, 0.16);
  background: rgba(255, 106, 106, 0.14);
  color: #ffd4d4;
}

.profile-status-pill.ui-badge.is-warning,
.profile-status-pill.ui-badge.is-premium {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.20);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.18);
  color: var(--accent-light, #e5ca87);
}

.profile-status-pill.ui-badge.is-muted,
.profile-status-pill.ui-badge.is-user {
  border-color: rgba(var(--ui-rgb),.08);
  background: rgba(var(--ui-rgb),.06);
  color: #cfd5df;
}

.profile-overview__name {
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .profile-overview__badges {
    gap: 8px;
  }

  .profile-status-pill.ui-badge {
    min-height: 32px;
    padding: 0 11px;
    font-size: 11px;
  }

  .profile-status-pill__text {
    max-width: 180px;
  }
}

/* Profile full spacing polish after UI unification */
.profile-page__layout {
  align-items: flex-start;
}

.profile-page__main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.profile-card-section.ui-card {
  padding: 18px;
}

.profile-card-section .profile-card-section__eyebrow,
.profile-card-section .ui-card__eyebrow.profile-card-section__eyebrow {
  margin: 0 0 12px;
}

.profile-card-section .profile-card-section__title,
.profile-card-section .ui-card__title.profile-card-section__title {
  display: block;
  margin: 0 0 8px;
  line-height: 1.12;
}

.profile-card-section .profile-card-section__text,
.profile-card-section .ui-card__text.profile-card-section__text {
  display: block;
  margin: 0 0 16px;
  max-width: 880px;
  line-height: 1.65;
}

.profile-card-section > .profile-overview,
.profile-card-section > .profile-form,
.profile-card-section > .profile-library-grid,
.profile-card-section > .profile-download-list,
.profile-card-section > .profile-connections-grid,
.profile-card-section > .profile-security-grid,
.profile-card-section > .profile-purchases-list,
.profile-card-section > .profile-notifications-list,
.profile-card-section > .profile-readonly-note,
.profile-card-section > .profile-section-inline-head + .profile-notifications-list,
.profile-card-section > .profile-section-inline-head + .profile-readonly-note {
  margin-top: 14px;
}

.profile-section-inline-head {
  margin: 0 0 14px;
}

.profile-section-inline-head .profile-card-section__eyebrow {
  margin-bottom: 14px;
}

.profile-section-inline-head .profile-card-section__title {
  margin-bottom: 8px;
}

.profile-section-inline-head .profile-card-section__text {
  margin-bottom: 0;
}

.profile-overview {
  display: grid;
  gap: 22px;
}

.profile-overview__head {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.profile-overview__meta {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.profile-overview__name {
  margin: 0;
  line-height: 1.12;
}

.profile-overview__badges {
  margin-top: 0;
}

.profile-info-grid {
  margin-top: 0;
  gap: 14px;
}

.profile-info-card.ui-card {
  padding: 18px;
}

.profile-info-card__label {
  margin-bottom: 8px;
}

.profile-info-card__value {
  line-height: 1.35;
}

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

.profile-form__grid {
  gap: 16px;
}

.profile-form__actions {
  margin-top: 2px;
}

.profile-readonly-note {
  padding: 16px 18px;
  line-height: 1.6;
}

.profile-library-grid,
.profile-favorites-grid,
.profile-connections-grid,
.profile-security-grid {
  gap: 16px;
}

.profile-library-card.ui-card,
.profile-download-row.ui-card,
.profile-purchase-item,
.profile-connection-card,
.profile-security-link {
  padding: 16px;
}

.profile-library-card__body {
  gap: 9px;
}

.profile-library-card__top {
  margin-bottom: 2px;
}

.profile-library-card__title {
  line-height: 1.25;
}

.profile-library-card__meta {
  line-height: 1.45;
}

.profile-download-list,
.profile-purchases-list {
  display: grid;
  gap: 12px;
}

.profile-download-row {
  align-items: center;
  gap: 14px;
}

.profile-provider-note {
  margin: 0 0 16px;
  line-height: 1.6;
}

.profile-connections-grid {
  margin-top: 18px;
}

.profile-connection-card {
  display: grid;
  gap: 12px;
}

.profile-connection-card__top {
  gap: 12px;
}

.profile-security-grid {
  margin-top: 18px;
}

.profile-security-link {
  gap: 12px;
}

.profile-notification-item {
  margin: 0;
}

.profile-notification-item + .profile-notification-item {
  margin-top: 0;
}

.profile-notifications-list {
  gap: 12px;
}

.profile-aside {
  display: grid;
  gap: 18px;
}

.profile-aside__card {
  padding: 20px;
}

.profile-aside__card + .profile-aside__card {
  margin-top: 0;
}

.profile-aside-user {
  gap: 14px;
}

.profile-aside__list {
  display: grid;
  gap: 12px;
}

.profile-aside__row {
  gap: 10px;
}

.profile-nav {
  display: grid;
  gap: 10px;
}

.profile-nav-link {
  gap: 12px;
}

@media (max-width: 900px) {
  .profile-page__main {
    gap: 18px;
  }

  .profile-card-section.ui-card {
    padding: 22px;
  }

  .profile-card-section .profile-card-section__eyebrow,
  .profile-card-section .ui-card__eyebrow.profile-card-section__eyebrow {
    margin-bottom: 15px;
  }

  .profile-card-section .profile-card-section__text,
  .profile-card-section .ui-card__text.profile-card-section__text {
    margin-bottom: 18px;
  }
}

@media (max-width: 620px) {
  .profile-page__main {
    gap: 16px;
  }

  .profile-card-section .profile-card-section__eyebrow,
  .profile-card-section .ui-card__eyebrow.profile-card-section__eyebrow {
    margin-bottom: 13px;
  }

  .profile-card-section .profile-card-section__title,
  .profile-card-section .ui-card__title.profile-card-section__title {
    margin-bottom: 8px;
  }

  .profile-card-section .profile-card-section__text,
  .profile-card-section .ui-card__text.profile-card-section__text {
    margin-bottom: 16px;
  }

  .profile-card-section > .profile-overview,
  .profile-card-section > .profile-form,
  .profile-card-section > .profile-library-grid,
  .profile-card-section > .profile-download-list,
  .profile-card-section > .profile-connections-grid,
  .profile-card-section > .profile-security-grid,
  .profile-card-section > .profile-purchases-list,
  .profile-card-section > .profile-notifications-list,
  .profile-card-section > .profile-readonly-note {
    margin-top: 14px;
  }

  .profile-overview__head {
    align-items: flex-start;
    gap: 14px;
  }

  .profile-info-card.ui-card,
  .profile-library-card.ui-card,
  .profile-download-row.ui-card,
  .profile-purchase-item,
  .profile-connection-card,
  .profile-security-link {
    padding: 14px;
  }
}

/* Profile login history */
.profile-login-history__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.profile-login-history__head .profile-card-section__eyebrow {
  margin-bottom: 14px;
}

.profile-login-history__head .profile-card-section__title {
  margin-bottom: 8px;
}

.profile-login-history__head .profile-card-section__text {
  margin-bottom: 0;
}

.profile-login-history__badge {
  flex: 0 0 auto;
}

.profile-login-history__list {
  display: grid;
  gap: 12px;
}

.profile-login-event {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(var(--ui-rgb),0.08);
  background:
    linear-gradient(135deg, rgba(var(--ui-rgb),0.042), rgba(var(--ui-rgb),0.018)),
    rgba(10,12,17,0.72);
}

.profile-login-event.is-recent {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.18);
  background:
    radial-gradient(circle at 92% 12%, rgba(var(--accent-rgb, 214, 179, 106), 0.10), transparent 32%),
    linear-gradient(135deg, rgba(var(--ui-rgb),0.046), rgba(var(--ui-rgb),0.018)),
    rgba(10,12,17,0.75);
}

.profile-login-event__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: var(--gold-gradient);
  box-shadow: none;
}

.profile-login-event__body {
  min-width: 0;
}

.profile-login-event__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-login-event__device {
  color: var(--text);
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.profile-login-event__recent {
  flex: 0 0 auto;
}

.profile-login-event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  color: rgba(var(--ui-rgb),0.56);
  font-size: 12px;
}

.profile-login-event__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 620px) {
  .profile-login-history__head {
    flex-direction: column;
    gap: 12px;
  }

  .profile-login-history__badge {
    align-self: flex-start;
  }

  .profile-login-event {
    grid-template-columns: 1fr;
  }

  .profile-login-event__top {
    flex-direction: column;
  }
}

/* Profile active sessions */
.profile-active-sessions__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.profile-active-sessions__head .profile-card-section__eyebrow {
  margin-bottom: 14px;
}

.profile-active-sessions__head .profile-card-section__title {
  margin-bottom: 8px;
}

.profile-active-sessions__head .profile-card-section__text {
  margin-bottom: 0;
}

.profile-active-sessions__revoke-form {
  flex: 0 0 auto;
  margin: 0;
}

.profile-active-sessions__revoke-all {
  min-height: 40px;
  white-space: nowrap;
}

.profile-active-sessions__list {
  display: grid;
  gap: 12px;
}

.profile-session-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(var(--ui-rgb),0.08);
  background:
    linear-gradient(135deg, rgba(var(--ui-rgb),0.042), rgba(var(--ui-rgb),0.018)),
    rgba(10,12,17,0.72);
}

.profile-session-item.is-current {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.18);
  background:
    radial-gradient(circle at 92% 12%, rgba(var(--accent-rgb, 214, 179, 106), 0.10), transparent 32%),
    linear-gradient(135deg, rgba(var(--ui-rgb),0.046), rgba(var(--ui-rgb),0.018)),
    rgba(10,12,17,0.75);
}

.profile-session-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: var(--gold-gradient);
  box-shadow: none;
}

.profile-session-item__body {
  min-width: 0;
}

.profile-session-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-session-item__device {
  color: var(--text);
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.profile-session-item__badge {
  flex: 0 0 auto;
}

.profile-session-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  color: rgba(var(--ui-rgb),0.56);
  font-size: 12px;
}

.profile-session-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-session-item__form {
  margin: 0;
}

.profile-session-item__logout,
.profile-session-item__logout-current {
  min-height: 38px;
  padding-inline: 12px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .profile-active-sessions__head {
    flex-direction: column;
    gap: 12px;
  }

  .profile-active-sessions__revoke-form,
  .profile-active-sessions__revoke-all {
    width: 100%;
  }

  .profile-session-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .profile-session-item__form {
    grid-column: 1 / -1;
  }

  .profile-session-item__form button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .profile-session-item {
    grid-template-columns: 1fr;
  }

  .profile-session-item__top {
    flex-direction: column;
  }
}

/* Final UI alignment pass */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.ui-card,
.ui-badge,
.ui-btn,
.profile-card-section,
.profile-info-card,
.profile-library-card,
.profile-download-row,
.profile-notification-item,
.profile-login-event,
.profile-session-item,
.site-notification{
  min-width: 0;
}

.ui-badge {
  max-width: 100%;
  line-height: 1;
  vertical-align: middle;
}

.ui-badge > i,
.ui-badge > svg {
  flex: 0 0 auto;
}

.ui-badge > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-btn {
  box-sizing: border-box;
  white-space: nowrap;
}

.ui-btn > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Product cards */


















/* Notifications modal/list badges */
.site-notification__badge,
.profile-notification-item__badge,
.profile-notification-item__badge.ui-badge,
.profile-notification-item__badge.ui-badge--gold,
.profile-login-event__recent,
.profile-session-item__badge {
  border: none !important;
  background: var(--gold-gradient) !important;
  background-image: var(--gold-gradient) !important;
  color: #111 !important;
  line-height: 1;
  box-shadow: none;
  opacity: 1 !important;
}

/* Profile cards and sections */
.profile-card-section.ui-card {
  overflow: visible;
}

.profile-card-section__eyebrow,
.ui-card__eyebrow.profile-card-section__eyebrow {
  width: fit-content;
  max-width: 100%;
  line-height: 1.2;
}

.profile-card-section__title,
.ui-card__title.profile-card-section__title {
  overflow-wrap: anywhere;
}

.profile-card-section__text,
.ui-card__text.profile-card-section__text {
  overflow-wrap: anywhere;
}

.profile-overview,
.profile-info-grid,
.profile-library-grid,
.profile-favorites-grid,
.profile-download-list,
.profile-purchases-list,
.profile-connections-grid,
.profile-security-grid,
.profile-notifications-list,
.profile-login-history__list,
.profile-active-sessions__list {
  width: 100%;
}

.profile-info-card,
.profile-library-card,
.profile-download-row,
.profile-purchase-item,
.profile-connection-card,
.profile-security-link,
.profile-notification-item,
.profile-login-event,
.profile-session-item {
  min-width: 0;
}

.profile-status-pill.ui-badge,
.profile-library-badge.ui-badge,
.profile-login-history__badge,
.profile-active-sessions .ui-badge {
  max-width: 100%;
  line-height: 1;
}

.profile-status-pill__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-library-card__title,
.profile-notification-item__title,
.profile-login-event__device,
.profile-session-item__device {
  overflow-wrap: anywhere;
}

.profile-session-item__form,
.profile-active-sessions__revoke-form,
.profile-notifications-read-form {
  min-width: 0;
}

.profile-session-item__form button,
.profile-active-sessions__revoke-form button,
.profile-notifications-read-form button {
  max-width: 100%;
}

/* Header/sidebar badges */
.sidebar__link--notifications::after,
.sidebar__link--chat-unread::after,
.chat-nav-badge {
  line-height: 1;
  border: none;
}

/* Prevent generic badge rules from changing inner helper text */
.profile-status-pill__text,
.profile-card-section__text,
.profile-library-card__meta,
.profile-login-event__meta,
.profile-session-item__meta,
.profile-notification-item__body {
  text-transform: none;
  letter-spacing: normal;
}



@media (max-width: 520px) {
  

  

  

  .profile-status-pill.ui-badge,
  .profile-library-badge.ui-badge {
    max-width: 100%;
  }
}

/* Minimal UI Pack: compact cards, controls and clean card actions */
body.product-lightbox-open {
  overflow: hidden;
}

.site-btn,
.ui-btn,
.auth-btn,
.auth-submit,
.auth-icon-btn {
  min-height: 44px;
  border-radius: 10px;
  line-height: 1;
}

.site-btn,
.ui-btn,
.auth-btn,
.auth-submit {
  gap: 8px;
}

.site-btn > i,
.ui-btn > i,
.auth-btn > i,
.auth-submit > i,
.auth-icon-btn > i {
  flex: 0 0 auto;
  width: 1.05em;
  text-align: center;
  line-height: 1;
}

















































































.ui-badge,
.profile-status-pill.ui-badge,
.profile-library-badge.ui-badge {
  min-height: 26px;
  padding-inline: 9px;
  border-radius: 999px;
  letter-spacing: .045em;
}

.profile-card-section,
.profile-info-card,
.profile-library-card,
.profile-download-row,
.profile-purchase-item,
.profile-connection-card,
.profile-security-link {
  border-radius: 10px;
}





@media (max-width: 520px) {
  .site-btn,
  .ui-btn,
  .auth-btn,
  .auth-submit {
    min-height: 42px;
  }

  

  

  

  

  

  
}

/* Quick product preview drawer */
body.product-quick-view-open {
  overflow: hidden;
}

.product-quick-view[hidden] {
  display: none !important;
}

.product-quick-view {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: grid;
  pointer-events: none;
}

.product-quick-view__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  cursor: pointer;
  backdrop-filter: none;
  transition: opacity .18s ease;
}

.product-quick-view.is-open {
  pointer-events: auto;
}

.product-quick-view.is-open .product-quick-view__backdrop {
  opacity: 1;
}

.product-quick-view__panel {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(430px, calc(100vw - 28px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(var(--ui-rgb),0.095);
  border-radius: 10px;
  background:
    radial-gradient(circle at 15% 0%, rgba(var(--accent-rgb, 214, 179, 106), 0.12), transparent 28%),
    linear-gradient(180deg, rgba(25, 29, 37, 0.96), rgba(14, 14, 14, 0.98));
  box-shadow: none;
  transform: translateX(24px) scale(.985);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.product-quick-view.is-open .product-quick-view__panel {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.product-quick-view__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(var(--ui-rgb),0.06);
}

.product-quick-view__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: rgba(var(--accent-rgb, 214, 179, 106), 0.82);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-quick-view__head h2 {
  margin: 0;
  max-width: 300px;
  color: #f7f8fb;
  font-size: var(--type-card-title);
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-quick-view__close {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border: 1px solid rgba(var(--ui-rgb),0.08);
  border-radius: 10px;
  background: rgba(var(--ui-rgb),0.055);
  color: rgba(var(--ui-rgb),0.82);
  cursor: pointer;
}

.product-quick-view__close:hover,
.product-quick-view__close:focus-visible {
  color: var(--gold);
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.22);
}

.product-quick-view__content {
  min-height: 0;
  overflow: auto;
  padding: 16px 18px 18px;
}

.product-quick-view__media {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(var(--ui-rgb),0.08);
  border-radius: 10px;
  background:
    radial-gradient(circle at center, rgba(var(--accent-rgb, 214, 179, 106), 0.13), transparent 44%),
    rgba(9, 11, 15, 0.86);
}

.product-quick-view__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(4,6,10,.78), transparent);
  pointer-events: none;
}

.product-quick-view__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.product-quick-view__media--empty {
  flex-direction: column;
  gap: 8px;
  color: rgba(var(--ui-rgb),0.58);
  font-size: 13px;
}

.product-quick-view__media--empty i {
  color: rgba(var(--accent-rgb, 214, 179, 106), 0.82);
  font-size: 26px;
}

.product-quick-view__price {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.20);
  border-radius: 10px;
  background: rgba(7,9,13,0.72);
  color: var(--accent-light, #e5ca87);
  font-size: 18px;
  font-weight: 650;
  backdrop-filter: none;
}

.product-quick-view__body {
  display: grid;
  gap: 13px;
  padding-top: 16px;
}

.product-quick-view__badges,
.product-quick-view__meta,
.product-quick-view__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.product-quick-view__body h3 {
  margin: 0;
  color: var(--text);
  font-size: var(--type-card-title);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.product-quick-view__body p {
  margin: 0;
  color: rgba(var(--ui-rgb),0.72);
  font-size: var(--type-body);
  line-height: 1.55;
}

.product-quick-view__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ui-rgb),0.07);
  background: rgba(var(--ui-rgb),0.045);
  color: rgba(var(--ui-rgb),0.78);
  font-size: 12px;
  font-weight: 650;
}

.product-quick-view__meta > span > i {
  flex: 0 0 auto;
  color: rgba(var(--accent-rgb, 214, 179, 106), 0.88);
  font-size: 11px;
}

.product-quick-view__meta > span > span{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-quick-view__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: stretch;
  margin-top: 2px;
}

.product-quick-view__primary,
.product-quick-view__secondary,
.favorite-btn--quick,
.favorite-btn--quick.ui-btn {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 10px !important;
  transform: none !important;
}

.product-quick-view__primary,
.product-quick-view__secondary {
  padding: 0 14px !important;
  white-space: nowrap;
}

.favorite-btn--quick,
.favorite-btn--quick.ui-btn {
  width: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  border: 1px solid rgba(var(--ui-rgb),0.08);
}

.favorite-btn--quick:hover,
.favorite-btn--quick:focus-visible {
  transform: none !important;
}



@media (max-width: 520px) {
  

  .product-quick-view__panel {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: min(82vh, 720px);
    border-radius: 10px;
    transform: translateY(28px) scale(.985);
  }

  .product-quick-view.is-open .product-quick-view__panel {
    transform: translateY(0) scale(1);
  }

  .product-quick-view__head {
    padding: 15px 15px 12px;
  }

  .product-quick-view__content {
    padding: 14px 15px 16px;
  }

  .product-quick-view__media {
    border-radius: 8px;
  }

  .product-quick-view__body h3 {
    font-size: var(--type-card-title);
  }

  .product-quick-view__actions {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .product-quick-view__secondary {
    display: none !important;
  }

  .favorite-btn--quick,
  .favorite-btn--quick.ui-btn {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
  }
}

@media (max-width: 760px) {
  .site-toast-stack {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }

  .site-toast {
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    padding: 11px;
    border-radius: 10px;
  }

  .site-toast__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .site-empty-state,
  .profile-readonly-note.site-empty-state,
  .product-reviews-empty.site-empty-state {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 22px 18px;
  }
}

/* Profile drawer + skeleton loading */
.site-profile-drawer {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  justify-items: end;
  pointer-events: none;
  visibility: hidden;
}

.site-profile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.site-profile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.26);
  opacity: 0;
  transition: opacity .22s ease;
  backdrop-filter: none;
}

.site-profile-drawer.is-open .site-profile-drawer__backdrop {
  opacity: 1;
}

.site-profile-drawer__panel {
  position: relative;
  width: min(372px, calc(100vw - 24px));
  height: calc(100dvh - 24px);
  margin: 12px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(var(--ui-rgb),0.10);
  border-radius: 10px;
  background: var(--panel-bg);
  box-shadow: none;
  transform: translateX(22px) scale(.985);
  opacity: 0;
  transition: transform .24s ease, opacity .24s ease;
}

.site-profile-drawer.is-open .site-profile-drawer__panel {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.site-profile-drawer__head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
}

.site-profile-drawer__avatar {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.32);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.10);
  box-shadow: none;
}

.site-profile-drawer__avatar-img,
.site-profile-drawer__avatar-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-profile-drawer__avatar-img {
  object-fit: cover;
}

.site-profile-drawer__avatar-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--gold-button-text, #111111);
  background: var(--gold-gradient);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.03em;
}

.site-profile-drawer__avatar-fallback.is-visible,
.site-profile-drawer__avatar:not(:has(.site-profile-drawer__avatar-img)) .site-profile-drawer__avatar-fallback {
  display: flex;
}

.site-profile-drawer__identity {
  min-width: 0;
}

.site-profile-drawer__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: rgba(var(--accent-light-rgb, 229, 202, 135), 0.88);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-profile-drawer__identity h2 {
  margin: 0;
  color: var(--text);
  font-size: var(--type-card-title);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -.035em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-profile-drawer__identity p {
  margin: 4px 0 0;
  color: rgba(var(--ui-rgb),0.58);
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-profile-drawer__close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(var(--ui-rgb),0.08);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--ui-rgb),0.82);
  background: rgba(var(--ui-rgb),0.055);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.site-profile-drawer__close:hover,
.site-profile-drawer__close:focus-visible {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.28);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.10);
}

.site-profile-drawer__status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.site-profile-drawer__status,
.site-profile-drawer__premium {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(var(--ui-rgb),0.08);
  background: rgba(var(--ui-rgb),0.045);
  color: rgba(var(--ui-rgb),0.72);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.site-profile-drawer__status--premium,
.site-profile-drawer__status--admin,
.site-profile-drawer__premium {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.22);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.09);
  color: rgba(var(--accent-light-rgb, 229, 202, 135), 0.96);
}

.site-profile-drawer__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-self: start;
}

.site-profile-drawer__stat {
  min-width: 0;
  min-height: 52px;
  padding: 8px 6px;
  border: 1px solid rgba(var(--ui-rgb),0.075);
  border-radius: 10px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  background: rgba(var(--ui-rgb),0.04);
  color: rgba(var(--ui-rgb),0.70);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.site-profile-drawer__stat:hover,
.site-profile-drawer__stat:focus-visible {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.24);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.075);
}

.site-profile-drawer__stat i {
  color: rgba(var(--accent-light-rgb, 229, 202, 135), 0.95);
  font-size: 13px;
}

.site-profile-drawer__stat span {
  max-width: 100%;
  color: rgba(var(--ui-rgb),0.56);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-profile-drawer__stat strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -.04em;
}

.site-profile-drawer__stat.has-count {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.28);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.085);
}

.site-profile-drawer__nav {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-auto-rows: min-content;
  align-content: start;
  gap: 7px;
  padding: 0 2px 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb, 214, 179, 106), 0.25) transparent;
}

.site-profile-drawer__link {
  min-width: 0;
  min-height: 40px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  grid-template-areas: "icon title count";
  column-gap: 10px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(var(--ui-rgb),0.06);
  border-radius: 10px;
  background: rgba(var(--ui-rgb),0.032);
  color: rgba(var(--ui-rgb),0.88);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.site-profile-drawer__link:hover,
.site-profile-drawer__link:focus-visible {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.20);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.066);
}

.site-profile-drawer__link.has-count {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.18);
}

.site-profile-drawer__link > i {
  grid-area: icon;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--accent-light-rgb, 229, 202, 135), 0.96);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.10);
  font-size: 12px;
}

.site-profile-drawer__link > span {
  grid-area: title;
  min-width: 0;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-profile-drawer__link > small {
  display: none;
}

.site-profile-drawer__link-count {
  grid-area: count;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--ui-rgb),0.075);
  background: rgba(var(--ui-rgb),0.045);
  color: rgba(var(--accent-light-rgb, 229, 202, 135), 0.96);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: -.02em;
}

.site-profile-drawer__link-count--icon {
  min-width: 26px;
  width: 26px;
  padding: 0;
  color: rgba(var(--ui-rgb),0.52);
}

.site-profile-drawer__link-count--icon i {
  font-size: 11px;
}

.site-profile-drawer__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding-top: 4px;
}

.site-profile-drawer__open,
.site-profile-drawer__logout {
  min-height: 38px;
  padding: 0 11px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
}

.site-profile-drawer__open {
  background: var(--gold-button-bg);
  color: #111;
  box-shadow: none;
}

.site-profile-drawer__logout {
  border: 1px solid rgba(var(--ui-rgb),0.08);
  background: rgba(var(--ui-rgb),0.045);
  color: rgba(var(--ui-rgb),0.74);
}

.site-notifications-modal__skeleton {
  display: grid;
  gap: 10px;
}

.site-notification-skeleton {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(var(--ui-rgb),0.07);
  border-radius: 8px;
  background: var(--gray-panel-2, var(--panel-bg));
}

.site-notification-skeleton__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(var(--ui-rgb),0.065);
}

.site-notification-skeleton__body {
  display: grid;
  gap: 8px;
  align-content: center;
}

.site-notification-skeleton__line {
  height: 10px;
  width: 100%;
}

.site-notification-skeleton__line--title {
  width: 62%;
  height: 14px;
  background: rgba(var(--ui-rgb),0.075);
}

.site-notification-skeleton__line--short {
  width: 42%;
}

.sidebar__link.sidebar__link--notifications-unread::after,
.sidebar__link.sidebar__link--chat-unread::after {
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(10,12,16,0.92);
  box-shadow: none;
}

@media (max-width: 760px) {
  .site-profile-drawer {
    justify-items: stretch;
    align-items: end;
  }

  .site-profile-drawer__backdrop {
    background: rgba(0,0,0,0.34);
  }

  .site-profile-drawer__panel {
    width: auto;
    height: min(86dvh, 720px);
    margin: 0;
    border-radius: 10px 10px 0 0;
    transform: translateY(18px);
  }

  .site-profile-drawer.is-open .site-profile-drawer__panel {
    transform: translateY(0);
  }

  .site-profile-drawer__head {
    grid-template-columns: 54px minmax(0, 1fr) 40px;
  }

  .site-profile-drawer__avatar {
    width: 54px;
    height: 54px;
    border-radius: 8px;
  }

  .site-profile-drawer__stats {
    gap: 6px;
  }

  .site-profile-drawer__stat {
    min-height: 56px;
    padding: 8px 6px;
    border-radius: 10px;
  }

  .site-profile-drawer__nav {
    gap: 7px;
    align-content: start;
  }

  .site-profile-drawer__link {
    min-height: 42px;
    border-radius: 10px;
  }

  .site-profile-drawer__footer {
    grid-template-columns: 1fr;
  }

  .product-skeleton {
    aspect-ratio: 1 / 1.18;
    border-radius: 10px;
  }

  .product-skeleton__footer {
    grid-template-columns: 1fr;
  }
}

/* Compact markdown rendering in catalog cards and quick preview */
.product-quick-view__description strong{
  color: rgba(var(--ui-rgb),0.96);
  font-weight: 650;
}





.product-quick-view__description {
  display: grid;
  gap: 10px;
  color: rgba(var(--ui-rgb),0.72);
  font-size: var(--type-body);
  line-height: 1.55;
}

.product-quick-view__description p,
.product-quick-view__description ul,
.product-quick-view__description h4 {
  margin: 0;
}

.product-quick-view__description h4 {
  color: rgba(var(--ui-rgb),0.92);
  font-size: var(--type-card-heading);
  line-height: 1.3;
  font-weight: 650;
}

.product-quick-view__description ul {
  display: grid;
  gap: 7px;
  padding-left: 19px;
}

.product-quick-view__description li::marker {
  color: rgba(var(--accent-rgb, 214, 179, 106), 0.88);
}

/* Catalog Pro controls and views */
.catalog-pro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid rgba(var(--ui-rgb),0.07);
  border-radius: 8px;
  background: var(--panel-bg);

}

.catalog-pro__filters,
.catalog-pro__right,
.catalog-pro__views {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.catalog-pro__filters {
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.catalog-pro__chip,
.catalog-pro__view,
.catalog-pro__select {
  border: 1px solid rgba(var(--ui-rgb),0.075);
  background: var(--gray-panel-2, var(--panel-bg));
  color: rgba(var(--ui-rgb),0.74);
  box-shadow: none;
}

.catalog-pro__chip,
.catalog-pro__view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.catalog-pro__chip i,
.catalog-pro__view i,
.catalog-pro__select i {
  color: rgba(var(--accent-rgb, 214, 179, 106), 0.88);
}

.catalog-pro__chip:hover,
.catalog-pro__chip:focus-visible,
.catalog-pro__view:hover,
.catalog-pro__view:focus-visible,
.catalog-pro__chip.is-active,
.catalog-pro__view.is-active {
  color: var(--accent-light, #e5ca87);
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.26);
  background: rgba(var(--ui-rgb),0.065);
}

.catalog-pro__select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
}

.catalog-pro__select select {
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(var(--ui-rgb),0.86);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.catalog-pro__select select option {
  background: var(--panel-bg);
  color: var(--text);
}

.catalog-pro__view {
  width: 36px;
  min-width: 36px;
  padding: 0;
}





















@media (max-width: 860px) {
  .catalog-pro {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-pro__right {
    justify-content: space-between;
  }

  .catalog-pro__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .catalog-pro__filters::-webkit-scrollbar {
    display: none;
  }

  .catalog-pro__chip {
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .catalog-pro {
    margin-top: -2px;
    border-radius: 8px;
    padding: 8px;
  }

  .catalog-pro__chip span {
    font-size: 11px;
  }

  .catalog-pro__select {
    flex: 1 1 auto;
  }

  .catalog-pro__select select {
    width: 100%;
  }

  

  

  

  

  

  
}

/* Catalog sort dropdown polish */
.catalog-pro__sort {
  position: relative;
  flex: 0 0 auto;
  min-width: 190px;
  z-index: 20;
}

.catalog-pro__sort-toggle {
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(var(--ui-rgb),0.075);
  border-radius: 8px;
  background: var(--field-bg);
  color: rgba(var(--ui-rgb),0.9);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;

  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.catalog-pro__sort-toggle > i:first-child {
  color: rgba(var(--accent-rgb, 214, 179, 106), 0.95);
  font-size: 13px;
}

.catalog-pro__sort-toggle span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-pro__sort-chevron {
  flex: 0 0 auto;
  color: rgba(var(--accent-rgb, 214, 179, 106), 0.9);
  font-size: 10px;
  transition: transform .18s ease;
}

.catalog-pro__sort.is-open .catalog-pro__sort-chevron {
  transform: rotate(180deg);
}

.catalog-pro__sort-toggle:hover,
.catalog-pro__sort-toggle:focus-visible,
.catalog-pro__sort.is-open .catalog-pro__sort-toggle {
  color: var(--accent-light, #e5ca87);
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.28);
  background: var(--surface-hover);
  outline: none;
}

.catalog-pro__sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(230px, 78vw);

  border: 1px solid rgba(var(--ui-rgb),0.08);
  border-radius: 10px;
  background: var(--panel-bg);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.catalog-pro__sort-option {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;

  

  color: rgba(var(--ui-rgb),0.76);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .16s ease, color .16s ease;
}

.catalog-pro__sort-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-pro__sort-option i {
  opacity: 0;
  color: rgba(var(--accent-rgb, 214, 179, 106), 0.95);
  font-size: 11px;
}

.catalog-pro__sort-option:hover,
.catalog-pro__sort-option:focus-visible,
.catalog-pro__sort-option.is-active {
  color: var(--accent-light, #e5ca87);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.11);
  outline: none;
}

.catalog-pro__sort-option.is-active i {
  opacity: 1;
}

@media (max-width: 860px) {
  .catalog-pro__sort {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .catalog-pro__sort-toggle {
    min-height: 36px;
    padding-inline: 11px;
  }

  .catalog-pro__sort-menu {
    right: auto;
    left: 0;
    width: min(230px, calc(100vw - 32px));
  }
}

/* Harmonized list catalog cards */






































/* Stable list-view layout: badges stay above the title and never overlap it */


/* Clickable product card title links */






/* Compact tile cleanup: only for compact catalog view */
















/* List-view action block: keep price visible above the action button */


/* Compact row catalog view: lighter list layout */


html,
body {
  background: var(--bg-main) !important;
  background-image: none !important;
}

body::before,
body::after {
  background: none !important;
}

/* Real cards/panels keep one shared surface. */
.ui-card,
.auth-entry-card,
.auth-shell-card,
.auth-modal__dialog,
.catalog-pro,
.profile-aside__card,
.profile-card-section,
.profile-info-card,
.profile-library-card,
.profile-download-row,
.profile-purchase-item,
.profile-connection-card,
.profile-notification-item,
.profile-login-event,
.profile-security-link,
.site-notifications-modal__dialog,
.site-profile-drawer__panel,
.product-quick-view__panel,
.mobile-menu__panel,
.site-toast,
.site-empty-state,
.products__empty,
.sidebar__card,
.maintenance-screen__card,
.intro-promo,
.intro-channel-card,
.site-footer__inner{
  background: var(--gray-panel) !important;
  background-image: none !important;
  border-color: var(--border) !important;
}

/* Thin wrappers and helper rows should not create a second rectangle. */
.catalog-search__panel,
.catalog-pro__filters,
.catalog-pro__right,
.catalog-pro__views,
.product-quick-view__meta,
.product-quick-view__actions,
.site-footer,
.site-footer__bar,
.site-footer__bottom,
.site-live-visitors,
.site-live-visitors--profile,
.intro-promo__surface{
  background: transparent !important;
  background-image: none !important;
  box-shadow: none;
}

.catalog-search__field,
.catalog-pro__chip,
.catalog-pro__view,
.catalog-pro__sort-toggle,
.catalog-pro__sort-menu,
.catalog-pro__sort-option,
.profile-nav-link,
.site-profile-drawer__stat,
.site-profile-drawer__link,
.site-profile-drawer__logout,
.product-quick-view__description,
.site-notification,
.site-footer__link,
.product-quick-view__close,
.product-quick-view__secondary,
.ui-btn--dark,
.site-btn--secondary {
  background: var(--gray-control) !important;
  background-image: none !important;
  border-color: var(--border) !important;
}

.catalog-search__field:focus-within,
.catalog-pro__chip:hover,
.catalog-pro__chip:focus-visible,
.catalog-pro__view:hover,
.catalog-pro__view:focus-visible,
.catalog-pro__sort-toggle:hover,
.catalog-pro__sort-toggle:focus-visible,
.catalog-pro__sort.is-open .catalog-pro__sort-toggle,
.catalog-pro__sort-option:hover,
.catalog-pro__sort-option:focus-visible,
.profile-nav-link:hover,
.profile-nav-link:focus-visible,
.site-profile-drawer__link:hover,
.site-profile-drawer__link:focus-visible,
.site-profile-drawer__logout:hover,
.site-profile-drawer__logout:focus-visible,
.site-footer__link:hover,
.site-footer__link:focus-visible,
.ui-btn--dark:hover,
.site-btn--secondary:hover {
  background: var(--gray-control-hover) !important;
  background-image: none !important;
}

.catalog-pro__chip.is-active,
.catalog-pro__view.is-active,
.catalog-pro__sort-option.is-active,
.ui-badge--gold,
.ui-badge--gold-soft,
.profile-library-badge--premium,
.site-profile-drawer__premium,
.site-profile-drawer__status--premium{
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.11) !important;
  background-image: none !important;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.22) !important;
}

/* Product cards: one card surface, black readability overlay, no separate price box. */












.favorite-btn {
  background: rgba(18, 18, 18, 0.72) !important;
  background-image: none !important;
  border-color: var(--border) !important;
}







/* Telegram/announcement badges stay neutral, not gold. */
.intro-channel-card__eyebrow,
.intro-promo--channel .intro-channel-card__eyebrow,
.intro-promo--channel .ui-badge,
.sidebar__card .ui-badge,
.page-rail .ui-badge {
  background: var(--gray-control) !important;
  background-image: none !important;
  border-color: var(--border) !important;
  color: rgba(var(--ui-rgb), 0.74) !important;
}

.intro-channel-card__eyebrow i,
.intro-promo--channel .intro-channel-card__eyebrow i,
.intro-promo--channel .ui-badge i,
.sidebar__card .ui-badge i,
.page-rail .ui-badge i {
  color: rgba(var(--ui-rgb), 0.74) !important;
}

/* Overlays are allowed only as overlays. */
.site-notifications-modal__backdrop,
.site-profile-drawer__backdrop,
.product-quick-view__backdrop,
.auth-modal__backdrop {
  background: rgba(0, 0, 0, 0.66) !important;
  background-image: none !important;
}

/* Announcement widgets: compact static cards. */
.intro-promo,
.intro-promo--channel,
.intro-promo--product,
.page-rail .intro-promo,
.page-rail .intro-promo--channel,
.page-rail .intro-promo--product {
  position: relative !important;
  width: 100%;
  padding: 0 !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  background: var(--gray-panel) !important;
  background-image: none !important;
  box-shadow: none;
  overflow: hidden !important;
  transition: none;
}

.intro-promo::before,
.intro-promo--channel::before,
.intro-promo--product::before,
.page-rail .intro-promo::before,
.page-rail .intro-promo--channel::before,
.page-rail .intro-promo--product::before {
  content: none !important;
  display: none !important;
}

.intro-promo::after,
.intro-promo--channel::after,
.intro-promo--product::after,
.page-rail .intro-promo::after,
.page-rail .intro-promo--channel::after,
.page-rail .intro-promo--product::after {
  content: none !important;
  display: none !important;
}

.intro-promo:hover,
.page-rail .intro-promo:hover {
  transform: none;
  box-shadow: none;
}

.intro-promo__surface,
.page-rail .intro-promo__surface {
  position: relative !important;
  z-index: 1 !important;
  display: grid;
  gap: 12px;
  padding: 16px !important;
  border-radius: 8px;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none;
}

.intro-promo__surface::before,
.intro-promo__surface::after,
.page-rail .intro-promo__surface::before,
.page-rail .intro-promo__surface::after {
  display: none !important;
  content: none !important;
}

.intro-promo__eyebrow,
.intro-channel-card__eyebrow,
.page-rail .intro-promo__eyebrow,
.page-rail .intro-channel-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ui-rgb), 0.10) !important;
  background: rgba(var(--ui-rgb), 0.055) !important;
  background-image: none !important;
  color: rgba(var(--ui-rgb), 0.86) !important;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  box-shadow: none;
}

.intro-promo__eyebrow i,
.intro-channel-card__eyebrow i,
.page-rail .intro-promo__eyebrow i,
.page-rail .intro-channel-card__eyebrow i {
  color: rgba(var(--accent-rgb, 214, 179, 106), 0.92) !important;
}

.intro-promo__main,
.page-rail .intro-promo__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.intro-promo__code,
.page-rail .intro-promo__code {
  min-width: 0;
  color: var(--accent-light, #e5ca87) !important;
  font-size: 18px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  text-shadow: none !important;
}

.intro-promo__discount,
.page-rail .intro-promo__discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 34px;
  padding: 0 12px;
  border: 0 !important;
  border-radius: 10px;
  background: var(--gold-gradient, linear-gradient(180deg, var(--accent-light, #e5ca87) 0%, var(--accent-dark, #c5913d) 100%)) !important;
  background-image: var(--gold-gradient, linear-gradient(180deg, var(--accent-light, #e5ca87) 0%, var(--accent-dark, #c5913d) 100%)) !important;
  color: #111111 !important;
  font-size: 17px;
  font-weight: 650;
  line-height: 1;
  box-shadow: none;
}

.intro-promo__text,
.intro-channel-card__text,
.page-rail .intro-promo__text,
.page-rail .intro-channel-card__text {
  margin: 0;
  color: rgba(var(--ui-rgb), 0.74) !important;
  font-size: 12px;
  line-height: 1.55;
}

.intro-channel-card,
.page-rail .intro-channel-card {
  color: inherit;
}

.intro-channel-card__title,
.page-rail .intro-channel-card__title {
  display: block;
  color: rgba(var(--ui-rgb), 0.94) !important;
  font-size: var(--type-card-title);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.intro-channel-card__button,
.page-rail .intro-channel-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(var(--ui-rgb), 0.08) !important;
  border-radius: 10px;
  background: rgba(var(--ui-rgb), 0.06) !important;
  background-image: none !important;
  color: rgba(var(--ui-rgb), 0.90) !important;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.intro-channel-card__button:hover,
.intro-channel-card__button:focus-visible,
.page-rail .intro-channel-card__button:hover,
.page-rail .intro-channel-card__button:focus-visible {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.22) !important;
  background: rgba(var(--ui-rgb), 0.085) !important;
  color: var(--accent-light, #e5ca87) !important;
  outline: none;
}

.intro-channel-card__button i,
.page-rail .intro-channel-card__button i {
  font-size: 12px;
}

.intro-promo--channel .intro-channel-card__eyebrow,
.intro-promo--channel .ui-badge,
.page-rail .intro-promo--channel .intro-channel-card__eyebrow,
.page-rail .intro-promo--channel .ui-badge {
  background: rgba(var(--ui-rgb), 0.055) !important;
  background-image: none !important;
  border-color: rgba(var(--ui-rgb), 0.10) !important;
  color: rgba(var(--ui-rgb), 0.78) !important;
}

.intro-promo--channel .intro-channel-card__eyebrow i,
.intro-promo--channel .ui-badge i,
.page-rail .intro-promo--channel .intro-channel-card__eyebrow i,
.page-rail .intro-promo--channel .ui-badge i {
  color: rgba(var(--ui-rgb), 0.78) !important;
}

/* List-view price/action final alignment: keep price tied to the button, not floating. */


/* Mini action buttons final pass: compact gray-black controls with readable gold accents. */










.favorite-btn,
.favorite-btn.ui-btn,
.favorite-btn--quick,
.favorite-btn--quick.ui-btn {
  background: rgba(20, 20, 20, 0.88) !important;
  background-image: none !important;
  border: 1px solid rgba(var(--ui-rgb), 0.095) !important;
  color: rgba(var(--accent-rgb, 214, 179, 106), 0.88) !important;
  box-shadow: none;
  transform: none !important;
}

.favorite-btn i,
.favorite-btn.ui-btn i,
.favorite-btn--quick i,
.favorite-btn--quick.ui-btn i {
  color: currentColor !important;
  opacity: 1 !important;
}

.favorite-btn:hover,
.favorite-btn:focus-visible,
.favorite-btn.ui-btn:hover,
.favorite-btn.ui-btn:focus-visible,
.favorite-btn--quick:hover,
.favorite-btn--quick:focus-visible,
.favorite-btn--quick.ui-btn:hover,
.favorite-btn--quick.ui-btn:focus-visible {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.105) !important;
  background-image: none !important;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.30) !important;
  color: var(--accent-light, #e5ca87) !important;
  box-shadow: none;
  transform: none !important;
}

.favorite-btn.is-active,
.favorite-btn.ui-btn.is-active,
.favorite-btn--quick.is-active,
.favorite-btn--quick.ui-btn.is-active {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.16) !important;
  background-image: none !important;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.34) !important;
  color: var(--accent-light, #e5ca87) !important;
  box-shadow: none;
}

.favorite-btn.is-active:hover,
.favorite-btn.is-active:focus-visible,
.favorite-btn.ui-btn.is-active:hover,
.favorite-btn.ui-btn.is-active:focus-visible,
.favorite-btn--quick.is-active:hover,
.favorite-btn--quick.is-active:focus-visible,
.favorite-btn--quick.ui-btn.is-active:hover,
.favorite-btn--quick.ui-btn.is-active:focus-visible {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.22) !important;
  background-image: none !important;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.44) !important;
  color: var(--accent-light, #e5ca87) !important;
}

.catalog-pro__view.is-active,
.catalog-pro__sort-option.is-active {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.13) !important;
  background-image: none !important;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.30) !important;
  color: var(--gold) !important;
}



/* Favorite icons visibility restore */
.favorite-btn,
.favorite-btn.ui-btn,
.favorite-btn--quick,
.favorite-btn--quick.ui-btn,
.favorite-btn--product,
.favorite-btn--product.ui-btn {
  background: rgba(18, 18, 18, 0.92) !important;
  background-image: none !important;
  border: 1px solid rgba(var(--ui-rgb), 0.11) !important;
  color: var(--accent-light, #e5ca87) !important;
  box-shadow: none;
  transform: none !important;
}

.favorite-btn i,
.favorite-btn.ui-btn i,
.favorite-btn--quick i,
.favorite-btn--quick.ui-btn i,
.favorite-btn--product i,
.favorite-btn--product.ui-btn i,
.favorite-btn .fa-heart,
.favorite-btn--quick .fa-heart,
.favorite-btn--product .fa-heart {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1em !important;
  min-width: 1em !important;
  height: 1em !important;
  color: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  line-height: 1 !important;
}

.favorite-btn:hover,
.favorite-btn:focus-visible,
.favorite-btn.ui-btn:hover,
.favorite-btn.ui-btn:focus-visible,
.favorite-btn--quick:hover,
.favorite-btn--quick:focus-visible,
.favorite-btn--quick.ui-btn:hover,
.favorite-btn--quick.ui-btn:focus-visible,
.favorite-btn--product:hover,
.favorite-btn--product:focus-visible,
.favorite-btn--product.ui-btn:hover,
.favorite-btn--product.ui-btn:focus-visible {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.11) !important;
  background-image: none !important;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.34) !important;
  color: var(--accent-light, #e5ca87) !important;
  box-shadow: none;
  transform: none !important;
}

.favorite-btn.is-active,
.favorite-btn.ui-btn.is-active,
.favorite-btn--quick.is-active,
.favorite-btn--quick.ui-btn.is-active,
.favorite-btn--product.is-active,
.favorite-btn--product.ui-btn.is-active {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.16) !important;
  background-image: none !important;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.40) !important;
  color: var(--accent-light, #e5ca87) !important;
  box-shadow: none;
}

.favorite-btn.is-active i,
.favorite-btn.ui-btn.is-active i,
.favorite-btn--quick.is-active i,
.favorite-btn--quick.ui-btn.is-active i,
.favorite-btn--product.is-active i,
.favorite-btn--product.ui-btn.is-active i {
  color: currentColor !important;
  opacity: 1 !important;
}

.favorite-btn:disabled,
.favorite-btn.ui-btn:disabled,
.favorite-btn--quick:disabled,
.favorite-btn--quick.ui-btn:disabled,
.favorite-btn--product:disabled,
.favorite-btn--product.ui-btn:disabled {
  opacity: 0.86 !important;
  color: var(--accent-color, #d6b36a) !important;
  cursor: wait;
}

/* Description text should not have its own surface/background */
.product-quick-view__description,
.product-quick-view__body p{
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none;
}

.product-quick-view__description {
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Catalog view switch removed: only tile grid is available */
.catalog-pro__views,
.catalog-pro__view {
  display: none !important;
}





/* Favorite buttons active-state final fix */
.favorite-btn,
.favorite-btn.ui-btn,
.favorite-btn--quick,
.favorite-btn--quick.ui-btn {
  background: rgba(18, 18, 18, 0.92) !important;
  background-image: none !important;
  border-color: rgba(var(--ui-rgb), 0.12) !important;
  color: rgba(var(--ui-rgb), 0.62) !important;
  box-shadow: none;
  transform: none !important;
}

.favorite-btn i,
.favorite-btn.ui-btn i,
.favorite-btn--quick i,
.favorite-btn--quick.ui-btn i,
.favorite-btn .fa-heart,
.favorite-btn--quick .fa-heart {
  color: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

.favorite-btn:hover,
.favorite-btn:focus-visible,
.favorite-btn.ui-btn:hover,
.favorite-btn.ui-btn:focus-visible,
.favorite-btn--quick:hover,
.favorite-btn--quick:focus-visible,
.favorite-btn--quick.ui-btn:hover,
.favorite-btn--quick.ui-btn:focus-visible {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.10) !important;
  background-image: none !important;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.32) !important;
  color: var(--accent-color, #d6b36a) !important;
  box-shadow: none;
  transform: none !important;
}

.favorite-btn.is-active,
.favorite-btn.ui-btn.is-active,
.favorite-btn--quick.is-active,
.favorite-btn--quick.ui-btn.is-active,
.favorite-btn[aria-pressed="true"],
.favorite-btn.ui-btn[aria-pressed="true"],
.favorite-btn--quick[aria-pressed="true"],
.favorite-btn--quick.ui-btn[aria-pressed="true"],
.favorite-btn[data-favorite-active="1"],
.favorite-btn--quick[data-favorite-active="1"] {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.16) !important;
  background-image: none !important;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.45) !important;
  color: var(--accent-light, #e5ca87) !important;
  box-shadow: none;
  transform: none !important;
}

.favorite-btn.is-active i,
.favorite-btn.ui-btn.is-active i,
.favorite-btn--quick.is-active i,
.favorite-btn--quick.ui-btn.is-active i,
.favorite-btn[aria-pressed="true"] i,
.favorite-btn--quick[aria-pressed="true"] i,
.favorite-btn[data-favorite-active="1"] i,
.favorite-btn--quick[data-favorite-active="1"] i {
  color: var(--accent-light, #e5ca87) !important;
  opacity: 1 !important;
}

/* Auth anti-bot honeypot fields */
.auth-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Catalog sort dropdown spacing fix */
.catalog-pro__sort-menu {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 7px !important;
}

.catalog-pro__sort-menu[hidden] {
  display: none !important;
}

.catalog-pro__sort-option {
  min-height: 34px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  background-image: none !important;
}

.catalog-pro__sort-option:hover,
.catalog-pro__sort-option:focus-visible {
  background: rgba(var(--ui-rgb), 0.045) !important;
  background-image: none !important;
  border-color: rgba(var(--ui-rgb), 0.08) !important;
}

.catalog-pro__sort-option.is-active {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.10) !important;
  background-image: none !important;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.24) !important;
}

/* Auth modal inner surface cleanup */
.auth-modal .auth-panels,
.auth-modal .auth-panel,
.auth-modal .auth-credentials-form {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none;
}

.auth-modal .auth-panel {
  padding: 0 !important;
}

.auth-modal .auth-field__input {
  color-scheme: dark;
}

.auth-modal .auth-field__input:-webkit-autofill,
.auth-modal .auth-field__input:-webkit-autofill:hover,
.auth-modal .auth-field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 9999s ease-out 0s;
}

/* Profile security badges visibility fix */
.profile-login-event__recent,
.profile-login-event__recent.ui-badge,
.profile-login-event__recent.ui-badge--gold,
.profile-session-item__badge,
.profile-session-item__badge.ui-badge,
.profile-active-sessions .profile-session-item__badge.ui-badge {
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.34) !important;
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.18) !important;
  background-image: none !important;
  color: var(--accent-light, #e5ca87) !important;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: uppercase;
  box-shadow: none;
}

.profile-login-event.is-recent .profile-login-event__recent {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.42) !important;
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.22) !important;
  color: var(--accent-light, #e5ca87) !important;
}

.profile-login-event__recent i,
.profile-session-item__badge i,
.profile-login-event__recent svg,
.profile-session-item__badge svg {
  color: currentColor !important;
}

/* Toast notification contrast restore */
.site-toast {
  border-color: rgba(var(--ui-rgb), 0.10) !important;
  background: rgba(18, 18, 18, 0.96) !important;
  background-image: none !important;
}

.site-toast--success {
  border-color: rgba(91, 216, 126, 0.36) !important;
  background:
    linear-gradient(135deg, rgba(35, 108, 60, 0.24), rgba(18, 18, 18, 0.96)) !important;
}

.site-toast--success .site-toast__icon {
  color: #102317 !important;
  background: linear-gradient(135deg, #a5f4b8, #43ce78) !important;
}

.site-toast--error {
  border-color: rgba(255, 114, 95, 0.36) !important;
  background:
    linear-gradient(135deg, rgba(118, 45, 39, 0.24), rgba(18, 18, 18, 0.96)) !important;
}

.site-toast--error .site-toast__icon {
  color: #2a0b07 !important;
  background: linear-gradient(135deg, #ffb3a4, #ff725f) !important;
}

.site-toast--warning {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.38) !important;
  background:
    linear-gradient(135deg, rgba(var(--accent-dark-rgb, 197, 145, 61), 0.25), rgba(18, 18, 18, 0.96)) !important;
}

.site-toast--warning .site-toast__icon,
.site-toast--info .site-toast__icon {
  color: #111111 !important;
  background: var(--gold-gradient) !important;
}

.site-toast__title {
  color: rgba(var(--ui-rgb), 0.96) !important;
}

.site-toast__text {
  color: rgba(var(--ui-rgb), 0.78) !important;
}

/* Push notifications */
.profile-push-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 18px 0 20px;
  padding: 16px;
  border: 1px solid rgba(var(--ui-rgb),0.08);
  border-radius: 10px;
  background: rgba(18,18,18,0.92);
}

.profile-push-card.is-enabled {
  border-color: rgba(94, 214, 143, 0.28);
  background: rgba(16, 27, 19, 0.92);
}

.profile-push-card.is-unavailable {
  opacity: 0.78;
}

.profile-push-card__icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.22);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.10);
  color: var(--accent-dark, #c5913d);
  font-size: 17px;
}

.profile-push-card.is-enabled .profile-push-card__icon {
  border-color: rgba(94, 214, 143, 0.28);
  background: rgba(94, 214, 143, 0.12);
  color: #8ee0aa;
}

.profile-push-card__body {
  min-width: 0;
}

.profile-push-card__title {
  color: rgba(var(--ui-rgb),0.96);
  font-size: var(--type-card-heading);
  font-weight: 650;
  margin-bottom: 4px;
}

.profile-push-card__text {
  color: rgba(var(--ui-rgb),0.72);
  font-size: var(--type-body);
  line-height: 1.45;
}

.profile-push-card__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-push-card__toggle,
.profile-push-card__test {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(var(--ui-rgb),0.09);
  background: rgba(32,32,32,0.92);
  color: rgba(var(--ui-rgb),0.92);
  box-shadow: none;
}

.profile-push-card__toggle:not(:disabled):hover,
.profile-push-card__test:not(:disabled):hover {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.28);
  color: var(--accent-light, #e5ca87);
}

.profile-push-card__toggle.is-active {
  border-color: rgba(94, 214, 143, 0.30);
  background: rgba(94, 214, 143, 0.12);
  color: #91e4ad;
}

.profile-push-card__test {
  color: var(--accent-light, #e5ca87);
}

.site-notifications-modal__footer {
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .profile-push-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-push-card__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .profile-push-card__actions .ui-btn {
    flex: 1 1 auto;
  }
}

/* One-time Push opt-in prompt */
.site-push-prompt {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147482500;
  width: min(380px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: flex-start;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.22);
  background: rgba(22, 22, 22, 0.96);
  color: rgba(var(--ui-rgb), 0.96);
  box-shadow: none;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, border-color .22s ease;
}

.site-push-prompt.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.site-push-prompt::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 20% 0%, rgba(var(--accent-rgb, 214, 179, 106), 0.13), transparent 42%);
}

.site-push-prompt__icon,
.site-push-prompt__close,
.site-push-prompt__enable,
.site-push-prompt__later {
  position: relative;
  z-index: 1;
}

.site-push-prompt__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.26);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.14);
  color: var(--accent-light, #e5ca87);
  font-size: 16px;
}

.site-push-prompt__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.site-push-prompt__title {
  margin: 1px 0 5px;
  color: rgba(var(--ui-rgb), 0.98);
  font-size: var(--type-card-heading);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.site-push-prompt__text {
  color: rgba(var(--ui-rgb), 0.74);
  font-size: var(--type-body);
  line-height: 1.4;
}

.site-push-prompt__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.site-push-prompt__enable,
.site-push-prompt__later,
.site-push-prompt__close {
  border: 0;
  font-family: inherit;
  cursor: pointer;
  box-shadow: none;
}

.site-push-prompt__enable {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 8px;
  background: var(--gold-gradient, linear-gradient(135deg, var(--accent-light, #e5ca87), var(--accent-dark, #c5913d)));
  color: #111111;
  font-size: 13px;
  font-weight: 650;
}

.site-push-prompt__later {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(var(--ui-rgb), 0.09);
  background: rgba(var(--ui-rgb), 0.045);
  color: rgba(var(--ui-rgb), 0.82);
  font-size: 13px;
  font-weight: 650;
}

.site-push-prompt__enable:hover,
.site-push-prompt__later:hover,
.site-push-prompt__close:hover {
  filter: brightness(1.06);
}

.site-push-prompt__close {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(var(--ui-rgb), 0.045);
  color: rgba(var(--ui-rgb), 0.66);
}

@media (max-width: 720px) {
  .site-push-prompt {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    border-radius: 8px;
    padding: 13px;
  }

  .site-push-prompt__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-push-prompt__enable,
  .site-push-prompt__later {
    width: 100%;
  }
}

/* Auth modal visual redesign */
.auth-modal__dialog {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb, 214, 179, 106), 0.34) rgba(var(--ui-rgb), 0.04);
}

.auth-modal__dialog::-webkit-scrollbar {
  width: 8px;
}

.auth-modal__dialog::-webkit-scrollbar-track {
  background: rgba(var(--ui-rgb), 0.04);
}

.auth-modal__dialog::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.32);
}

.auth-modal .auth-entry-card__eyebrow,
.auth-modal .auth-sheet__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb, 214, 179, 106), 0.22);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.09);
  color: var(--accent-light, #e5ca87);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-modal .auth-entry-card__eyebrow::before {
  content: "";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
}

.auth-modal .auth-sheet__eyebrow::before {
  content: "";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
}

.auth-modal .auth-sheet--social .auth-sheet__eyebrow::before {
  content: "";
}

.auth-modal .auth-field__input {
  min-height: 44px;
  border-radius: 10px;
  border-color: var(--field-border);
  background: var(--field-bg);
  color: var(--text);
}

.auth-modal .auth-field__input:hover {
  border-color: var(--field-border-hover);
  background: rgba(var(--ui-rgb), 0.06);
}

.auth-modal .auth-field__input:focus {
  border-color: var(--field-border-focus);
  background: var(--field-bg-focus);
  box-shadow: none;
}

.auth-modal .auth-submit,
.auth-modal .auth-btn {
  min-height: 45px;
  border-radius: 10px;
}

.auth-modal .auth-modal__tabs {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: initial;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(var(--ui-rgb), 0.07);
  background: rgba(var(--ui-rgb), 0.045);
}

.auth-modal .auth-modal__tab {
  min-height: 36px;
  border-radius: 8px;
  font-size: 13px;
}

.auth-modal .auth-modal__tab:hover {
  transform: none;
}

.auth-modal .auth-modal__tab.is-active {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.15);
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.28);
  color: var(--accent-light, #e5ca87);
}

.auth-modal .auth-social-btn {
  min-height: 56px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(var(--ui-rgb), 0.075);
  background: rgba(var(--ui-rgb), 0.045);
}

.auth-modal .auth-social-btn:hover,
.auth-modal .auth-social-btn:focus-visible {
  transform: none;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.22);
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.075);
}

.auth-modal .auth-social-btn__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.11);
  color: var(--accent-light, #e5ca87);
}

.auth-modal .auth-hint {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(var(--ui-rgb), 0.07);
  background: rgba(var(--ui-rgb), 0.035);
  color: rgba(var(--ui-rgb), 0.70);
  font-size: 12px;
  line-height: 1.5;
}

@media (min-width: 861px) {
  .auth-modal {
    padding: 24px !important;
  }

  .auth-modal__dialog {
    display: grid;
    grid-template-columns: minmax(360px, 0.94fr) minmax(420px, 1.06fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
    width: min(1080px, calc(100vw - 48px)) !important;
    max-width: 1080px !important;
    height: min(760px, calc(100vh - 48px)) !important;
    max-height: calc(100vh - 48px) !important;
    padding: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: rgba(15, 15, 16, 0.98) !important;
  }

  .auth-modal__close {
    top: 18px !important;
    right: 18px !important;
    z-index: 8;
    background: rgba(var(--ui-rgb), 0.06);
  }

  .auth-modal__header {
    position: relative;
    grid-column: 1;
    grid-row: 1 / span 2;
    height: 100%;
    min-height: 0;
    margin: 0 !important;
    padding: clamp(28px, 3vw, 42px) !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    gap: 13px !important;
    overflow: hidden;
    border-right: 1px solid rgba(var(--ui-rgb), 0.07);
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.20) 40%, rgba(0, 0, 0, 0.86) 100%),
      url("../img/auth-visual.svg") center / cover no-repeat,
      #101010;
  }

  .auth-modal__header::before,
  .auth-modal__header::after {
    display: none !important;
    content: none !important;
  }

  .auth-modal__header > * {
    position: relative;
    z-index: 2;
  }

  .auth-modal__title {
    max-width: 340px;
    font-size: var(--type-section-title) !important;
    line-height: .98 !important;
    letter-spacing: -0.055em;
  }

  .auth-modal__text {
    max-width: 340px !important;
    font-size: var(--type-body) !important;
    line-height: 1.58 !important;
    color: rgba(var(--ui-rgb), 0.76) !important;
  }

  .auth-modal .auth-status {
    grid-column: 2;
    grid-row: 1;
    margin: 26px 30px 0;
  }

  .auth-modal__layout,
  .auth-modal__layout.auth-modal__layout--single {
    grid-column: 2;
    grid-row: 2;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    align-self: stretch;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 28px 30px 30px !important;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-rgb, 214, 179, 106), 0.26) rgba(var(--ui-rgb), 0.035);
  }

  .auth-modal .auth-status + .auth-modal__layout {
    padding-top: 18px !important;
  }

  .auth-modal__layout::-webkit-scrollbar {
    width: 8px;
  }

  .auth-modal__layout::-webkit-scrollbar-track {
    background: rgba(var(--ui-rgb), 0.035);
  }

  .auth-modal__layout::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(var(--accent-rgb, 214, 179, 106), 0.26);
  }

  .auth-modal .auth-sheet {
    width: 100%;
    min-width: 0;
    border-radius: 10px;
    border-color: rgba(var(--ui-rgb), 0.075);
    background: rgba(var(--ui-rgb), 0.035);
  }

  .auth-modal .auth-sheet--credentials {
    padding: 20px;
  }

  .auth-modal .auth-sheet--social {
    padding: 15px;
  }

  .auth-modal .auth-sheet--social .auth-sheet__title,
  .auth-modal .auth-sheet--social .auth-sheet__text {
    display: none;
  }

  .auth-modal .auth-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 11px;
  }

  .auth-modal .auth-panel-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
}

@media (max-width: 860px) {
  .auth-modal__header {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 76px 58px 22px 20px !important;
    border-radius: 10px;
    border: 1px solid rgba(var(--ui-rgb), 0.07);
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.72) 100%),
      url("../img/auth-visual.svg") center / cover no-repeat,
      #101010;
  }

  .auth-modal__header::before,
  .auth-modal__header::after {
    display: none !important;
    content: none !important;
  }

  .auth-modal .auth-sheet {
    background: rgba(var(--ui-rgb), 0.035) !important;
    border-color: rgba(var(--ui-rgb), 0.07) !important;
  }
}

@media (max-width: 520px) {
  .auth-modal .auth-modal__tabs {
    grid-template-columns: 1fr 1fr !important;
  }

  .auth-modal .auth-sheet__text {
    display: none;
  }

  .auth-modal .auth-social-grid {
    grid-template-columns: 1fr;
  }
}

.product-quick-view__meta .fa-star{
  color: rgba(var(--accent-rgb, 214, 179, 106), 0.95);
}

/* Auth modal mobile close visibility fix */
.auth-modal__close {
  z-index: 60;
}

@media (max-width: 860px) {
  .auth-modal__dialog {
    position: relative !important;
  }

  .auth-modal__close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 90 !important;
    width: 42px !important;
    height: 42px !important;
    color: rgba(var(--ui-rgb), 0.92) !important;
    border-color: rgba(var(--ui-rgb), 0.16) !important;
    background: rgba(18, 18, 19, 0.82) !important;
    backdrop-filter: none;
  }

  .auth-modal__close:hover,
  .auth-modal__close:focus-visible {
    color: var(--accent-light, #e5ca87) !important;
    border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.30) !important;
    background: rgba(24, 24, 25, 0.92) !important;
    transform: none !important;
  }

  .auth-modal__header {
    padding-right: 74px !important;
  }
}

@media (max-width: 430px) {
  .auth-modal__close {
    top: 12px !important;
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
  }

  .auth-modal__header {
    padding-right: 68px !important;
  }
}

/* Unified tooltip and mini-popover polish */
.sidebar__nav--pretty > .sidebar__link,
.sidebar__categories .sidebar__link,
.sidebar__link,
.site-auth-rail__button,
.site-auth-rail__logout {
  background: rgba(22, 22, 22, 0.92);
  border-color: rgba(var(--ui-rgb), 0.085);
  color: rgba(var(--accent-light-rgb, 229, 202, 135), 0.92);
  box-shadow: none;
}

.sidebar__nav--pretty > .sidebar__link:hover,
.sidebar__categories .sidebar__link:hover,
.sidebar__link:hover,
.sidebar__nav--pretty > .sidebar__link:focus-visible,
.sidebar__categories .sidebar__link:focus-visible,
.sidebar__link:focus-visible,
.site-auth-rail__button:hover,
.site-auth-rail__button:focus-visible,
.site-auth-rail__button.is-active,
.site-auth-rail__logout:hover,
.site-auth-rail__logout:focus-visible {
  transform: none;
  background: rgba(28, 28, 28, 0.96);
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.28);
  color: var(--accent-light, #e5ca87);
}

.sidebar__nav--pretty > .sidebar__link.sidebar__link--active,
.sidebar__categories .sidebar__link.sidebar__link--active,
.sidebar__link.sidebar__link--active {
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.12);
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.34);
  color: var(--accent-light, #e5ca87);
  box-shadow: none;
}

.sidebar__nav--pretty > .sidebar__link span,
.sidebar__categories .sidebar__link span,
.sidebar__link span,
.site-auth-rail__tooltip,
.site-auth-rail__logout::after,
.sidebar__brand-meta {
  border-radius: 10px;
  border: 1px solid rgba(var(--ui-rgb), 0.105);
  background: rgba(20, 20, 20, 0.98);
  color: rgba(var(--ui-rgb), 0.96);
  box-shadow: none;
  backdrop-filter: none;
}

.sidebar__nav--pretty > .sidebar__link span,
.sidebar__categories .sidebar__link span,
.sidebar__link span,
.site-auth-rail__tooltip,
.site-auth-rail__logout::after {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.sidebar__nav--pretty > .sidebar__link span::before,
.sidebar__categories .sidebar__link span::before,
.sidebar__link span::before,
.site-auth-rail__tooltip::before,
.sidebar__brand-meta::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-left: 1px solid rgba(var(--ui-rgb), 0.105);
  border-bottom: 1px solid rgba(var(--ui-rgb), 0.105);
  background: rgba(20, 20, 20, 0.98);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.sidebar__nav--pretty > .sidebar__link span::after,
.sidebar__categories .sidebar__link span::after,
.sidebar__link span::after,
.site-auth-rail__tooltip::after,
.site-auth-rail__logout::after {
  box-shadow: none;
}

.sidebar__brand-meta {
  padding: 12px 14px 12px 15px;
  min-width: 150px;
}

.sidebar__brand-meta::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.72);
}

.sidebar__brand-meta .sidebar__logo-title,
.sidebar__logo-title {
  color: rgba(var(--ui-rgb), 0.97);
  font-weight: 650;
}

.sidebar__brand-meta .sidebar__logo-subtitle,
.sidebar__logo-subtitle {
  color: rgba(var(--ui-rgb), 0.78);
}

.sidebar__brand-meta .sidebar__logo-title,
.sidebar__brand-meta .sidebar__logo-subtitle {
  padding-left: 8px;
}

.site-auth-rail__logout::after {
  content: "Выйти";
}

@media (max-width: 720px) {
  .sidebar__nav--pretty > .sidebar__link span,
  .sidebar__categories .sidebar__link span,
  .sidebar__link span,
  .site-auth-rail__tooltip,
  .site-auth-rail__logout::after,
  .sidebar__brand-meta {
    backdrop-filter: none;
  }

  .sidebar.is-mobile-menu-open .sidebar__menu-shell {
    padding: 10px;
    border-radius: 10px;
    background:
      linear-gradient(180deg, rgba(20, 23, 29, 0.98), rgba(10, 12, 16, 0.98));
  }

  .sidebar.is-mobile-menu-open .sidebar__nav,
  .sidebar.is-mobile-menu-open .sidebar__nav--pretty,
  .sidebar.is-mobile-menu-open .sidebar__categories {
    gap: 8px;
  }

  .sidebar.is-mobile-menu-open .sidebar__nav--pretty > .sidebar__link,
  .sidebar.is-mobile-menu-open .sidebar__categories .sidebar__link,
  .sidebar.is-mobile-menu-open .sidebar__link {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    gap: 12px;
    border-radius: 10px;
    border-color: rgba(var(--ui-rgb), 0.075);
    background: rgba(var(--ui-rgb), 0.035);
    color: rgba(var(--ui-rgb), 0.94);
    transform: none;
  }

  .sidebar.is-mobile-menu-open .sidebar__nav--pretty > .sidebar__link:hover,
  .sidebar.is-mobile-menu-open .sidebar__categories .sidebar__link:hover,
  .sidebar.is-mobile-menu-open .sidebar__link:hover,
  .sidebar.is-mobile-menu-open .sidebar__nav--pretty > .sidebar__link:focus-visible,
  .sidebar.is-mobile-menu-open .sidebar__categories .sidebar__link:focus-visible,
  .sidebar.is-mobile-menu-open .sidebar__link:focus-visible {
    background: rgba(var(--accent-rgb, 214, 179, 106), 0.09);
    border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.24);
  }

  .sidebar.is-mobile-menu-open .sidebar__nav--pretty > .sidebar__link.sidebar__link--active,
  .sidebar.is-mobile-menu-open .sidebar__categories .sidebar__link.sidebar__link--active,
  .sidebar.is-mobile-menu-open .sidebar__link.sidebar__link--active {
    background: rgba(var(--accent-rgb, 214, 179, 106), 0.13);
    border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.38);
    color: var(--accent-light, #e5ca87);
  }

  .sidebar.is-mobile-menu-open .sidebar__nav--pretty > .sidebar__link i,
  .sidebar.is-mobile-menu-open .sidebar__categories .sidebar__link i,
  .sidebar.is-mobile-menu-open .sidebar__link i {
    width: 24px;
    min-width: 24px;
    height: 24px;
    font-size: 16px;
    color: var(--accent-dark, #c5913d);
  }

  .sidebar.is-mobile-menu-open .sidebar__nav--pretty > .sidebar__link span,
  .sidebar.is-mobile-menu-open .sidebar__categories .sidebar__link span,
  .sidebar.is-mobile-menu-open .sidebar__link span {
    position: static;
    display: block !important;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.01em;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    white-space: nowrap;
  }

  .sidebar.is-mobile-menu-open .sidebar__nav--pretty > .sidebar__link span::before,
  .sidebar.is-mobile-menu-open .sidebar__categories .sidebar__link span::before,
  .sidebar.is-mobile-menu-open .sidebar__link span::before,
  .sidebar.is-mobile-menu-open .sidebar__nav--pretty > .sidebar__link span::after,
  .sidebar.is-mobile-menu-open .sidebar__categories .sidebar__link span::after,
  .sidebar.is-mobile-menu-open .sidebar__link span::after {
    content: none;
    display: none;
  }
}

/* Profile library: keep Premium badge readable after surface cleanup */
.profile-library-card .profile-library-badge--premium,
.profile-library-card .profile-library-badge--premium.ui-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.18) !important;
  background-image: none !important;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.42) !important;
  color: var(--accent-light, #e5ca87) !important;
  opacity: 1 !important;
}

.profile-library-card .profile-library-badge--premium::before,
.profile-library-card .profile-library-badge--premium.ui-badge::before {
  content: "";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 9px;
  line-height: 1;
  color: var(--accent-light, #e5ca87);
}

.profile-library-card .profile-library-badge--premium i,
.profile-library-card .profile-library-badge--premium.ui-badge i {
  color: var(--accent-light, #e5ca87) !important;
}

/* Global footer spacing: keep footer visually separated from page content */
.site-footer {
  margin-top: clamp(56px, 6.5vw, 92px) !important;
  padding-bottom: 12px;
}

.site-live-visitors + .site-footer,
.site-footer + .site-live-visitors {
  margin-top: 16px !important;
}

@media (max-width: 720px) {
  .site-footer {
    margin-top: 46px !important;
  }
}

/* Unified golden buttons */
.site-btn--primary,
.auth-open-btn,
.auth-submit,
.ui-btn--gold,
.catalog-search__button,
.profile-library-card__download,
.site-notifications-modal__read-all,
.site-profile-drawer__open,
.site-push-prompt__enable{
  border: 0 !important;
  background: var(--gold-button-bg) !important;
  background-image: var(--gold-button-bg) !important;
  color: var(--gold-button-text) !important;
  box-shadow: none;
  transition: box-shadow .24s ease, filter .24s ease, opacity .24s ease, background .24s ease !important;
}

.site-btn--primary:visited,
.auth-open-btn:visited,
.auth-submit:visited,
.ui-btn--gold:visited,
.catalog-search__button:visited,
.profile-library-card__download:visited,
.site-profile-drawer__open:visited,
.site-push-prompt__enable:visited,
.site-btn--primary:active,
.auth-open-btn:active,
.auth-submit:active,
.ui-btn--gold:active,
.catalog-search__button:active,
.profile-library-card__download:active,
.site-profile-drawer__open:active,
.site-push-prompt__enable:active{
  color: var(--gold-button-text) !important;
}

.site-btn--primary:hover:not(:disabled),
.site-btn--primary:focus-visible:not(:disabled),
.auth-open-btn:hover:not(:disabled),
.auth-open-btn:focus-visible:not(:disabled),
.auth-submit:hover:not(:disabled),
.auth-submit:focus-visible:not(:disabled),
.ui-btn--gold:hover:not(:disabled),
.ui-btn--gold:focus-visible:not(:disabled),
.catalog-search__button:hover:not(:disabled),
.catalog-search__button:focus-visible:not(:disabled),
.profile-library-card__download:hover,
.profile-library-card__download:focus-visible,
.site-notifications-modal__read-all:hover:not(:disabled),
.site-notifications-modal__read-all:focus-visible:not(:disabled),
.site-profile-drawer__open:hover,
.site-profile-drawer__open:focus-visible,
.site-push-prompt__enable:hover:not(:disabled),
.site-push-prompt__enable:focus-visible:not(:disabled){
  transform: none !important;
  color: var(--gold-button-text) !important;
  box-shadow: none;
  filter: brightness(1.04) saturate(1.03);
}

.site-btn--primary:focus-visible,
.auth-open-btn:focus-visible,
.auth-submit:focus-visible,
.ui-btn--gold:focus-visible,
.catalog-search__button:focus-visible,
.profile-library-card__download:focus-visible,
.site-notifications-modal__read-all:focus-visible,
.site-profile-drawer__open:focus-visible,
.site-push-prompt__enable:focus-visible{
  box-shadow: none;
}

.site-btn--primary:disabled,
.auth-open-btn:disabled,
.auth-submit:disabled,
.ui-btn--gold:disabled,
.catalog-search__button:disabled,
.site-notifications-modal__read-all:disabled,
.site-push-prompt__enable:disabled{
  opacity: .58 !important;
  transform: none !important;
  filter: none !important;
  box-shadow: none;
}


/* Smooth live counters */
[data-live-visitors-count],
[data-live-visitors-total] {
  transition: color .24s ease, text-shadow .24s ease, transform .24s ease;
}

[data-live-visitors-count].is-live-updated,
[data-live-visitors-total].is-live-updated {
  transform: none;
  text-shadow: 0 0 18px rgba(var(--accent-rgb, 214, 179, 106), .34);
}

html.is-live-offline .site-toast-stack::before {
  content: "";
}


/* Live counters */
.sidebar__link.is-live-updated {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .55);
  box-shadow: none;
}

.sidebar__link.sidebar__link--notifications-unread.is-live-updated::after,
.sidebar__link.sidebar__link--chat-unread.is-live-updated::after {
  animation: liveBadgePop .46s ease both;
}

@keyframes liveBadgePop {
  0% { transform: scale(.72); }
  56% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.is-live-offline .sidebar__link--notifications,
.is-live-offline .sidebar__link--chat-unread {
  opacity: .78;
}

@media (prefers-reduced-motion: reduce) {
  .sidebar__link.sidebar__link--notifications-unread.is-live-updated::after,
  .sidebar__link.sidebar__link--chat-unread.is-live-updated::after {
    animation: none;
  }
}

/* Live presence stage */
.site-profile-presence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid rgba(var(--ui-rgb),.075);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(121,219,130,.075), rgba(var(--accent-rgb, 214, 179, 106), .055));
  box-shadow: none;
}

.site-profile-presence__main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-profile-presence__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #79db82;
  box-shadow: none;
  flex: 0 0 auto;
}

.site-profile-presence strong {
  display: block;
  color: rgba(var(--ui-rgb),.96);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.site-profile-presence p {
  margin: 3px 0 0;
  color: rgba(var(--ui-rgb),.62);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.site-profile-presence__avatars {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-profile-presence__avatar {
  width: 28px;
  height: 28px;
  margin-left: -7px;
  border-radius: 999px;
  border: 2px solid rgba(18,20,26,.96);
  background: rgba(var(--ui-rgb),.06);
  overflow: hidden;
  position: relative;
  box-shadow: none;
}

.site-profile-presence__avatar:first-child {
  margin-left: 0;
}

.site-profile-presence__avatar img,
.site-profile-presence__avatar em,
.site-profile-presence__empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.site-profile-presence__avatar img {
  object-fit: cover;
}

.site-profile-presence__avatar em,
.site-profile-presence__empty {
  color: rgba(var(--ui-rgb),.82);
  font-size: 9px;
  font-style: normal;
  font-weight: 650;
  background: rgba(var(--accent-rgb, 214, 179, 106), .14);
}

.site-profile-presence__avatar img + em {
  display: none;
}

.site-profile-presence__avatar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #79db82;
  box-shadow: none;
}

[data-site-presence-count] {
  display: inline-block;
  transition: transform .22s ease, color .22s ease, text-shadow .22s ease;
}

[data-site-presence-count].is-live-updated {
  color: var(--accent-light, #e5ca87);
  transform: none;
  text-shadow: 0 0 18px rgba(var(--accent-rgb, 214, 179, 106), .35);
}

@media (prefers-reduced-motion: no-preference) {
  .site-profile-presence__dot {
    animation: sitePresencePulse 1.8s ease-in-out infinite;
  }
}

@keyframes sitePresencePulse {
  0%, 100% { transform: scale(.92); }
  50% { transform: scale(1.12); }
}

html.is-live-offline .site-profile-presence {
  opacity: .72;
  filter: grayscale(.25);
}


/* Stage 5: smooth loading and live-performance helpers */
.nm-perf-observe {
  opacity: .001;
  transform: translate3d(0, 10px, 0);
  transition: opacity .34s ease, transform .34s ease;
}

.nm-perf-observe.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

:is(button, a, .btn, .admin-mini-btn, .admin-ghost, .admin-submit, .premium-btn).is-pressed {
  transform: scale(.985);
}

@media (prefers-reduced-motion: reduce) {
  .nm-perf-observe,
  .nm-perf-observe.is-inview,
  :is(button, a, .btn, .admin-mini-btn, .admin-ghost, .admin-submit, .premium-btn).is-pressed {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}


@supports (content-visibility: auto) {
  .category-card,
  .profile-section,
  .profile-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 360px;
  }
}

/* Footer live users placement */
.site-profile-drawer .site-profile-presence {
  display: none;
}

html.is-live-offline .site-live-visitors {
  opacity: .82;
}

@media (max-width: 640px) {
  .site-live-visitors {
    gap: 6px 8px;
    padding-inline: 10px;
    font-size: 10px;
    letter-spacing: .045em;
  }

  .site-live-visitors__author {
    width: 100%;
  }

  .site-live-visitors__separator:first-of-type {
    display: none;
  }

}

/* Catalog resource cards: isolated canonical layout */
.products,
.products__grid-skeleton {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.products__grid-skeleton {
  grid-column: 1 / -1;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 328px;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-bg);
  box-shadow: none;
  transition: border-color .2s ease, background .2s ease;
}

@media (min-width: 981px) {
  .products > .product-card:nth-child(7n + 1) {
    display: grid;
    grid-column: span 2;
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 360px;
    background:
      radial-gradient(circle at 94% 6%, rgba(var(--accent-rgb, 214, 179, 106), .08), transparent 24%),
      #0f0f0f;
  }

  .products > .product-card:nth-child(7n + 1) .product-card__image {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 100%;
    aspect-ratio: auto;
  }

  .products > .product-card:nth-child(7n + 1) .product-card__body {
    grid-column: 2;
    grid-row: 1;
    padding: 54px 18px 16px;
    background: transparent;
  }

  .products > .product-card:nth-child(7n + 1) .product-card__footer {
    grid-column: 2;
    grid-row: 2;
  }

  .products > .product-card:nth-child(7n + 1) .product-card__title {
    font-size: 19px;
    line-height: 1.12;
  }

  .products > .product-card:nth-child(7n + 1) .product-card__subtitle,
  .products > .product-card:nth-child(7n + 1) .product-card__subtitle--rich {
    -webkit-line-clamp: 4;
  }
}

.product-card:hover {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .25);
  background: var(--panel-bg);
  box-shadow: none;
}

.product-card__image {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #17191d;
}

.product-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, transparent 34%, rgba(0, 0, 0, .1) 100%);
}

.product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .3s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.02);
}

.product-card__media-guard,
.product-card__image,
.product-card__image img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.product-card__image--empty {
  display: grid;
  place-items: center;
  padding: 16px;
  color: rgba(var(--ui-rgb), .56);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.product-card__badges {
  position: absolute;
  top: 13px;
  left: 13px;
  right: 96px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  pointer-events: none;
}

.product-card__badges-right {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 52%;
}

.product-card__category,
.product-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 48%;
  min-height: 25px;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid rgba(var(--ui-rgb), .1);
  border-radius: 999px;
  background: rgba(12, 13, 16, .78);
  color: rgba(var(--ui-rgb), .76);
  box-shadow: none;
  backdrop-filter: none;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .055em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: auto;
}

.product-card__badge {
  max-width: 100%;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .25);
  background: rgba(var(--accent-dark-rgb, 197, 145, 61), .16);
  color: var(--accent-light, #e5ca87);
}

.product-card__quick-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.product-card:hover .product-card__quick-actions,
.product-card:focus-within .product-card__quick-actions {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.product-card__quick-action {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(var(--ui-rgb), .11);
  border-radius: 999px;
  background: rgba(12, 13, 16, .78);
  color: rgba(var(--ui-rgb), .72);
  box-shadow: none;
  backdrop-filter: none;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transform: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.product-card__quick-action i {
  width: auto;
  font-size: 14px;
  line-height: 1;
}

.product-card__quick-action:hover,
.product-card__quick-action:focus-visible,
.product-card__favorite.is-active,
.product-card__favorite[aria-pressed="true"] {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .38);
  background: rgba(var(--accent-rgb, 214, 179, 106), .16);
  color: var(--accent-light, #e5ca87);
  transform: none;
}

.product-card__quick-action:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb, 214, 179, 106), .42);
  outline-offset: 2px;
}

.product-card__quick-action:disabled {
  cursor: default;
  opacity: .55;
}

.product-card__body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px;
  background: var(--panel-bg);
}

.product-card__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.product-card__title {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #f7f7f8;
  font-size: var(--type-card-title);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.035em;
  text-shadow: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__title-link,
.product-card__title-link:visited {
  color: inherit;
  text-decoration: none;
}

.product-card__title-link:hover,
.product-card__title-link:focus-visible {
  color: var(--accent-light, #e5ca87);
  text-decoration: none;
}

.product-card__title-link:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb, 214, 179, 106), .36);
  outline-offset: 3px;
  border-radius: 6px;
}

.product-card__subtitle,
.product-card__subtitle--rich {
  display: -webkit-box;
  min-height: 0;
  margin: 5px 0 0;
  overflow: hidden;
  color: rgba(var(--ui-rgb), .62);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.36;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__subtitle strong,
.product-card__subtitle--rich strong {
  color: rgba(var(--ui-rgb), .82);
  font-weight: 650;
}

.product-card__inline-bullet::before {
  content: "•";
  margin-right: 5px;
  color: rgba(var(--accent-rgb, 214, 179, 106), .8);
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-top: auto;
  padding-top: 8px;
}

.product-card__access-note,
.product-card__premium-note,
.product-card__free-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  width: fit-content;
  max-width: 62%;
  min-height: 25px;
  margin: 0;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid rgba(var(--ui-rgb), .08);
  border-radius: 999px;
  background: rgba(var(--ui-rgb), .045);
  color: rgba(var(--ui-rgb), .72);
  box-shadow: none;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.product-card__access-note span,
.product-card__premium-note span,
.product-card__free-note span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__access-note,
.product-card__free-note {
  border-color: rgba(78, 210, 128, .2);
  background: rgba(78, 210, 128, .09);
  color: #96e7b3;
}

.product-card__premium-note {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .24);
  background: rgba(var(--accent-rgb, 214, 179, 106), .1);
  color: var(--accent-light, #e5ca87);
}

.product-card__access-note i,
.product-card__premium-note i,
.product-card__free-note i {
  flex: 0 0 auto;
  font-size: 10px;
}

.product-card__stats {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

.product-card__stats > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(var(--ui-rgb), .55);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.product-card__stats > span > i {
  flex: 0 0 auto;
  color: rgba(var(--accent-rgb, 214, 179, 106), .78);
  font-size: 9px;
}

.product-card__footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 10px 8px 14px;
  border-top: 1px solid rgba(var(--ui-rgb), .07);
  background: var(--panel-bg-strong);
}

.product-card__price {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card--free .product-card__price {
  color: #93e8b1;
  font-size: 16px;
  letter-spacing: -.015em;
}

.product-card--premium:not(.product-card--free) .product-card__price {
  color: var(--accent-light, #e5ca87);
}

.product-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 0;
}

.product-card__buy,
.product-card__buy:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 112px;
  max-width: 140px;
  height: 38px;
  padding: 0 13px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--gold-button-bg, linear-gradient(135deg, var(--accent-light, #e5ca87), var(--accent-dark, #c5913d)));
  color: var(--gold-button-text, #111214);
  box-shadow: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transform: none;
  transition: box-shadow .2s ease, filter .2s ease;
}

.product-card__buy:hover,
.product-card__buy:focus-visible {
  color: var(--gold-button-text, #111214);
  text-decoration: none;
  filter: brightness(1.045);
  box-shadow: none;
  transform: none;
}

.product-card__buy:focus-visible {
  outline: 2px solid rgba(var(--accent-light-rgb, 229, 202, 135), .48);
  outline-offset: 2px;
}

.product-card__buy i {
  flex: 0 0 auto;
  width: auto;
  font-size: 13px;
  line-height: 1;
}

.product-card__buy-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (hover: none), (pointer: coarse) {
  .product-card__quick-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card__quick-actions {
    transform: none;
    transition-duration: .01ms;
  }
}

@media (max-width: 1280px) {
  .products,
  .products__grid-skeleton {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .products,
  .products__grid-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    min-height: 352px;
  }
}

@media (max-width: 760px) {
  .products,
  .products__grid-skeleton {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .product-card {
    min-height: 0;
    border-radius: 8px;
  }

  .product-card__body {
    padding: 13px 15px 11px;
  }

  .product-card__title {
    font-size: var(--type-card-title);
  }
}

@media (max-width: 440px) {
  .product-card__badges {
    right: 92px;
  }

  .product-card__meta {
    gap: 8px;
  }

  .product-card__access-note,
  .product-card__premium-note,
  .product-card__free-note {
    max-width: 58%;
  }

  .product-card__stats {
    gap: 8px;
  }

  .product-card__price {
    font-size: 18px;
  }

  .product-card__buy,
  .product-card__buy:visited {
    min-width: 112px;
    padding-inline: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card__image img,
  .product-card__quick-action,
  .product-card__buy {
    transition: none;
  }

  .product-card:hover .product-card__image img {
    transform: none;
  }
}


/* Unified close buttons for modal and drawer surfaces. Keep these aligned with product quick view. */
body .auth-modal__close,
body .site-notifications-modal__close,
body .site-profile-drawer__close,
body .product-quick-view__close,
body .site-push-prompt__close,
body .payment-modal__close,
body .product-admin-modal__close,
body .product-lightbox__close,
body .chat-moderation-modal__close,
body .chat-sticker-panel__close {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 1px solid rgba(var(--ui-rgb),0.08) !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(var(--ui-rgb),0.055) !important;
  background-image: none !important;
  color: rgba(var(--ui-rgb),0.82) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease !important;
}

body .auth-modal__close:hover,
body .auth-modal__close:focus-visible,
body .site-notifications-modal__close:hover,
body .site-notifications-modal__close:focus-visible,
body .site-profile-drawer__close:hover,
body .site-profile-drawer__close:focus-visible,
body .product-quick-view__close:hover,
body .product-quick-view__close:focus-visible,
body .site-push-prompt__close:hover,
body .site-push-prompt__close:focus-visible,
body .payment-modal__close:hover,
body .payment-modal__close:focus-visible,
body .product-admin-modal__close:hover,
body .product-admin-modal__close:focus-visible,
body .product-lightbox__close:hover,
body .product-lightbox__close:focus-visible,
body .chat-moderation-modal__close:hover,
body .chat-moderation-modal__close:focus-visible,
body .chat-sticker-panel__close:hover,
body .chat-sticker-panel__close:focus-visible {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), 0.22) !important;
  background: rgba(var(--accent-rgb, 214, 179, 106), 0.10) !important;
  background-image: none !important;
  color: var(--accent-light, var(--gold, #e5ca87)) !important;
  box-shadow: none !important;
  transform: none !important;
  outline: none;
}


/* NeoHelper typography harmonization: public UI */
body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

/* Secondary copy follows the same quiet hierarchy as NeoHelper. */
.auth-entry-card__text,
.auth-modal__text,
.auth-sheet__text,
.auth-hint,
.auth-social-btn__text,
.catalog__subtext,
.profile-page__text,
.profile-card-section__text,
.profile-provider-note,
.profile-readonly-note,
.profile-avatar-note,
.profile-connection-card__text,
.profile-purchase-item__meta,
.profile-nav-link__content small,
.profile-security-link small,
.profile-info-card__label,
.profile-aside-user__subtitle,
.intro__text,
.intro-promo__text,
.intro-channel-card__text,
.site-empty-state__text,
.site-toast__text,
.site-notification__text,
.site-footer__text,
.maintenance-screen__text,
.product-quick-view__body p,
.product-quick-view__description {
  color: var(--ui-text-muted) !important;
  font-size: var(--type-body) !important;
  font-weight: 400 !important;
  line-height: 1.62;
}

.profile-purchase-item__meta,
.profile-nav-link__content small,
.profile-security-link small,
.profile-info-card__label,
.profile-aside-user__subtitle,
.site-notification__meta,
.site-footer__bottom,
.site-live-visitors,
.site-profile-drawer__stat span {
  color: var(--ui-text-subtle) !important;
  font-size: var(--type-body-sm) !important;
  font-weight: 400 !important;
  line-height: 1.5;
}

/* Labels / eyebrows use the restrained NeoHelper sizing. */
.auth-entry-card__eyebrow,
.auth-sheet__eyebrow,
.profile-card-section__eyebrow,
.profile-aside__label,
.profile-page__eyebrow,
.intro-promo__eyebrow,
.intro-channel-card__eyebrow,
.catalog__eyebrow,
.site-notifications-modal__eyebrow,
.product-quick-view__eyebrow {
  font-size: var(--type-label) !important;
  font-weight: 600 !important;
  letter-spacing: .065em;
}

/* Profile page: remove the oversized/heavy leftovers. */
.profile-page__title {
  font-size: var(--type-page-title) !important;
  font-weight: 600 !important;
  letter-spacing: -.035em;
}

.profile-card-section__title,
.profile-overview__name,
.profile-purchase-item__title,
.profile-connection-card__name {
  font-size: var(--type-card-heading) !important;
  font-weight: 600 !important;
  letter-spacing: -.02em;
}

.profile-aside-user__name,
.profile-info-card__value,
.profile-aside__value {
  color: var(--text) !important;
  font-size: var(--type-body) !important;
  font-weight: 600 !important;
  line-height: 1.5;
}

.profile-provider-note,
.profile-readonly-note {
  font-size: var(--type-body-sm) !important;
  color: var(--ui-text-muted) !important;
}

.profile-nav-link__content strong,
.profile-security-link strong {
  font-size: var(--type-body) !important;
  font-weight: 600 !important;
}

/* Profile dropdown / drawer: same density as NeoHelper cards and menus. */
.site-profile-drawer__eyebrow {
  font-size: 9px !important;
  font-weight: 600 !important;
}

.site-profile-drawer__identity h2 {
  font-size: var(--type-card-heading) !important;
  font-weight: 600 !important;
}

.site-profile-drawer__identity p {
  margin-top: 3px;
  color: var(--ui-text-muted) !important;
  font-size: 10px !important;
  font-weight: 400 !important;
}

.site-profile-drawer__status,
.site-profile-drawer__premium {
  font-size: 9px !important;
  font-weight: 600 !important;
}

.site-profile-drawer__stat strong {
  font-size: 13px !important;
  font-weight: 600 !important;
}

.site-profile-drawer__stat span {
  font-size: 9px !important;
}

.site-profile-drawer__link > span,
.site-profile-drawer__open,
.site-profile-drawer__logout {
  font-size: 11px !important;
  font-weight: 600 !important;
}

.site-profile-drawer__link-count {
  font-size: 9px !important;
  font-weight: 600 !important;
}

/* Home / rail widgets: quieter copy and less visual weight. */
.intro-promo__code,
.page-rail .intro-promo__code {
  font-size: 15px !important;
  font-weight: 600 !important;
}

.intro-promo__discount,
.page-rail .intro-promo__discount {
  font-size: 13px !important;
  font-weight: 600 !important;
}

.intro-channel-card__title,
.page-rail .intro-channel-card__title {
  font-size: var(--type-card-heading) !important;
  font-weight: 600 !important;
}

.intro-channel-card__button,
.page-rail .intro-channel-card__button,
.site-btn,
.auth-btn,
.auth-submit {
  font-size: 11px;
  font-weight: 600;
}

/* Product quick view and notifications also follow the same scale. */
.product-quick-view__head h2,
.product-quick-view__body h3,
.site-notifications-modal__head h2,
.site-notification__title,
.site-toast__title {
  font-size: var(--type-card-heading) !important;
  font-weight: 600 !important;
}

.product-quick-view__meta > span,
.site-notification__meta,
.site-toast__text {
  color: var(--ui-text-muted) !important;
  font-size: var(--type-body-sm) !important;
  font-weight: 400 !important;
}

.site-footer__title {
  font-size: var(--type-card-heading) !important;
  font-weight: 600 !important;
}

.site-footer__link {
  font-size: 11px !important;
  font-weight: 500 !important;
}


/* Marketplace cards use the same text hierarchy too. */
.product-card__title {
  font-size: var(--type-card-heading) !important;
  font-weight: 600 !important;
  line-height: 1.22;
}

.product-card__subtitle,
.product-card__subtitle--rich {
  color: var(--muted) !important;
  font-size: var(--type-body-sm) !important;
  font-weight: 400 !important;
  line-height: 1.48;
}

.product-card__subtitle strong,
.product-card__subtitle--rich strong {
  color: var(--ui-text-soft) !important;
  font-weight: 600 !important;
}

.product-card__stats > span {
  color: var(--ui-text-subtle) !important;
  font-size: 9px !important;
  font-weight: 500 !important;
}

.product-card__access-note,
.product-card__premium-note,
.product-card__free-note {
  font-size: 9px !important;
  font-weight: 600 !important;
}

.product-card__buy {
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* Descender-safe marketplace titles after global typography harmonization. */
.product-card__title {
  line-height: 1.28 !important;
  padding-bottom: 2px;
}

/* Global media guard: keep browser-native image hover/drag actions off site media.
   Interaction remains on the surrounding links/buttons/gallery controls. */
img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

/* Animated catalog search — stable geometry, soft reveal, no text/width jitter. */
.catalog-search {
  --catalog-search-height: 46px;
  --catalog-search-radius: 11px;
  --catalog-search-open-width: 540px;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-height: var(--catalog-search-height) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.catalog-search__panel {
  position: relative !important;
  display: block !important;
  width: var(--catalog-search-height) !important;
  max-width: 100% !important;
  height: var(--catalog-search-height) !important;
  min-height: var(--catalog-search-height) !important;
  margin-left: auto !important;
  overflow: hidden !important;
  border-radius: var(--catalog-search-radius) !important;
  box-sizing: border-box !important;
  will-change: width;
  transition: width .46s cubic-bezier(.2, .82, .24, 1) .055s !important;
}

.catalog-search.is-open .catalog-search__panel {
  width: var(--catalog-search-open-width) !important;
  transition-delay: 0s !important;
}

.catalog-search__toggle {
  position: absolute !important;
  inset: 0 0 auto auto !important;
  z-index: 4 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: var(--catalog-search-height) !important;
  min-width: var(--catalog-search-height) !important;
  height: var(--catalog-search-height) !important;
  min-height: var(--catalog-search-height) !important;
  padding: 0 !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--catalog-search-radius) !important;
  background: var(--gray-control) !important;
  color: rgba(var(--accent-rgb, 214, 179, 106), .95) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  transition:
    opacity .14s ease,
    transform .28s cubic-bezier(.2, .82, .24, 1),
    background-color .18s ease,
    border-color .18s ease !important;
}

.catalog-search__toggle:hover,
.catalog-search__toggle:focus-visible {
  background: var(--gray-control-hover) !important;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .30) !important;
}

.catalog-search.is-open .catalog-search__toggle {
  opacity: 0;
  transform: translate3d(6px, 0, 0);
  pointer-events: none;
}

.catalog-search__expanded {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 92px var(--catalog-search-height) !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: var(--catalog-search-open-width) !important;
  height: var(--catalog-search-height) !important;
  min-height: var(--catalog-search-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(8px, 0, 0);
  pointer-events: none;
  will-change: opacity, transform;
  transition:
    opacity .13s ease,
    transform .30s cubic-bezier(.2, .82, .24, 1),
    visibility 0s linear .30s !important;
}

.catalog-search.is-open .catalog-search__expanded {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  transition:
    opacity .20s ease .09s,
    transform .38s cubic-bezier(.2, .82, .24, 1) .025s,
    visibility 0s linear 0s !important;
}

.catalog-search__field,
.catalog-search__button,
.catalog-search__clear {
  box-sizing: border-box !important;
  height: var(--catalog-search-height) !important;
  min-height: var(--catalog-search-height) !important;
  margin: 0 !important;
  border-radius: var(--catalog-search-radius) !important;
  transform: translateZ(0);
}

.catalog-search__field {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
  background: var(--gray-control) !important;
  transition: border-color .18s ease, background-color .18s ease !important;
}

.catalog-search__field:focus-within {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .38) !important;
  background: var(--gray-control-hover) !important;
}

.catalog-search__field i {
  flex: 0 0 16px !important;
  width: 16px !important;
  margin: 0 0 0 15px !important;
  color: rgba(var(--accent-rgb, 214, 179, 106), .92) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  text-align: center !important;
}

.catalog-search__field input {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 14px 0 9px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--text) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: normal !important;
}

.catalog-search__field input::placeholder {
  color: var(--muted) !important;
  opacity: .86 !important;
}

.catalog-search__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 92px !important;
  min-width: 92px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: normal !important;
  white-space: nowrap !important;
}

.catalog-search__button i,
.catalog-search__clear i,
.catalog-search__toggle i {
  display: block !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

.catalog-search__clear {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: var(--catalog-search-height) !important;
  min-width: var(--catalog-search-height) !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

.catalog-search__clear[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .catalog-search {
    --catalog-search-open-width: calc(100vw - 32px);
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-end !important;
  }

  .catalog-search__expanded {
    grid-template-columns: minmax(0, 1fr) var(--catalog-search-height) var(--catalog-search-height) !important;
    gap: 7px !important;
  }

  .catalog-search__button {
    width: var(--catalog-search-height) !important;
    min-width: var(--catalog-search-height) !important;
    padding: 0 !important;
  }

  .catalog-search__button span {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .catalog-search {
    --catalog-search-height: 44px;
    --catalog-search-radius: 10px;
    --catalog-search-open-width: calc(100vw - 32px);
  }

  .catalog-search__field i {
    margin-left: 12px !important;
    font-size: 12px !important;
  }

  .catalog-search__field input {
    padding-right: 10px !important;
    font-size: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-search__panel,
  .catalog-search__toggle,
  .catalog-search__expanded,
  .catalog-search__field {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

/* Mobile viewport containment */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body > .layout,
  .layout,
  .layout--with-rail,
  .layout--no-rail {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) !important;
    padding-right: 0 !important;
  }

  .sidebar,
  .sidebar__rail,
  .sidebar__top,
  .content,
  .layout--with-rail > .content,
  .layout--no-rail > .content,
  .content > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .sidebar__brand {
    width: auto;
    min-width: 48px;
    max-width: 100%;
    overflow: hidden;
  }

  .sidebar__brand-meta {
    display: none !important;
    position: static !important;
    inset: auto !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    pointer-events: none !important;
  }

  .home-banners,
  .home-banners__viewport,
  .catalog,
  .catalog__top,
  .catalog__actions,
  .catalog-search,
  .catalog-pro,
  .products,
  .site-footer,
  .site-footer__inner {
    max-width: 100%;
    min-width: 0;
  }
}

/* =========================
   Site language switcher
   ========================= */
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.site-footer__copyright {
  min-width: 0;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-language {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(var(--ui-rgb),.075);
  border-radius: 9px;
  background: rgba(var(--ui-rgb),.025);
  box-shadow: inset 0 1px 0 rgba(var(--ui-rgb),.018);
}

.site-language__option {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 27px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(var(--ui-rgb),.42);
  font: inherit;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .035em;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.site-language__option:hover {
  color: rgba(var(--ui-rgb),.78);
  background: rgba(var(--ui-rgb),.035);
}

.site-language__option.is-active,
.site-language__option[aria-pressed="true"] {
  color: rgba(var(--accent-light-rgb, 229, 202, 135), .96);
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .18);
  background: rgba(var(--accent-rgb, 214, 179, 106), .105);
}

.site-language__option:focus-visible {
  outline: none;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .42);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb, 214, 179, 106), .09);
}

.site-language__option:active {
  transform: translateY(1px);
}

@media (max-width: 620px) {
  .site-footer__bottom {
    align-items: center;
  }

  .site-language {
    margin-left: auto;
  }
}

/* Profile social layout v24 */
.profile-page--social {
  gap: 14px;
}

.profile-page--social .profile-page__layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.profile-page--social .profile-page__aside {
  display: none;
}

.profile-social-card {
  overflow: hidden;
  border: 1px solid rgba(var(--ui-rgb),.075);
  border-radius: 14px;
  background: var(--panel-bg-strong);
  box-shadow: 0 20px 60px rgba(0,0,0,.16);
}

.profile-social-card__cover {
  position: relative;
  height: clamp(190px, 23vw, 270px);
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 20%, rgba(var(--accent-rgb,214,179,106),.18), transparent 32%),
    radial-gradient(circle at 22% 92%, rgba(var(--accent-rgb,214,179,106),.10), transparent 38%),
    linear-gradient(135deg, #161616, #0b0b0b 72%);
}

.profile-social-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,.04) 18%, rgba(8,8,8,.2) 64%, #0e0e0e 100%);
  pointer-events: none;
}

.profile-social-card__cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-social-card__cover-art {
  position: absolute;
  inset: 0;
  opacity: .48;
  pointer-events: none;
}

.profile-social-card__cover-art::before,
.profile-social-card__cover-art::after,
.profile-social-card__cover-art span {
  content: "";
  position: absolute;
  border: 1px solid rgba(var(--accent-rgb,214,179,106),.12);
  border-radius: 999px;
}

.profile-social-card__cover-art::before {
  width: 360px;
  height: 360px;
  right: -80px;
  top: -168px;
}

.profile-social-card__cover-art::after {
  width: 210px;
  height: 210px;
  right: 55px;
  top: -110px;
}

.profile-social-card__cover-art span:nth-child(1) {
  width: 8px;
  height: 8px;
  right: 28%;
  top: 32%;
  background: var(--gold);
  border: 0;
  box-shadow: 0 0 28px rgba(var(--accent-rgb,214,179,106),.5);
}

.profile-social-card__cover-art span:nth-child(2) {
  width: 120px;
  height: 1px;
  right: 17%;
  top: 48%;
  border: 0;
  border-top: 1px solid rgba(var(--accent-rgb,214,179,106),.16);
  transform: rotate(-18deg);
}

.profile-social-card__cover-art span:nth-child(3) {
  width: 6px;
  height: 6px;
  right: 46%;
  top: 72%;
  background: rgba(var(--ui-rgb),.3);
  border: 0;
}

.profile-social-card__edit {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(var(--ui-rgb),.12);
  border-radius: 9px;
  background: rgba(10,10,10,.72);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  backdrop-filter: blur(12px);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.profile-social-card__edit:hover {
  border-color: rgba(var(--accent-rgb,214,179,106),.34);
  background: rgba(15,15,15,.9);
  transform: translateY(-1px);
}

.profile-social-card__identity {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 0 24px 22px;
  margin-top: -58px;
}

.profile-social-card__avatar {
  align-self: start;
}

.profile-social__avatar-stack {
  width: 116px;
  height: 116px;
  overflow: hidden;
  border: 5px solid #0e0e0e;
  border-radius: 26px;
  background: var(--gray-panel-3, var(--panel-bg));
  box-shadow: 0 12px 36px rgba(0,0,0,.38);
}

.profile-social__avatar,
.profile-social__avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.profile-social__avatar {
  display: block;
  object-fit: cover;
}

.profile-social__avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(var(--accent-rgb,214,179,106),.22), transparent 42%),
    #171717;
  color: var(--gold);
  font-size: 34px;
  font-weight: 750;
}

.profile-social-card__identity-main {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding-top: 66px;
}

.profile-social-card__name-row {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.profile-social-card__headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}

.profile-social-card__name {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px,3vw,34px);
  line-height: 1.06;
  font-weight: 750;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.profile-social-card__handle {
  margin-top: 5px;
  color: rgba(var(--ui-rgb),.43);
  font-size: 12px;
  font-weight: 600;
}

.profile-social-card__badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  transform: translateY(2px);
}

.profile-social-card__bio {
  max-width: 720px;
  margin: 0;
  color: rgba(var(--ui-rgb),.62);
  font-size: 13px;
  line-height: 1.65;
}

.profile-social-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: rgba(var(--ui-rgb),.36);
  font-size: 11px;
}

.profile-social-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.profile-social-card__meta i {
  color: var(--gold);
}

.profile-social-card__stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(72px,1fr));
  gap: 8px;
  min-width: 270px;
  padding-bottom: 2px;
}

.profile-social-card__stat {
  display: grid;
  gap: 3px;
  min-height: 60px;
  padding: 10px 12px;
  align-content: center;
  text-align: center;
  border: 1px solid rgba(var(--ui-rgb),.065);
  border-radius: 10px;
  background: rgba(var(--ui-rgb),.025);
}

.profile-social-card__stat strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1;
}

.profile-social-card__stat span {
  color: rgba(var(--ui-rgb),.38);
  font-size: 10px;
  white-space: nowrap;
}

.profile-social-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 12px;
  border-top: 1px solid rgba(var(--ui-rgb),.065);
  scrollbar-width: none;
}

.profile-social-tabs::-webkit-scrollbar { display: none; }

.profile-social-tabs__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(var(--ui-rgb),.48);
  font-size: 11px;
  font-weight: 650;
  transition: color .18s ease, background .18s ease;
}

.profile-social-tabs__item:hover {
  color: rgba(var(--ui-rgb),.82);
  background: rgba(var(--ui-rgb),.035);
}

.profile-social-tabs__item.is-active {
  color: var(--accent-light, #e5ca87);
  background: rgba(var(--accent-rgb,214,179,106),.09);
}

.profile-social-tabs__item.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.profile-social-tabs__item em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.profile-page--social .profile-card-section.ui-card {
  padding: 18px;
  border-radius: 12px;
}

.profile-info-grid--compact {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}

.profile-info-grid--compact .profile-info-card.ui-card {
  min-height: 86px;
  padding: 13px 14px;
}

.profile-media-editor {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: 12px;
  margin-top: 4px;
}

.profile-media-editor__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(var(--ui-rgb),.07);
  border-radius: 11px;
  background: rgba(var(--ui-rgb),.025);
}

.profile-media-editor__preview {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(var(--ui-rgb),.08);
  background: var(--field-bg-focus);
}

.profile-media-editor__preview--avatar {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

.profile-media-editor__preview--avatar .profile-overview__avatar-stack,
.profile-media-editor__preview--avatar .profile-overview__avatar,
.profile-media-editor__preview--avatar .profile-overview__avatar-fallback {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 16px;
}

.profile-media-editor__preview--avatar .profile-overview__avatar {
  object-fit: cover;
}

.profile-media-editor__preview--banner {
  width: 180px;
  height: 76px;
  border-radius: 10px;
}

.profile-media-editor__preview--banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-media-editor__banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(var(--accent-rgb,214,179,106),.65);
  background:
    radial-gradient(circle at 70% 20%, rgba(var(--accent-rgb,214,179,106),.12), transparent 42%),
    #141414;
}

.profile-media-editor__content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profile-media-editor__content > strong {
  color: #f1f1f1;
  font-size: 13px;
}

.profile-media-editor__content > span {
  color: rgba(var(--ui-rgb),.38);
  font-size: 10px;
  line-height: 1.5;
}

.profile-file-button {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin-top: 3px;
  padding: 0 11px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(var(--accent-rgb,214,179,106),.22);
  border-radius: 8px;
  background: rgba(var(--accent-rgb,214,179,106),.09);
  color: var(--accent-light, #e5ca87);
  font-size: 11px;
  font-weight: 650;
}

.profile-file-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-media-editor__remove {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(var(--ui-rgb),.38);
  font-size: 10px;
  cursor: pointer;
}

.profile-media-editor__remove input {
  accent-color: var(--gold);
}

.profile-form--social input.auth-field__input {
  height: var(--control-height, 40px);
  min-height: var(--control-height, 40px);
  padding-top: 0;
  padding-bottom: 0;
  line-height: var(--control-height, 40px);
}

.profile-form--social input.auth-field__input::placeholder {
  line-height: inherit;
}

.profile-bio-input {
  resize: vertical;
  min-height: 100px;
  padding: 9px 10px;
  line-height: 1.45;
}

.profile-bio-input::placeholder {
  line-height: 1.45;
}

.profile-field-hint {
  display: block;
  margin-top: 6px;
  color: rgba(var(--ui-rgb),.34);
  font-size: 10px;
  line-height: 1.5;
  font-weight: 500;
}

.profile-avatar-url-field .auth-field__label em,
.profile-banner-url-field .auth-field__label em {
  color: rgba(var(--ui-rgb),.3);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.profile-inline-actions--profile-save {
  margin-top: 2px;
}

@media (max-width: 1120px) {
  .profile-social-card__identity {
    grid-template-columns: auto minmax(0,1fr);
  }
  .profile-social-card__stats {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  .profile-social-card__stat {
    min-height: 52px;
  }
  .profile-info-grid--compact {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .profile-media-editor {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 760px) {
  .profile-social-card__cover {
    height: 180px;
  }
  .profile-social-card__edit span {
    display: none;
  }
  .profile-social-card__edit {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
  .profile-social-card__identity {
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
    padding: 0 16px 16px;
    margin-top: -48px;
  }
  .profile-social-card__avatar {
    width: fit-content;
  }
  .profile-social__avatar-stack {
    width: 96px;
    height: 96px;
    border-width: 4px;
    border-radius: 22px;
  }
  .profile-social__avatar,
  .profile-social__avatar-fallback {
    border-radius: 17px;
  }
  .profile-social-card__identity-main {
    padding-top: 0;
  }
  .profile-social-card__name-row {
    gap: 5px;
  }
  .profile-social-card__headline {
    align-items: center;
    gap: 7px;
  }
  .profile-social-card__stats {
    grid-column: auto;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
  }
  .profile-social-card__stat {
    padding: 9px 6px;
  }
  .profile-social-card__stat span {
    white-space: normal;
  }
  .profile-social-tabs {
    padding-inline: 8px;
  }
  .profile-social-tabs__item {
    min-height: 36px;
    padding: 0 10px;
  }
  .profile-info-grid--compact {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .profile-media-editor__item,
  .profile-media-editor__item--banner {
    align-items: flex-start;
  }
  .profile-media-editor__preview--banner {
    width: 140px;
  }
}

@media (max-width: 520px) {
  .profile-social-card {
    border-radius: 11px;
  }
  .profile-social-card__cover {
    height: 150px;
  }
  .profile-social-card__identity {
    margin-top: -42px;
    padding-inline: 12px;
  }
  .profile-social__avatar-stack {
    width: 86px;
    height: 86px;
  }
  .profile-social-card__name {
    font-size: 24px;
  }
  .profile-social-card__meta {
    display: grid;
    gap: 6px;
  }
  .profile-social-tabs__item span {
    display: none;
  }
  .profile-social-tabs__item {
    width: 38px;
    padding: 0;
  }
  .profile-social-tabs__item em {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    font-size: 8px;
  }
  .profile-info-grid--compact {
    grid-template-columns: minmax(0,1fr);
  }
  .profile-media-editor__item,
  .profile-media-editor__item--banner {
    display: grid;
    grid-template-columns: minmax(0,1fr);
  }
  .profile-media-editor__preview--banner {
    width: 100%;
    height: 100px;
  }
}

/* Compact profile drawer card v38 */
.site-profile-drawer__panel {
  width: min(356px, calc(100vw - 24px));
  height: auto;
  max-height: calc(100dvh - 24px);
  margin: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(var(--ui-rgb),.085);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(var(--ui-rgb),.028), rgba(var(--ui-rgb),.012)),
    #101010;
  box-shadow: 0 24px 56px rgba(0,0,0,.42);
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb,214,179,106),.22) transparent;
}

.site-profile-drawer__profile-card {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 14px 44px 14px 14px;
  border: 1px solid rgba(var(--ui-rgb),.075);
  border-radius: 14px;
  background:
    radial-gradient(circle at 82% 10%, rgba(var(--accent-rgb,214,179,106),.11), transparent 42%),
    rgba(var(--ui-rgb),.028);
}

.site-profile-drawer__profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(16,16,16,.96) 0%, rgba(16,16,16,.89) 38%, rgba(16,16,16,.44) 68%, rgba(16,16,16,.18) 100%);
}

.site-profile-drawer__banner {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64%;
  overflow: hidden;
  opacity: .58;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.13) 18%, #000 54%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.13) 18%, #000 54%, #000 100%);
}

.site-profile-drawer__banner-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.86) brightness(.72);
}

.site-profile-drawer__banner--fallback {
  opacity: 1;
  background:
    radial-gradient(circle at 76% 18%, rgba(var(--accent-rgb,214,179,106),.22), transparent 31%),
    radial-gradient(circle at 94% 92%, rgba(var(--accent-rgb,214,179,106),.10), transparent 34%),
    linear-gradient(135deg, transparent 18%, rgba(var(--ui-rgb),.045) 18.5%, transparent 19.5%);
}

.site-profile-drawer__profile-main {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 56px minmax(0,1fr);
  gap: 11px;
  align-items: center;
}

.site-profile-drawer__avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(var(--ui-rgb),.11);
  background: rgba(var(--ui-rgb),.055);
  box-shadow: 0 10px 24px rgba(0,0,0,.26);
}

.site-profile-drawer__name-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-profile-drawer__identity h2 {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.12;
  font-weight: 680;
  letter-spacing: -.035em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-profile-drawer__verified {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #74a5ff;
  font-size: 13px;
  line-height: 1;
}

.site-profile-drawer__identity p {
  margin: 4px 0 0;
  color: rgba(var(--ui-rgb),.55);
  font-size: 10.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-profile-drawer__status-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.site-profile-drawer__status,
.site-profile-drawer__premium {
  min-height: 23px;
  padding: 0 7px;
  border-radius: 7px;
  gap: 5px;
  border: 1px solid rgba(var(--ui-rgb),.075);
  background: rgba(var(--ui-rgb),.045);
  color: rgba(var(--ui-rgb),.68);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1;
}

.site-profile-drawer__status--premium,
.site-profile-drawer__status--admin,
.site-profile-drawer__premium {
  border-color: rgba(var(--accent-rgb,214,179,106),.19);
  background: rgba(var(--accent-rgb,214,179,106),.075);
  color: rgba(var(--accent-light-rgb,229,202,135),.94);
}

.site-profile-drawer__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(var(--ui-rgb),.08);
  background: rgba(8,8,9,.46);
  color: rgba(var(--ui-rgb),.78);
  backdrop-filter: blur(8px);
}

.site-profile-drawer__close:hover,
.site-profile-drawer__close:focus-visible {
  border-color: rgba(var(--accent-rgb,214,179,106),.24);
  background: rgba(var(--accent-rgb,214,179,106),.10);
  color: var(--text);
}

.site-profile-drawer__stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 6px;
}

.site-profile-drawer__stat {
  min-width: 0;
  min-height: 46px;
  padding: 6px 4px;
  border: 1px solid rgba(var(--ui-rgb),.065);
  border-radius: 10px;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "icon value"
    "label label";
  justify-content: center;
  align-content: center;
  column-gap: 5px;
  row-gap: 3px;
  background: rgba(var(--ui-rgb),.027);
  color: rgba(var(--ui-rgb),.66);
  text-decoration: none;
}

.site-profile-drawer__stat:hover,
.site-profile-drawer__stat:focus-visible {
  border-color: rgba(var(--accent-rgb,214,179,106),.20);
  background: rgba(var(--accent-rgb,214,179,106),.06);
}

.site-profile-drawer__stat i {
  grid-area: icon;
  align-self: center;
  color: rgba(var(--accent-light-rgb,229,202,135),.90);
  font-size: 10px;
}

.site-profile-drawer__stat strong {
  grid-area: value;
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.02em;
}

.site-profile-drawer__stat span {
  grid-area: label;
  max-width: 100%;
  color: rgba(var(--ui-rgb),.43);
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-profile-drawer__nav {
  min-height: 0;
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 6px;
  padding: 0;
}

.site-profile-drawer__link {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto;
  grid-template-areas: "icon title count";
  column-gap: 7px;
  align-items: center;
  padding: 5px 7px;
  border: 1px solid rgba(var(--ui-rgb),.06);
  border-radius: 10px;
  background: rgba(var(--ui-rgb),.027);
}

.site-profile-drawer__link:hover,
.site-profile-drawer__link:focus-visible {
  border-color: rgba(var(--accent-rgb,214,179,106),.18);
  background: rgba(var(--accent-rgb,214,179,106),.055);
}

.site-profile-drawer__link > i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: rgba(var(--accent-light-rgb,229,202,135),.91);
  background: rgba(var(--accent-rgb,214,179,106),.075);
  font-size: 10.5px;
}

.site-profile-drawer__link > span {
  font-size: 10.5px;
  font-weight: 650;
}

.site-profile-drawer__link-count {
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 6px;
  border-color: rgba(var(--ui-rgb),.06);
  background: rgba(var(--ui-rgb),.035);
  font-size: 8.5px;
}

.site-profile-drawer__link-count--icon {
  min-width: 21px;
  width: 21px;
  padding: 0;
}

.site-profile-drawer__link-count--icon i {
  font-size: 8.5px;
}

.site-profile-drawer__footer {
  display: grid;
  grid-template-columns: minmax(0,1fr) 38px;
  gap: 7px;
  padding-top: 0;
}

.site-profile-drawer__open,
.site-profile-drawer__logout {
  min-height: 38px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 700;
}

.site-profile-drawer__open {
  justify-content: center;
}

.site-profile-drawer__logout {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.site-profile-drawer__logout span {
  display: none;
}

@media (max-width: 760px) {
  .site-profile-drawer__panel {
    width: min(348px, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    margin: 8px;
    padding: 9px;
    border-radius: 14px;
  }

  .site-profile-drawer__profile-card {
    min-height: 108px;
    padding: 12px 40px 12px 12px;
  }

  .site-profile-drawer__profile-main {
    grid-template-columns: 52px minmax(0,1fr);
    gap: 10px;
  }

  .site-profile-drawer__avatar {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }

  .site-profile-drawer__identity h2 {
    font-size: 16px;
  }

  .site-profile-drawer__banner {
    width: 60%;
    opacity: .50;
  }
}

@media (max-width: 380px) {
  .site-profile-drawer__nav {
    grid-template-columns: minmax(0,1fr);
  }

  .site-profile-drawer__stat span {
    font-size: 7.5px;
  }
}



/* Unified verified profile badge v39 */
.profile-status-pill.profile-status-pill--verified {
  border-color: rgba(86, 145, 255, .18);
  background: rgba(86, 145, 255, .10);
  color: #74a5ff;
}

.profile-status-pill.profile-status-pill--verified i {
  color: #74a5ff;
}

.site-profile-drawer__verified {
  color: #74a5ff;
}

/* Profile section navigation v40 */
.profile-page__main {
  transition: opacity .14s ease, transform .14s ease;
  transform-origin: 50% 0;
}

.profile-page__main.is-section-leaving {
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
}

.profile-page__main.is-section-entering {
  animation: profileSectionEnter .18s ease both;
}

.profile-section-navigation-active .profile-social-tabs__item.is-active,
.profile-section-navigation-active .profile-nav-link.is-active {
  pointer-events: none;
}

@keyframes profileSectionEnter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-page__main,
  .profile-page__main.is-section-entering {
    transition-duration: .01ms;
    animation-duration: .01ms;
  }
}

/* Instant in-page profile sections v41 */
.profile-page__main {
  transition: none;
  transform: none;
}

.profile-tab-panel[hidden] {
  display: none !important;
}

.profile-tab-panel.is-active {
  animation: profileTabReveal .12s ease both;
}

@keyframes profileTabReveal {
  from { opacity: .72; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .profile-tab-panel.is-active {
    animation: none;
  }
}

/* Instant color scheme: one design system, no page reload. */
.site-footer__preferences {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-left: auto;
}

.site-theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(var(--ui-rgb), .075);
  border-radius: 9px;
  background: rgba(var(--ui-rgb), .025);
  color: rgba(var(--ui-rgb), .62);
  font: inherit;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .02em;
  cursor: pointer;
}

.site-theme-toggle:hover,
.site-theme-toggle:focus-visible {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .24);
  background: rgba(var(--accent-rgb, 214, 179, 106), .09);
  color: var(--gold);
}

.site-theme-toggle i {
  width: 13px;
  font-size: 12px;
  text-align: center;
}

.site-theme-toggle--floating {
  position: fixed;
  z-index: 970;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-color: var(--border);
  background: var(--panel-bg);
  color: var(--text);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}

.site-profile-drawer__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 650;
}

.site-profile-drawer__footer {
  grid-template-columns: minmax(0, 1fr) 38px 38px;
}

.site-profile-drawer__theme {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.site-profile-drawer__theme span {
  display: none;
}

.site-profile-drawer__theme:hover,
.site-profile-drawer__theme:focus-visible {
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .24);
  background: rgba(var(--accent-rgb, 214, 179, 106), .09);
  color: var(--gold);
}

:root.theme-switching body,
:root.theme-switching .sidebar,
:root.theme-switching .content,
:root.theme-switching .site-footer,
:root.theme-switching .ui-card,
:root.theme-switching .site-profile-drawer__panel,
:root.theme-switching .site-notifications-modal__dialog {
  transition: background-color .18s ease, border-color .18s ease, color .18s ease !important;
}

:root[data-theme="light"] body,
:root[data-theme="light"] .content,
:root[data-theme="light"] .legal-layout,
:root[data-theme="light"] .profile-page,
:root[data-theme="light"] .product-page,
:root[data-theme="light"] .premium-page,
:root[data-theme="light"] .neohelper-page,
:root[data-theme="light"] .chat-page-content {
  background-color: var(--bg-main) !important;
}

:root[data-theme="light"] .sidebar,
:root[data-theme="light"] .sidebar__menu-shell,
:root[data-theme="light"] .site-auth-rail,
:root[data-theme="light"] .auth-entry-card,
:root[data-theme="light"] .site-notifications-modal__dialog,
:root[data-theme="light"] .product-quick-view__panel,
:root[data-theme="light"] .profile-library-card,
:root[data-theme="light"] .profile-login-event,
:root[data-theme="light"] .profile-session-item,
:root[data-theme="light"] .profile-push-card,
:root[data-theme="light"] .site-push-prompt,
:root[data-theme="light"] .site-toast {
  background: var(--panel-bg) !important;
  background-image: none !important;
  border-color: var(--border) !important;
  color: var(--text);
}

:root[data-theme="light"] .sidebar__nav--pretty > .sidebar__link,
:root[data-theme="light"] .sidebar__categories .sidebar__link,
:root[data-theme="light"] .sidebar__link,
:root[data-theme="light"] .site-auth-rail__button,
:root[data-theme="light"] .site-auth-rail__logout,
:root[data-theme="light"] .favorite-btn,
:root[data-theme="light"] .ui-badge--dark,
:root[data-theme="light"] .profile-push-card__toggle,
:root[data-theme="light"] .profile-push-card__test {
  background: var(--gray-control) !important;
  background-image: none !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

:root[data-theme="light"] .sidebar__nav--pretty > .sidebar__link:hover,
:root[data-theme="light"] .sidebar__categories .sidebar__link:hover,
:root[data-theme="light"] .sidebar__link:hover,
:root[data-theme="light"] .site-auth-rail__button:hover,
:root[data-theme="light"] .site-auth-rail__logout:hover,
:root[data-theme="light"] .favorite-btn:hover {
  background: var(--gray-control-hover) !important;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .22) !important;
  color: var(--gold) !important;
}

:root[data-theme="light"] .sidebar__nav--pretty > .sidebar__link span,
:root[data-theme="light"] .sidebar__categories .sidebar__link span,
:root[data-theme="light"] .sidebar__link span,
:root[data-theme="light"] .site-auth-rail__tooltip,
:root[data-theme="light"] .site-auth-rail__logout::after,
:root[data-theme="light"] .sidebar__brand-meta {
  background: var(--panel-bg) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

:root[data-theme="light"] .auth-modal__dialog {
  background: var(--panel-bg) !important;
  background-image: none !important;
  border-color: var(--border) !important;
}

:root[data-theme="light"] .auth-modal__header,
:root[data-theme="light"] .product-quick-view__media {
  --ui-rgb: 255, 255, 255;
  --text: #f6f7fb;
  --panel-bg: #101010;
  --panel-bg-strong: #0b0b0b;
  --gray-panel-2: #121212;
  --gray-panel-3: #171717;
  --field-bg: #131313;
  --field-bg-focus: #151515;
}

:root[data-theme="light"] .auth-modal__header,
:root[data-theme="light"] .auth-modal__header .auth-modal__title,
:root[data-theme="light"] .auth-modal__header .auth-modal__text {
  color: var(--text) !important;
}

:root[data-theme="light"] .catalog-pro__select select option,
:root[data-theme="light"] select option {
  background: var(--panel-bg);
  color: var(--text);
}

/* Light surfaces that intentionally keep media itself untouched. */
:root[data-theme="light"] .profile-social-card {
  background: var(--panel-bg) !important;
  border-color: var(--border) !important;
  color: var(--text);
  box-shadow: none;
}

:root[data-theme="light"] .profile-social-card__cover {
  background:
    radial-gradient(circle at 74% 20%, rgba(var(--accent-rgb, 214, 179, 106), .18), transparent 32%),
    linear-gradient(135deg, #edf1f5, #dfe5ec 72%);
}

:root[data-theme="light"] .profile-social-card__cover::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, .12) 56%, var(--panel-bg) 100%);
}

:root[data-theme="light"] .profile-social-card__edit {
  background: rgba(16, 18, 22, .82);
  border-color: rgba(255, 255, 255, .18);
  color: #f5f7fa;
}

:root[data-theme="light"] .profile-social__avatar-stack {
  border-color: var(--panel-bg);
  box-shadow: 0 12px 30px rgba(20, 29, 45, .12);
}

:root[data-theme="light"] .profile-social-card__stat,
:root[data-theme="light"] .profile-social-tabs__item:hover {
  background: var(--surface-2);
  border-color: var(--border);
}

:root[data-theme="light"] .profile-social-card__name,
:root[data-theme="light"] .profile-social-card__handle,
:root[data-theme="light"] .profile-social-card__bio,
:root[data-theme="light"] .profile-social-card__meta,
:root[data-theme="light"] .profile-social-card__stat,
:root[data-theme="light"] .profile-social-tabs__item {
  color: var(--text);
}

:root[data-theme="light"] .profile-social-card__handle,
:root[data-theme="light"] .profile-social-card__bio,
:root[data-theme="light"] .profile-social-card__meta,
:root[data-theme="light"] .profile-social-card__stat span {
  color: var(--muted);
}

:root[data-theme="light"] .profile-social-tabs {
  border-color: var(--border);
}

:root[data-theme="light"] .profile-social-tabs__item.is-active {
  background: rgba(var(--accent-rgb, 214, 179, 106), .13);
  color: var(--accent-dark, #9a6d24);
}

:root[data-theme="light"] .site-profile-drawer__profile-card {
  background: var(--panel-bg);
  border-color: var(--border);
  color: var(--text);
}

:root[data-theme="light"] .site-profile-drawer__profile-card::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .92) 42%, rgba(255, 255, 255, .52) 72%, rgba(255, 255, 255, .2) 100%);
}

:root[data-theme="light"] .site-profile-drawer__identity h2,
:root[data-theme="light"] .site-profile-drawer__identity p {
  color: var(--text);
}

:root[data-theme="light"] .site-profile-drawer__identity p {
  color: var(--muted);
}

:root[data-theme="light"] .sidebar__nav--pretty > .sidebar__link span::before,
:root[data-theme="light"] .sidebar__categories .sidebar__link span::before,
:root[data-theme="light"] .sidebar__link span::before,
:root[data-theme="light"] .site-auth-rail__tooltip::before,
:root[data-theme="light"] .sidebar__brand-meta::before {
  background: var(--panel-bg) !important;
  border-color: var(--border) !important;
}

:root[data-theme="light"] .product-card,
:root[data-theme="light"] .products > .product-card:nth-child(7n + 1) {
  background: var(--panel-bg) !important;
  background-image: none !important;
  border-color: var(--border) !important;
}

:root[data-theme="light"] .product-card__body,
:root[data-theme="light"] .products > .product-card:nth-child(7n + 1) .product-card__body,
:root[data-theme="light"] .homev2-showcase #homev2LatestProducts > .product-card .product-card__body {
  background: var(--panel-bg) !important;
}

:root[data-theme="light"] .product-card__footer {
  background: var(--panel-bg-strong);
  border-color: var(--border);
}

:root[data-theme="light"] .product-card__title,
:root[data-theme="light"] .product-card__title-link,
:root[data-theme="light"] .product-card__title-link:visited {
  color: var(--text) !important;
}

:root[data-theme="light"] .product-card__title-link:hover,
:root[data-theme="light"] .product-card__title-link:focus-visible {
  color: var(--accent-dark, #9a6d24) !important;
}

:root[data-theme="light"] .product-card__category {
  background: rgba(16, 18, 22, .88) !important;
  border-color: rgba(255, 255, 255, .15) !important;
  color: #f5f7fa !important;
}

:root[data-theme="light"] .product-card__badge {
  background: var(--gold-button-bg, var(--gold-gradient)) !important;
  border-color: transparent !important;
  color: var(--gold-button-text, #111111) !important;
}

:root[data-theme="light"] .product-card__quick-action {
  background: rgba(16, 18, 22, .86) !important;
  border-color: rgba(255, 255, 255, .16) !important;
  color: #f5f7fa !important;
}

:root[data-theme="light"] .product-card__quick-action:hover,
:root[data-theme="light"] .product-card__quick-action:focus-visible {
  background: rgba(16, 18, 22, .96) !important;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .7) !important;
  color: var(--accent-light, #e5ca87) !important;
}

:root[data-theme="light"] .product-card__favorite.is-active,
:root[data-theme="light"] .product-card__favorite[aria-pressed="true"] {
  background: rgba(var(--accent-rgb, 214, 179, 106), .24) !important;
  border-color: var(--accent-color, #d6b36a) !important;
  color: var(--accent-light, #e5ca87) !important;
}

@media (max-width: 620px) {
  .site-footer__preferences {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .site-theme-toggle:not(.site-theme-toggle--floating) span {
    display: none;
  }

  .site-theme-toggle:not(.site-theme-toggle--floating) {
    width: 34px;
    padding: 0;
  }

  .site-profile-drawer__theme span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root.theme-switching body,
  :root.theme-switching * {
    transition-duration: .01ms !important;
  }
}

/* Light theme form contrast guard for profile, catalogue and shared dialogs. */
:root[data-theme="light"] body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
:root[data-theme="light"] body textarea,
:root[data-theme="light"] body select,
:root[data-theme="light"] body [contenteditable="true"] {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--accent-dark, #9a6d24) !important;
}

:root[data-theme="light"] body input::placeholder,
:root[data-theme="light"] body textarea::placeholder,
:root[data-theme="light"] body [contenteditable="true"]:empty::before {
  color: var(--ui-text-faint) !important;
  -webkit-text-fill-color: var(--ui-text-faint) !important;
  opacity: 1;
}

:root[data-theme="light"] body input:disabled,
:root[data-theme="light"] body textarea:disabled,
:root[data-theme="light"] body select:disabled,
:root[data-theme="light"] body input[readonly],
:root[data-theme="light"] body textarea[readonly] {
  color: var(--muted) !important;
  -webkit-text-fill-color: var(--muted) !important;
  opacity: 1;
}

:root[data-theme="light"] body input:-webkit-autofill,
:root[data-theme="light"] body input:-webkit-autofill:hover,
:root[data-theme="light"] body input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--accent-dark, #9a6d24) !important;
  box-shadow: 0 0 0 1000px var(--field-bg) inset !important;
}

/* Public banner navigation must remain visible over dark artwork in light mode. */
:root[data-theme="light"] .home-banners__arrow {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(23, 32, 51, .22);
  color: #172033;
  box-shadow: 0 5px 18px rgba(10, 16, 28, .18);
}

:root[data-theme="light"] .home-banners__arrow:hover,
:root[data-theme="light"] .home-banners__arrow:focus-visible,
:root[data-theme="light"] .home-banners__arrow:active {
  background: #ffffff;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .68);
  color: var(--accent-dark, #9a6d24);
}

:root[data-theme="light"] .home-banners__dot {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(23, 32, 51, .26);
  box-shadow: 0 2px 8px rgba(10, 16, 28, .16);
}

:root[data-theme="light"] .home-banners__dot.is-active {
  background: var(--accent-color, #d6b36a);
  border-color: rgba(255, 255, 255, .78);
}

/* Active navigation remains obvious in the light color scheme. */
:root[data-theme="light"] .sidebar__nav--pretty > .sidebar__link.sidebar__link--active,
:root[data-theme="light"] .sidebar__categories .sidebar__link.sidebar__link--active,
:root[data-theme="light"] .sidebar__link.sidebar__link--active {
  background: rgba(var(--accent-rgb, 214, 179, 106), .12) !important;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .34) !important;
  color: var(--accent-dark, #9a6d24) !important;
  box-shadow: none !important;
}

:root[data-theme="light"] .sidebar__nav--pretty > .sidebar__link.sidebar__link--active:hover,
:root[data-theme="light"] .sidebar__categories .sidebar__link.sidebar__link--active:hover,
:root[data-theme="light"] .sidebar__link.sidebar__link--active:hover,
:root[data-theme="light"] .sidebar__nav--pretty > .sidebar__link.sidebar__link--active:focus-visible,
:root[data-theme="light"] .sidebar__categories .sidebar__link.sidebar__link--active:focus-visible,
:root[data-theme="light"] .sidebar__link.sidebar__link--active:focus-visible {
  background: rgba(var(--accent-rgb, 214, 179, 106), .16) !important;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .42) !important;
  color: var(--accent-dark, #9a6d24) !important;
  box-shadow: none !important;
}

:root[data-theme="light"] .site-auth-rail__button.is-active,
:root[data-theme="light"] .site-auth-rail__button[aria-current="page"] {
  background: rgba(var(--accent-rgb, 214, 179, 106), .12) !important;
  border-color: rgba(var(--accent-rgb, 214, 179, 106), .34) !important;
  color: var(--accent-dark, #9a6d24) !important;
  box-shadow: none !important;
}

/* Unified NeoHelper typography scale: shared public pages. */
.intro__title,
.catalog__title,
.maintenance-screen__title,
.profile-page__title,
.profile-social-card__name,
.legal-title,
.legal-hero__title {
  font-family: var(--font-sans) !important;
  font-size: var(--type-page-title) !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}

.catalog__heading,
.ui-title,
.profile-card-section__title,
.legal-section__title {
  font-family: var(--font-sans) !important;
  font-size: var(--type-section-title) !important;
  font-weight: 600 !important;
  line-height: 1.16 !important;
  letter-spacing: -.025em !important;
}

.auth-entry-card__title,
.auth-modal__title,
.auth-sheet__title,
.intro-channel-card__title,
.site-empty-state__title,
.site-toast__title,
.site-footer__title,
.profile-library-card__title,
.profile-download-row__title,
.product-card__title {
  font-family: var(--font-sans) !important;
  font-size: var(--type-card-heading) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: -.015em !important;
}

.intro__text,
.catalog__subtext,
.profile-page__text,
.legal-subtitle,
.legal-hero__text {
  font-size: var(--type-body-lg) !important;
  font-weight: 400 !important;
  line-height: 1.62 !important;
}


/* Light theme contrast pass: profile lists, notes and status badges */
:root[data-theme="light"] .profile-purchase-item,
:root[data-theme="light"] .profile-connection-card,
:root[data-theme="light"] .profile-security-link,
:root[data-theme="light"] .profile-download-row {
  background: #ffffff !important;
  border-color: #d8dee7 !important;
  color: var(--text) !important;
}

:root[data-theme="light"] .profile-purchase-item__title,
:root[data-theme="light"] .profile-purchase-item__title:visited,
:root[data-theme="light"] .profile-connection-card__name {
  color: #1f2b40 !important;
  -webkit-text-fill-color: #1f2b40 !important;
  opacity: 1 !important;
}

:root[data-theme="light"] .profile-purchase-item__title:hover,
:root[data-theme="light"] .profile-purchase-item__title:focus-visible {
  color: var(--accent-dark, #8d631f) !important;
  -webkit-text-fill-color: var(--accent-dark, #8d631f) !important;
}

:root[data-theme="light"] .profile-purchase-item__meta,
:root[data-theme="light"] .profile-connection-card__text {
  color: #667286 !important;
  opacity: 1 !important;
}

:root[data-theme="light"] .profile-provider-note,
:root[data-theme="light"] .profile-readonly-note,
:root[data-theme="light"] .profile-readonly-note.site-empty-state {
  background: #f1f4f7 !important;
  background-image: none !important;
  border: 1px solid #d8dee7 !important;
  color: #5c687b !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

:root[data-theme="light"] .profile-status-pill.ui-badge {
  border-color: #cbd4df !important;
  background: #e8edf3 !important;
  color: #445469 !important;
  -webkit-text-fill-color: #445469 !important;
  opacity: 1 !important;
}

:root[data-theme="light"] .profile-status-pill.ui-badge.is-muted,
:root[data-theme="light"] .profile-status-pill.ui-badge.is-user {
  border-color: #c8d1dc !important;
  background: #e7ecf2 !important;
  color: #45566c !important;
  -webkit-text-fill-color: #45566c !important;
}

:root[data-theme="light"] .profile-status-pill.ui-badge.is-success {
  border-color: #abd9be !important;
  background: #e7f6ed !important;
  color: #1f7049 !important;
  -webkit-text-fill-color: #1f7049 !important;
}

:root[data-theme="light"] .profile-status-pill.ui-badge.is-warning,
:root[data-theme="light"] .profile-status-pill.ui-badge.is-premium {
  border-color: #e2c98f !important;
  background: #fff4da !important;
  color: #805a16 !important;
  -webkit-text-fill-color: #805a16 !important;
}

:root[data-theme="light"] .profile-status-pill.ui-badge.is-danger,
:root[data-theme="light"] .profile-status-pill.ui-badge.is-admin {
  border-color: #efbcc2 !important;
  background: #fdebed !important;
  color: #9e2d38 !important;
  -webkit-text-fill-color: #9e2d38 !important;
}

:root[data-theme="light"] .profile-status-pill.ui-badge i,
:root[data-theme="light"] .profile-status-pill.ui-badge span {
  color: currentColor !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
}


/* ==========================================================================
   Light profile audit v50: readable text, clean surfaces, unified verified blue
   ========================================================================== */
:root[data-theme="light"] .profile-card-section,
:root[data-theme="light"] .profile-info-card,
:root[data-theme="light"] .profile-media-editor__item,
:root[data-theme="light"] .profile-notification-item,
:root[data-theme="light"] .profile-login-event,
:root[data-theme="light"] .profile-session-item,
:root[data-theme="light"] .profile-push-card,
:root[data-theme="light"] .profile-aside__card {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #d8dee7 !important;
  color: #172033 !important;
  box-shadow: none !important;
}

:root[data-theme="light"] .profile-media-editor__preview {
  background: #f3f6f9 !important;
  border-color: #d4dbe5 !important;
}

:root[data-theme="light"] .profile-media-editor__banner-placeholder {
  background: linear-gradient(135deg, #f3f6f9, #e7edf4) !important;
  color: var(--accent-dark, #8d631f) !important;
}

:root[data-theme="light"] .profile-card-section__title,
:root[data-theme="light"] .profile-info-card__value,
:root[data-theme="light"] .profile-media-editor__content > strong,
:root[data-theme="light"] .profile-library-card__title,
:root[data-theme="light"] .profile-download-row__title,
:root[data-theme="light"] .profile-notification-item__title,
:root[data-theme="light"] .profile-login-event__device,
:root[data-theme="light"] .profile-session-item__device,
:root[data-theme="light"] .profile-push-card__title,
:root[data-theme="light"] .profile-aside-user__name,
:root[data-theme="light"] .profile-aside__value,
:root[data-theme="light"] .profile-nav-link__content strong,
:root[data-theme="light"] .profile-security-link strong,
:root[data-theme="light"] .profile-form .auth-field__label {
  color: #1f2b40 !important;
  -webkit-text-fill-color: #1f2b40 !important;
  opacity: 1 !important;
}

:root[data-theme="light"] .profile-card-section__text,
:root[data-theme="light"] .profile-info-card__label,
:root[data-theme="light"] .profile-media-editor__content > span,
:root[data-theme="light"] .profile-media-editor__remove,
:root[data-theme="light"] .profile-field-hint,
:root[data-theme="light"] .profile-avatar-url-field .auth-field__label em,
:root[data-theme="light"] .profile-banner-url-field .auth-field__label em,
:root[data-theme="light"] .profile-library-card__meta,
:root[data-theme="light"] .profile-download-row__meta,
:root[data-theme="light"] .profile-notification-item__body,
:root[data-theme="light"] .profile-notification-item__meta,
:root[data-theme="light"] .profile-login-event__meta,
:root[data-theme="light"] .profile-session-item__meta,
:root[data-theme="light"] .profile-push-card__text,
:root[data-theme="light"] .profile-aside-user__meta,
:root[data-theme="light"] .profile-aside-user__subtitle,
:root[data-theme="light"] .profile-aside__label,
:root[data-theme="light"] .profile-nav-link__arrow {
  color: #667286 !important;
  -webkit-text-fill-color: #667286 !important;
  opacity: 1 !important;
}

:root[data-theme="light"] .profile-file-button {
  background: #fff7e7 !important;
  border-color: #e4c98e !important;
  color: #805a16 !important;
  -webkit-text-fill-color: #805a16 !important;
}

:root[data-theme="light"] .profile-file-button:hover,
:root[data-theme="light"] .profile-file-button:focus-within {
  background: #ffefcf !important;
  border-color: #d8b66e !important;
  color: #704b0f !important;
}

:root[data-theme="light"] .profile-media-editor__remove input {
  accent-color: var(--accent-dark, #8d631f);
}

:root[data-theme="light"] .profile-login-event.is-recent,
:root[data-theme="light"] .profile-session-item.is-current {
  background: #fffaf0 !important;
  background-image: none !important;
  border-color: #e5ce9d !important;
}

/* Verified identity is blue everywhere in the shared profile UI. */
.profile-status-pill.profile-status-pill--verified,
.site-profile-drawer__verified {
  color: #4f8ef7 !important;
  -webkit-text-fill-color: #4f8ef7 !important;
}

.profile-status-pill.profile-status-pill--verified {
  border-color: rgba(79, 142, 247, .28) !important;
  background: rgba(79, 142, 247, .12) !important;
  background-image: none !important;
}

.profile-status-pill.profile-status-pill--verified i,
.profile-status-pill.profile-status-pill--verified span,
.site-profile-drawer__verified i {
  color: currentColor !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
}

:root[data-theme="light"] .profile-status-pill.profile-status-pill--verified {
  border-color: #b8d1fb !important;
  background: #eaf2ff !important;
  color: #2563c9 !important;
  -webkit-text-fill-color: #2563c9 !important;
}

:root[data-theme="light"] .site-profile-drawer__verified {
  color: #2563c9 !important;
  -webkit-text-fill-color: #2563c9 !important;
}

/* Light profile controls/badges completion. */
:root[data-theme="light"] .site-notifications-modal__read-all,
:root[data-theme="light"] .ui-btn.profile-notifications-read-all,
:root[data-theme="light"] .profile-push-card__test,
:root[data-theme="light"] .profile-push-card__toggle:not(.is-active) {
  color: #566579 !important;
  -webkit-text-fill-color: #566579 !important;
  background: #eef2f6 !important;
  border-color: #cfd7e2 !important;
}

:root[data-theme="light"] .site-notifications-modal__read-all:hover,
:root[data-theme="light"] .site-notifications-modal__read-all:focus-visible,
:root[data-theme="light"] .ui-btn.profile-notifications-read-all:hover,
:root[data-theme="light"] .ui-btn.profile-notifications-read-all:focus-visible,
:root[data-theme="light"] .profile-push-card__test:not(:disabled):hover,
:root[data-theme="light"] .profile-push-card__toggle:not(:disabled):not(.is-active):hover,
:root[data-theme="light"] .site-notification__meta a:hover,
:root[data-theme="light"] .profile-notification-item__meta a:hover {
  color: var(--accent-dark, #8d631f) !important;
  -webkit-text-fill-color: var(--accent-dark, #8d631f) !important;
}

:root[data-theme="light"] .profile-push-card__toggle.is-active {
  color: #1f7049 !important;
  -webkit-text-fill-color: #1f7049 !important;
  background: #e7f6ed !important;
  border-color: #abd9be !important;
}

:root[data-theme="light"] .profile-library-card .profile-library-badge--premium,
:root[data-theme="light"] .profile-library-card .profile-library-badge--premium.ui-badge {
  color: #805a16 !important;
  -webkit-text-fill-color: #805a16 !important;
  background: #fff4da !important;
  border-color: #e2c98f !important;
}

/* ==========================================================================\n   Light theme cleanup v51: softer online presence\n   ========================================================================== */
:root[data-theme="light"] .site-profile-presence {
  background: linear-gradient(135deg, #f7faf8, #f4f6f8) !important;
  border-color: #dce3e8 !important;
  box-shadow: none !important;
}

:root[data-theme="light"] .site-profile-presence__dot {
  background: #63a874 !important;
  box-shadow: none !important;
}

:root[data-theme="light"] .site-profile-presence strong {
  color: #2b374a !important;
  -webkit-text-fill-color: #2b374a !important;
}

:root[data-theme="light"] .site-profile-presence p {
  color: #7b8797 !important;
  -webkit-text-fill-color: #7b8797 !important;
}

:root[data-theme="light"] .site-profile-presence__avatar {
  border-color: #ffffff !important;
  background: #edf1f4 !important;
}

:root[data-theme="light"] .site-profile-presence__avatar::after {
  border-color: #ffffff !important;
  background: #63a874 !important;
}

:root[data-theme="light"] .site-profile-presence [data-site-presence-count] {
  color: #5d9870 !important;
  -webkit-text-fill-color: #5d9870 !important;
}

/* ==========================================================================\n   Light theme polish v52: calmer free marketplace cards\n   ========================================================================== */
:root[data-theme="light"] .product-card__free-note,
:root[data-theme="light"] .product-card__access-note {
  background: #edf7f0 !important;
  background-image: none !important;
  border-color: #c8dfd0 !important;
  color: #4d8d63 !important;
  -webkit-text-fill-color: #4d8d63 !important;
}

:root[data-theme="light"] .product-card__free-note i,
:root[data-theme="light"] .product-card__free-note span,
:root[data-theme="light"] .product-card__access-note i,
:root[data-theme="light"] .product-card__access-note span {
  color: currentColor !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
}

:root[data-theme="light"] .product-card--free .product-card__price {
  color: #4d8d63 !important;
  -webkit-text-fill-color: #4d8d63 !important;
}

/* Light theme: product loading skeleton must use light neutral surfaces. */
:root[data-theme="light"] .product-skeleton {
  background: var(--panel-bg-strong) !important;
  border-color: var(--border) !important;
}

:root[data-theme="light"] .product-skeleton__media {
  background: var(--gray-panel-3) !important;
}

:root[data-theme="light"] .product-skeleton__line,
:root[data-theme="light"] .product-skeleton__pill,
:root[data-theme="light"] .product-skeleton__button {
  background: rgba(var(--ui-rgb), .065) !important;
}

:root[data-theme="light"] .product-skeleton__line--title {
  background: rgba(var(--ui-rgb), .085) !important;
}

:root[data-theme="light"] .product-skeleton::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.58) 46%, transparent 100%) !important;
}

/* Profile tab card spacing fix v42 */
.profile-tab-panel.is-active {
  display: grid;
  gap: 18px;
}

@media (max-width: 900px) {
  .profile-tab-panel.is-active {
    gap: 16px;
  }
}

@media (max-width: 620px) {
  .profile-tab-panel.is-active {
    gap: 14px;
  }
}

