:root {
  --tm-bg: #0f1115;
  --tm-surface: #17191f;
  --tm-surface-2: #20232a;
  --tm-text: #f5f5f2;
  --tm-muted: #a9adb7;
  --tm-line: rgba(255, 255, 255, 0.1);
  --tm-line-strong: rgba(254, 206, 26, 0.34);
  --tm-yellow: #fece1a;
  --tm-yellow-2: #fff06a;
  --tm-green: #36d17a;
  --tm-red: #ff5c5c;
  --tm-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body.tm-account-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(254, 206, 26, 0.08), transparent 34%),
    linear-gradient(180deg, #111318 0%, #0f1115 48%, #111318 100%);
  color: var(--tm-text);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.tm-account-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(15, 17, 21, 0.9);
  border-bottom: 1px solid var(--tm-line);
  backdrop-filter: blur(14px);
}

.tm-account-topbar__bar {
  display: contents;
}

.tm-account-topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  justify-self: end;
}

.tm-account-brand {
  display: inline-flex;
  align-items: center;
  min-width: 120px;
  grid-column: 1;
  grid-row: 1;
}

.tm-account-brand img {
  display: block;
  width: 120px;
  height: auto;
}

.tm-account-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.tm-account-nav a,
.tm-account-logout button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--tm-muted);
  font: 700 14px/1 Roboto, Arial, sans-serif;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tm-account-nav a:hover,
.tm-account-logout button:hover {
  color: var(--tm-text);
  border-color: var(--tm-line);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.tm-account-notify {
  position: relative;
}

.tm-account-notify--mobile {
  display: none;
}

.tm-account-notify--desktop {
  display: inline-flex;
}

.tm-account-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--tm-text);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tm-account-menu-toggle:hover,
.tm-account-topbar.is-menu-open .tm-account-menu-toggle {
  border-color: rgba(254, 206, 26, 0.34);
  background: rgba(254, 206, 26, 0.08);
  color: var(--tm-yellow);
  transform: translateY(-1px);
}

.tm-account-menu-toggle span:not(.tm-visually-hidden) {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.tm-account-topbar.is-menu-open .tm-account-menu-toggle span:not(.tm-visually-hidden):nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.tm-account-topbar.is-menu-open .tm-account-menu-toggle span:not(.tm-visually-hidden):nth-child(3) {
  opacity: 0;
}

.tm-account-topbar.is-menu-open .tm-account-menu-toggle span:not(.tm-visually-hidden):nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.tm-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tm-account-notify__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--tm-text);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tm-account-notify__btn:hover,
.tm-account-notify.is-open .tm-account-notify__btn {
  border-color: rgba(254, 206, 26, 0.34);
  background: rgba(254, 206, 26, 0.08);
  color: var(--tm-yellow);
  transform: translateY(-1px);
}

.tm-account-notify__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.tm-account-notify__icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.tm-account-notify__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid #0f1115;
  border-radius: 999px;
  background: #ff4d4f;
  color: #fff;
  font: 800 11px/1 Roboto, Arial, sans-serif;
}

.tm-account-notify__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 50;
  width: min(420px, calc(100vw - 28px));
  max-height: min(72vh, 560px);
  overflow: hidden;
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  background: rgba(16, 18, 22, 0.98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.tm-account-notify__panel[hidden] {
  display: none;
}

.tm-account-notify__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--tm-line);
}

.tm-account-notify__panel-head strong {
  color: var(--tm-text);
  font: 800 16px/1.2 Inter, Roboto, Arial, sans-serif;
}

.tm-account-notify__list {
  display: grid;
  max-height: min(72vh - 56px, 504px);
  overflow-y: auto;
}

.tm-account-notify__item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--tm-line);
  background: rgba(255, 255, 255, 0.02);
}

.tm-account-notify__item:last-child {
  border-bottom: none;
}

.tm-account-notify__item.is-unread {
  background: rgba(255, 255, 255, 0.04);
}

.tm-account-notify__item.is-archived {
  opacity: 0.74;
}

.tm-account-notify__item strong {
  color: var(--tm-text);
  font-size: 16px;
  line-height: 1.25;
}

.tm-account-notify__item p {
  margin: 0;
  color: var(--tm-muted);
  font-size: 14px;
  line-height: 1.45;
}

.tm-account-notify__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--tm-muted);
  font-size: 12px;
}

.tm-account-notify__meta .js-local-time {
  color: var(--tm-muted);
  text-decoration: none;
  white-space: nowrap;
}

.tm-account-notify__status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  font: 800 11px/1 Roboto, Arial, sans-serif;
  text-transform: uppercase;
}

.tm-account-notify__item.is-unread .tm-account-notify__status {
  border-color: rgba(254, 206, 26, 0.28);
  background: rgba(254, 206, 26, 0.08);
  color: var(--tm-yellow);
}

.tm-account-notify__item.is-read .tm-account-notify__status {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--tm-muted);
}

.tm-account-notify__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(254, 206, 26, 0.22);
  border-radius: 8px;
  background: rgba(254, 206, 26, 0.08);
  color: var(--tm-yellow);
  font: 800 13px/1 Roboto, Arial, sans-serif;
  text-decoration: none;
}

.tm-account-notify__empty {
  padding: 18px 16px;
  color: var(--tm-muted);
  font-size: 14px;
}

.tm-account-notify__item--danger {
  border-left: 3px solid rgba(255, 92, 92, 0.5);
}

.tm-account-notify__item--warning {
  border-left: 3px solid rgba(254, 206, 26, 0.5);
}

.tm-account-notify__item--info {
  border-left: 3px solid rgba(102, 181, 255, 0.5);
}

.tm-account-lang {
  position: relative;
}

.tm-account-lang summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--tm-text);
  cursor: pointer;
  font: 800 13px/1 Roboto, Arial, sans-serif;
  list-style: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tm-account-lang summary::-webkit-details-marker {
  display: none;
}

.tm-account-lang summary:hover {
  border-color: rgba(254, 206, 26, 0.34);
  background: rgba(254, 206, 26, 0.08);
  transform: translateY(-1px);
}

.tm-account-lang img {
  display: block;
  flex: 0 0 auto;
  border-radius: 2px;
}

.tm-account-lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  display: grid;
  width: min(260px, calc(100vw - 28px));
  max-height: 330px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  background: rgba(16, 18, 22, 0.98);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.tm-account-lang__menu::-webkit-scrollbar {
  width: 8px;
}

.tm-account-lang__menu::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: var(--tm-yellow);
}

.tm-account-lang .tm-account-lang__menu a {
  justify-content: flex-start;
  gap: 10px;
  min-height: 36px;
  padding: 8px;
  color: var(--tm-muted);
  font-size: 13px;
}

.tm-account-lang .tm-account-lang__menu a:hover,
.tm-account-lang .tm-account-lang__menu a.is-active {
  color: var(--tm-text);
  border-color: rgba(254, 206, 26, 0.22);
  background: rgba(254, 206, 26, 0.08);
}

.tm-account-nav .tm-account-nav__accent {
  color: #111318;
  background: var(--tm-yellow);
  border-color: var(--tm-yellow);
}

.tm-account-logout {
  margin: 0;
}

.tm-account-logout button {
  cursor: pointer;
}

.tm-account-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 34px;
}

.tm-account-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 32px;
  color: rgba(245, 245, 242, 0.5);
  font-size: 13px;
}

.tm-account-footer a {
  text-decoration: none;
}

.tm-eyebrow,
.tm-kicker {
  margin: 0 0 10px;
  color: var(--tm-yellow);
  font-weight: 800;
  letter-spacing: 0;
}

.tm-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(28px, 7vw, 88px);
  align-items: center;
  min-height: calc(100vh - 180px);
}

.tm-auth-copy {
  max-width: 620px;
  animation: tmRise 520ms ease both;
}

.tm-auth-copy h1,
.tm-cabinet-hero h1 {
  margin: 0;
  font-family: Inter, Roboto, Arial, sans-serif;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.tm-auth-copy p:last-child,
.tm-cabinet-hero p:last-child {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--tm-muted);
  font-size: 18px;
}

.tm-cabinet-user {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.tm-cabinet-user__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(254, 206, 26, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(254, 206, 26, 0.96), rgba(238, 178, 18, 0.9));
  color: #111318;
  box-shadow: 0 0px 14px rgba(254, 206, 26, 0.18);
  font: 900 30px/1 Inter, Roboto, Arial, sans-serif;
}

.tm-cabinet-user__body {
  min-width: 0;
}

.tm-cabinet-user__body > span {
  display: block;
  margin: 0 0 7px;
  color: var(--tm-yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tm-cabinet-user h1 {
  font-size: clamp(28px, 4.6vw, 54px);
  line-height: 1.04;
  overflow-wrap: anywhere;
  word-break: normal;
}

.tm-auth-panel,
.tm-panel {
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  background: rgba(23, 25, 31, 0.92);
  box-shadow: var(--tm-shadow);
}

.tm-auth-panel {
  padding: 28px;
  animation: tmRise 560ms 80ms ease both;
}

.tm-auth-panel h2,
.tm-panel h2 {
  margin: 0;
  color: var(--tm-text);
  font-family: Inter, Roboto, Arial, sans-serif;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.tm-auth-panel label,
.tm-inline-form label,
.tm-stack-form label {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--tm-muted);
  font-weight: 700;
}

.tm-auth-panel input,
.tm-inline-form input,
.tm-stack-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  outline: none;
  background: #101216;
  color: var(--tm-text);
  font: 600 15px/1.2 Roboto, Arial, sans-serif;
  padding: 12px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tm-auth-panel input:focus,
.tm-inline-form input:focus,
.tm-stack-form input:focus {
  border-color: var(--tm-yellow);
  background: #12151a;
  box-shadow: 0 0 0 3px rgba(254, 206, 26, 0.16);
}

.tm-primary-btn,
.tm-secondary-btn,
.tm-danger-btn {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font: 800 15px/1 Roboto, Arial, sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tm-primary-btn {
  width: 100%;
  margin-top: 22px;
  background: linear-gradient(180deg, var(--tm-yellow-2), var(--tm-yellow));
  color: #111318;
  box-shadow: 0 12px 28px rgba(254, 206, 26, 0.18);
}

.tm-secondary-btn {
  background: rgba(254, 206, 26, 0.08);
  border-color: rgba(254, 206, 26, 0.34);
  color: var(--tm-yellow);
}

.tm-danger-btn {
  background: rgba(255, 92, 92, 0.08);
  border-color: rgba(255, 92, 92, 0.35);
  color: #ff8a8a;
}

.tm-primary-btn:hover,
.tm-secondary-btn:hover,
.tm-danger-btn:hover {
  transform: translateY(-1px);
}

.tm-primary-btn:hover {
  box-shadow: 0 16px 34px rgba(254, 206, 26, 0.24);
}

.tm-danger-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.tm-auth-link {
  margin: 18px 0 0;
  color: var(--tm-muted);
}

.tm-auth-link--compact {
  margin-top: 12px;
  text-align: right;
}

.tm-auth-link a,
.tm-text-link {
  color: var(--tm-yellow);
  font-weight: 800;
  text-decoration: none;
}

.tm-form-error,
.tm-account-flash {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.tm-account-flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.tm-account-flash__body {
  flex: 1 1 280px;
}

.tm-account-flash__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid rgba(254, 206, 26, 0.28);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(254, 206, 26, 0.2), rgba(254, 206, 26, 0.08)),
    rgba(32, 26, 8, 0.36);
  color: #fff1ab;
  font: 800 12px/1 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(254, 206, 26, 0.12);
}

.tm-account-flash__link:hover {
  border-color: rgba(254, 206, 26, 0.42);
  background:
    linear-gradient(180deg, rgba(254, 206, 26, 0.28), rgba(254, 206, 26, 0.12)),
    rgba(38, 30, 10, 0.48);
}

.tm-account-flash__link:focus-visible {
  outline: 2px solid rgba(254, 206, 26, 0.4);
  outline-offset: 2px;
}

.tm-form-error,
.tm-account-flash--error {
  border: 1px solid rgba(255, 92, 92, 0.35);
  background: rgba(255, 92, 92, 0.1);
  color: #ffb1b1;
}

.tm-account-flash--success {
  border: 1px solid rgba(54, 209, 122, 0.34);
  background: rgba(54, 209, 122, 0.1);
  color: #9af0bd;
}

.tm-account-flashes {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.tm-notice-board {
  margin-bottom: 0;
}

.tm-notice-board__head {
  align-items: center;
}

.tm-notice-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(254, 206, 26, 0.24);
  border-radius: 8px;
  background: rgba(254, 206, 26, 0.1);
  color: var(--tm-yellow);
  font: 800 14px/1 Roboto, Arial, sans-serif;
}

.tm-notice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.tm-notice-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.tm-notice-card strong {
  color: var(--tm-text);
  font-size: 17px;
  line-height: 1.2;
}

.tm-notice-card p {
  margin: 0;
  color: var(--tm-muted);
  font-size: 14px;
  line-height: 1.45;
}

.tm-notice-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--tm-text);
  font: 800 13px/1 Roboto, Arial, sans-serif;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tm-notice-card__link:hover {
  transform: translateY(-1px);
}

.tm-notice-card--danger {
  border-color: rgba(255, 92, 92, 0.26);
  background: linear-gradient(135deg, rgba(255, 92, 92, 0.11), rgba(255, 255, 255, 0.025));
}

.tm-notice-card--danger strong {
  color: #ffd2d2;
}

.tm-notice-card--danger .tm-notice-card__link {
  border-color: rgba(255, 92, 92, 0.28);
  background: rgba(255, 92, 92, 0.08);
  color: #ffb1b1;
}

.tm-notice-card--warning {
  border-color: rgba(254, 206, 26, 0.26);
  background: linear-gradient(135deg, rgba(254, 206, 26, 0.11), rgba(255, 255, 255, 0.025));
}

.tm-notice-card--warning strong {
  color: var(--tm-yellow);
}

.tm-notice-card--warning .tm-notice-card__link {
  border-color: rgba(254, 206, 26, 0.32);
  background: rgba(254, 206, 26, 0.08);
  color: var(--tm-yellow);
}

.tm-notice-card--info {
  border-color: rgba(102, 181, 255, 0.24);
  background: linear-gradient(135deg, rgba(102, 181, 255, 0.1), rgba(255, 255, 255, 0.025));
}

.tm-notice-card--info strong {
  color: #b5d7ff;
}

.tm-notice-card--info .tm-notice-card__link {
  border-color: rgba(102, 181, 255, 0.26);
  background: rgba(102, 181, 255, 0.08);
  color: #b5d7ff;
}

.tm-cabinet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  animation: tmRise 520ms ease both;
}

.tm-subscription-status {
  padding: 22px;
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  background: rgba(23, 25, 31, 0.86);
}

.tm-subscription-status span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--tm-muted);
  font-weight: 800;
}

.tm-subscription-status.is-active span {
  background: rgba(54, 209, 122, 0.12);
  color: var(--tm-green);
}

.tm-subscription-status strong {
  display: block;
  margin-top: 18px;
  font-family: Inter, Roboto, Arial, sans-serif;
  font-size: 24px;
  line-height: 1.2;
}

body.tm-account-page--cabinet {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(254, 206, 26, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(102, 181, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #0d1016 0%, #090b10 100%);
}

body.tm-account-page--cabinet .tm-account-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  width: min(1380px, calc(100% - 32px));
  min-height: 0;
  padding: 20px 0 18px;
  overflow: hidden;
}

body.tm-account-page--cabinet .tm-account-footer {
  flex: 0 0 auto;
  width: min(1380px, calc(100% - 32px));
  padding: 0 0 18px;
}

body.tm-account-page--cabinet .tm-account-flashes {
  flex: 0 0 auto;
  margin: 0;
}

body.tm-account-page--cabinet .tm-cabinet-hero {
  position: relative;
  flex: 0 0 auto;
  align-items: center;
  margin-bottom: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 20%, rgba(254, 206, 26, 0.18), transparent 18%),
    radial-gradient(circle at 12% 6%, rgba(117, 170, 255, 0.12), transparent 24%),
    linear-gradient(150deg, rgba(22, 25, 32, 0.98), rgba(9, 11, 15, 0.96));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

body.tm-account-page--cabinet .tm-cabinet-hero::before,
body.tm-account-page--cabinet .tm-cabinet-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

body.tm-account-page--cabinet .tm-cabinet-hero::before {
  inset: auto auto -120px -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 206, 26, 0.18), transparent 72%);
  filter: blur(18px);
}

body.tm-account-page--cabinet .tm-cabinet-hero::after {
  inset: 24px 24px auto auto;
  width: 160px;
  height: 160px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 68%),
    rgba(255, 255, 255, 0.01);
  transform: rotate(15deg);
}

body.tm-account-page--cabinet .tm-cabinet-hero > * {
  position: relative;
  z-index: 1;
}

body.tm-account-page--cabinet .tm-cabinet-hero h1 {
  font-size: clamp(30px, 4vw, 52px);
}

body.tm-account-page--cabinet .tm-cabinet-hero p:last-child {
  max-width: 680px;
  margin-top: 18px;
  font-size: 16px;
}

body.tm-account-page--cabinet .tm-cabinet-user__avatar {
  border-radius: 18px;
}

body.tm-account-page--cabinet .tm-subscription-status {
  position: relative;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(11, 13, 18, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

body.tm-account-page--cabinet .tm-subscription-status::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 206, 26, 0.16), transparent 70%);
}

.tm-cabinet-shell {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 288px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  overflow: hidden;
}

.tm-cabinet-nav {
  position: relative;
  display: grid;
  grid-template-rows: max-content;
  gap: 16px;
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(22, 25, 32, 0.96), rgba(11, 13, 18, 0.98)),
    rgba(13, 15, 20, 0.92);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.tm-cabinet-nav::before {
  content: "";
  position: absolute;
  inset: 20px auto 20px 18px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.tm-cabinet-nav__list {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.tm-cabinet-nav__list::-webkit-scrollbar,
.tm-cabinet-pane::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.tm-cabinet-nav__list::-webkit-scrollbar-thumb,
.tm-cabinet-pane::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(254, 206, 26, 0.38);
}

.tm-cabinet-nav__item {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px 30px 22px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.01);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.tm-cabinet-nav__item::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(254, 206, 26, 0), rgba(254, 206, 26, 0.88), rgba(254, 206, 26, 0));
  opacity: 0.36;
}

.tm-cabinet-nav__item::after {
  content: "";
  position: absolute;
  top: -42px;
  right: -28px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.tm-cabinet-nav__item:hover,
.tm-cabinet-nav__item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(254, 206, 26, 0.24);
  background:
    linear-gradient(180deg, rgba(254, 206, 26, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.01);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.tm-cabinet-nav__item:hover::after,
.tm-cabinet-nav__item:focus-visible::after,
.tm-cabinet-nav__item.is-active::after {
  opacity: 1;
}

.tm-cabinet-nav__item.is-active {
  border-color: rgba(254, 206, 26, 0.3);
  background:
    linear-gradient(140deg, rgba(254, 206, 26, 0.16), rgba(255, 255, 255, 0.03)),
    rgba(17, 19, 24, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 54px rgba(0, 0, 0, 0.28);
}

.tm-cabinet-nav__item.is-active::before {
  opacity: 1;
}

.tm-cabinet-nav__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(9, 11, 15, 0.46);
  color: rgba(255, 255, 255, 0.46);
  font: 900 22px/1 Inter, Roboto, Arial, sans-serif;
}

.tm-cabinet-nav__item.is-active .tm-cabinet-nav__number {
  border-color: rgba(254, 206, 26, 0.26);
  background: linear-gradient(180deg, rgba(254, 206, 26, 0.18), rgba(254, 206, 26, 0.06));
  color: var(--tm-yellow);
  box-shadow: 0 14px 28px rgba(254, 206, 26, 0.14);
}

.tm-cabinet-nav__copy {
  display: grid;
  gap: 6px;
}

.tm-cabinet-nav__copy strong {
  color: var(--tm-text);
  font: 800 12px/1.2 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tm-cabinet-nav__copy small {
  color: rgba(245, 245, 242, 0.74);
  font-size: 14px;
  line-height: 1.4;
}

.tm-cabinet-nav__aside {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(102, 181, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(12, 15, 21, 0.9);
}

.tm-cabinet-nav__aside-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(254, 206, 26, 0.16), rgba(254, 206, 26, 0.04));
  color: var(--tm-yellow);
  font: 900 18px/1 Inter, Roboto, Arial, sans-serif;
}

.tm-cabinet-nav__aside strong,
.tm-cabinet-nav__aside p {
  display: block;
}

.tm-cabinet-nav__aside strong {
  color: var(--tm-text);
  font-size: 16px;
}

.tm-cabinet-nav__aside p {
  margin: 4px 0 0;
  color: var(--tm-muted);
  font-size: 13px;
  line-height: 1.45;
}

.tm-cabinet-stage {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(17, 19, 24, 0.98), rgba(11, 13, 18, 0.98)),
    rgba(11, 13, 18, 0.96);
  box-shadow: 0 30px 84px rgba(0, 0, 0, 0.34);
}

.tm-cabinet-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 75%);
  pointer-events: none;
}

.tm-cabinet-pane {
  position: relative;
  z-index: 1;
  display: none;
  flex: 1 1 auto;
  align-content: start;
  gap: 18px;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 20px;
  scrollbar-gutter: stable both-edges;
}

.tm-cabinet-pane.is-active {
  display: grid;
  animation: tmCabinetPaneIn 320ms ease both;
}

.tm-cabinet-pane--access {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: none;
}

.tm-cabinet-pane--games,
.tm-cabinet-pane--detection,
.tm-cabinet-pane--security,
.tm-cabinet-pane--history {
  grid-template-columns: minmax(0, 1fr);
}

.tm-cabinet-pane--devices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tm-cabinet-pane--downloads {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
}

.tm-cabinet-pane--security .tm-cabinet-pane__panel {
  max-width: 760px;
}

.tm-cabinet-pane__panel {
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(20, 22, 28, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 24px 58px rgba(0, 0, 0, 0.24);
}

.tm-cabinet-pane__panel--scroll {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tm-cabinet-pane__panel--scroll .tm-download-list,
.tm-cabinet-pane__panel--scroll .tm-history-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

.tm-cabinet-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tm-cabinet-stat-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(13, 15, 20, 0.92);
  overflow: hidden;
}

.tm-cabinet-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -16% -46% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 206, 26, 0.12), transparent 70%);
}

.tm-cabinet-stat-card.is-positive::after {
  background: radial-gradient(circle, rgba(54, 209, 122, 0.16), transparent 72%);
}

.tm-cabinet-stat-card.is-positive {
  border-color: rgba(54, 209, 122, 0.22);
}

.tm-cabinet-stat-card span,
.tm-cabinet-stat-card strong,
.tm-cabinet-stat-card small {
  position: relative;
  z-index: 1;
}

.tm-cabinet-stat-card span {
  color: rgba(245, 245, 242, 0.58);
  font: 800 12px/1.2 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tm-cabinet-stat-card strong {
  color: var(--tm-text);
  font-family: Inter, Roboto, Arial, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.02;
}

.tm-cabinet-stat-card small {
  color: var(--tm-muted);
  font-size: 14px;
  line-height: 1.45;
}

body.tm-account-page--cabinet .tm-panel-heading {
  gap: 20px;
}

body.tm-account-page--cabinet .tm-panel h2 {
  font-size: clamp(24px, 3vw, 36px);
}

body.tm-account-page--cabinet .tm-device-state,
body.tm-account-page--cabinet .tm-download-row,
body.tm-account-page--cabinet .tm-history-table-wrap,
body.tm-account-page--cabinet .tm-trial-box {
  border-radius: 20px;
}

body.tm-account-page--cabinet .tm-download-row {
  padding: 18px;
}

body.tm-account-page--cabinet .tm-history-table-wrap {
  overflow: auto;
}

@keyframes tmCabinetPaneIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tm-cabinet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tm-panel {
  padding: 24px;
  animation: tmRise 520ms ease both;
}

.tm-panel--wide {
  grid-column: 1 / -1;
}

.tm-panel--subtle {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(23, 25, 31, 0.68);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.tm-panel--subtle .tm-panel-heading {
  margin-bottom: 12px;
}

.tm-panel--subtle .tm-panel-note {
  margin-bottom: 14px;
  color: rgba(245, 245, 242, 0.58);
  font-size: 14px;
  max-width: none;
}

.tm-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.tm-panel-note {
  margin: 0 0 18px;
  color: var(--tm-muted);
  max-width: 760px;
}

.tm-program-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.8vw, 32px);
  border-color: rgba(254, 206, 26, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(254, 206, 26, 0.16), transparent 28%),
    radial-gradient(circle at left center, rgba(255, 132, 40, 0.08), transparent 32%),
    linear-gradient(135deg, rgba(18, 20, 26, 0.98), rgba(10, 12, 16, 0.96));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
  isolation: isolate;
}

.tm-program-showcase::before,
.tm-program-showcase::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.tm-program-showcase::before {
  top: -160px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 206, 26, 0.22), transparent 70%);
  filter: blur(12px);
  opacity: 0.75;
}

.tm-program-showcase::after {
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.tm-program-showcase__head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.tm-program-showcase__intro h2 {
  max-width: 760px;
  font-size: clamp(30px, 4.8vw, 52px);
  line-height: 0.98;
}

.tm-program-showcase__text {
  margin: 14px 0 0;
  max-width: 720px;
  color: rgba(245, 245, 242, 0.76);
  font-size: 16px;
  line-height: 1.55;
}

.tm-program-showcase__metric {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(12, 14, 19, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.tm-program-showcase__metric-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tm-program-showcase__metric-icon-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(254, 206, 26, 0.26);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(254, 206, 26, 0.22), rgba(254, 206, 26, 0.06));
  color: var(--tm-yellow);
  box-shadow: 0 16px 32px rgba(254, 206, 26, 0.14);
}

.tm-program-showcase__metric-icon-mark svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.tm-program-showcase__metric-icon-image {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.tm-program-showcase__metric-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tm-program-showcase__metric-copy strong {
  color: var(--tm-text);
  font-family: Inter, Roboto, Arial, sans-serif;
  font-size: clamp(42px, 6vw, 62px);
  line-height: 0.9;
}

.tm-program-showcase__metric-copy span {
  color: rgba(245, 245, 242, 0.68);
  font: 800 12px/1.2 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tm-program-showcase__metric p {
  margin: 0;
  color: rgba(245, 245, 242, 0.82);
  font-size: 15px;
  line-height: 1.45;
}

.tm-program-showcase__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.tm-game-card {
  --tm-card-accent: rgba(254, 206, 26, 0.2);
  position: relative;
  display: flex;
  min-height: 320px;
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: #0d1015;
  color: var(--tm-text);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
  isolation: isolate;
}

.tm-game-card--rust {
  --tm-card-accent: rgba(255, 142, 54, 0.24);
}

.tm-game-card--cs2 {
  --tm-card-accent: rgba(146, 196, 255, 0.22);
  grid-column: span 6;
}

.tm-game-card--pubg {
  --tm-card-accent: rgba(255, 190, 59, 0.2);
}

.tm-game-card--apex {
  --tm-card-accent: rgba(255, 108, 82, 0.22);
}

.tm-game-card--featured {
  grid-column: 1 / -1;
  min-height: 390px;
}

.tm-game-card--pubg,
.tm-game-card--apex {
  min-height: 300px;
}

.tm-game-card__backdrop {
  position: absolute;
  inset: 0;
}

.tm-game-card__backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  opacity: 0.9;
  filter: saturate(1.05) contrast(1.04);
  transition: transform 300ms ease, filter 300ms ease, opacity 300ms ease;
}

.tm-game-card--dev .tm-game-card__backdrop img {
  opacity: 0.82;
  filter: saturate(0.84) contrast(1.02) brightness(0.86);
}

.tm-game-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.04) 0%, rgba(7, 9, 13, 0.38) 38%, rgba(7, 9, 13, 0.92) 100%),
    radial-gradient(circle at top right, var(--tm-card-accent), transparent 40%),
    linear-gradient(90deg, rgba(7, 9, 13, 0.82) 0%, rgba(7, 9, 13, 0.28) 58%, rgba(7, 9, 13, 0.8) 100%);
}

.tm-game-card--featured .tm-game-card__shade {
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.02) 0%, rgba(7, 9, 13, 0.22) 30%, rgba(7, 9, 13, 0.9) 100%),
    radial-gradient(circle at 80% 14%, var(--tm-card-accent), transparent 34%),
    linear-gradient(90deg, rgba(7, 9, 13, 0.84) 0%, rgba(7, 9, 13, 0.18) 54%, rgba(7, 9, 13, 0.72) 100%);
}

.tm-game-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: inherit;
  padding: clamp(20px, 2.8vw, 30px);
}

.tm-game-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.tm-game-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.34);
  backdrop-filter: blur(8px);
  color: rgba(255, 245, 205, 0.96);
  font: 800 11px/1 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tm-game-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font: 800 12px/1 Inter, Roboto, Arial, sans-serif;
  white-space: nowrap;
}

.tm-game-card__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.tm-game-card__status--live {
  border: 1px solid rgba(54, 209, 122, 0.26);
  background: rgba(54, 209, 122, 0.12);
  color: #89ebb2;
}

.tm-game-card__status--dev {
  border: 1px solid rgba(254, 206, 26, 0.24);
  background: rgba(254, 206, 26, 0.12);
  color: #ffe176;
}

.tm-game-card__copy {
  display: grid;
  gap: 8px;
  max-width: 620px;
}

.tm-game-card__copy h3 {
  margin: 0;
  color: var(--tm-text);
  font-family: Inter, Roboto, Arial, sans-serif;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-shadow: 0 20px 36px rgba(0, 0, 0, 0.28);
}

.tm-game-card:not(.tm-game-card--featured) .tm-game-card__copy h3 {
  font-size: clamp(34px, 5vw, 58px);
}

.tm-game-card--pubg .tm-game-card__copy h3,
.tm-game-card--apex .tm-game-card__copy h3 {
  font-size: clamp(32px, 4vw, 44px);
}

.tm-game-card__lead {
  margin: 0;
  color: #fff;
  font: 800 clamp(19px, 2vw, 28px)/1.08 Inter, Roboto, Arial, sans-serif;
}

.tm-game-card__text {
  margin: 0;
  max-width: 560px;
  color: rgba(245, 245, 242, 0.78);
  font-size: 15px;
  line-height: 1.5;
}

.tm-device-badge {
  display: inline-flex;
  align-items: center;
  max-width: 190px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--tm-line);
  color: var(--tm-yellow);
  background: rgba(254, 206, 26, 0.07);
  font: 800 13px/1.1 Roboto, Arial, sans-serif;
  overflow-wrap: anywhere;
}

.tm-device-state {
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.tm-device-state strong {
  color: var(--tm-text);
  font-size: 17px;
}

.tm-device-state span {
  color: var(--tm-muted);
}

.tm-device-state.is-bound {
  border-color: rgba(54, 209, 122, 0.28);
  background: rgba(54, 209, 122, 0.06);
}

.tm-device-state.is-bound strong {
  color: #9af0bd;
}

.tm-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  align-items: end;
}

.tm-inline-form label,
.tm-stack-form label {
  margin-top: 0;
}

.tm-stack-form {
  display: grid;
  gap: 14px;
}

.tm-reset-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
}

.tm-reset-form span {
  color: var(--tm-muted);
  font-size: 14px;
}

.tm-trial-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(254, 206, 26, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(254, 206, 26, 0.1), rgba(255, 255, 255, 0.025));
}

.tm-trial-box strong,
.tm-trial-box span {
  display: block;
}

.tm-trial-box strong {
  color: var(--tm-text);
  font-size: 18px;
}

.tm-trial-box span {
  margin-top: 4px;
  color: var(--tm-muted);
}

.tm-trial-box form {
  flex: 0 0 auto;
}

.tm-danger-box {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 92, 92, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 92, 92, 0.1), rgba(255, 255, 255, 0.02));
}

.tm-danger-box strong,
.tm-danger-box span {
  display: block;
}

.tm-danger-box strong {
  color: #ffd2d2;
  font-size: 18px;
}

.tm-danger-box span {
  margin-top: 4px;
  color: var(--tm-muted);
}

.tm-danger-box--subtle {
  margin-top: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.tm-danger-box--subtle .tm-stack-form {
  gap: 12px;
}

.tm-danger-box--subtle .tm-danger-btn {
  width: auto;
  min-width: 180px;
}

.tm-download-list {
  display: grid;
  gap: 10px;
}

.tm-download-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.tm-download-row:hover {
  border-color: var(--tm-line-strong);
  background: rgba(254, 206, 26, 0.06);
  transform: translateY(-1px);
}

.tm-download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(254, 206, 26, 0.18);
  border-radius: 8px;
  background: rgba(254, 206, 26, 0.08);
  color: var(--tm-yellow);
}

.tm-download-icon svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.tm-download-icon--android svg {
  width: 31px;
  height: 31px;
}

.tm-download-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.tm-download-row strong,
.tm-download-row small {
  display: block;
}

.tm-download-row strong {
  color: var(--tm-text);
  font-size: 17px;
}

.tm-download-row small {
  margin-top: 4px;
  color: var(--tm-muted);
  overflow-wrap: anywhere;
}

.tm-download-row em {
  min-width: 0;
  color: var(--tm-muted);
  font-style: normal;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.tm-download-row em b {
  color: var(--tm-yellow);
  font: inherit;
}

.tm-download-row em small {
  display: block;
  margin-top: 4px;
  color: var(--tm-muted);
  font-size: 12px;
  font-weight: 700;
}

.tm-download-row.is-disabled {
  opacity: 0.65;
}

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

.tm-system-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
}

.tm-system-card__head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.tm-system-card__copy {
  min-width: 0;
}

.tm-system-card__eyebrow {
  display: block;
  color: var(--tm-yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tm-system-card__copy h3 {
  margin: 6px 0 0;
  color: var(--tm-text);
  font-size: 20px;
}

.tm-system-card__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--tm-muted);
}

.tm-system-card__list li::marker {
  color: var(--tm-yellow);
}

.tm-system-card__note {
  margin: 0;
  color: var(--tm-muted);
  font-size: 13px;
  line-height: 1.6;
}

.tm-history-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.tm-history-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.tm-history-table th,
.tm-history-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--tm-line);
  text-align: left;
  vertical-align: middle;
}

.tm-history-table thead th {
  color: var(--tm-yellow);
  background: rgba(254, 206, 26, 0.05);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tm-history-table tbody tr:last-child td {
  border-bottom: none;
}

.tm-history-table tbody tr:hover {
  background: rgba(254, 206, 26, 0.04);
}

.tm-history-table code {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  background: rgba(16, 18, 22, 0.92);
  color: var(--tm-text);
  font: 700 13px/1.2 Consolas, "Courier New", monospace;
}

.tm-history-table .js-local-time {
  color: var(--tm-text);
  text-decoration: none;
  white-space: nowrap;
}

.tm-history-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  font: 800 12px/1 Roboto, Arial, sans-serif;
  text-transform: uppercase;
}

.tm-history-type--key {
  border-color: rgba(254, 206, 26, 0.28);
  background: rgba(254, 206, 26, 0.08);
  color: var(--tm-yellow);
}

.tm-history-type--trial {
  border-color: rgba(54, 209, 122, 0.28);
  background: rgba(54, 209, 122, 0.1);
  color: #9af0bd;
}

.tm-history-empty {
  color: var(--tm-muted);
  text-align: center;
}

@keyframes tmRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  body.tm-account-page--cabinet .tm-account-main,
  body.tm-account-page--cabinet .tm-account-footer {
    width: min(100% - 24px, 1320px);
  }

  .tm-cabinet-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .tm-cabinet-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-cabinet-stat-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .tm-cabinet-pane--devices,
  .tm-cabinet-pane--downloads {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body.tm-account-page--cabinet {
    overflow: auto;
  }

  body.tm-account-page--cabinet .tm-account-main {
    display: grid;
    gap: 14px;
    min-height: auto;
    padding: 28px 0 24px;
  }

  body.tm-account-page--cabinet .tm-account-footer {
    padding-bottom: 24px;
  }

  .tm-account-topbar {
    display: block;
    padding: 14px 16px;
  }

  .tm-account-topbar__bar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
  }

  .tm-account-topbar__actions {
    grid-column: auto;
    justify-self: auto;
  }

  .tm-account-brand img {
    width: 108px;
  }

  .tm-account-topbar__actions {
    flex: 0 0 auto;
  }

  .tm-account-notify--mobile {
    display: inline-flex;
  }

  .tm-account-notify--desktop {
    display: none;
  }

  .tm-account-menu-toggle {
    display: inline-flex;
  }

  .tm-account-nav {
    display: none;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    padding-right: 0;
    justify-content: flex-start;
    justify-self: auto;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--tm-line);
  }

  .tm-account-topbar.is-menu-open .tm-account-nav {
    display: flex;
  }

  .tm-account-nav > a,
  .tm-account-nav > .tm-account-lang,
  .tm-account-nav > .tm-account-notify,
  .tm-account-nav > .tm-account-logout {
    flex: 1 1 calc(50% - 4px);
    min-width: min(180px, 100%);
  }

  .tm-account-nav > a,
  .tm-account-nav > .tm-account-notify,
  .tm-account-nav > .tm-account-logout {
    display: flex;
  }

  .tm-account-nav > .tm-account-logout {
    margin: 0;
  }

  .tm-account-nav > a,
  .tm-account-nav > .tm-account-notify,
  .tm-account-nav > .tm-account-logout button,
  .tm-account-lang summary {
    width: 100%;
    white-space: normal;
  }

  .tm-account-notify {
    position: static;
  }

  .tm-account-lang__menu {
    right: 0;
    left: auto;
  }

  .tm-account-notify__panel {
    position: fixed;
    top: 74px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: min(68vh, 560px);
  }

  .tm-auth-shell,
  .tm-cabinet-hero,
  .tm-cabinet-grid,
  .tm-cabinet-shell {
    grid-template-columns: 1fr;
  }

  .tm-cabinet-shell {
    flex: initial;
    min-height: auto;
  }

  .tm-cabinet-nav {
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
  }

  .tm-cabinet-nav::before {
    display: none;
  }

  .tm-cabinet-nav__list {
    display: flex;
    gap: 10px;
    overflow: auto;
    padding: 0 0 4px;
  }

  .tm-cabinet-nav__item {
    flex: 0 0 min(260px, 72vw);
  }

  .tm-cabinet-nav__aside {
    grid-template-columns: 48px minmax(0, 1fr);
    border-radius: 20px;
  }

  .tm-cabinet-nav__aside-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .tm-cabinet-stage {
    min-height: auto;
    border-radius: 24px;
  }

  .tm-cabinet-pane {
    height: auto;
    overflow: visible;
    padding: 16px;
    scrollbar-gutter: auto;
  }

  .tm-cabinet-pane--access,
  .tm-cabinet-pane--games,
  .tm-cabinet-pane--detection,
  .tm-cabinet-pane--devices,
  .tm-cabinet-pane--downloads,
  .tm-cabinet-pane--security,
  .tm-cabinet-pane--history,
  .tm-cabinet-stat-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  body.tm-account-page--cabinet .tm-cabinet-hero {
    border-radius: 24px;
  }

  body.tm-account-page--cabinet .tm-subscription-status,
  .tm-cabinet-pane__panel {
    border-radius: 22px;
  }

  .tm-program-showcase__head {
    grid-template-columns: 1fr;
  }

  .tm-program-showcase__metric {
    max-width: none;
  }

  .tm-game-card--featured,
  .tm-game-card--cs2 {
    grid-column: 1 / -1;
  }

  .tm-game-card--pubg,
  .tm-game-card--apex {
    grid-column: span 6;
  }

  .tm-auth-copy h1,
  .tm-cabinet-hero h1 {
    font-size: 42px;
  }

  .tm-cabinet-hero {
    gap: 16px;
  }

  .tm-cabinet-user {
    align-items: flex-start;
  }

  .tm-cabinet-user__body > span {
    margin-bottom: 6px;
  }

  .tm-subscription-status strong {
    font-size: clamp(22px, 6vw, 28px);
    overflow-wrap: anywhere;
  }

  .tm-inline-form {
    grid-template-columns: 1fr;
  }

  .tm-inline-form .tm-primary-btn {
    margin-top: 0;
  }

  .tm-trial-box {
    align-items: stretch;
    flex-direction: column;
  }

  .tm-trial-box form,
  .tm-trial-box button {
    width: 100%;
  }

  .tm-history-table {
    min-width: 720px;
  }
}

@media (max-width: 640px) {
  .tm-account-main,
  .tm-account-footer {
    width: min(100% - 24px, 1180px);
  }

  .tm-cabinet-nav__item {
    flex-basis: 82vw;
    padding: 14px 14px 14px 12px;
    border-radius: 20px 24px 20px 20px;
  }

  .tm-cabinet-nav__number {
    min-height: 48px;
    border-radius: 14px;
    font-size: 18px;
  }

  .tm-cabinet-nav__copy strong {
    font-size: 11px;
  }

  .tm-cabinet-nav__copy small {
    font-size: 13px;
  }

  .tm-cabinet-stage {
    border-radius: 22px;
  }

  .tm-account-nav > a,
  .tm-account-nav > .tm-account-lang,
  .tm-account-nav > .tm-account-logout {
    flex-basis: 100%;
    min-width: 0;
  }

  .tm-account-nav a,
  .tm-account-logout button,
  .tm-account-lang summary,
  .tm-account-menu-toggle,
  .tm-account-notify__btn {
    min-height: 40px;
  }

  .tm-account-notify__panel {
    top: 72px;
  }

  .tm-panel-heading {
    gap: 10px;
  }

  .tm-program-showcase {
    border-radius: 24px;
  }

  .tm-program-showcase__grid {
    gap: 14px;
  }

  .tm-game-card,
  .tm-game-card--featured,
  .tm-game-card--cs2,
  .tm-game-card--pubg,
  .tm-game-card--apex {
    grid-column: 1 / -1;
    min-height: 280px;
    border-radius: 22px;
  }

  .tm-game-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .tm-reset-form {
    align-items: stretch;
    flex-direction: column;
  }

  .tm-reset-form .tm-danger-btn {
    width: 100%;
  }

  .tm-download-row {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
  }

  .tm-download-row em {
    grid-column: 2;
    text-align: left;
  }

  .tm-system-grid {
    grid-template-columns: 1fr;
  }

  .tm-history-table-wrap {
    border: none;
    background: transparent;
    overflow: visible;
  }

  .tm-history-table {
    min-width: 0;
  }

  .tm-history-table thead {
    display: none;
  }

  .tm-history-table,
  .tm-history-table tbody,
  .tm-history-table tr,
  .tm-history-table td {
    display: block;
    width: 100%;
  }

  .tm-history-table tbody {
    display: grid;
    gap: 12px;
  }

  .tm-history-table tbody tr {
    padding: 14px;
    border: 1px solid var(--tm-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
  }

  .tm-history-table tbody tr:hover {
    background: rgba(254, 206, 26, 0.04);
  }

  .tm-history-table tbody td {
    display: grid;
    gap: 4px;
    padding: 0;
    border: none;
  }

  .tm-history-table tbody td + td {
    margin-top: 12px;
  }

  .tm-history-table tbody td::before {
    content: attr(data-label);
    color: var(--tm-yellow);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .tm-history-table .tm-history-empty {
    display: block;
    padding: 18px 14px;
    border: 1px solid var(--tm-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
  }

  .tm-history-table .tm-history-empty::before {
    content: none;
  }
}

@media (max-width: 520px) {
  .tm-account-main {
    width: min(100% - 24px, 1180px);
    padding-top: 34px;
  }

  body.tm-account-page--cabinet .tm-account-main {
    padding-top: 20px;
  }

  .tm-auth-panel,
  .tm-panel,
  .tm-subscription-status {
    padding: 18px;
  }

  .tm-program-showcase {
    padding: 18px;
    border-radius: 22px;
  }

  .tm-cabinet-nav,
  .tm-cabinet-stage,
  body.tm-account-page--cabinet .tm-cabinet-hero,
  body.tm-account-page--cabinet .tm-subscription-status,
  .tm-cabinet-pane__panel {
    border-radius: 20px;
  }

  .tm-cabinet-pane {
    padding: 12px;
  }

  .tm-auth-copy h1,
  .tm-cabinet-hero h1 {
    font-size: 34px;
  }

  .tm-cabinet-user {
    gap: 10px;
  }

  .tm-cabinet-user__body h1 {
    font-size: clamp(24px, 8vw, 32px);
    line-height: 1.08;
  }

  .tm-cabinet-user__avatar {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .tm-account-nav a,
  .tm-account-logout button,
  .tm-account-lang summary,
  .tm-account-menu-toggle,
  .tm-account-notify__btn {
    min-height: 38px;
    padding: 7px 9px;
    font-size: 13px;
  }

  .tm-account-menu-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .tm-account-notify__btn {
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .tm-account-notify__panel {
    top: 112px;
    right: 8px;
    left: 8px;
    width: auto;
  }

  .tm-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tm-download-row {
    gap: 12px;
    padding: 14px;
  }

  .tm-download-row em {
    margin: 0;
  }

  .tm-device-badge {
    max-width: 100%;
  }

  .tm-program-showcase__intro h2 {
    font-size: 30px;
  }

  .tm-program-showcase__text {
    font-size: 13px;
  }

  .tm-program-showcase__metric {
    padding: 16px;
    border-radius: 18px;
  }

  .tm-program-showcase__metric-top {
    gap: 12px;
  }

  .tm-program-showcase__metric-icon-mark {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .tm-program-showcase__metric-copy strong {
    font-size: 40px;
  }

  .tm-game-card {
    min-height: 250px;
  }

  .tm-game-card__body {
    padding: 18px;
  }

  .tm-game-card__eyebrow,
  .tm-game-card__status {
    min-height: 30px;
    padding: 5px 11px;
    font-size: 11px;
  }

  .tm-game-card__copy {
    gap: 7px;
  }

  .tm-game-card__copy h3,
  .tm-game-card:not(.tm-game-card--featured) .tm-game-card__copy h3,
  .tm-game-card--pubg .tm-game-card__copy h3,
  .tm-game-card--apex .tm-game-card__copy h3 {
    font-size: clamp(36px, 15vw, 56px);
  }

  .tm-game-card__lead {
    font-size: 18px;
  }

  .tm-game-card__text {
    font-size: 13px;
  }

  .tm-download-row strong {
    font-size: 16px;
  }

  .tm-download-row small,
  .tm-download-row em,
  .tm-panel-note {
    font-size: 13px;
  }
}

/* Windows 11 cabinet redesign */
body.tm-account-page--cabinet {
  background:
    radial-gradient(circle at top left, rgba(254, 206, 26, 0.12), transparent 20%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 24%),
    linear-gradient(180deg, #101218 0%, #0b0d12 50%, #0f1116 100%);
}

body.tm-account-page--cabinet .tm-account-topbar {
  background: rgba(12, 15, 21, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(28px);
}

body.tm-account-page--cabinet .tm-account-nav a,
body.tm-account-page--cabinet .tm-account-logout button,
body.tm-account-page--cabinet .tm-account-lang summary,
body.tm-account-page--cabinet .tm-account-notify__btn,
body.tm-account-page--cabinet .tm-account-menu-toggle {
  border-radius: 14px;
}

body.tm-account-page--cabinet .tm-account-main,
body.tm-account-page--cabinet .tm-account-footer {
  width: min(1440px, calc(100% - 32px));
}

body.tm-account-page--cabinet .tm-account-main {
  gap: 14px;
  padding: 18px 0 20px;
}

body.tm-account-page--cabinet .tm-account-footer {
  padding-bottom: 20px;
}

body.tm-account-page--cabinet .tm-account-flashes {
  margin: 0;
}

body.tm-account-page--cabinet .tm-cabinet-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: none;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.tm-account-page--cabinet .tm-cabinet-hero::before,
body.tm-account-page--cabinet .tm-cabinet-hero::after {
  content: none;
}

.tm-cabinet-hero__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

body.tm-account-page--cabinet .tm-cabinet-user__avatar {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 241, 156, 0.98), rgba(254, 206, 26, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0px 14px rgba(254, 206, 26, 0.18);
  font-size: 26px;
}

body.tm-account-page--cabinet .tm-cabinet-user__body > span {
  margin-bottom: 4px;
  color: rgba(245, 245, 242, 0.58);
  font: 700 11px/1.2 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.tm-account-page--cabinet .tm-cabinet-user h1 {
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.08;
}

.tm-cabinet-hero__meta {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.tm-account-page--cabinet .tm-subscription-status,
.tm-cabinet-hero__device-pill {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(10, 12, 17, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.tm-account-page--cabinet .tm-subscription-status {
  min-width: 220px;
}

body.tm-account-page--cabinet .tm-subscription-status--link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

body.tm-account-page--cabinet .tm-subscription-status::after {
  content: none;
}

body.tm-account-page--cabinet .tm-subscription-status span,
.tm-cabinet-hero__device-pill span {
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(245, 245, 242, 0.58);
  font: 700 11px/1.2 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.tm-account-page--cabinet .tm-subscription-status strong,
.tm-cabinet-hero__device-pill strong {
  margin: 0;
  color: var(--tm-text);
  font: 700 16px/1.2 Inter, Roboto, Arial, sans-serif;
}

body.tm-account-page--cabinet .tm-subscription-status .js-local-time {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

body.tm-account-page--cabinet .tm-subscription-status.is-active {
  border-color: rgba(254, 206, 26, 0.22);
  background:
    linear-gradient(160deg, rgba(254, 206, 26, 0.16), rgba(255, 255, 255, 0.03)),
    rgba(10, 12, 17, 0.84);
}

body.tm-account-page--cabinet .tm-subscription-status.is-active span {
  color: rgba(255, 236, 161, 0.92);
}

body.tm-account-page--cabinet .tm-subscription-status--link:hover {
  transform: translateY(-1px);
  border-color: rgba(254, 206, 26, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(254, 206, 26, 0.08);
}

body.tm-account-page--cabinet .tm-subscription-status--link:focus-visible {
  outline: 2px solid rgba(254, 206, 26, 0.38);
  outline-offset: 2px;
}

.tm-cabinet-hero__device-pill {
  min-width: 110px;
}

.tm-cabinet-shell {
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 14px;
}

.tm-cabinet-nav {
  padding: 14px;
  border-radius: 30px;
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(20, 23, 30, 0.96), rgba(12, 14, 19, 0.98)),
    rgba(12, 14, 19, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 28px 68px rgba(0, 0, 0, 0.28);
}

.tm-cabinet-nav::before {
  content: none;
}

.tm-cabinet-nav__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tm-cabinet-nav__head-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
}

.tm-cabinet-nav__head-mark .tm-program-showcase__metric-icon-mark {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tm-cabinet-nav__head-mark .tm-program-showcase__metric-icon-mark svg {
  width: 22px;
  height: 22px;
}

.tm-cabinet-nav__head-mark .tm-program-showcase__metric-icon-image {
  width: 22px;
  height: 22px;
}

.tm-cabinet-nav__head-copy strong,
.tm-cabinet-nav__head-copy span {
  display: block;
}

.tm-cabinet-nav__head-copy strong {
  color: var(--tm-text);
  font: 800 15px/1.15 Inter, Roboto, Arial, sans-serif;
}

.tm-cabinet-nav__head-copy span {
  margin-top: 4px;
  color: rgba(245, 245, 242, 0.54);
  font-size: 12px;
}

.tm-cabinet-nav__list {
  gap: 8px;
  padding-right: 0;
  padding-top: 2px;
}

.tm-cabinet-nav__item {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-color: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.015);
  box-shadow: none;
}

.tm-cabinet-nav__item::before {
  inset: 10px auto 10px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, rgba(254, 206, 26, 0), rgba(254, 206, 26, 1), rgba(254, 206, 26, 0));
  opacity: 0;
}

.tm-cabinet-nav__item::after {
  top: auto;
  right: -32px;
  bottom: -46px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(254, 206, 26, 0.24), transparent 72%);
}

.tm-cabinet-nav__item:hover,
.tm-cabinet-nav__item:focus-visible {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.tm-cabinet-nav__item.is-active {
  border-color: rgba(254, 206, 26, 0.28);
  background:
    linear-gradient(145deg, rgba(254, 206, 26, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(18, 20, 26, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.22);
}

.tm-cabinet-nav__item.is-active::before {
  opacity: 1;
  animation: tmCabinetPulse 2.4s ease-in-out infinite;
}

.tm-cabinet-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 245, 242, 0.82);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tm-cabinet-nav__icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.tm-cabinet-nav__item.is-active .tm-cabinet-nav__icon {
  border-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 245, 199, 0.96), rgba(254, 206, 26, 0.88));
  color: #15171c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 24px rgba(254, 206, 26, 0.2);
}

.tm-cabinet-nav__copy strong {
  font: 700 14px/1.2 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.tm-cabinet-nav__copy small {
  margin-top: 2px;
  color: rgba(245, 245, 242, 0.5);
  font-size: 12px;
  line-height: 1.35;
}

.tm-cabinet-stage {
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(23, 25, 31, 0.97), rgba(12, 14, 18, 0.98)),
    rgba(12, 14, 18, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 30px 82px rgba(0, 0, 0, 0.28);
}

.tm-cabinet-stage::before {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 22%);
  mask-image: none;
}

.tm-cabinet-pane {
  gap: 14px;
  padding: 10px;
}

.tm-cabinet-pane.is-active {
  animation: tmCabinetWindowIn 360ms cubic-bezier(.2,.8,.2,1) both;
}

.tm-cabinet-pane--access,
.tm-cabinet-pane--games,
.tm-cabinet-pane--detection,
.tm-cabinet-pane--history {
  grid-template-rows: none;
}

.tm-cabinet-pane--history {
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.tm-cabinet-pane--security {
  align-content: start;
  justify-items: start;
}

body.tm-account-page--cabinet .tm-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(17, 20, 26, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 46px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  animation: none;
}

body.tm-account-page--cabinet .tm-panel--subtle {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(13, 15, 19, 0.82);
}

body.tm-account-page--cabinet .tm-panel h2 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.04;
}

body.tm-account-page--cabinet .tm-kicker {
  margin-bottom: 8px;
  color: rgba(255, 233, 140, 0.9);
  font: 700 11px/1.2 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.tm-account-page--cabinet .tm-panel-note {
  color: rgba(245, 245, 242, 0.62);
}

body.tm-account-page--cabinet .tm-inline-form input,
body.tm-account-page--cabinet .tm-stack-form input {
  min-height: 52px;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 14, 0.6);
  font-size: 15px;
}

body.tm-account-page--cabinet .tm-inline-form input:focus,
body.tm-account-page--cabinet .tm-stack-form input:focus {
  border-color: rgba(254, 206, 26, 0.42);
  box-shadow: 0 0 0 4px rgba(254, 206, 26, 0.14);
}

body.tm-account-page--cabinet .tm-primary-btn,
body.tm-account-page--cabinet .tm-secondary-btn,
body.tm-account-page--cabinet .tm-danger-btn {
  min-height: 52px;
  border-radius: 16px;
  font: 800 14px/1 Inter, Roboto, Arial, sans-serif;
}

body.tm-account-page--cabinet .tm-secondary-btn {
  background: rgba(254, 206, 26, 0.08);
  border-color: rgba(254, 206, 26, 0.24);
}

body.tm-account-page--cabinet .tm-danger-btn {
  border-color: rgba(255, 92, 92, 0.2);
  background: rgba(255, 92, 92, 0.08);
}

.tm-cabinet-stat-grid {
  gap: 12px;
}

.tm-cabinet-stat-card {
  min-height: 126px;
  padding: 16px 18px;
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(13, 15, 20, 0.82);
}

.tm-cabinet-stat-card::after {
  inset: auto -12% -34% auto;
}

.tm-cabinet-stat-card strong {
  font-size: clamp(22px, 2.6vw, 30px);
}

.tm-program-showcase {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.tm-program-showcase::before,
.tm-program-showcase::after,
.tm-program-showcase__head,
.tm-program-showcase__metric {
  content: none;
  display: none;
}

.tm-program-showcase__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.96fr) repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(160px, auto);
  gap: 14px;
}

.tm-program-showcase__workspace,
.tm-game-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(16, 19, 25, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.tm-program-showcase__workspace {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  grid-column: 1;
  grid-row: 1 / span 3;
  padding: 24px;
  overflow: hidden;
}

.tm-program-showcase__workspace::before,
.tm-program-showcase__workspace::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.tm-program-showcase__workspace::before {
  top: -44px;
  right: -44px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 206, 26, 0.24), transparent 72%);
}

.tm-program-showcase__workspace::after {
  inset: auto auto -32px -42px;
  width: 150px;
  height: 150px;
  border-radius: 40px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 70%);
  transform: rotate(16deg);
}

.tm-program-showcase__workspace > * {
  position: relative;
  z-index: 1;
}

.tm-program-showcase__workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tm-program-showcase__signal,
.tm-program-showcase__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font: 700 12px/1 Inter, Roboto, Arial, sans-serif;
}

.tm-program-showcase__signal {
  color: #15171c;
  background: linear-gradient(180deg, rgba(255, 245, 199, 0.98), rgba(254, 206, 26, 0.88));
  box-shadow: 0 12px 28px rgba(254, 206, 26, 0.16);
}

.tm-program-showcase__workspace h2 {
  margin: 0;
  max-width: 11ch;
  color: var(--tm-text);
  font: 800 clamp(30px, 4vw, 48px)/1.02 Inter, Roboto, Arial, sans-serif;
}

.tm-program-showcase__text {
  margin: 0;
  max-width: 500px;
}

.tm-program-showcase__stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tm-program-showcase__mini-stat {
  display: grid;
  gap: 8px;
  min-height: 96px;
      padding-left: 10px;
    padding-top: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.tm-program-showcase__mini-stat span {
  color: rgba(245, 245, 242, 0.52);
  font: 700 7px/1.2 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tm-program-showcase__mini-stat strong {
  color: var(--tm-text);
  font: 800 clamp(24px, 2.2vw, 34px)/1 Inter, Roboto, Arial, sans-serif;
}

.tm-program-showcase__tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tm-program-showcase__tag--live {
  color: rgba(255, 235, 166, 0.96);
}

.tm-program-showcase__tag--dev {
  color: rgba(245, 245, 242, 0.72);
}

.tm-game-card {
  min-height: 190px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tm-game-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 26px 56px rgba(0, 0, 0, 0.26);
}

.tm-game-card--featured {
  grid-column: 2 / span 2;
  grid-row: 1;
  min-height: 320px;
}

.tm-game-card--cs2 {
  grid-column: 2;
  grid-row: 2 / span 2;
  min-height: 334px;
}

.tm-game-card--pubg {
  grid-column: 3;
  grid-row: 2;
  min-height: 160px;
}

.tm-game-card--apex {
  grid-column: 3;
  grid-row: 3;
  min-height: 160px;
}

.tm-game-card__backdrop img {
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.04) brightness(0.9);
}

.tm-game-card__shade {
  background:
    linear-gradient(180deg, rgba(9, 11, 15, 0.04) 0%, rgba(9, 11, 15, 0.36) 42%, rgba(9, 11, 15, 0.96) 100%),
    radial-gradient(circle at top right, var(--tm-card-accent), transparent 38%),
    linear-gradient(90deg, rgba(9, 11, 15, 0.8) 0%, rgba(9, 11, 15, 0.18) 58%, rgba(9, 11, 15, 0.7) 100%);
}

.tm-game-card__body {
  padding: 22px;
}

.tm-game-card__eyebrow {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 18, 0.34);
  color: rgba(255, 245, 205, 0.92);
}

.tm-game-card__status {
  border-radius: 999px;
}

.tm-game-card__copy h3 {
  font-size: clamp(34px, 5vw, 78px);
  letter-spacing: -0.04em;
}

.tm-game-card--featured .tm-game-card__copy h3 {
  font-size: clamp(58px, 7vw, 92px);
}

.tm-game-card--cs2 .tm-game-card__copy h3 {
  font-size: clamp(38px, 4.6vw, 62px);
}

.tm-game-card--pubg .tm-game-card__copy h3,
.tm-game-card--apex .tm-game-card__copy h3 {
  font-size: clamp(30px, 3.2vw, 42px);
}

.tm-game-card__lead {
  font-size: clamp(18px, 1.7vw, 25px);
}

.tm-game-card__text {
  max-width: 520px;
}

.tm-detection-board {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.tm-detection-board__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(15, 18, 24, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 46px rgba(0, 0, 0, 0.2);
}

.tm-detection-board__intro-copy {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.tm-detection-board__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(90, 236, 148, 0.24);
  background:
    linear-gradient(180deg, rgba(90, 236, 148, 0.2), rgba(90, 236, 148, 0.05)),
    rgba(15, 18, 24, 0.9);
  color: #dfffe9;
  box-shadow: 0 12px 28px rgba(17, 103, 50, 0.18);
}

.tm-detection-board__mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.tm-detection-board__intro h2 {
  margin: 0;
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.04;
}

.tm-detection-board__intro .tm-panel-note {
  margin: 10px 0 0;
  max-width: 760px;
}

.tm-detection-board__intro-badge {
  align-self: start;
}

.tm-detection-board__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tm-detection-card {
  position: relative;
  min-height: 238px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(15, 18, 24, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.tm-detection-card--featured {
  grid-column: 1 / -1;
  min-height: 286px;
}

.tm-detection-card__backdrop,
.tm-detection-card__veil {
  position: absolute;
  inset: 0;
}

.tm-detection-card__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04) brightness(0.86);
}

.tm-detection-card__veil {
  background:
    linear-gradient(180deg, rgba(9, 11, 15, 0.08) 0%, rgba(9, 11, 15, 0.38) 44%, rgba(9, 11, 15, 0.95) 100%),
    radial-gradient(circle at top right, rgba(90, 236, 148, 0.18), transparent 38%),
    linear-gradient(90deg, rgba(9, 11, 15, 0.82) 0%, rgba(9, 11, 15, 0.18) 60%, rgba(9, 11, 15, 0.72) 100%);
}

.tm-detection-card--dev {
  border-color: rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(17, 18, 21, 0.9);
}

.tm-detection-card--dev .tm-detection-card__backdrop img {
  filter: grayscale(1) saturate(0.18) brightness(0.72);
}

.tm-detection-card--dev .tm-detection-card__veil {
  background:
    linear-gradient(180deg, rgba(10, 11, 13, 0.2) 0%, rgba(10, 11, 13, 0.46) 46%, rgba(10, 11, 13, 0.96) 100%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(90deg, rgba(10, 11, 13, 0.9) 0%, rgba(10, 11, 13, 0.24) 60%, rgba(10, 11, 13, 0.84) 100%);
}

.tm-detection-card__body {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  gap: 18px;
  height: 100%;
  padding: 22px;
}

.tm-detection-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tm-detection-card__top strong {
  color: rgba(245, 245, 242, 0.78);
  font: 800 20px/1.05 Inter, Roboto, Arial, sans-serif;
  letter-spacing: -0.02em;
}

.tm-detection-card__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tm-detection-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--tm-text);
  font: 700 11px/1 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tm-detection-badge--safe {
  border-color: rgba(90, 236, 148, 0.28);
  background:
    linear-gradient(180deg, rgba(90, 236, 148, 0.22), rgba(39, 120, 71, 0.36)),
    rgba(17, 64, 37, 0.34);
  color: #e7fff0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(17, 103, 50, 0.18);
}

.tm-detection-badge--dev {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(245, 245, 242, 0.72);
}

.tm-detection-card__copy {
  display: grid;
  gap: 10px;
}

.tm-detection-card__copy h3 {
  margin: 0;
  color: var(--tm-text);
  font: 800 clamp(22px, 2.6vw, 34px)/1.06 Inter, Roboto, Arial, sans-serif;
  letter-spacing: -0.04em;
}

.tm-detection-card__copy p {
  margin: 0;
  max-width: 50ch;
  color: rgba(245, 245, 242, 0.72);
}

.tm-detection-card__setups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tm-detection-card__setups span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(90, 236, 148, 0.22);
  background: rgba(16, 74, 40, 0.28);
  color: #e7fff0;
  font: 700 12px/1.1 Inter, Roboto, Arial, sans-serif;
}

.tm-detection-card__actions {
  display: flex;
  align-items: center;
}

.tm-detection-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(254, 206, 26, 0.28);
  background:
    linear-gradient(180deg, rgba(254, 206, 26, 0.22), rgba(254, 206, 26, 0.08)),
    rgba(32, 26, 8, 0.44);
  color: #fff3bf;
  font: 800 12px/1 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(254, 206, 26, 0.12);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tm-detection-card__link:hover {
  transform: translateY(-1px);
  border-color: rgba(254, 206, 26, 0.44);
  background:
    linear-gradient(180deg, rgba(254, 206, 26, 0.3), rgba(254, 206, 26, 0.12)),
    rgba(38, 30, 10, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 28px rgba(254, 206, 26, 0.18);
}

.tm-detection-card__link:focus-visible {
  outline: 2px solid rgba(254, 206, 26, 0.4);
  outline-offset: 2px;
}

body.tm-account-page--cabinet .tm-device-badge {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 235, 158, 0.96);
}

body.tm-account-page--cabinet .tm-device-state,
body.tm-account-page--cabinet .tm-trial-box,
body.tm-account-page--cabinet .tm-download-row,
body.tm-account-page--cabinet .tm-history-table-wrap {
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
}

body.tm-account-page--cabinet .tm-device-state.is-bound {
  border-color: rgba(254, 206, 26, 0.22);
  background:
    linear-gradient(155deg, rgba(254, 206, 26, 0.14), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

body.tm-account-page--cabinet .tm-device-state.is-bound strong {
  color: rgba(255, 238, 173, 0.96);
}

body.tm-account-page--cabinet .tm-reset-form {
  gap: 14px;
}

body.tm-account-page--cabinet .tm-download-list {
  gap: 12px;
}

body.tm-account-page--cabinet .tm-download-row {
  padding: 18px;
  border-radius: 22px;
}

body.tm-account-page--cabinet .tm-download-row:hover {
  border-color: rgba(254, 206, 26, 0.22);
  background:
    linear-gradient(155deg, rgba(254, 206, 26, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

body.tm-account-page--cabinet .tm-download-icon {
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
}

body.tm-account-page--cabinet .tm-cabinet-pane--history .tm-cabinet-pane__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

body.tm-account-page--cabinet .tm-history-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(62vh, 640px);
  overflow: auto;
  overscroll-behavior: contain;
}

body.tm-account-page--cabinet .tm-history-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(254, 206, 26, 0.08);
}

body.tm-account-page--cabinet .tm-history-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

body.tm-account-page--cabinet .tm-history-table code,
body.tm-account-page--cabinet .tm-history-type {
  border-radius: 12px;
}

@keyframes tmCabinetWindowIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tmCabinetPulse {
  0%, 100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 1240px) {
  .tm-cabinet-shell {
    grid-template-columns: 256px minmax(0, 1fr);
  }

  .tm-program-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-program-showcase__workspace {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .tm-game-card--featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .tm-game-card--cs2,
  .tm-game-card--pubg,
  .tm-game-card--apex {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
  }

  .tm-detection-board__grid {
    grid-template-columns: 1fr;
  }

  .tm-detection-card--featured {
    grid-column: auto;
    min-height: 260px;
  }
}

@media (min-width: 981px) and (max-height: 980px) {
  body.tm-account-page--cabinet {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  body.tm-account-page--cabinet .tm-account-main {
    overflow: visible;
    padding-top: 14px;
    padding-bottom: 16px;
  }

  body.tm-account-page--cabinet .tm-account-footer {
    padding-bottom: 16px;
  }

  .tm-cabinet-shell {
    align-items: start;
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
  }

  .tm-cabinet-nav {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .tm-cabinet-nav__list {
    overflow: visible;
  }

  .tm-cabinet-stage {
    height: auto;
    min-height: min(640px, 76vh);
    overflow: visible;
  }

  .tm-cabinet-pane {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .tm-cabinet-pane--history {
    overflow: visible;
  }

  body.tm-account-page--cabinet .tm-cabinet-pane--history .tm-cabinet-pane__panel {
    height: auto;
    min-height: auto;
  }

  body.tm-account-page--cabinet .tm-history-table-wrap {
    max-height: min(56vh, 460px);
  }
}

@media (min-width: 981px) and (max-height: 760px) {
  body.tm-account-page--cabinet .tm-account-main {
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 14px;
  }

  body.tm-account-page--cabinet .tm-account-footer {
    padding-bottom: 14px;
  }

  body.tm-account-page--cabinet .tm-cabinet-hero {
    gap: 12px;
    padding: 10px 12px;
  }

  body.tm-account-page--cabinet .tm-cabinet-user__avatar {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  body.tm-account-page--cabinet .tm-cabinet-user h1 {
    font-size: clamp(20px, 2.2vw, 28px);
  }

  .tm-cabinet-shell {
    gap: 12px;
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .tm-cabinet-nav {
    padding: 12px;
  }

  .tm-cabinet-nav__head {
    padding: 4px 6px 12px;
  }

  .tm-cabinet-nav__item {
    padding: 9px 10px;
  }

  .tm-cabinet-nav__icon {
    width: 40px;
    height: 40px;
  }

  .tm-cabinet-pane {
    padding: 8px;
  }

  body.tm-account-page--cabinet .tm-panel {
    padding: 18px;
  }
}

@media (max-width: 980px) {
  body.tm-account-page--cabinet {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  body.tm-account-page--cabinet .tm-account-main,
  body.tm-account-page--cabinet .tm-account-footer {
    width: min(100% - 24px, 1440px);
  }

  body.tm-account-page--cabinet .tm-account-main {
    padding-top: 16px;
    overflow: visible;
  }

  .tm-cabinet-shell {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .tm-cabinet-nav {
    min-height: auto;
  }

  .tm-cabinet-nav__list {
    display: flex;
    gap: 10px;
    overflow: auto;
    padding-bottom: 4px;
  }

  .tm-cabinet-nav__item {
    flex: 0 0 min(260px, 72vw);
  }

  .tm-cabinet-stage {
    height: auto;
    min-height: auto;
  }

  .tm-cabinet-pane {
    height: auto;
    overflow: visible;
  }

  .tm-cabinet-pane--devices,
  .tm-cabinet-pane--downloads,
  .tm-cabinet-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body.tm-account-page--cabinet {
    overflow: auto;
  }

  body.tm-account-page--cabinet .tm-account-main {
    min-height: auto;
  }

  body.tm-account-page--cabinet .tm-cabinet-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .tm-cabinet-hero__meta {
    width: 100%;
    justify-content: stretch;
  }

  body.tm-account-page--cabinet .tm-subscription-status,
  .tm-cabinet-hero__device-pill {
    flex: 1 1 0;
    min-width: 0;
  }

  .tm-cabinet-pane {
    padding: 8px;
  }

  body.tm-account-page--cabinet .tm-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .tm-program-showcase__stat-row {
    grid-template-columns: 1fr;
  }

  .tm-program-showcase__grid {
    grid-template-columns: 1fr;
  }

  .tm-program-showcase__workspace,
  .tm-game-card--featured,
  .tm-game-card--cs2,
  .tm-game-card--pubg,
  .tm-game-card--apex {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: auto;
  }

  .tm-game-card {
    min-height: 260px;
  }

  .tm-detection-board__intro {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .tm-detection-card__body {
    padding: 18px;
  }

  .tm-cabinet-pane--security .tm-cabinet-pane__panel {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .tm-cabinet-nav {
    padding: 12px;
    border-radius: 24px;
  }

  .tm-cabinet-nav__head {
    padding: 2px 4px 12px;
  }

  .tm-cabinet-nav__item {
    flex-basis: 82vw;
    border-radius: 18px;
  }

  .tm-cabinet-nav__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .tm-program-showcase__workspace {
    padding: 18px;
  }

  .tm-program-showcase__workspace h2 {
    max-width: none;
    font-size: clamp(28px, 8vw, 38px);
  }

  body.tm-account-page--cabinet .tm-download-row {
    padding: 14px;
  }
}

@media (max-width: 520px) {
  body.tm-account-page--cabinet .tm-account-main,
  body.tm-account-page--cabinet .tm-account-footer {
    width: min(100% - 20px, 1440px);
  }

  body.tm-account-page--cabinet .tm-cabinet-hero {
    padding: 12px;
    border-radius: 24px;
  }

  body.tm-account-page--cabinet .tm-cabinet-user__avatar {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .tm-cabinet-hero__meta {
    width: 100%;
    flex-direction: column;
  }

  body.tm-account-page--cabinet .tm-subscription-status,
  .tm-cabinet-hero__device-pill {
    width: 100%;
  }

  .tm-cabinet-stage {
    border-radius: 26px;
  }

  body.tm-account-page--cabinet .tm-panel,
  .tm-program-showcase__workspace,
  .tm-game-card {
    border-radius: 22px;
  }
}

body.tm-account-page--cabinet {
  --tm-cabinet-radius: 7px;
}

body.tm-account-page--cabinet .tm-form-error,
body.tm-account-page--cabinet .tm-account-flash,
body.tm-account-page--cabinet .tm-account-nav a,
body.tm-account-page--cabinet .tm-account-logout button,
body.tm-account-page--cabinet .tm-account-lang summary,
body.tm-account-page--cabinet .tm-account-notify__btn,
body.tm-account-page--cabinet .tm-account-menu-toggle,
body.tm-account-page--cabinet .tm-cabinet-hero,
body.tm-account-page--cabinet .tm-cabinet-user__avatar,
body.tm-account-page--cabinet .tm-subscription-status,
body.tm-account-page--cabinet .tm-cabinet-hero__device-pill,
body.tm-account-page--cabinet .tm-cabinet-nav,
body.tm-account-page--cabinet .tm-cabinet-nav__head-mark,
body.tm-account-page--cabinet .tm-cabinet-nav__item,
body.tm-account-page--cabinet .tm-cabinet-nav__icon,
body.tm-account-page--cabinet .tm-cabinet-stage,
body.tm-account-page--cabinet .tm-panel,
body.tm-account-page--cabinet .tm-inline-form input,
body.tm-account-page--cabinet .tm-stack-form input,
body.tm-account-page--cabinet .tm-primary-btn,
body.tm-account-page--cabinet .tm-secondary-btn,
body.tm-account-page--cabinet .tm-danger-btn,
body.tm-account-page--cabinet .tm-cabinet-stat-card,
body.tm-account-page--cabinet .tm-program-showcase__workspace,
body.tm-account-page--cabinet .tm-game-card,
body.tm-account-page--cabinet .tm-program-showcase__signal,
body.tm-account-page--cabinet .tm-program-showcase__tag,
body.tm-account-page--cabinet .tm-program-showcase__mini-stat,
body.tm-account-page--cabinet .tm-game-card__eyebrow,
body.tm-account-page--cabinet .tm-game-card__status,
body.tm-account-page--cabinet .tm-detection-board__intro,
body.tm-account-page--cabinet .tm-detection-board__mark,
body.tm-account-page--cabinet .tm-detection-board__intro-badge,
body.tm-account-page--cabinet .tm-detection-card,
body.tm-account-page--cabinet .tm-detection-badge,
body.tm-account-page--cabinet .tm-detection-card__setups span,
body.tm-account-page--cabinet .tm-detection-card__link,
body.tm-account-page--cabinet .tm-device-badge,
body.tm-account-page--cabinet .tm-device-state,
body.tm-account-page--cabinet .tm-trial-box,
body.tm-account-page--cabinet .tm-download-row,
body.tm-account-page--cabinet .tm-download-icon,
body.tm-account-page--cabinet .tm-history-table-wrap,
body.tm-account-page--cabinet .tm-history-table code,
body.tm-account-page--cabinet .tm-history-type {
  border-radius: var(--tm-cabinet-radius);
}

body.tm-account-page--cabinet .tm-program-showcase__workspace::after {
  border-radius: var(--tm-cabinet-radius);
}

body.tm-account-page--cabinet .tm-cabinet-pane--community-chat {
  grid-template-columns: minmax(0, 1fr);
}

body.tm-account-page--cabinet .tm-cabinet-pane--community-chat .tm-cabinet-pane__panel {
  display: block;
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

body.tm-account-page--cabinet .tm-cabinet-nav__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(254, 206, 26, 0.3);
  background: linear-gradient(180deg, rgba(254, 206, 26, 0.18), rgba(254, 206, 26, 0.08));
  color: #fff2ae;
  font: 800 11px/1 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(254, 206, 26, 0.12);
}

body.tm-account-page--cabinet .tm-cabinet-nav__badge[hidden] {
  display: none;
}

body.tm-account-page--cabinet .tm-cabinet-nav__item--disabled {
  pointer-events: none;
  cursor: default;
  border-color: rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.01);
  box-shadow: none;
  opacity: 0.58;
}

body.tm-account-page--cabinet .tm-cabinet-nav__item--disabled::before {
  opacity: 0;
}

body.tm-account-page--cabinet .tm-cabinet-nav__item--disabled::after {
  display: none;
}

body.tm-account-page--cabinet .tm-cabinet-nav__item--disabled .tm-cabinet-nav__icon {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(245, 245, 242, 0.42);
  box-shadow: none;
}

body.tm-account-page--cabinet .tm-cabinet-nav__item--disabled .tm-cabinet-nav__copy strong {
  color: rgba(245, 245, 242, 0.58);
}

body.tm-account-page--cabinet .tm-cabinet-nav__item--disabled .tm-cabinet-nav__copy small {
  color: rgba(245, 245, 242, 0.34);
}

.tm-community-chat {
  position: relative;
  background:
    radial-gradient(circle at 0 0, rgba(254, 206, 26, 0.08), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(85, 205, 144, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(16, 18, 24, 0.98), rgba(9, 11, 15, 0.98));
}

.tm-community-chat::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%);
  pointer-events: none;
}

.tm-community-chat__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  height: 100%;
  min-height: 0;
}

.tm-community-chat__main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.tm-community-chat__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 20px;
  align-items: start;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(255, 255, 255, 0.01);
}

.tm-community-chat__hero-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.tm-community-chat__hero-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
}

.tm-community-chat__live-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tm-community-chat__live-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #4dff99;
  box-shadow: 0 0 0 0 rgba(77, 255, 153, 0.52);
  animation: tmCommunityPulse 1.8s ease infinite;
}

.tm-community-chat__live-label {
  color: #eafee7;
  font: 800 11px/1 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tm-community-chat__hero-tools {
  display: grid;
  gap: 14px;
  align-content: start;
}

.tm-community-chat__search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(10, 12, 17, 0.82);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tm-community-chat__search:focus-within {
  border-color: rgba(254, 206, 26, 0.34);
  box-shadow: 0 0 0 1px rgba(254, 206, 26, 0.08), 0 18px 36px rgba(0, 0, 0, 0.18);
  background:
    linear-gradient(180deg, rgba(254, 206, 26, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(10, 12, 17, 0.9);
}

.tm-community-chat__search svg {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  fill: rgba(255, 240, 184, 0.7);
  pointer-events: none;
}

.tm-community-chat__search input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tm-text);
  font: 600 14px/1.4 Inter, Roboto, Arial, sans-serif;
}

.tm-community-chat__search input:focus {
  outline: none;
}

.tm-community-chat__search input::placeholder {
  color: rgba(245, 245, 242, 0.42);
}

.tm-community-chat__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tm-community-chat__stat {
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.015);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tm-community-chat__stat span {
  display: block;
  color: rgba(245, 245, 242, 0.62);
  font: 800 11px/1.2 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tm-community-chat__stat strong {
  display: block;
  margin-top: 12px;
  color: var(--tm-text);
  font: 800 26px/1 Inter, Roboto, Arial, sans-serif;
}

.tm-community-chat__pinned-banner {
  position: relative;
  margin: 0 24px;
  padding: 14px 16px;
  border: 1px solid rgba(254, 206, 26, 0.24);
  background:
    linear-gradient(135deg, rgba(254, 206, 26, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(24, 20, 8, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.tm-community-chat__pinned-banner[hidden] {
  display: none;
}

.tm-community-chat__pinned-banner::after {
  content: "";
  position: absolute;
  inset: auto -10% -70px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 206, 26, 0.16), transparent 70%);
  pointer-events: none;
}

.tm-community-chat__pinned-banner,
.tm-community-chat__rail-card,
.tm-community-chat__search,
.tm-community-chat__stat,
.tm-community-chat__message,
.tm-community-chat__message-reply,
.tm-community-chat__reaction-pill,
.tm-community-chat__reaction-button,
.tm-community-chat__action-button,
.tm-community-chat__presence-item,
.tm-community-chat__context,
.tm-community-chat__composer-field,
.tm-community-chat__feed-control,
.tm-community-chat__status,
.tm-community-chat__rail-badge,
.tm-community-chat__empty,
.tm-community-chat__message-author-mark,
.tm-community-chat__composer-clear {
  border-radius: var(--tm-cabinet-radius);
}

.tm-community-chat__pinned-banner > * {
  position: relative;
  z-index: 1;
}

.tm-community-chat__pinned-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff1aa;
  font: 800 11px/1 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tm-community-chat__pinned-title svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.tm-community-chat__pinned-copy {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.tm-community-chat__pinned-copy strong {
  color: var(--tm-text);
  font-size: 14px;
}

.tm-community-chat__pinned-copy p {
  margin: 0;
  color: rgba(245, 245, 242, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.tm-community-chat__feed {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.tm-community-chat__feed-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px 8px;
}

.tm-community-chat__feed-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  color: rgba(255, 247, 198, 0.92);
  font: 800 12px/1 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tm-community-chat__feed-control:hover,
.tm-community-chat__feed-control:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(254, 206, 26, 0.26);
  background:
    linear-gradient(180deg, rgba(254, 206, 26, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.tm-community-chat__feed-control[hidden] {
  display: none;
}

.tm-community-chat__feed-control--new {
  margin-left: auto;
}

.tm-community-chat__status {
  margin: 0 24px 12px;
  padding: 12px 14px;
  border: 1px solid rgba(102, 181, 255, 0.18);
  background: linear-gradient(135deg, rgba(102, 181, 255, 0.12), rgba(255, 255, 255, 0.02));
  color: #d8ecff;
  font-size: 13px;
  line-height: 1.45;
}

.tm-community-chat__status:empty {
  display: none;
}

.tm-community-chat__status button {
  margin-left: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff3bf;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tm-community-chat__messages {
  min-height: 0;
  overflow: auto;
  padding: 0 24px 24px;
  display: grid;
  align-content: start;
  gap: 14px;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior: contain;
}

.tm-community-chat__messages::-webkit-scrollbar {
  width: 8px;
}

.tm-community-chat__messages::-webkit-scrollbar-thumb {
  background: rgba(254, 206, 26, 0.34);
  border-radius: 999px;
}

.tm-community-chat__empty {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.015);
}

.tm-community-chat__empty strong {
  font-size: 16px;
}

.tm-community-chat__empty p {
  margin: 0;
  color: rgba(245, 245, 242, 0.68);
  line-height: 1.55;
}

.tm-community-chat__message {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(100%, 760px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.015);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
  animation: tmCommunityMessageIn 240ms ease both;
}

.tm-community-chat__message.is-own {
  margin-left: auto;
  border-color: rgba(254, 206, 26, 0.18);
  background:
    linear-gradient(150deg, rgba(254, 206, 26, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.015);
}

.tm-community-chat__message.is-deleted {
  border-style: dashed;
  opacity: 0.72;
}

.tm-community-chat__message.is-pinned {
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(254, 206, 26, 0.14);
}

.tm-community-chat__message-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.tm-community-chat__message-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tm-community-chat__message-author-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
  color: #fff1b2;
  font: 900 16px/1 Inter, Roboto, Arial, sans-serif;
}

.tm-community-chat__message-author-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tm-community-chat__message-author-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 15px;
}

.tm-community-chat__message-author-copy strong span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-community-chat__author-pill,
.tm-community-chat__rail-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 245, 196, 0.96);
  font: 800 10px/1 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tm-community-chat__message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(245, 245, 242, 0.54);
  font-size: 12px;
}

.tm-community-chat__message-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 160ms ease;
}

.tm-community-chat__message:hover .tm-community-chat__message-tools,
.tm-community-chat__message:focus-within .tm-community-chat__message-tools {
  opacity: 1;
}

.tm-community-chat__action-button,
.tm-community-chat__reaction-button,
.tm-community-chat__reaction-pill,
.tm-community-chat__context-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 245, 242, 0.92);
  font: 700 12px/1 Inter, Roboto, Arial, sans-serif;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tm-community-chat__action-button:hover,
.tm-community-chat__action-button:focus-visible,
.tm-community-chat__reaction-button:hover,
.tm-community-chat__reaction-button:focus-visible,
.tm-community-chat__reaction-pill.is-active,
.tm-community-chat__context-cancel:hover,
.tm-community-chat__context-cancel:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(254, 206, 26, 0.26);
  background:
    linear-gradient(180deg, rgba(254, 206, 26, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.tm-community-chat__message-reply {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 9, 13, 0.48);
}

.tm-community-chat__message-reply strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 245, 197, 0.95);
  font: 800 11px/1 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tm-community-chat__message-reply p,
.tm-community-chat__message-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
}

.tm-community-chat__message-text.is-deleted {
  color: rgba(245, 245, 242, 0.52);
  font-style: italic;
}

.tm-community-chat__message-reactions,
.tm-community-chat__message-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tm-community-chat__message-foot {
  display: grid;
  gap: 10px;
}

.tm-community-chat__reaction-pill.is-active {
  color: #fff2af;
}

.tm-community-chat__reaction-pill b {
  margin-left: 6px;
  font-size: 11px;
}

.tm-community-chat__composer-shell {
  display: grid;
  gap: 12px;
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(9, 11, 15, 0.18), rgba(9, 11, 15, 0.84) 32%),
    rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(18px);
}

.tm-community-chat__context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(254, 206, 26, 0.16);
  background: linear-gradient(135deg, rgba(254, 206, 26, 0.12), rgba(255, 255, 255, 0.02));
}

.tm-community-chat__context[hidden] {
  display: none;
}

.tm-community-chat__context-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tm-community-chat__context-copy strong {
  font-size: 13px;
}

.tm-community-chat__context-copy p {
  margin: 0;
  color: rgba(245, 245, 242, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.tm-community-chat__composer {
  display: grid;
  gap: 12px;
}

.tm-community-chat__composer-field {
  display: block;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(12, 14, 20, 0.9);
}

.tm-community-chat__composer-field:focus-within {
  border-color: rgba(254, 206, 26, 0.3);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.tm-community-chat__composer-field textarea {
  width: 100%;
  min-height: 88px;
  padding: 0;
  border: 0;
  resize: vertical;
  background: transparent;
  color: var(--tm-text);
  font: 500 14px/1.6 Inter, Roboto, Arial, sans-serif;
}

.tm-community-chat__composer-field textarea:focus {
  outline: none;
}

.tm-community-chat__composer-field textarea::placeholder {
  color: rgba(245, 245, 242, 0.42);
}

.tm-community-chat__composer-meta,
.tm-community-chat__composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tm-community-chat__composer-meta {
  color: rgba(245, 245, 242, 0.54);
  font-size: 12px;
}

.tm-community-chat__composer-actions .tm-primary-btn,
.tm-community-chat__composer-actions .tm-secondary-btn {
  min-width: 160px;
}

.tm-community-chat__rail {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 24px;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
}

.tm-community-chat__rail::-webkit-scrollbar {
  width: 8px;
}

.tm-community-chat__rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.tm-community-chat__rail-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
}

.tm-community-chat__rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tm-community-chat__rail-head strong {
  font-size: 15px;
}

.tm-community-chat__rail-head span {
  color: rgba(255, 245, 194, 0.82);
  font: 800 11px/1 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tm-community-chat__rail-body {
  display: grid;
  gap: 8px;
}

.tm-community-chat__rail-body p {
  margin: 0;
  color: rgba(245, 245, 242, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

.tm-community-chat__presence-group {
  display: grid;
  gap: 10px;
}

.tm-community-chat__presence-label {
  color: rgba(245, 245, 242, 0.54);
  font: 800 11px/1 Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tm-community-chat__presence-list {
  display: grid;
  gap: 8px;
}

.tm-community-chat__presence-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.tm-community-chat__presence-item-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff0aa;
  font: 900 13px/1 Inter, Roboto, Arial, sans-serif;
}

.tm-community-chat__presence-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tm-community-chat__presence-item-copy strong,
.tm-community-chat__presence-item-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-community-chat__presence-item-copy span {
  color: rgba(245, 245, 242, 0.58);
  font-size: 12px;
}

.tm-community-chat__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: rgba(245, 245, 242, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

@keyframes tmCommunityPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(77, 255, 153, 0.48);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(77, 255, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(77, 255, 153, 0);
  }
}

@keyframes tmCommunityMessageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 981px) and (max-height: 900px) {
  .tm-community-chat__layout {
    grid-template-columns: minmax(0, 1fr) 284px;
  }

  .tm-community-chat__hero {
    padding: 20px;
  }

  .tm-community-chat__messages,
  .tm-community-chat__composer-shell,
  .tm-community-chat__rail {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 1180px) {
  .tm-community-chat__layout {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .tm-community-chat__main {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .tm-community-chat__rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 980px) {
  body.tm-account-page--cabinet .tm-cabinet-pane--community-chat .tm-cabinet-pane__panel {
    height: auto;
  }

  .tm-community-chat__hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  .tm-community-chat__stats {
    width: 100%;
  }

  .tm-community-chat__feed-head,
  .tm-community-chat__messages,
  .tm-community-chat__composer-shell,
  .tm-community-chat__rail {
    padding-left: 20px;
    padding-right: 20px;
  }

  .tm-community-chat__messages {
    max-height: min(58vh, 520px);
  }

  .tm-community-chat__message {
    width: 100%;
  }

  .tm-community-chat__rail {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .tm-community-chat__stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-community-chat__message-head,
  .tm-community-chat__composer-meta,
  .tm-community-chat__composer-actions,
  .tm-community-chat__context {
    grid-template-columns: minmax(0, 1fr);
    display: grid;
    justify-content: initial;
  }

  .tm-community-chat__message-tools {
    opacity: 1;
    justify-content: flex-start;
  }

  .tm-community-chat__composer-actions .tm-primary-btn,
  .tm-community-chat__composer-actions .tm-secondary-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
