﻿:root {
  color-scheme: dark;
  --bg: #14161b;
  --surface: rgba(24, 26, 32, 0.92);
  --surface-strong: rgba(28, 31, 38, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --text: #f7f8fc;
  --muted: #9ca8be;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #2e6bff;
  --accent-strong: #ffffff;
  --green: #ffffff;
  --amber: #ffffff;
  --red: #ffffff;
  --ink: #10182a;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 Inter, Segoe UI, Arial, sans-serif;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

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

button {
  border: 0;
  cursor: pointer;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
}

.backdrop::after {
  display: none;
}

.backdrop svg {
  display: none;
}

.garage-lines,
.floor-grid {
  fill: none;
  stroke-linecap: round;
}

.garage-lines {
  stroke: rgba(255, 255, 255, 0.11);
  stroke-width: 1.1;
}

.floor-grid {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1.4;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  position: relative;
}

.sidebar {
  margin: 14px 0 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 24, 30, 0.94);
  box-shadow: var(--shadow);
  color: var(--text);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  overflow: hidden;
  background: #1f64ff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: auto;
  transform: scale(1.13) translateY(-2%);
  transform-origin: center;
}

.brand strong,
.brand span {
  display: block;
  overflow-wrap: anywhere;
}

.brand strong {
  font-size: 16px;
}

.brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 12px;
}

.nav-tabs {
  display: grid;
  gap: 6px;
}

.nav button {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  background: transparent;
  color: #d9dfeb;
  text-align: left;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  transition: background 160ms ease, color 160ms ease;
}

.nav button svg,
button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav button svg {
  width: 20px;
  height: 20px;
}

.nav button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nav button.active,
.nav button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav button.active {
  box-shadow: inset 3px 0 0 #ffffff;
}

.nav-account {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 8px;
}

.nav-account span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
}

.nav-account strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

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

.nav-playerok-account {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.nav-playerok-account i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-style: normal;
  font-weight: 950;
}

.nav-playerok-account span {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: inherit;
  text-transform: none;
  font-size: 11px;
}

.nav-playerok-account b {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
}

.nav-playerok-account small {
  color: var(--muted);
  font-size: 10px;
}

.nav-account .secondary {
  min-height: 34px;
  justify-content: center;
  text-align: center;
  padding: 7px 10px;
  grid-template-columns: 1fr;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 88px;
  margin: 14px 14px 0;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 24, 30, 0.9);
  position: relative;
  z-index: 3;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

body[data-auth="guest"] .shell {
  display: block;
}

body[data-auth="guest"] .sidebar,
body[data-auth="guest"] .topbar {
  display: none;
}

body[data-auth="guest"] .main {
  min-height: 100vh;
}

body[data-auth="guest"] .content {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
}

body:not([data-current-view="dashboard"]) .top-actions {
  display: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.1;
}

h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

h3 {
  font-size: 15px;
}

.topbar p {
  margin-top: 5px;
  color: var(--muted);
}

.page-meta:empty {
  display: none;
}

.top-actions,
.hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status,
.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #d9dfeb;
  white-space: nowrap;
  border: 1px solid var(--line);
}

.status.good,
.pill.good {
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.68);
}

.status.warn,
.pill.warn {
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.68);
}

.status.bad,
.pill.bad {
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.68);
}

.primary,
.secondary,
.danger,
.plugin-power,
.icon-button {
  min-height: 38px;
  border-radius: 8px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.primary {
  background: #1f64ff;
}

.primary:hover,
.secondary:hover,
.danger:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.secondary,
.plugin-power,
.icon-button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line);
}

.plugin-power {
  min-width: 112px;
  border-radius: 999px;
  font-weight: 850;
}

.plugin-power.enabled {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.68);
}

.danger {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line);
}

.icon-button {
  width: 38px;
  padding: 0;
}

.content {
  padding: 18px 14px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.content > * {
  min-width: 0;
}

.notice {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10000;
  width: min(520px, calc(100vw - 36px));
  margin: 0;
  padding: 13px 15px;
  border-radius: 8px;
  background: rgba(34, 37, 44, 0.96);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  animation: notice-enter 180ms ease-out;
}

.notice.error {
  background: rgba(34, 37, 44, 0.96);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
}

@keyframes notice-enter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.boost-hero {
  min-height: 314px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: minmax(290px, 0.9fr) minmax(330px, 1.1fr);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 13, 28, 0.98), rgba(17, 35, 67, 0.86), rgba(8, 13, 28, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 92px);
  box-shadow: var(--shadow);
}

.boost-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 22%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 34px;
}

.hero-kicker {
  display: inline-block;
  justify-self: start;
  min-height: 28px;
  border-radius: 999px;
  padding: 7px 12px 6px;
  color: var(--ink);
  background: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.hero-copy h2 {
  margin: 16px 0 10px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.94;
  text-transform: uppercase;
  font-weight: 950;
  color: #ffffff;
}

.hero-copy p {
  max-width: 420px;
  color: #d6ddea;
  font-size: 16px;
}

.hero-actions {
  justify-content: flex-start;
  margin-top: 18px;
}

.hero-sync {
  min-height: 44px;
  padding-inline: 18px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 300px;
  display: grid;
  place-items: center;
}

.hero-svg {
  width: min(100%, 620px);
  height: auto;
  overflow: visible;
  transform: translateX(28px);
}

.ops-stage rect {
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(255, 255, 255, 0.1);
}

.ops-stage path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1.5;
}

.ops-window,
.ops-card,
.ops-pb,
.ops-signal,
.ops-scan {
  transform-box: fill-box;
  transform-origin: center;
}

.ops-window > rect:first-child,
.ops-card rect {
  fill: url(#opsPanel);
  stroke: rgba(9, 18, 34, 0.18);
  stroke-width: 2;
}

.ops-window-top {
  fill: rgba(16, 31, 56, 0.08);
}

.ops-window circle {
  fill: rgba(18, 31, 54, 0.24);
}

.ops-title,
.ops-kicker,
.ops-card-label {
  fill: #647086;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ops-status-pill rect {
  fill: #12203a;
}

.ops-status-pill circle {
  fill: #ffffff;
  animation: statusBlink 2.4s ease-in-out infinite;
}

.ops-status-pill text {
  fill: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.ops-row rect {
  fill: #ffffff;
  stroke: rgba(18, 32, 58, 0.12);
}

.ops-value,
.ops-card-value {
  fill: #12203a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.ops-link {
  fill: none;
  stroke: rgba(18, 32, 58, 0.2);
  stroke-width: 3;
  stroke-linecap: round;
}

.ops-signal {
  fill: url(#opsBlue);
  animation: opsSignal 5.4s ease-in-out infinite;
}

.ops-scan {
  fill: url(#opsBlue);
  opacity: 0.45;
  animation: opsScan 5.4s ease-in-out infinite;
}

.ops-card {
  animation: opsFloat 8s ease-in-out infinite;
}

.ops-budget-card {
  animation-delay: -3s;
}

.ops-pb rect {
  fill: url(#opsBlue);
  stroke: #ffffff;
  stroke-width: 3;
}

.ops-pb text {
  fill: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.ops-pb {
  animation: opsBadge 8s ease-in-out infinite;
}

.mascot-svg {
  max-height: 330px;
}

.mascot-body,
.mascot-logo-crop,
.mascot-sparkles,
.mascot-arm-wave {
  transform-box: fill-box;
  transform-origin: center;
}

.mascot-body,
.mascot-logo-crop {
  animation: mascotFloat 6.8s ease-in-out infinite;
}

.mascot-glow {
  fill: url(#mascotGlow);
}

.mascot-ground {
  fill: rgba(0, 0, 0, 0.25);
}

.mascot-transparent {
  pointer-events: none;
}

.mascot-hair-back,
.mascot-hair-front,
.mascot-hair-tail,
.mascot-side-lock,
.mascot-bang {
  fill: url(#mascotHair);
}

.mascot-face,
.mascot-neck,
.mascot-ear,
.mascot-hand {
  fill: #ffdcca;
}

.mascot-hoodie,
.mascot-sleeve,
.mascot-arm-left path {
  fill: url(#mascotCloth);
}

.mascot-arm-left circle {
  fill: #ffdcca;
}

.mascot-collar {
  fill: #2e6bff;
  opacity: 0.92;
}

.mascot-bow {
  fill: url(#mascotBow);
}

.mascot-eye {
  fill: #101827;
}

.mascot-eye-shine {
  fill: #ffffff;
  opacity: 0.9;
}

.mascot-eye-right {
  animation: mascotBlink 5.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.mascot-wink,
.mascot-smile,
.mascot-mouth,
.mascot-finger {
  fill: none;
  stroke: #101827;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mascot-finger {
  stroke: #ffdcca;
  stroke-width: 8;
}

.mascot-blush {
  fill: #ff8fb8;
  opacity: 0.26;
}

.mascot-arm-wave {
  transform-origin: 14% 86%;
  animation: mascotWave 1.9s ease-in-out infinite;
}

.mascot-sparkles {
  fill: rgba(255, 255, 255, 0.72);
  animation: mascotSparkle 4.2s ease-in-out infinite;
}

.mascot-sparkles circle {
  opacity: 0.55;
}

.mascot-deals {
  max-height: 230px;
  transform: translateX(0);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
}

.metric,
.panel,
.row-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.metric {
  padding: 16px;
  min-height: 98px;
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--metric-color, #ffffff);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.metric-cyan { --metric-color: #ffffff; }
.metric-yellow { --metric-color: #ffffff; }
.metric-green { --metric-color: #ffffff; }
.metric-pink { --metric-color: #e9edf4; }
.metric-blue { --metric-color: #2e6bff; }
.metric-lime { --metric-color: #ffffff; }

.panel {
  padding: 18px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

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

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.panel > table {
  min-width: 0;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

td {
  overflow-wrap: anywhere;
}

tr:last-child td {
  border-bottom: 0;
}

.deals-hero {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.deals-hero-copy {
  position: relative;
  z-index: 2;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.deals-hero h2 {
  margin-bottom: 8px;
  font-size: 34px;
  line-height: 1;
}

.deals-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 140px));
  gap: 10px;
  margin-top: 18px;
}

.deals-mini-metrics span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

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

.deals-mini-metrics strong {
  font-size: 20px;
  line-height: 1.1;
}

.deals-mini-metrics small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.deals-hero .hero-visual {
  justify-self: end;
  width: min(100%, 430px);
  min-height: 220px;
}

.deals-panel {
  min-height: 240px;
}

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

.deal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.deal-id {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.deal-card h3 {
  margin-top: 4px;
  font-size: 17px;
}

.deal-card p {
  margin-top: 4px;
  color: var(--muted);
}

.deal-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
}

.deal-card-meta strong {
  font-size: 18px;
}

.deal-card-meta > span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.deals-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.deals-empty strong {
  display: block;
  font-size: 19px;
}

.deals-empty p {
  max-width: 520px;
  margin-top: 6px;
  color: var(--muted);
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 11, 22, 0.7);
  color: var(--text);
  padding: 10px 11px;
  outline: none;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[readonly] {
  cursor: default;
  color: rgba(244, 247, 255, 0.86);
}

.secret-token-input {
  -webkit-text-security: disc;
}

.secret-token-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(6, 11, 22, 0.7) inset;
  -webkit-text-fill-color: var(--text);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  color: var(--text);
  font-size: 14px;
}

.check-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

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

.row-card {
  padding: 14px;
}

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

.scenario-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scenario-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.scenario-card h3 {
  margin-bottom: 12px;
}

.scenario-note {
  min-height: 42px;
  margin: -4px 0 12px;
}

.reply-workspace {
  padding: 18px;
}

.reply-note {
  margin-bottom: 14px;
}

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

.reply-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.reply-card-title {
  position: relative;
  z-index: 1;
}

.reply-card-title h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.reply-card-title p {
  color: var(--muted);
}

.reply-form {
  display: flex;
  flex: 1;
  flex-direction: column;
}

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

.reply-form textarea {
  min-height: 112px;
}

.reply-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
}

.reply-toggle {
  min-height: 38px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.reply-toggle input {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  margin: 0;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 160ms ease, border-color 160ms ease;
}

.reply-toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  transition: transform 160ms ease, background 160ms ease;
}

.reply-toggle input:checked {
  border-color: rgba(255, 255, 255, 0.9);
  background: #ffffff;
}

.reply-toggle input:checked::after {
  transform: translateX(18px);
  background: var(--ink);
}

.reply-toggle span {
  font-weight: 850;
}

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

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

.plugins-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.item-list,
.plugin-list {
  display: grid;
  gap: 8px;
}

.item-search {
  display: grid;
  gap: 7px;
  margin: 14px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.item-search-input {
  width: 100%;
}

.plugin-gallery-page {
  width: 100%;
}

.plugin-gallery-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.plugin-gallery-stats span {
  min-width: 108px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.plugin-gallery-stats strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.plugin-title-stats span {
  min-width: 112px;
  background: rgba(255, 255, 255, 0.055);
}

.plugin-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.item-list-card,
.plugin-card {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.plugin-card {
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
}

.item-list-card {
  grid-template-columns: 42px minmax(0, 1fr);
}

.plugin-preview-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0;
  padding: 3px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.item-list-card.active,
.item-list-card:hover,
.plugin-card.active,
.plugin-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.plugin-preview-card.active {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.plugin-preview-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
}

.plugin-preview-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 11px;
  background: #101116;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.plugin-preview-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  filter: saturate(0.98) contrast(1.01);
  transition: transform 0.22s ease, filter 0.22s ease;
}

.plugin-preview-card:hover .plugin-preview-frame img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.plugin-preview-shine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.28)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 26%, transparent 72%, rgba(255, 255, 255, 0.08));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.plugin-preview-card:hover .plugin-preview-shine {
  opacity: 1;
}

.plugin-status-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-width: 86px;
  padding: 7px 10px 7px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.plugin-status-badge::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(16, 24, 42, 0.7);
}

.plugin-status-badge.on {
  background: #ffffff;
}

.plugin-status-badge.on::before {
  background: #2e6bff;
}

.plugin-status-badge.off {
  color: rgba(16, 24, 42, 0.76);
}

.item-thumb,
.plugin-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--ink);
  font-weight: 950;
}

.plugin-icon {
  width: 46px;
  height: 46px;
  background: #1f64ff;
  color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.item-list-main,
.plugin-card-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.plugin-preview-card .plugin-card-main {
  gap: 5px;
  padding: 0 2px 2px;
}

.item-list-main strong,
.item-list-main span,
.item-list-main small,
.plugin-card-main strong,
.plugin-card-main span,
.plugin-card-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-list-main span,
.plugin-card-main span {
  color: var(--muted);
  font-size: 12px;
}

.plugin-preview-card .plugin-card-main span {
  display: -webkit-box;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
  min-height: 32px;
}

.plugin-detail-page {
  display: grid;
  gap: 12px;
}

.plugin-return-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.plugin-back-button {
  display: inline-grid;
  grid-template-columns: 18px auto;
  align-items: center;
  gap: 8px;
}

.plugin-back-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plugin-detail-single {
  width: 100%;
}

.item-list-main small,
.plugin-card-main small {
  color: var(--muted);
  opacity: 0.78;
  font-size: 11px;
}

.item-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.price-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.price-box {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-weight: 800;
}

.price-box strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 22px;
}

.price-input input {
  margin-top: 7px;
  font-size: 20px;
  font-weight: 900;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.price-hint {
  margin: -8px 0 16px;
}

.settings-guide {
  margin-top: 18px;
}

.accounts-switcher {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  overflow: hidden;
}

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

.accounts-switcher-head h2 {
  margin-bottom: 4px;
  font-size: 21px;
  line-height: 1.15;
}

.account-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  justify-content: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.account-arrow {
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.account-arrow:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.26);
}

.account-arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

.account-arrow svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

.account-spotlight {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 86px;
  border: 0;
  border-radius: 0;
  padding: 2px 4px;
  background: transparent;
  box-shadow: none;
}

.account-spotlight-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  font-size: 30px;
  font-weight: 950;
}

.account-spotlight-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.account-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.account-spotlight-copy strong {
  font-size: 24px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.account-spotlight-copy span {
  color: var(--muted);
  line-height: 1.45;
}

.account-carousel-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.account-search-panel {
  width: min(100%, 722px);
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.account-search-box {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.account-search-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.account-search-results {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.account-search-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.account-search-row:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.07);
}

.account-search-row.active {
  border-color: rgba(255, 255, 255, 0.32);
}

.account-search-row:disabled {
  cursor: default;
}

.account-search-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 950;
}

.account-search-row span:not(.account-search-avatar) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.account-search-row strong {
  overflow-wrap: anywhere;
}

.account-search-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.playerok-accounts-panel {
  margin-bottom: 18px;
}

.account-warning {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
}

.account-warning strong {
  color: var(--text);
}

.account-warning span {
  color: var(--muted);
  line-height: 1.5;
}

.account-card-head small {
  color: var(--muted);
}

.playerok-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: 14px;
  align-items: start;
}

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

.account-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.account-card.active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.account-card h3 {
  margin-bottom: 6px;
}

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

.account-card-head > div {
  display: flex;
  align-items: center;
  gap: 4px;
}

.account-card-title {
  min-width: 0;
}

.account-card-head .account-card-title {
  gap: 10px;
}

.account-card-title > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.account-card-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.account-card-head strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.form-grid.compact {
  gap: 10px;
}

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

.guide-head h2 {
  margin-bottom: 4px;
}

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

.guide-card {
  position: relative;
  min-height: 166px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.guide-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 950;
  margin-bottom: 14px;
}

.guide-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.guide-card p,
.guide-note p {
  color: var(--muted);
  line-height: 1.55;
}

.guide-card code {
  display: block;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 11, 22, 0.72);
  color: var(--text);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
}

.guide-note {
  margin-top: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
}

.guide-note strong {
  display: block;
  margin-bottom: 6px;
}

.settings-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  margin-top: 12px;
}

.plugin-mode-note {
  display: grid;
  gap: 8px;
}

.plugin-mode-note strong {
  font-size: 16px;
}

.plugin-mode-note p {
  margin: 0;
}

.block-head {
  margin-bottom: 12px;
}

.block-head h3 {
  margin-bottom: 4px;
}

.plugin-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.plugin-flow div {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.plugin-flow strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.plugin-flow span {
  color: #dce4f2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.plugin-bind-head,
.plugin-picker-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.plugin-lot-list {
  display: grid;
  gap: 8px;
  overflow: visible;
}

.gift-plugin-lot-list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.plugin-lot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
}

.gift-lot-row {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.gift-lot-controls {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(180px, 1fr) minmax(150px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
}

.gift-mode-panel {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.owned-gift-box {
  display: grid;
  gap: 10px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.owned-gift-list,
.profile-gift-list {
  display: grid;
  gap: 8px;
}

.owned-gift-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(190px, 0.8fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.owned-gift-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.owned-gift-main strong,
.owned-gift-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owned-gift-main small {
  color: var(--muted);
  font-size: 11px;
}

.owned-gift-status {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.owned-gift-status.sent,
.owned-gift-status.failed,
.owned-gift-status.reserved {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.owned-gift-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.profile-gift-inventory {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-gift-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.telegram-account-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.session-upload-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 10px;
}

.session-file-picker {
  display: grid;
  gap: 7px;
}

.session-file-picker small {
  color: var(--muted);
  line-height: 1.4;
}

.file-drop {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop-main {
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 900;
}

.file-drop-name {
  color: var(--text);
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.session-steps div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.session-steps strong {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.session-steps span {
  color: var(--muted);
  line-height: 1.4;
}

.advanced-settings {
  margin-top: 10px;
}

.advanced-settings summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 850;
}

.advanced-settings .form-grid {
  margin-top: 10px;
}

.plugin-lot-row[hidden] {
  display: none;
}

.plugin-lot-title {
  min-width: 0;
}

.plugin-lot-title span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.plugin-lot-title strong,
.plugin-lot-title small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plugin-lot-title small {
  color: var(--muted);
  font-size: 11px;
}

.plugin-lot-qty input {
  font-weight: 900;
}

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

.steam-account-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.steam-account-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.steam-account-top strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lot-bind-box {
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.lot-bind-box span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.lot-bind-box strong,
.lot-bind-box small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lot-bind-box small {
  color: var(--muted);
  font-size: 11px;
}

.plugin-picker {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.plugin-picker-search {
  min-width: 220px;
}

.plugin-picker-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.plugin-picker-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.plugin-picker-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.plugin-picker-main strong,
.plugin-picker-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plugin-picker-main small {
  color: var(--muted);
  font-size: 11px;
}

button:disabled {
  opacity: 0.52;
  cursor: default;
  transform: none;
}

.item-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.item-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.item-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.item-stats span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.item-stats strong,
.item-stats small {
  display: block;
}

.item-stats strong {
  font-size: 18px;
}

.item-stats small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.row-title,
.feature-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.row-title {
  margin-bottom: 12px;
}

.feature-card {
  min-height: 42px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

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

.split-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  margin-bottom: 14px;
}

.segmented button {
  min-height: 36px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented button.active,
.segmented button:hover {
  color: var(--ink);
  background: #ffffff;
}

.empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  text-align: center;
  padding: 18px;
}

.empty strong {
  color: var(--text);
  font-size: 18px;
}

.empty p {
  max-width: 520px;
  color: var(--muted);
}

.skeleton-screen {
  display: contents;
}

.sk {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.17), transparent);
  animation: skeletonShimmer 1.45s ease-in-out infinite;
}

.sk-line {
  width: var(--sk-w, 100%);
  height: 12px;
}

.sk-title {
  height: 18px;
}

.sk-display {
  height: clamp(30px, 4vw, 48px);
  border-radius: 8px;
}

.sk-number {
  height: 24px;
  border-radius: 8px;
}

.sk-kicker {
  height: 28px;
  border-radius: 999px;
}

.sk-block {
  width: var(--sk-w, 100%);
  min-height: var(--sk-h, 120px);
  border-radius: 8px;
}

.sk-circle {
  width: var(--sk-size, 42px);
  height: var(--sk-size, 42px);
  flex: 0 0 var(--sk-size, 42px);
  border-radius: 50%;
}

.sk-button {
  width: var(--sk-w, 128px);
  max-width: 100%;
  height: 38px;
  border-radius: 8px;
}

.skeleton-text {
  min-width: 0;
  display: grid;
  gap: 9px;
  align-content: start;
}

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

.skeleton-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.skeleton-panel .panel-header .skeleton-text {
  width: min(100%, 420px);
}

.skeleton-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, 0.34fr) auto;
  gap: 16px;
  align-items: center;
}

.skeleton-strip-meter {
  display: grid;
  gap: 10px;
}

.skeleton-hero .hero-visual {
  padding: 24px;
}

.sk-hero-visual {
  min-height: 220px;
  border-radius: 18px;
}

.skeleton-metric {
  display: grid;
  gap: 14px;
  align-content: start;
}

.skeleton-support .support-link {
  cursor: default;
}

.skeleton-deal-card .deal-card-meta .sk-line {
  width: var(--sk-w, 90px);
}

.skeleton-segmented {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skeleton-messages {
  min-height: 330px;
}

.skeleton-bubble {
  display: grid;
  gap: 9px;
}

.skeleton-form-grid .sk-block {
  min-height: var(--sk-h, 42px);
}

.skeleton-price-board .price-box {
  display: grid;
  align-content: start;
  gap: 13px;
}

.skeleton-plugin-card {
  min-height: 0;
  cursor: default;
}

.skeleton-plugin-card:hover {
  transform: none;
}

.sk-plugin-preview {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 11px;
}

.skeleton-event {
  display: grid;
  gap: 8px;
}

.chat-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.chat-sidebar,
.chat-thread {
  min-height: 620px;
  display: flex;
  flex-direction: column;
}

body[data-current-view="chats"] .content {
  min-height: calc(100vh - 124px);
  grid-template-rows: minmax(0, 1fr);
}

body[data-current-view="chats"] .chat-workspace {
  min-height: calc(100vh - 178px);
}

.chat-thread > .empty {
  min-height: 100%;
}

.message-list .empty {
  min-height: 180px;
}

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

body[data-current-view="chats"] .chat-list {
  flex: 1;
  min-height: 0;
  max-height: none;
}

.chat-search-input {
  width: 100%;
  min-height: 42px;
  margin-bottom: 10px;
}

.chat-page-status {
  color: var(--muted);
  font-size: 12px;
  margin: -2px 0 10px;
  overflow-wrap: anywhere;
}

.chat-load-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.chat-load-row .secondary {
  justify-content: center;
  text-align: center;
}

.chat-card {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.chat-card:hover,
.chat-card.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--ink);
  font-weight: 950;
}

.chat-card-main,
.chat-card-top,
.thread-header,
.thread-actions,
.quick-panel-title {
  min-width: 0;
}

.chat-card-main {
  display: grid;
  gap: 3px;
}

.chat-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.chat-count {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.chat-preview,
.chat-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-preview {
  color: #dce4f2;
}

.chat-meta {
  color: var(--muted);
  font-size: 12px;
}

.thread-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.thread-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.message-list {
  height: 330px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 4px;
}

body[data-current-view="chats"] .message-list {
  flex: 1;
  min-height: 260px;
  height: auto;
}

body[data-current-view="chats"] .chat-thread > .empty {
  flex: 1;
}

.message-row {
  display: flex;
}

.message-row.mine {
  justify-content: flex-end;
}

.message-bubble {
  max-width: min(620px, 78%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
}

.message-row.mine .message-bubble {
  background: rgba(46, 107, 255, 0.18);
  border-color: rgba(46, 107, 255, 0.45);
}

.message-bubble.system {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.2);
}

.message-author {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.message-bubble p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-bubble time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.quick-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
  margin-bottom: 12px;
}

.quick-panel-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.quick-chip-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-chip {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.chat-send {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  min-width: 340px;
}

body[data-current-view="chats"] .chat-send {
  margin-top: auto;
}

.composer {
  min-width: 0;
  align-items: stretch;
}

.composer textarea {
  min-height: 74px;
}

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

.event-item {
  border-left: 3px solid #ffffff;
  padding: 10px 0 10px 12px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 0 8px 8px 0;
}

.event-item.error {
  border-color: #ffffff;
}

.event-item.warning {
  border-color: #ffffff;
}

.event-item time {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}

@keyframes skeletonShimmer {
  100% { transform: translateX(110%); }
}

@keyframes opsSignal {
  0%, 18% { transform: translate(0, 0); }
  36%, 54% { transform: translate(83px, 0); }
  72%, 100% { transform: translate(83px, 78px); }
}

@keyframes opsScan {
  0%, 100% { transform: translateY(0); opacity: 0.16; }
  45%, 55% { transform: translateY(130px); opacity: 0.5; }
}

@keyframes opsFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes opsBadge {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-7px) rotate(0.6deg); }
}

@keyframes mascotWave {
  0%, 100% { transform: rotate(-10deg); }
  45% { transform: rotate(13deg); }
  70% { transform: rotate(5deg); }
}

@keyframes mascotSparkle {
  0%, 100% { transform: translateY(0) scale(0.96); opacity: 0.55; }
  50% { transform: translateY(-6px) scale(1.04); opacity: 0.95; }
}

@keyframes mascotBlink {
  0%, 88%, 100% { transform: scaleY(1); }
  92%, 96% { transform: scaleY(0.1); }
}

@keyframes subMascotFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.012); }
}

@keyframes subSolarGlow {
  0%, 100% { transform: scale(0.98); opacity: 0.74; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes subSolarOrbitPulse {
  0%, 100% { stroke-dashoffset: 0; opacity: 0.18; }
  50% { stroke-dashoffset: -42; opacity: 0.44; }
}

@keyframes subSolarPlanetA {
  0% { transform: rotate(0deg) translateX(82px); }
  100% { transform: rotate(360deg) translateX(82px); }
}

@keyframes subSolarPlanetB {
  0% { transform: rotate(88deg) translateX(122px); }
  100% { transform: rotate(448deg) translateX(122px); }
}

@keyframes subSolarPlanetC {
  0% { transform: rotate(210deg) translateX(160px); }
  100% { transform: rotate(570deg) translateX(160px); }
}

@keyframes subSolarPlanetD {
  0% { transform: rotate(315deg) translateX(122px); }
  100% { transform: rotate(675deg) translateX(122px); }
}

@keyframes subSolarStar {
  0%, 100% { transform: scale(0.75); opacity: 0.24; }
  50% { transform: scale(1.16); opacity: 0.9; }
}

@keyframes subSolarComet {
  0%, 100% { stroke-dashoffset: 80; opacity: 0.1; }
  48%, 58% { stroke-dashoffset: -60; opacity: 0.75; }
}

@media (max-width: 1100px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .reply-scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boost-hero {
    grid-template-columns: 1fr;
  }

  .subscription-strip {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 230px;
    margin-top: -28px;
  }

  .hero-svg {
    transform: translateX(0);
  }

  .plugin-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: 0 0 10px;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0 0 12px 12px;
    padding: 12px;
    gap: 12px;
  }

  .brand {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 11px;
    padding-bottom: 10px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand span {
    font-size: 11px;
  }

  .nav-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .nav button {
    text-align: center;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 5px;
    min-height: 52px;
    padding: 7px 5px;
    font-size: 11px;
  }

  .nav button.active {
    box-shadow: inset 0 -3px 0 #ffffff;
  }

  .nav-account {
    margin-top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    align-items: center;
  }

  .nav-account > span {
    display: none;
  }

  .nav-account .secondary {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 82px;
  }

  .nav-playerok-account {
    grid-column: 1 / -1;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    margin: 10px 10px 0;
    padding: 16px;
  }

  .page-meta {
    width: 100%;
  }

  .plugin-title-stats {
    justify-content: flex-start;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .grid-2,
  .form-grid,
  .subscription-gate-card,
  .subscription-modal,
  .deals-hero,
  .deals-empty,
  .reply-scenario-grid,
  .chat-workspace,
  .item-grid,
  .items-workspace,
  .plugins-workspace,
  .plugin-flow,
  .plugin-lot-row,
  .gift-lot-controls,
  .owned-gift-row,
  .profile-gift-row,
  .telegram-account-box,
  .session-upload-box,
  .session-steps,
  .guide-grid,
  .playerok-account-layout,
  .plugin-picker-row,
  .lot-bind-box,
  .price-board {
    grid-template-columns: 1fr;
  }

  .account-carousel {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .account-spotlight {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .account-spotlight-avatar {
    width: 64px;
    height: 64px;
    font-size: 30px;
  }

  .deals-hero .hero-visual {
    justify-self: stretch;
    max-width: 460px;
  }

  .plugin-bind-head,
  .plugin-picker-head {
    align-items: stretch;
    flex-direction: column;
  }

  .steam-account-top {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-sidebar,
  .chat-thread {
    min-height: 0;
  }

  body[data-current-view="chats"] .content,
  body[data-current-view="chats"] .chat-workspace {
    min-height: 0;
  }

  body[data-current-view="chats"] .chat-list {
    flex: none;
    max-height: 430px;
  }

  .message-list {
    height: min(430px, 58vh);
  }

  body[data-current-view="chats"] .message-list {
    flex: none;
    min-height: 260px;
    height: min(430px, 58vh);
  }

  .skeleton-strip,
  .skeleton-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .skeleton-row .sk-button {
    grid-column: 2;
    width: min(100%, var(--sk-w, 128px));
  }

  .skeleton-strip .sk-button,
  .skeleton-strip-meter {
    grid-column: 2;
  }

  .subscription-modal-backdrop {
    padding: 12px;
  }

  .subscription-gate-visual,
  .subscription-modal-visual {
    min-height: 300px;
  }

  .subscription-gate-copy,
  .subscription-modal-copy {
    padding: 22px;
  }
}

.auth-screen {
  width: min(100%, 460px);
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(22, 24, 30, 0.96);
  box-shadow: var(--shadow);
  padding: 22px;
}

.auth-brand {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.auth-brand img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

.auth-brand p,
.auth-note {
  color: var(--muted);
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 16px;
}

.auth-switch button {
  min-height: 38px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}

.auth-switch button.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

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

.wide-button {
  width: 100%;
  justify-content: center;
}

.auth-note {
  margin-top: 14px;
  font-size: 12px;
}

.subscription-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.46fr) auto;
  gap: 16px;
  align-items: center;
}

.subscription-strip-main {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.subscription-strip-main img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.subscription-strip-main span,
.subscription-strip-meter span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.subscription-strip-main strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.05;
}

.subscription-strip-main small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.subscription-strip-meter {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.subscription-strip-meter > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.subscription-strip-meter b {
  color: #ffffff;
  font-size: 13px;
  white-space: nowrap;
}

.subscription-strip-meter i {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.subscription-strip-meter em {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
}

.subscription-expired .subscription-strip-meter em {
  width: 0 !important;
}

.subscription-gate {
  min-height: min(640px, calc(100vh - 150px));
  display: grid;
  place-items: center;
}

.subscription-gate-card,
.subscription-modal {
  width: min(100%, 940px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 44%),
    var(--surface-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
}

.subscription-gate-visual,
.subscription-modal-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 46%, rgba(46, 107, 255, 0.2), transparent 48%),
    rgba(255, 255, 255, 0.035);
}

.subscription-gate-visual img,
.subscription-modal-visual img {
  position: relative;
  z-index: 2;
  width: 238px;
  height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.34));
}

.subscription-gate-copy,
.subscription-modal-copy {
  padding: 34px;
  display: grid;
  gap: 18px;
  align-content: center;
}

.subscription-gate-copy h2,
.subscription-modal-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.subscription-gate-copy p,
.subscription-modal-copy p {
  color: var(--muted);
}

.subscription-price,
.subscription-plan,
.subscription-current {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.subscription-price {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.subscription-price.compact {
  align-items: center;
}

.subscription-price strong {
  font-size: 42px;
  line-height: 0.95;
}

.subscription-price span {
  color: var(--muted);
  font-weight: 800;
}

.subscription-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 28px;
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
}

.subscription-modal {
  position: relative;
  max-height: calc(100vh - 56px);
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: grid;
  place-items: center;
}

.modal-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.subscription-plan {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.subscription-plan span,
.subscription-current span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.subscription-plan strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}

.subscription-current {
  padding: 14px;
}

.subscription-current strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.subscription-scene {
  position: absolute;
  inset: 50%;
  z-index: 1;
  width: 420px;
  height: 360px;
  transform: translate(-50%, -50%);
  overflow: visible;
}

.subscription-mascot {
  animation: subMascotFloat 6s ease-in-out infinite;
}

.subsolar-glow,
.subsolar-planet,
.subsolar-stars circle {
  transform-box: view-box;
  transform-origin: center;
}

.subsolar-glow {
  fill: url(#subSolarGlow);
  animation: subSolarGlow 6.4s ease-in-out infinite;
}

.subsolar-orbit {
  fill: none;
  stroke: rgba(255, 255, 255, 0.17);
  stroke-width: 1.6;
  stroke-dasharray: 8 13;
  animation: subSolarOrbitPulse 7s ease-in-out infinite;
}

.subsolar-orbit-2 {
  stroke: rgba(47, 115, 255, 0.32);
  animation-delay: -2s;
}

.subsolar-orbit-3 {
  stroke: rgba(255, 255, 255, 0.11);
  animation-delay: -4s;
}

.subsolar-planet {
  transform-origin: 210px 188px;
}

.subsolar-planet-1 {
  fill: #ffffff;
  animation: subSolarPlanetA 10s linear infinite;
}

.subsolar-planet-2 {
  fill: #8bb2ff;
  animation: subSolarPlanetB 15s linear infinite;
}

.subsolar-planet-3 {
  fill: rgba(255, 255, 255, 0.74);
  animation: subSolarPlanetC 21s linear infinite;
}

.subsolar-planet-4 {
  fill: rgba(47, 115, 255, 0.88);
  animation: subSolarPlanetD 13s linear infinite;
}

.subsolar-stars circle {
  fill: rgba(255, 255, 255, 0.7);
  animation: subSolarStar 3s ease-in-out infinite;
}

.subsolar-stars circle:nth-child(2),
.subsolar-stars circle:nth-child(5) {
  animation-delay: -0.7s;
}

.subsolar-stars circle:nth-child(3),
.subsolar-stars circle:nth-child(6) {
  animation-delay: -1.4s;
}

.subsolar-stars circle:nth-child(4) {
  animation-delay: -2.1s;
}

.subsolar-comets path {
  fill: none;
  stroke: url(#subSolarBlue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 22 90;
  animation: subSolarComet 5.2s ease-in-out infinite;
}

.subsolar-comets path:nth-child(2) {
  animation-delay: -2.6s;
}

.link-button {
  text-decoration: none;
}

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

.support-link {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  padding: 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.support-link:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.support-link.disabled {
  opacity: 0.7;
}

.support-link.disabled:hover {
  transform: none;
  border-color: var(--line);
  background: var(--surface);
}

.support-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ffffff;
  color: #14161b;
  display: grid;
  place-items: center;
}

.support-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-links strong,
.support-links small {
  display: block;
}

.support-links small {
  margin-top: 4px;
  color: var(--muted);
}

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

.admin-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.admin-stat strong,
.admin-stat span {
  display: block;
}

.admin-stat strong {
  font-size: 28px;
  line-height: 1;
}

.admin-stat span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-users {
  display: grid;
  gap: 10px;
}

.admin-user-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.admin-user-row strong,
.admin-user-row span,
.admin-user-row small {
  display: block;
}

.admin-user-row span,
.admin-user-row small {
  color: var(--muted);
}

.admin-user-row small {
  margin-top: 4px;
  font-size: 12px;
}

.admin-user-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 620px) {
  body {
    font-size: 13px;
  }

  .sidebar {
    padding: 10px;
  }

  .brand {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .topbar {
    margin-left: 10px;
    margin-right: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .topbar p {
    font-size: 12px;
  }

  .content {
    padding: 14px 10px 28px;
    gap: 14px;
  }

  .notice {
    top: 12px;
    right: 10px;
    left: 10px;
    width: auto;
    margin: 0;
  }

  .nav-tabs {
    display: flex;
    gap: 7px;
    margin: 0 -2px;
    padding: 0 2px 3px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .nav-tabs::-webkit-scrollbar {
    height: 0;
  }

  .nav button {
    flex: 0 0 112px;
    min-height: 44px;
    grid-template-columns: 20px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    font-size: 12px;
    scroll-snap-align: start;
  }

  .nav button svg {
    width: 18px;
    height: 18px;
  }

  .nav button span {
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-account {
    padding: 10px;
  }

  .nav-account strong,
  .nav-playerok-account b {
    font-size: 11px;
  }

  .nav-account small {
    font-size: 10px;
  }

  .panel,
  .row-card {
    padding: 14px;
  }

  .panel-header,
  .item-detail-head,
  .guide-head {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-header .pill {
    align-self: flex-start;
  }

  h2 {
    font-size: 17px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .deals-mini-metrics,
  .deal-card {
    grid-template-columns: 1fr;
  }

  .deals-mini-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .deals-mini-metrics span {
    padding: 10px 8px;
  }

  .deals-mini-metrics strong {
    font-size: 18px;
  }

  .deals-mini-metrics small {
    font-size: 10px;
  }

  .deal-card-meta {
    justify-content: flex-start;
    text-align: left;
  }

  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .reply-card {
    min-height: 0;
  }

  .reply-card-actions,
  .form-actions,
  .thread-actions,
  .hero-actions,
  .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reply-card-actions > button,
  .form-actions > button,
  .thread-actions > button,
  .hero-actions > button,
  .inline-actions > button {
    width: 100%;
  }

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

  .plugin-status-badge {
    right: 8px;
    bottom: 8px;
    min-width: 76px;
    padding: 6px 8px 6px 20px;
    font-size: 11px;
  }

  .accounts-switcher-head {
    align-items: stretch;
    flex-direction: column;
  }

  .account-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
    padding: 10px;
  }

  .account-arrow {
    width: 40px;
    min-height: 40px;
  }

  .account-spotlight {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 0;
  }

  .account-spotlight-avatar {
    width: 54px;
    height: 54px;
    font-size: 24px;
  }

  .account-spotlight-copy strong {
    font-size: 21px;
  }

  .account-carousel-foot {
    flex-direction: column;
    gap: 3px;
  }

  .boost-hero {
    min-height: 0;
  }

  .hero-copy {
    padding: 24px 18px;
  }

  .hero-copy h2 {
    font-size: 36px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-visual {
    min-height: 150px;
    margin-top: -12px;
  }

  .boost-hero .hero-visual {
    display: none;
  }

  .deals-hero {
    gap: 4px;
  }

  .deals-hero h2 {
    font-size: 30px;
  }

  .deals-hero .hero-visual {
    display: none;
  }

  .deals-hero .mascot-svg {
    max-height: 205px;
  }

  .chat-send {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .chat-sidebar .segmented,
  .skeleton-segmented {
    grid-template-columns: 1fr;
  }

  .chat-load-row {
    grid-template-columns: 1fr;
  }

  .chat-list {
    max-height: 360px;
  }

  body[data-current-view="chats"] .chat-list {
    max-height: 360px;
  }

  .thread-header {
    align-items: stretch;
    flex-direction: column;
  }

  .message-list {
    height: min(460px, 55vh);
    padding-inline: 0;
  }

  body[data-current-view="chats"] .message-list {
    min-height: 240px;
    height: min(460px, 55vh);
  }

  .message-bubble {
    max-width: 92%;
  }

  .item-stats,
  .support-links,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .item-card-top,
  .account-card-head,
  .steam-account-top {
    align-items: stretch;
    flex-direction: column;
  }

  .file-drop {
    grid-template-columns: 1fr;
  }

  .file-drop-main {
    text-align: center;
  }

  .admin-user-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-user-actions {
    justify-content: stretch;
  }

  .admin-user-actions > button,
  .admin-user-actions > .pill {
    width: 100%;
    justify-content: center;
  }

  .subscription-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .subscription-strip-main {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .subscription-strip-main img {
    width: 52px;
    height: 52px;
  }

  .subscription-strip-main strong {
    font-size: 20px;
  }

  .subscription-price,
  .subscription-plan {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .skeleton-strip,
  .skeleton-row {
    grid-template-columns: 1fr;
  }

  .skeleton-row .sk-circle,
  .skeleton-strip .sk-circle {
    width: var(--sk-size, 42px);
  }

  .skeleton-row .sk-button,
  .skeleton-strip .sk-button,
  .skeleton-strip-meter {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .subscription-strip,
  .subscription-gate-card,
  .subscription-modal {
    grid-template-columns: 1fr;
  }
}

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