:root {
  --bg: #050507;
  --bg-2: #09090d;
  --panel: #0f1016;
  --panel-2: #151620;
  --panel-3: #1b1c29;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f6f7fb;
  --muted: #9298a8;
  --accent-rgb: 255, 33, 79;
  --accent-2-rgb: 184, 15, 47;
  --red: #ff214f;
  --red-2: #b80f2f;
  --red-3: #ff6d88;
  --red-soft: rgba(var(--accent-rgb), 0.14);
  --accent-ink: #12040a;
  --accent-surface: #25070d;
  --green: #3cf29b;
  --amber: #ffc857;
  --sidebar: 284px;
  --radius: 8px;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

body[data-theme="blue"] {
  --accent-rgb: 47, 124, 255;
  --accent-2-rgb: 23, 76, 188;
  --red: #2f7cff;
  --red-2: #174cbc;
  --red-3: #77b6ff;
  --red-soft: rgba(47, 124, 255, 0.14);
  --accent-ink: #031122;
  --accent-surface: #071631;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(115deg, rgba(var(--accent-rgb), 0.16), transparent 34%),
    linear-gradient(245deg, rgba(var(--accent-2-rgb), 0.12), transparent 36%),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.loading {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), transparent 38%),
    #040405;
  background-size: 48px 48px, 48px 48px, auto, auto;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  display: grid;
  width: min(340px, 100%);
  justify-items: center;
  gap: 16px;
}

.loader-logo {
  position: relative;
  width: 132px;
  height: 132px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.62);
  border-radius: 50%;
  background: var(--panel);
  transform: translateZ(0);
  animation: loaderLift 1.8s ease-in-out infinite alternate;
}

.loader-logo::after {
  position: absolute;
  inset: -35% -80%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: rotate(18deg) translateX(-35%);
  animation: logoSweep 1.55s linear infinite;
}

.loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loader-copy {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.loader-copy strong {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.loader-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.loader-bar {
  width: min(260px, 78vw);
  height: 6px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.loader-bar span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--red), var(--red-3), var(--red), transparent);
  transform: translateX(-120%);
  animation: loaderProgress 1.05s ease-in-out infinite;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

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

svg {
  display: block;
}

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

h1 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.08;
}

h2 {
  margin-bottom: 0;
  font-size: 2.5rem;
  line-height: 1.04;
}

h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
}

h4 {
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.is-hidden {
  display: none !important;
}

.kicker {
  margin: 0 0 9px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  width: min(1080px, 100%);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-visual {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: 34px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.22) 0 2px, transparent 2px 32px),
    linear-gradient(145deg, #08080b, #161018 58%, var(--accent-surface));
}

.auth-visual::before,
.auth-visual::after,
.hero-redline,
.auth-lines span {
  will-change: transform;
}

.auth-visual::before {
  position: absolute;
  top: 86px;
  right: -80px;
  width: 420px;
  height: 2px;
  content: "";
  background: var(--red);
  transform: rotate(-28deg);
  animation: neonSlide 5s linear infinite;
}

.auth-visual::after {
  position: absolute;
  right: 44px;
  bottom: 54px;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: var(--radius);
  transform: rotate(12deg);
}

.auth-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-logo span,
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.6);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.42), rgba(var(--accent-rgb), 0.08));
}

.brand-mark {
  overflow: hidden;
  background: #08080b;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-logo span {
  overflow: hidden;
  background: #08080b;
}

.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-logo strong {
  font-size: 1.05rem;
}

.auth-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-lines span {
  position: absolute;
  left: -30%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  transform: rotate(-18deg);
  animation: lineRun 5.5s linear infinite;
}

.auth-lines span:nth-child(1) {
  top: 28%;
}

.auth-lines span:nth-child(2) {
  top: 46%;
  animation-delay: 900ms;
}

.auth-lines span:nth-child(3) {
  top: 64%;
  animation-delay: 1700ms;
}

.auth-copy {
  position: relative;
  z-index: 1;
  max-width: 460px;
}

.auth-copy h1 {
  margin-bottom: 16px;
  font-size: 3rem;
}

.auth-copy p:last-child {
  margin-bottom: 0;
}

.auth-panel {
  display: grid;
  align-content: center;
  padding: 54px;
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), transparent 28%),
    var(--panel);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.auth-tab:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.auth-tab.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.7), rgba(var(--accent-2-rgb), 0.82));
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: grid;
  gap: 14px;
}

.auth-helper-link {
  justify-self: start;
  padding: 0;
  border: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.auth-helper-link:hover,
.auth-helper-link:focus-visible {
  color: var(--text);
}

.auth-reset-modal {
  max-width: 520px;
}

.auth-reset-modal-body {
  display: grid;
  gap: 14px;
}

.auth-reset-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.auth-verify-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), transparent 76%),
    var(--bg-2);
}

.auth-verify-head {
  display: grid;
  gap: 4px;
}

.auth-verify-head strong {
  font-size: 0.98rem;
}

.auth-verify-head small,
.auth-verify-note {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-verify-note {
  margin: 0;
}

.auth-verify-actions {
  display: grid;
  gap: 10px;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.auth-panel .auth-links .auth-link-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: rgba(246, 247, 251, 0.52) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: color 160ms ease, opacity 160ms ease !important;
}

.auth-panel .auth-links .auth-link-button:hover,
.auth-panel .auth-links .auth-link-button:focus-visible {
  color: var(--text) !important;
  outline: none !important;
}

.auth-links span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.52);
}

.field {
  display: grid;
  gap: 8px;
}

.field + .field {
  margin-top: 14px;
}

.field span,
.quantity-row > span {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select,
.admin-order-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #0a0b10;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field input,
.field select,
.admin-order-row select {
  height: 48px;
  padding: 0 14px;
}

.field textarea {
  min-height: 124px;
  padding: 13px 14px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.admin-order-row select:focus {
  border-color: rgba(var(--accent-rgb), 0.9);
  background: #101119;
  outline: 2px solid rgba(var(--accent-rgb), 0.34);
  outline-offset: 2px;
}

.primary-action,
.ghost-action,
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-action {
  color: var(--text);
  border: 1px solid rgba(var(--accent-rgb), 0.72);
  background: linear-gradient(135deg, var(--red), var(--red-2));
}

.ghost-action,
.card-action {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.primary-action:hover,
.ghost-action:hover,
.card-action:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.82);
}

.primary-action:disabled,
.ghost-action:disabled,
.card-action:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.primary-action.is-disabled,
.ghost-action.is-disabled,
.card-action.is-disabled {
  border-color: rgba(158, 165, 180, 0.24);
  color: rgba(244, 246, 255, 0.8);
  background: linear-gradient(180deg, #5b6272 0%, #454b58 100%);
  box-shadow: none;
  cursor: not-allowed;
}

.primary-action.is-disabled:hover,
.ghost-action.is-disabled:hover,
.card-action.is-disabled:hover {
  transform: none;
  border-color: rgba(158, 165, 180, 0.24);
}

.ghost-action.danger {
  border-color: rgba(var(--accent-rgb), 0.68);
  background: rgba(var(--accent-rgb), 0.12);
}

.wide {
  width: 100%;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.app.sidebar-compact {
  --sidebar: 88px;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), transparent 34%),
    #07080c;
}

.sidebar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.brand-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 160ms ease, width 160ms ease;
}

.brand strong,
.brand small,
.user-pill strong,
.user-pill small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small,
.user-pill small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.sidebar-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.sidebar-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.72);
  background: var(--red-soft);
}

.sidebar-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  transition: transform 160ms ease;
}

.app.sidebar-compact .sidebar-head {
  grid-template-columns: 42px;
  justify-content: center;
}

.app.sidebar-compact .brand-text,
.app.sidebar-compact .status-text,
.app.sidebar-compact .nav-label {
  width: 0;
  opacity: 0;
}

.app.sidebar-compact .sidebar-toggle {
  grid-row: 2;
}

.app.sidebar-compact .sidebar-toggle svg {
  transform: rotate(180deg);
}

.side-nav {
  display: grid;
  gap: 7px;
}

.side-nav.is-sorting {
  user-select: none;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  padding: 9px 10px;
  overflow: hidden;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  cursor: grab;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-item:active {
  cursor: grabbing;
}

.nav-item.dragging {
  opacity: 0.48;
  transform: scale(0.98);
  border-color: rgba(var(--accent-rgb), 0.72);
  background: rgba(var(--accent-rgb), 0.16);
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.38);
  background: rgba(var(--accent-rgb), 0.1);
}

.nav-item.active::before {
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  content: "";
  background: var(--red);
}

.nav-item:hover {
  transform: translateX(3px);
}

.nav-badge {
  position: absolute;
  right: 8px;
  top: 7px;
  z-index: 2;
  min-height: 22px;
  min-width: 28px;
  padding: 2px 7px;
  justify-content: center;
  border-color: rgba(60, 242, 155, 0.72);
  background: var(--green);
  color: #04110b;
  font-size: 0.72rem;
  font-weight: 1000;
}

.nav-badge[hidden] {
  display: none;
}

.nav-icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
}

.nav-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.nav-label {
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 160ms ease, width 160ms ease;
}

.app.sidebar-compact .nav-item {
  justify-content: center;
  padding: 8px;
}

.app.sidebar-compact .nav-item:hover {
  transform: translateY(-2px);
}

[data-admin-only][hidden] {
  display: none !important;
}

.admin-nav-item {
  color: rgba(255, 214, 224, 0.88);
}

.chat-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chat-page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.chat-page-actions #chatProfanityToggle.is-off {
  border-color: rgba(255, 191, 71, 0.46);
  color: #ffd891;
  background: rgba(255, 191, 71, 0.1);
}

.chat-admin-links {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.1), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.chat-admin-links[hidden] {
  display: none;
}

.chat-admin-links mark {
  min-width: 36px;
  padding: 5px 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 999px;
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.2);
  font-size: 0.78rem;
  font-weight: 1000;
  text-align: center;
}

.chat-admin-links mark[hidden] {
  display: none;
}

.chat-links-list {
  display: grid;
  gap: 10px;
}

.chat-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
}

.chat-link-row p {
  max-width: 100%;
  margin: 4px 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.chat-link-row small {
  color: var(--muted);
}

.chat-link-row > div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chat-admin-panel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: var(--radius);
  background: rgba(var(--accent-rgb), 0.08);
}

.chat-admin-panel[hidden] {
  display: none;
}

.chat-admin-panel span {
  padding: 0 6px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-page-head,
.admin-page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-layout {
  display: grid;
  gap: 18px;
}

.admin-feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-tab {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 132px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: var(--radius);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), transparent 58%),
    rgba(10, 11, 16, 0.9);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.admin-tab::after {
  position: absolute;
  right: -28px;
  bottom: 14px;
  width: 92px;
  height: 28px;
  content: "";
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  transform: rotate(-18deg);
}

.admin-tab:hover,
.admin-tab.active {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.68);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.22), transparent 58%),
    rgba(14, 14, 20, 0.95);
}

.admin-tab span {
  display: grid;
  width: fit-content;
  min-width: 48px;
  height: 32px;
  padding: 0 9px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 999px;
  color: var(--red);
  background: rgba(var(--accent-rgb), 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-tab.active span {
  color: var(--accent-ink);
  background: var(--red);
}

.admin-tab strong,
.admin-tab small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-tab strong {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  white-space: nowrap;
}

.admin-tab small {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.admin-tab mark {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  place-items: center;
  border: 1px solid rgba(60, 242, 155, 0.55);
  border-radius: 999px;
  color: #04110b;
  background: var(--green);
  box-shadow: 0 0 18px rgba(60, 242, 155, 0.22);
  font-size: 0.78rem;
  font-weight: 1000;
}

.admin-tab mark[hidden] {
  display: none;
}

.admin-panel-stack {
  min-width: 0;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
  animation: sectionEnter 180ms ease both;
}

.admin-card {
  padding: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), transparent 52%),
    rgba(10, 11, 16, 0.88);
}

.admin-orders-card {
  grid-column: auto;
}

.admin-support-card {
  grid-column: auto;
}

.admin-private-card {
  min-height: 100%;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-card-head h3 {
  margin: 0;
}

.admin-card-head > span {
  display: grid;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.44);
  border-radius: 999px;
  color: var(--text);
  background: var(--red-soft);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-card-head > span[data-status="active"] {
  color: #04110b;
  background: var(--green);
}

.admin-card-head > span[data-status="pending"] {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.2);
}

.admin-card-head > span[data-status="closed"],
.admin-card-head > span[data-status="declined"] {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.admin-users-card {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), transparent 52%),
    rgba(10, 11, 16, 0.88);
}

.admin-users-card[hidden] {
  display: none;
}

.admin-users-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-users-head h3 {
  margin: 0;
}

.admin-users-head span {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.44);
  border-radius: 999px;
  color: var(--text);
  background: var(--red-soft);
  font-weight: 900;
}

.admin-users-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.admin-user-row.is-admin {
  border-color: rgba(var(--accent-rgb), 0.44);
}

.admin-user-row.is-banned {
  border-color: rgba(var(--accent-rgb), 0.72);
  background: rgba(var(--accent-rgb), 0.12);
}

.admin-user-row > span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  color: var(--text);
  background: linear-gradient(135deg, var(--red), var(--red-2));
  font-weight: 900;
}

.admin-user-row strong,
.admin-user-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-badges {
  display: flex;
  grid-column: 2;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.admin-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-orders-list,
.admin-support-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.admin-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 150px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.admin-order-row[data-status="done"] {
  border-color: rgba(60, 242, 155, 0.48);
}

.admin-order-row[data-status="cancel"] {
  opacity: 0.72;
}

.admin-order-row strong,
.admin-order-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-order-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-order-row b {
  text-align: right;
}

.admin-ticket-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.admin-ticket-row.answered {
  border-color: rgba(60, 242, 155, 0.42);
}

.admin-ticket-row strong,
.admin-ticket-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ticket-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-ticket-row p {
  margin: 0;
  color: rgba(246, 247, 251, 0.86);
  line-height: 1.45;
}

.admin-ticket-row textarea {
  width: 100%;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #0a0b10;
  resize: vertical;
  outline: none;
}

.admin-ticket-row textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.9);
  outline: 2px solid rgba(var(--accent-rgb), 0.34);
  outline-offset: 2px;
}

.admin-ticket-row > div:last-child {
  display: flex;
  justify-content: flex-end;
}

.admin-empty {
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.private-chat-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-private-preview {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), transparent),
    rgba(0, 0, 0, 0.22);
}

.admin-private-preview strong {
  color: var(--text);
}

.admin-private-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.private-chat-messages {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 220px;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.private-chat-message {
  justify-self: start;
  max-width: min(720px, 86%);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.private-chat-message.is-admin {
  justify-self: end;
  border-color: rgba(var(--accent-rgb), 0.46);
  background: rgba(var(--accent-rgb), 0.13);
}

.private-chat-message.is-system {
  justify-self: center;
  max-width: 92%;
  border-style: dashed;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.private-chat-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.private-chat-message strong,
.private-chat-message time {
  min-width: 0;
}

.private-chat-message strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-chat-message time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.74rem;
}

.private-chat-message p {
  margin: 0;
  color: rgba(246, 247, 251, 0.88);
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.private-chat-message p a {
  color: #ff5f83;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.private-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 8px;
}

.private-chat-form input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #0a0b10;
  outline: none;
}

.private-chat-form input:focus {
  border-color: rgba(var(--accent-rgb), 0.72);
}

.private-chat-form button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.56);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--red-soft);
  cursor: pointer;
}

.private-chat-form button:hover {
  background: rgba(var(--accent-rgb), 0.22);
}

.private-chat-form input:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.chat-clear-button,
.chat-mute-button,
.chat-delete-button {
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 7px;
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.12);
  cursor: pointer;
  font-weight: 900;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.chat-clear-button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.82rem;
}

.chat-mute-button,
.chat-delete-button {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 0.72rem;
}

.chat-mute-button {
  border-color: rgba(255, 191, 71, 0.42);
  color: #ffd891;
  background: rgba(255, 191, 71, 0.1);
}

.chat-clear-button:hover,
.chat-mute-button:hover,
.chat-delete-button:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.82);
  background: rgba(var(--accent-rgb), 0.2);
}

.chat-clear-button:disabled,
.chat-mute-button:disabled,
.chat-delete-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.chat-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 800;
}

.chat-screen {
  display: block;
  height: calc(100vh - 176px);
  min-height: 520px;
  padding: 18px 18px 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), transparent 32%),
    var(--panel);
  box-shadow: var(--shadow);
}

.chat-live-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.chat-empty {
  display: grid;
  min-height: 320px;
  place-items: center;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.chat-message {
  width: fit-content;
  max-width: min(720px, 100%);
  justify-self: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.chat-message.is-admin {
  border-color: rgba(var(--accent-rgb), 0.42);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.14), transparent 48%),
    rgba(0, 0, 0, 0.24);
}

.chat-message.is-own {
  justify-self: end;
  border-color: rgba(60, 242, 155, 0.34);
  background:
    linear-gradient(270deg, rgba(60, 242, 155, 0.1), transparent 48%),
    rgba(0, 0, 0, 0.24);
}

.chat-pending-link {
  opacity: 0.56;
  border-color: rgba(var(--accent-rgb), 0.36);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.1), transparent 46%),
    rgba(0, 0, 0, 0.18);
}

.chat-message-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.online-dot {
  display: inline-block;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(60, 242, 155, 0.48);
}

.online-dot[hidden] {
  display: none;
}

.chat-online-dot {
  margin-right: 1px;
}

.chat-avatar,
.purchase-avatar {
  display: grid;
  flex: 0 0 30px;
  position: relative;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 7px;
  color: var(--text);
  background: linear-gradient(135deg, var(--red), var(--red-2));
  font-size: 0.72rem;
  font-weight: 1000;
}

.purchase-avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.purchase-avatar.small {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

.chat-author {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 280px;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  background: transparent;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-author:disabled {
  cursor: default;
}

.chat-author:not(:disabled):hover {
  color: var(--red-3);
}

.chat-author.admin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--red);
}

.chat-author.admin::after {
  content: "ADMIN";
  padding: 3px 6px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 999px;
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.14);
  font-size: 0.62rem;
  font-weight: 900;
}

.chat-message-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.streak-badge.chat-streak {
  flex: 0 0 auto;
  width: 30px;
  min-width: 30px;
  height: 38px;
  font-size: 0.66rem;
}

.streak-badge.chat-streak > span {
  width: 100%;
  height: 100%;
  margin-top: 12px;
  color: #fff8e6;
  background: transparent;
  border-radius: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72), 0 0 6px rgba(255, 80, 0, 0.72);
}

.streak-badge.chat-streak svg {
  filter: drop-shadow(0 0 10px rgba(255, 94, 0, 0.48));
}

.chat-message-head time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
}

.chat-message p {
  margin: 0;
  color: rgba(246, 247, 251, 0.86);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-message p a {
  color: #ff5f83;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chat-message mark {
  padding: 4px 7px;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 999px;
  color: var(--red);
  background: rgba(var(--accent-rgb), 0.12);
  font-size: 0.68rem;
  font-weight: 1000;
}

.chat-link-action {
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 7px;
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.12);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
}

.chat-link-action.danger {
  border-color: rgba(255, 91, 91, 0.5);
  background: rgba(255, 91, 91, 0.1);
}

.chat-link-action:hover {
  border-color: rgba(var(--accent-rgb), 0.86);
  background: rgba(var(--accent-rgb), 0.2);
}

.chat-form {
  position: fixed !important;
  left: 24px !important;
  right: 24px !important;
  bottom: 18px !important;
  z-index: 50 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 56px !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.chat-form input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-align: left;
  background: #0a0b10;
  outline: none;
}

.chat-form input::placeholder {
  color: rgba(246, 247, 251, 0.52);
  opacity: 1;
}

.chat-form input:focus {
  border-color: rgba(var(--accent-rgb), 0.72);
}

.chat-form button {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.56);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--red-soft);
  cursor: pointer;
}

.chat-form button:hover {
  background: rgba(var(--accent-rgb), 0.22);
}

.chat-form input:disabled,
.chat-form button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin-top: auto;
  padding: 10px;
  overflow: hidden;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.pulse {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.42);
}

.sidebar-status.is-online .pulse {
  background: var(--green);
  box-shadow: 0 0 14px rgba(51, 235, 143, 0.42);
}

.sidebar-status.is-offline .pulse {
  background: var(--red);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.42);
}

.status-text {
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 160ms ease, width 160ms ease;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  margin: -24px -24px 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.94);
}

.topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notifications-wrap {
  position: relative;
}

.notification-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.notification-button:hover,
.notification-button[aria-expanded="true"] {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.62);
  background: var(--panel-2);
}

.notification-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.notification-button span {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border: 2px solid #050507;
  border-radius: 999px;
  color: var(--text);
  background: var(--red);
  font-size: 0.7rem;
  font-weight: 900;
}

.notification-button span[hidden] {
  display: none;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: min(380px, 86vw);
  padding: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), transparent 36%),
    #090a0f;
  box-shadow: var(--shadow);
}

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

.notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.notification-head button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.46);
  border-radius: 7px;
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.1);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.notification-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.notification-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
}

.notification-item.is-unread {
  border-color: rgba(var(--accent-rgb), 0.44);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), transparent 52%),
    rgba(0, 0, 0, 0.28);
}

.notification-item[data-open-private-chat],
.notification-item[data-open-support-reply] {
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.notification-item[data-open-private-chat]:hover,
.notification-item[data-open-private-chat]:focus-visible,
.notification-item[data-open-support-reply]:hover,
.notification-item[data-open-support-reply]:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.56);
  background: rgba(var(--accent-rgb), 0.1);
}

.notification-item > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.2);
  font-weight: 900;
}

.notification-item[data-type="account"] > span,
.notification-item[data-type="order"] > span,
.notification-item[data-type="support"] > span,
.notification-item[data-type="privateCall"] > span,
.notification-item[data-type="private"] > span {
  color: #04110b;
  background: var(--green);
}

.notification-item[data-type="ban"] > span,
.notification-item[data-type="mute"] > span,
.notification-item[data-type="warning"] > span {
  background: var(--red);
}

.notification-item strong,
.notification-item p,
.notification-item small {
  display: block;
  min-width: 0;
}

.notification-item strong {
  margin-bottom: 4px;
}

.notification-item p {
  margin: 0;
  color: rgba(246, 247, 251, 0.82);
  font-size: 0.86rem;
  line-height: 1.35;
}

.notification-item small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
}

.notification-empty {
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.id-chip,
.id-state,
.tag,
mark {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: var(--text);
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 999px;
  background: var(--red-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.id-state.saved,
.id-chip.saved,
mark {
  color: #04110b;
  border-color: rgba(60, 242, 155, 0.74);
  background: var(--green);
}

.streak-badge {
  position: relative;
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: #220900;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.8rem;
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.streak-badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 13px rgba(255, 94, 0, 0.44));
}

.streak-badge > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 22px;
  height: 22px;
  margin-top: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 247, 170, 0.74);
}

.streak-badge.mini {
  width: 30px;
  min-width: 30px;
  height: 36px;
  font-size: 0.62rem;
}

.streak-badge.mini > span {
  width: 17px;
  height: 17px;
  margin-top: 16px;
}

.streak-badge.large {
  width: 52px;
  min-width: 52px;
  height: 64px;
  font-size: 1rem;
}

.streak-badge.large > span {
  width: 28px;
  height: 28px;
  margin-top: 28px;
}

.streak-badge[hidden] {
  display: none;
}

.user-name-row,
.cabinet-name-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.cabinet-name-button {
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 1000;
  text-align: left;
}

.cabinet-name-button:hover,
.cabinet-name-button:focus-visible {
  color: var(--red-3);
  outline: none;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 7px 12px 7px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.user-pill:hover,
.user-pill[aria-expanded="true"] {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.62);
  background: var(--panel-2);
}

.user-avatar {
  display: grid;
  flex: 0 0 32px;
  position: relative;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--red-2));
}

.avatar-content-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.user-avatar.has-image,
.cabinet-avatar-button > span.has-image,
.public-profile-avatar.has-image,
.chat-avatar.has-image,
.purchase-avatar.has-image {
  color: transparent;
  background: #090a0f;
}

.user-avatar.has-image .avatar-content-layer,
.cabinet-avatar-button > span.has-image .avatar-content-layer,
.public-profile-avatar.has-image .avatar-content-layer,
.chat-avatar.has-image .avatar-content-layer,
.purchase-avatar.has-image .avatar-content-layer {
  background: #090a0f;
}

.user-avatar img.avatar-image,
.cabinet-avatar-button > span img.avatar-image,
.public-profile-avatar img.avatar-image,
.chat-avatar img.avatar-image,
.purchase-avatar img.avatar-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.user-pill.is-admin {
  border-color: rgba(var(--accent-rgb), 0.58);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.14), transparent),
    var(--panel);
}

.profile-wrap {
  position: relative;
}

.avatar-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 45;
  display: grid;
  width: min(270px, 82vw);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), transparent 34%),
    #090a0f;
  box-shadow: var(--shadow);
}

.profile-menu[hidden] {
  display: none;
}

.profile-menu button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.profile-menu button:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.12);
}

.profile-menu span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  color: var(--accent-ink);
  background: var(--red);
  font-size: 0.72rem;
  font-weight: 1000;
}

.profile-menu strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  padding: 24px;
  place-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(0, 0, 0, 0.68);
}

.modal-backdrop[hidden] {
  display: none;
}

.history-modal,
.account-modal {
  width: min(920px, 100%);
  max-height: min(720px, 82vh);
  padding: 20px;
  overflow-y: auto;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.14), transparent 30%),
    #0b0c12;
  box-shadow: var(--shadow);
  animation: modalEnter 160ms ease both;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.account-modal {
  width: min(980px, 100%);
}

.auth-info-modal {
  width: min(620px, 100%);
}

.auth-info-content {
  display: grid;
  gap: 12px;
}

.auth-info-content p {
  margin-bottom: 0;
}

.auth-contact-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.auth-contact-row span {
  color: var(--muted);
  text-align: right;
}

.support-reply-content {
  display: grid;
  gap: 12px;
}

.support-reply-content small {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 999px;
  color: var(--red);
  background: rgba(var(--accent-rgb), 0.12);
  font-weight: 900;
}

.support-reply-content strong {
  font-size: 1.15rem;
}

.support-reply-content p {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  line-height: 1.55;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  position: sticky;
  top: -20px;
  z-index: 2;
  padding: 0 0 12px;
  background:
    linear-gradient(180deg, rgba(11, 12, 18, 0.98), rgba(11, 12, 18, 0.92) 72%, transparent);
  backdrop-filter: blur(6px);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.modal-close:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.72);
  background: var(--red-soft);
}

.purchase-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.purchase-mode-tabs button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.purchase-mode-tabs button.active {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.62);
  background: rgba(var(--accent-rgb), 0.14);
}

.purchase-swipe {
  overflow: hidden;
  touch-action: pan-y;
}

.purchase-track {
  display: flex;
  width: 200%;
  transition: transform 180ms ease;
}

.purchase-pane {
  flex: 0 0 50%;
  min-width: 0;
  padding-right: 2px;
}

.profile-history {
  max-height: calc(min(720px, 82vh) - 112px);
  overflow: auto;
  padding-right: 3px;
}

.private-chat-modal {
  width: min(760px, 96vw);
}

.public-profile-modal {
  width: min(860px, 96vw);
}

.public-profile-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), transparent 48%),
    rgba(0, 0, 0, 0.22);
}

.public-profile-avatar {
  display: grid;
  position: relative;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.58);
  border-radius: var(--radius);
  color: var(--text);
  background: linear-gradient(135deg, var(--red), rgba(var(--accent-rgb), 0.14));
  font-size: 1.35rem;
  font-weight: 1000;
}

.public-profile-card strong,
.public-profile-card small {
  display: block;
  min-width: 0;
}

.profile-name-line {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.profile-admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 999px;
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.14);
  font-size: 0.68rem;
  font-weight: 1000;
  vertical-align: middle;
}

.public-profile-card strong {
  overflow: hidden;
  font-size: 1.22rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-profile-card small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
}

.public-profile-stats {
  margin-bottom: 16px;
}

.public-profile-history .purchase-row {
  grid-template-columns: 120px minmax(200px, 1fr) 118px 90px;
}

.nickname-modal {
  width: min(520px, 94vw);
}

.account-create-modal {
  width: min(620px, 94vw);
}

.nickname-form,
.account-create-form {
  display: grid;
  gap: 14px;
  padding-bottom: 4px;
}

.nickname-limit {
  color: var(--muted);
  line-height: 1.45;
}

.private-chat-modal .private-chat-messages {
  min-height: 320px;
  max-height: min(52vh, 520px);
}

.private-invite-modal {
  width: min(560px, 94vw);
  text-align: center;
}

.private-invite-modal p:not(.kicker) {
  max-width: 420px;
  margin: 12px auto 0;
  color: var(--muted);
  line-height: 1.55;
}

.invite-mark {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.62);
  border-radius: var(--radius);
  color: #100309;
  background: linear-gradient(135deg, var(--red), #ff6b86);
  box-shadow: 0 0 34px rgba(var(--accent-rgb), 0.28);
  font-weight: 1000;
}

.private-invite-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.profile-history .purchase-row {
  grid-template-columns: 112px minmax(220px, 1fr) 110px 104px 86px;
}

.public-purchases-table .purchase-row {
  grid-template-columns: 112px minmax(180px, 0.8fr) minmax(220px, 1fr) 104px 86px;
}

.purchase-buyer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.purchase-buyer strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.account-detail-photo {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.account-detail-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72)),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.2) 0 2px, transparent 2px 46px);
  pointer-events: none;
}

.account-detail-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.account-detail-photo span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.62);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  font-size: 0.8rem;
  font-weight: 800;
}

.gallery-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.58);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(5, 6, 10, 0.72);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: border-color 160ms ease, background 160ms ease;
}

.gallery-button:hover {
  border-color: rgba(var(--accent-rgb), 0.88);
  background: rgba(var(--accent-rgb), 0.24);
}

.gallery-button.prev {
  left: 14px;
}

.gallery-button.next {
  right: 14px;
}

.gallery-button[hidden],
.account-detail-photo small[hidden] {
  display: none;
}

.account-detail-photo small {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.56);
  font-size: 0.78rem;
  font-weight: 800;
}

.account-detail-info {
  display: grid;
  align-content: start;
  gap: 16px;
}

.account-detail-info p {
  margin-bottom: 0;
  white-space: pre-line;
}

.account-specs {
  display: grid;
  gap: 10px;
  margin: 0;
}

.account-specs div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.account-specs dt {
  color: var(--muted);
}

.account-specs dd {
  margin: 0;
  font-weight: 900;
}

.account-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.compact {
  min-height: 40px;
  padding: 9px 13px;
}

.page-section {
  display: none;
  animation: sectionEnter 180ms ease both;
}

.page-section.active {
  display: block;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

#home .dashboard-hero {
  grid-template-columns: 1fr;
}

.hero-card,
.game-card,
.panel,
.stat-card,
.account-card,
.diamond-pack,
.order-card,
.support-card,
.form-card,
.offer-card,
.contact-card {
  contain: layout paint;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  min-height: 322px;
  padding: 30px;
  overflow: hidden;
}

.hero-card::after {
  position: absolute;
  right: -70px;
  bottom: 34px;
  width: 300px;
  height: 86px;
  content: "";
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  transform: rotate(-18deg);
}

.hero-redline {
  position: absolute;
  left: -30%;
  top: 86px;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: lineRun 5.8s linear infinite;
}

.hero-card h2 {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-bottom: 16px;
}

.hero-card p:not(.kicker) {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-card,
.panel,
.order-card,
.form-card,
.offer-card {
  padding: 22px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.game-card .primary-action {
  margin-top: 16px;
}

.password-card {
  display: grid;
  gap: 0;
  width: 100%;
}

.password-card-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
  list-style: none;
}

.password-card-toggle::-webkit-details-marker {
  display: none;
}

.password-card-toggle:hover .password-card-chevron,
.password-card-toggle:focus-visible .password-card-chevron {
  border-color: rgba(var(--accent-rgb), 0.4);
}

.password-change-alert {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
  background: rgba(var(--accent-rgb), 0.08);
}

.password-card-copy {
  display: grid;
  gap: 6px;
}

.password-card-copy h3 {
  margin: 0;
}

.password-card-copy small {
  color: var(--muted);
  font-weight: 700;
}

.password-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.password-card-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 1.2rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.password-card.is-open .password-card-chevron {
  transform: rotate(180deg);
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.08);
}

.password-card-body {
  display: none;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.password-card[open] .password-card-body {
  display: grid;
}

.password-change-form {
  display: grid;
  gap: 14px;
}

.settings-password-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg-2);
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(var(--accent-rgb), 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.stat-card {
  position: relative;
  min-height: 128px;
  padding: 18px;
  overflow: hidden;
}

.stat-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: var(--red);
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 2rem;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr) 320px;
  gap: 16px;
  margin-top: 16px;
}

.cabinet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

.cabinet-profile-card {
  display: grid;
  align-content: start;
  gap: 18px;
}

.cabinet-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cabinet-profile-meta {
  min-width: 0;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-button:hover,
.icon-button[aria-expanded="true"] {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.62);
  background: rgba(255, 255, 255, 0.08);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-settings-button {
  margin-left: auto;
}

.theme-settings-modal {
  width: min(680px, 100%);
}

.theme-settings-layout {
  display: grid;
  gap: 14px;
  padding-bottom: 4px;
}

.settings-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.settings-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.settings-group-head strong {
  display: block;
  margin-bottom: 4px;
}

.settings-group-head small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.theme-menu {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-menu[hidden] {
  display: none;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--bg-2);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.theme-option:hover,
.theme-option.active,
.theme-option[aria-pressed="true"] {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.62);
  background: rgba(var(--accent-rgb), 0.12);
}

.theme-swatch {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.theme-swatch.red {
  background: linear-gradient(135deg, #ff214f, #b80f2f);
}

.theme-swatch.blue {
  background: linear-gradient(135deg, #2f7cff, #174cbc);
}

.theme-option-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.theme-option-copy strong,
.theme-option-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-option-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.dev-badge {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.44);
  border-radius: 999px;
  color: var(--red);
  background: rgba(var(--accent-rgb), 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-dev-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px dashed rgba(var(--accent-rgb), 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), transparent 70%),
    var(--bg-2);
}

.settings-dev-card strong {
  font-size: 0.98rem;
}

.settings-dev-card p {
  margin-bottom: 0;
}

.cabinet-avatar-button {
  display: grid;
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.cabinet-avatar-button > span {
  display: grid;
  position: relative;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.58);
  border-radius: var(--radius);
  color: var(--text);
  background: linear-gradient(135deg, var(--red), rgba(var(--accent-rgb), 0.14));
  font-size: 1.3rem;
  font-weight: 1000;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.cabinet-avatar-button:hover > span,
.cabinet-avatar-button:focus-visible > span {
  border-color: rgba(var(--accent-rgb), 0.92);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.18);
  transform: translateY(-2px);
}

.cabinet-avatar-button:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.52);
  outline-offset: 3px;
}

.cabinet-profile-head > span {
  display: grid;
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.58);
  border-radius: var(--radius);
  color: var(--text);
  background: linear-gradient(135deg, var(--red), rgba(var(--accent-rgb), 0.14));
  font-size: 1.3rem;
  font-weight: 1000;
}

.cabinet-profile-head h3 {
  margin: 2px 0 4px;
}

.cabinet-profile-head small {
  color: var(--muted);
  font-weight: 800;
}

.cabinet-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cabinet-info-list div,
.news-list article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.cabinet-info-list span,
.cabinet-info-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cabinet-info-list span,
.news-list small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.cabinet-info-list strong {
  font-size: 0.98rem;
}

.admin-streak-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), transparent 52%),
    var(--bg-2);
}

.admin-streak-card[hidden] {
  display: none;
}

.admin-streak-card strong,
.admin-streak-card small {
  display: block;
}

.admin-streak-card strong {
  font-size: 0.9rem;
}

.admin-streak-card small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.admin-streak-card .field + .field {
  margin-top: 0;
}

.admin-streak-card .field {
  gap: 5px;
}

.admin-streak-card .field span {
  font-size: 0.72rem;
}

.admin-streak-card .field input {
  height: 38px;
  padding: 0 10px;
}

.game-profile-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.cabinet-stats {
  margin-top: 16px;
}

.news-list {
  display: grid;
  gap: 10px;
}

.news-list article {
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
}

.news-list span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.46);
  border-radius: var(--radius);
  color: var(--red);
  background: rgba(var(--accent-rgb), 0.1);
  font-weight: 1000;
}

.news-list strong,
.news-list small {
  display: block;
}

.mini-history {
  display: grid;
  gap: 10px;
}

.mini-history article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.mini-history strong,
.mini-history small {
  display: block;
}

.mini-history small {
  margin-top: 3px;
  color: var(--muted);
}

.purchase-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--red-soft);
}

.purchase-icon.diamond {
  clip-path: polygon(18% 0, 82% 0, 100% 36%, 50% 100%, 0 36%);
  background: linear-gradient(135deg, #ffffff, var(--red));
}

.purchase-icon.account {
  background: linear-gradient(135deg, var(--red), #1d1e2a);
}

.signal-list {
  display: grid;
  gap: 12px;
}

.signal-list div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.signal-list span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.signal-list .is-offline span {
  background: var(--red);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.34);
}

.signal-list .is-online span {
  background: var(--green);
  box-shadow: 0 0 14px rgba(51, 235, 143, 0.34);
}

.signal-list small {
  color: var(--muted);
}

.page-head {
  margin: 4px 0 22px;
}

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

.catalog-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed rgba(var(--accent-rgb), 0.3);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-weight: 900;
}

.catalog-empty[hidden] {
  display: none;
}

.accounts-head,
.chat-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.account-card:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.72);
  outline-offset: 3px;
}

.account-card:hover,
.diamond-pack:hover,
.support-card:hover,
.contact-card:hover,
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.55);
}

.account-visual {
  position: relative;
  min-height: 166px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #350612, #12070b);
  background-size: 28px 28px, 28px 28px, auto;
}

.account-visual::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.72)),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.18) 0 2px, transparent 2px 42px);
  pointer-events: none;
}

.account-visual::after {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 22px;
  width: 88px;
  height: 44px;
  content: "";
  border: 1px solid rgba(var(--accent-rgb), 0.65);
  transform: skewX(-18deg);
  pointer-events: none;
}

.account-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 220ms ease;
}

.account-card:hover .account-visual img {
  transform: scale(1.04);
}

.account-admin-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.account-card:hover .account-admin-actions,
.account-admin-actions:focus-within {
  opacity: 1;
  transform: translateY(0);
}

.account-admin-actions[hidden] {
  display: none;
}

.account-admin-actions button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.58);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(5, 6, 10, 0.82);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 1000;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.account-admin-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.9);
  background: rgba(var(--accent-rgb), 0.28);
}

.level-crimson {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #4a0715, #161722);
  background-size: 28px 28px, 28px 28px, auto;
}

.level-dark {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #161722, #2f0711);
  background-size: 28px 28px, 28px 28px, auto;
}

.account-visual span {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.58);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  font-size: 0.8rem;
  font-weight: 800;
}

.account-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.account-body p {
  margin-bottom: 0;
  white-space: pre-line;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.card-meta strong {
  color: var(--text);
  white-space: nowrap;
}

.card-action {
  width: 100%;
}

.diamonds-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

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

.diamond-pack {
  display: grid;
  min-height: 166px;
  padding: 18px;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.diamond-pack.active {
  border-color: rgba(var(--accent-rgb), 0.78);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.24), transparent),
    var(--panel);
}

.diamond-pack span {
  width: 46px;
  height: 38px;
  clip-path: polygon(18% 0, 82% 0, 100% 36%, 50% 100%, 0 36%);
  background: linear-gradient(135deg, #ffffff, var(--red) 52%, #66091d);
}

.diamond-pack strong {
  display: block;
  font-size: 2rem;
}

.diamond-pack small {
  color: var(--muted);
  font-weight: 800;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}

.stepper {
  display: grid;
  grid-template-columns: 38px 46px 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.stepper button {
  width: 38px;
  height: 38px;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.stepper button:hover {
  background: var(--red-soft);
}

.stepper output {
  display: grid;
  place-items: center;
  font-weight: 800;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-list dt {
  color: var(--muted);
}

.summary-list dd {
  margin: 0;
  font-weight: 800;
}

.purchase-table {
  display: grid;
  gap: 8px;
}

.purchase-row {
  display: grid;
  grid-template-columns: 130px minmax(190px, 1fr) 120px 110px 90px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.purchase-row span {
  color: var(--muted);
}

.purchase-row b {
  text-align: right;
}

.table-head {
  min-height: 44px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  background: transparent;
}

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

.support-card,
.contact-card {
  padding: 20px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.support-card span,
.contact-card span {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: var(--radius);
  background: var(--red-soft);
  color: var(--text);
  font-weight: 800;
}

.support-card p {
  margin-bottom: 0;
}

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

.form-grid .field + .field {
  margin-top: 0;
}

.form-card .primary-action {
  margin-top: 16px;
}

.offer-card h3 {
  margin-bottom: 14px;
  font-size: 1.32rem;
}

.offer-grid {
  margin-top: 20px;
}

.offer-grid section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.offer-grid p {
  margin-bottom: 0;
}

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

.contact-layout {
  grid-template-columns: 1fr;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 114px;
}

.contact-card span {
  flex: 0 0 44px;
  margin-bottom: 0;
}

.contact-card p {
  margin-bottom: 0;
}

.contact-card a {
  color: var(--text);
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--red);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: 340px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: var(--radius);
  color: var(--text);
  background: #11121a;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes sectionEnter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineRun {
  from {
    transform: translateX(0) rotate(-18deg);
  }

  to {
    transform: translateX(190%) rotate(-18deg);
  }
}

@keyframes neonSlide {
  from {
    transform: translateX(-40px) rotate(-28deg);
  }

  to {
    transform: translateX(80px) rotate(-28deg);
  }
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loaderProgress {
  to {
    transform: translateX(260%);
  }
}

@keyframes logoSweep {
  to {
    transform: rotate(18deg) translateX(35%);
  }
}

@keyframes loaderLift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1180px) {
  .stats-grid,
  .account-grid,
  .pack-grid,
  .support-grid,
  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .purchase-row {
    grid-template-columns: 110px minmax(160px, 1fr) 100px 100px 80px;
  }
}

@media (max-width: 980px) {
  .auth-card,
  .app,
  .app.sidebar-compact {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 280px;
  }

  .auth-copy h1 {
    font-size: 2.3rem;
  }

  .sidebar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    top: auto;
    z-index: 20;
    display: block;
    height: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .sidebar-head,
  .sidebar-status {
    display: none;
  }

  .side-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(46px, 1fr);
    gap: 6px;
    overflow-x: auto;
  }

  .nav-item,
  .app.sidebar-compact .nav-item {
    justify-content: center;
    min-height: 50px;
    padding: 8px;
  }

  .nav-label,
  .app.sidebar-compact .nav-label {
    display: none;
  }

  .workspace {
    padding-bottom: 94px;
  }

  .dashboard-hero,
  .home-grid,
  .cabinet-layout,
  .diamonds-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .chat-page-head,
  .chat-page-actions,
  .admin-page-head,
  .admin-page-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-layout,
  .admin-order-row,
  .chat-link-row {
    grid-template-columns: 1fr;
  }

  .admin-feature-grid {
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    overflow-x: auto;
  }

  .admin-tab {
    min-height: 126px;
  }

  .admin-tab span {
    min-width: 44px;
    height: 30px;
  }

  .admin-order-row b {
    text-align: left;
  }

  .chat-screen {
    height: calc(100vh - 250px);
    min-height: 460px;
  }

  .chat-form {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
  }

  .private-chat-message {
    max-width: 92%;
  }

  .order-card {
    order: -1;
  }
}

@media (max-width: 720px) {
  .auth-screen {
    padding: 12px;
  }

  .auth-panel,
  .auth-visual {
    padding: 24px 18px;
  }

  .workspace {
    padding: 16px 12px 88px;
  }

  .topbar {
    align-items: flex-start;
    margin: -16px -12px 18px;
    padding: 14px 12px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .notification-panel {
    right: -52px;
    width: min(360px, calc(100vw - 24px));
  }

  .user-pill {
    min-width: 42px;
    padding: 6px;
  }

  .user-pill span:last-child,
  .id-chip {
    display: none;
  }

  .history-modal .id-chip {
    display: inline-flex;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .history-modal {
    max-height: 84vh;
    padding: 16px;
  }

  .account-modal {
    max-height: 84vh;
    overflow: auto;
    padding: 16px;
  }

  .modal-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-actions {
    width: 100%;
    justify-content: space-between;
  }

  .settings-group-head {
    flex-direction: column;
  }

  .theme-menu {
    grid-template-columns: 1fr;
  }

  .profile-history {
    max-height: calc(84vh - 140px);
  }

  .account-detail-grid {
    grid-template-columns: 1fr;
  }

  .account-detail-photo,
  .account-detail-photo img {
    min-height: 260px;
  }

  .hero-card,
  .game-card,
  .panel,
  .order-card,
  .form-card,
  .offer-card {
    padding: 18px;
  }

  .hero-card h2 {
    font-size: 2rem;
  }

  .stats-grid,
  .cabinet-info-list,
  .account-grid,
  .pack-grid,
  .contact-list,
  .support-grid,
  .form-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .admin-feature-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .admin-tab {
    min-height: 104px;
  }

  .private-invite-actions {
    flex-direction: column;
  }

  .card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .purchase-row,
  .table-head {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .profile-history .purchase-row {
    grid-template-columns: 1fr;
  }

  .table-head {
    display: none;
  }

  .purchase-row b {
    text-align: left;
  }

  .toast {
    right: 12px;
    bottom: 82px;
    left: 12px;
    max-width: none;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 1.72rem;
  }

  h2,
  .hero-card h2 {
    font-size: 1.7rem;
  }

  .auth-copy h1 {
    font-size: 1.9rem;
  }

  .hero-actions {
    display: grid;
  }

  .primary-action,
  .ghost-action {
    width: 100%;
  }
}
