@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #ececec;
  --surface: #ffffff;
  --surface-muted: #f6f6f7;
  --surface-strong: #2b2c30;
  --surface-strong-2: #1f2023;
  --text: #17181b;
  --muted: #70737c;
  --line: #e1e2e6;
  --shadow: 0 14px 34px rgba(30, 34, 40, 0.08);
  --shadow-lg: 0 18px 40px rgba(25, 25, 30, 0.14);
  --accent: #ff5c35;
  --accent-dark: #990f0f;
  --lime: #b8d518;
  --dark-text: #f3f5f7;
  --topbar-h: 66px;
  --tabs-h: 48px;
  --radius: 16px;
  --container: 1820px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 420px at 50% -120px, rgba(255,255,255,0.9), transparent 70%),
    linear-gradient(180deg, #f4f4f4 0%, var(--bg) 320px, #ebebeb 100%);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(255, 92, 53, 0.35);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 10px;
  transform: translateY(-180%);
  transition: transform 160ms ease;
  padding: 10px 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  z-index: 100;
}

.skip-link:focus { transform: translateY(0); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.page {
  padding-top: calc(var(--topbar-h) + var(--tabs-h) + 16px);
  padding-bottom: 80px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(15, 16, 19, 0.08);
  box-shadow: 0 8px 22px rgba(25, 25, 30, 0.05);
}

.topbar__inner {
  height: var(--topbar-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: minmax(480px, 1.15fr) minmax(340px, 0.95fr) auto;
  gap: 18px;
  align-items: center;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__right { justify-content: flex-end; }

.topbar__center { min-width: 0; }

.icon-btn {
  border: 1px solid rgba(23, 24, 27, 0.08);
  background: #fff;
  color: #202226;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(20, 24, 31, 0.06);
  cursor: pointer;
}

.icon-btn--menu {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.icon-btn--plus {
  background: var(--lime);
  border-color: rgba(0,0,0,0.08);
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
}

.hamburger {
  width: 20px;
  height: 14px;
  position: relative;
  display: block;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2.5px;
  border-radius: 999px;
  background: #2a2b2f;
}

.hamburger::before { top: 0; }
.hamburger span { top: 5.5px; }
.hamburger::after { bottom: 0; }

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

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 1px;
  color: #141414;
  background: linear-gradient(180deg, #f5db67 0%, #e1b92a 100%);
  border: 2px solid #141414;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.12);
}

.brand__text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 1px;
  color: #202226;
  white-space: nowrap;
}

.topbar__stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #2d3035;
  white-space: nowrap;
}

.topbar__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #84bc1b;
}

.topbar__link {
  color: #3a3d43;
  font-weight: 700;
  white-space: nowrap;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 8px 12px 8px 42px;
  border-radius: 999px;
  background: #f1f1f2;
  border: 1px solid rgba(23, 24, 27, 0.08);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  outline: none;
}

.search__icon {
  position: absolute;
  left: 16px;
  width: 15px;
  height: 15px;
  border: 2px solid #2c2f35;
  border-radius: 50%;
}

.search__icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #2c2f35;
  transform: rotate(45deg);
}

.search__magic {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(23, 24, 27, 0.08);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.balance-pill,
.avatar-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(23, 24, 27, 0.1);
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(20, 24, 31, 0.06);
}

.avatar-pill {
  width: 40px;
  padding: 0;
  background: #5b3117;
  color: #fff;
  border: 2px solid #f3b56c;
}

.topbar__tabs {
  height: var(--tabs-h);
  background: linear-gradient(90deg, #2b2c30 0%, #24262a 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.category-strip {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pills { display: contents; }

.pill {
  height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-bottom: 3px solid transparent;
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  font-weight: 700;
}

.pill.is-active {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.8);
}

.layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + var(--tabs-h) + 14px);
}

.sidebar__card {
  background: transparent;
}

.promo-card {
  min-height: 78px;
  padding: 16px 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff5a1d 0%, #b11212 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
}

.promo-card__star {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ff3f00;
  font-size: 28px;
  box-shadow: inset 0 0 0 3px rgba(255, 221, 132, 0.28);
}

.promo-card__copy {
  max-width: 132px;
  line-height: 1.15;
  font-size: 18px;
}

.sidebar__nav {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 10px 0 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  color: #2e3238;
  font-weight: 700;
}

.nav-item.is-active {
  background: #f4f4f5;
  box-shadow: inset 0 0 0 1px rgba(23, 24, 27, 0.05);
}

.nav-ico {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, #2d2f34 0%, #4b4e56 100%);
  opacity: 0.92;
}

.sidebar-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 24, 27, 0.08);
}

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

.sidebar-group__title {
  margin: 0;
  color: #8a8d95;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.country-list,
.tag-list,
.tag-list--sidebar {
  display: grid;
  gap: 6px;
}

.tag-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.country-row,
.tag-row {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
  border-radius: 8px;
  color: #282c33;
}

.country-row strong,
.tag-row strong {
  color: #2e3137;
  font-size: 14px;
}

.country-row__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-flag {
  min-width: 24px;
  padding: 2px 4px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid rgba(23, 24, 27, 0.1);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.small-link {
  color: #9a9da5;
  font-size: 12px;
  font-weight: 700;
}

.catalog-btn {
  margin-top: 18px;
  min-height: 40px;
  border-radius: 999px;
  border: 2px solid #40434b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
  font-weight: 800;
}

.content { min-width: 0; }

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

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

.dashboard-hero__eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8d9098;
}

.h1, .h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.h1 { font-size: 34px; }
.h2 { font-size: 20px; }

.sub,
.small {
  margin: 6px 0 0;
  color: var(--muted);
}

.stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat {
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(23, 24, 27, 0.08);
  box-shadow: var(--shadow);
}

.stat__k {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #8b8e95;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat__v {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
}

.section-block {
  margin-top: 30px;
}

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

.section-link {
  color: #8c8f97;
  font-size: 15px;
  font-weight: 800;
}

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

.grid--cards {
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
}

.mcard { min-width: 0; }

.mcard__link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: #d5d6da;
  box-shadow: 0 10px 26px rgba(24, 26, 31, 0.12);
}

.mcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.mcard__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.02) 35%, rgba(0,0,0,0.5) 100%);
}

.mcard__link:hover .mcard__img {
  transform: scale(1.04);
  filter: saturate(1.06);
}

.mcard__chrome,
.mcard__overlay {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
}

.mcard__chrome { top: 0; }
.mcard__overlay {
  bottom: 0;
  align-items: flex-end;
}

.mcard__badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge {
  min-height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.badge--amber {
  color: #fff;
  background: linear-gradient(180deg, #ffb248 0%, #d15b08 100%);
}

.badge--violet {
  color: #111;
  background: #f5c400;
}

.badge--dark,
.badge--icon {
  color: #fff;
  background: rgba(21, 22, 26, 0.76);
  backdrop-filter: blur(6px);
}

.flag {
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: rgba(21, 22, 26, 0.72);
}

.mcard__title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f04b57;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.9);
}

.mcard__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcard__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.meta-pill {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.load-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
}

.btn {
  border: 1px solid rgba(23, 24, 27, 0.1);
  background: #fff;
  color: var(--text);
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(24, 26, 31, 0.06);
  cursor: pointer;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #ff663d 0%, #d32f1d 100%);
  border-color: transparent;
}

.btn--secondary {
  background: #fff;
}

.btn--sm {
  min-height: 36px;
  padding: 0 14px;
}

.info-block,
.long-copy,
.chat__card,
.model-details__card,
.frame-wrap,
table,
.stat,
.pager-link,
.pager-btn {
  box-shadow: var(--shadow);
}

.info-block,
.long-copy {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(23, 24, 27, 0.08);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: #8d9098;
  font-size: 13px;
}

.breadcrumb span { opacity: 0.55; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}

.pager-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pager-link,
.pager-btn {
  min-height: 38px;
  min-width: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(23, 24, 27, 0.1);
  background: #fff;
  font-weight: 800;
}

.pager-link.active {
  color: #fff;
  background: #2b2c30;
}

.pager-btn.disabled { opacity: 0.5; }

.model-head {
  padding: 24px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(23, 24, 27, 0.08);
  box-shadow: var(--shadow);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.model-shell {
  display: grid;
  gap: 20px;
}

.model-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 0;
  background: linear-gradient(180deg, #2e2f33 0%, #26272b 100%);
  color: rgba(255,255,255,0.9);
  overflow: auto;
}

.model-subnav__main,
.model-subnav__side,
.profile-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px 0 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  white-space: nowrap;
}

.profile-pill__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-pill__name {
  font-weight: 800;
  font-size: 14px;
}

.profile-tab {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-tab strong {
  margin-left: 4px;
  color: rgba(255,255,255,0.62);
}

.profile-tab.is-active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.profile-tab--accent {
  color: #f6f4dc;
  background: rgba(164, 148, 88, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.live-layout--showcase {
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 14px;
  align-items: stretch;
}

.player-card {
  display: grid;
  gap: 0;
  border: 1px solid rgba(23, 24, 27, 0.08);
  background: #f6f6f7;
  box-shadow: var(--shadow);
}

.player-card__stage {
  border: 1px solid rgba(23, 24, 27, 0.06);
  border-bottom: 0;
  background: #dfe1e5;
}

.frame-wrap--flush {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.player-ui__top--spaced {
  justify-content: space-between;
}

.player-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}

.player-ui__actions--floating {
  align-self: center;
  justify-content: flex-end;
}

.circle-tool {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 0;
  background: rgba(255,255,255,0.88);
  color: #4b4e54;
  font: inherit;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(21, 24, 31, 0.18);
}

.player-card__toolbar {
  display: grid;
  grid-template-columns: 100px minmax(180px, 280px) minmax(180px, 220px);
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: #f7f7f8;
  border-top: 1px solid rgba(23, 24, 27, 0.08);
  border-bottom: 1px solid rgba(23, 24, 27, 0.08);
}

.toolbar-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4f545e;
  font-weight: 800;
}

.toolbar-stat__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(23, 24, 27, 0.08);
}

.toolbar-pill {
  min-height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #fff7da;
  color: #54441b;
  border: 1px solid rgba(209, 176, 71, 0.5);
  font-weight: 800;
}

.toolbar-pill--accent {
  color: #fff;
  background: linear-gradient(180deg, #9fbe2f 0%, #7d9b1f 100%);
  border-color: transparent;
}

.goal-strip {
  padding: 10px 14px 12px;
  background: #f4f4f5;
  border-bottom: 1px solid rgba(23, 24, 27, 0.08);
}

.goal-strip__head,
.goal-strip__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.goal-strip__head {
  margin-bottom: 8px;
}

.goal-strip__label {
  font-size: 13px;
  font-weight: 700;
  color: #3d424a;
}

.goal-strip__pct,
.goal-strip__foot {
  color: #868991;
  font-size: 12px;
}

.topic-strip {
  padding: 10px 14px 12px;
  background: #fff;
  color: #40454d;
  font-size: 13px;
  border-top: 1px solid rgba(23, 24, 27, 0.05);
}

.chat--showcase {
  align-self: stretch;
}

.chat__card--showcase {
  top: calc(var(--topbar-h) + var(--tabs-h) + 14px);
  min-height: 100%;
  border-radius: 0;
  background: #efefef;
}

.chat__tabs--compact {
  gap: 0;
  padding: 0;
  background: #fcfcfc;
}

.chat__tabs--compact .chat-tab {
  min-height: 42px;
  border-radius: 0;
  background: transparent;
  border-right: 1px solid rgba(23, 24, 27, 0.08);
}

.chat__tabs--compact .chat-tab:last-child {
  border-right: 0;
}

.chat__tabs--compact .chat-tab.is-active {
  color: #1e2127;
  background: #fff;
}

.chat__panel--feed {
  grid-auto-rows: min-content;
  align-content: start;
  padding: 0;
  gap: 0;
  background: #f6f6f7;
}

.tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #fff8df;
  border-bottom: 1px solid rgba(23, 24, 27, 0.07);
}

.tip-row__user {
  color: #d28f00;
}

.tip-row__amount {
  color: #7d9800;
  font-weight: 800;
}

.chat-line {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid rgba(23, 24, 27, 0.07);
  font-size: 13px;
  color: #3b4047;
}

.chat-line__icon {
  color: #d7a24f;
}

.goal-bubble {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #fbf7df;
  color: #46532b;
  font-size: 13px;
  font-weight: 800;
}

.goal-bubble__action {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #95b11e;
  color: #fff;
}

.chat__input--showcase {
  grid-template-columns: auto 1fr auto;
  padding: 10px 12px;
  background: #f3f3f4;
}

.send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(180deg, #555960 0%, #33363d 100%);
  color: #fff;
  font-size: 18px;
}

.related-section,
.model-summary,
.api-panel {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(23, 24, 27, 0.08);
  padding: 18px 0 0;
}

.related-section .section-head,
.model-summary__header {
  padding: 0 8px 0 0;
}

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

.grid--related .mcard__link {
  border-radius: 2px;
  aspect-ratio: 4 / 3;
}

.grid--related .mcard__chrome,
.grid--related .mcard__overlay {
  padding: 6px;
}

.grid--related .mcard__name {
  font-size: 13px;
}

.grid--related .meta-pill {
  min-height: 20px;
  font-size: 10px;
}

.model-summary {
  padding: 18px 8px 0 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
}

.fact-pills,
.chips--taxonomy {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.fact-pill {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #f0f0f2;
  color: #444951;
  font-size: 13px;
  font-weight: 700;
}

.chips--taxonomy .chip {
  min-height: 32px;
  background: #f0f0f2;
  border-color: rgba(23, 24, 27, 0.08);
}

.model-details__card--wide {
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
}

.model-facts {
  display: grid;
  gap: 14px;
}

.avatar--compact {
  max-width: 220px;
}

.api-panel {
  padding: 0;
  background: rgba(255,255,255,0.86);
}

.api-panel__details {
  border-top: 1px solid rgba(23, 24, 27, 0.06);
}

.api-panel__summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
  color: #292d34;
}

.api-panel__summary::-webkit-details-marker {
  display: none;
}

.api-panel__content {
  padding: 0 18px 18px;
}

.frame-wrap,
.chat__card,
.model-details__card,
table {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(23, 24, 27, 0.08);
  border-radius: var(--radius);
}

.frame-wrap { overflow: hidden; }
.frame-wrap--player { aspect-ratio: 16 / 9; }

.player-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #5f636d;
  background: linear-gradient(180deg, #f3f4f6 0%, #e6e7eb 100%);
}

.frame-wrap video,
.frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.player-ui {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0.58) 100%);
  pointer-events: none;
}

.player-ui__top,
.player-ui__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.player-ui__actions {
  justify-content: flex-end;
  pointer-events: auto;
}

.player-ui__goal {
  pointer-events: auto;
}

.goal {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.2);
}

.goal__bar {
  height: 100%;
  background: linear-gradient(90deg, #ffcf3d 0%, #ff623a 100%);
}

.goal__text {
  margin-top: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.chat__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(23, 24, 27, 0.08);
}

.chat__card {
  position: sticky;
  top: calc(var(--topbar-h) + var(--tabs-h) + 14px);
}

.chat-tab {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f2f2f4;
  color: #4a4e56;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.chat-tab.is-active {
  color: #fff;
  background: #2b2c30;
}

.chat__panel {
  min-height: 260px;
  padding: 14px;
  display: grid;
  gap: 10px;
  overflow: auto;
}

.msg {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f5f5f7;
}

.u {
  font-weight: 800;
  color: #6c7078;
  margin-right: 6px;
}

.u--mod { color: #ff623a; }
.u--vip { color: #6e59ff; }

.chat__input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid rgba(23, 24, 27, 0.08);
}

.chat__input input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(23, 24, 27, 0.1);
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.model-details__card {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  margin-top: 22px;
}

.avatar {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

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

.chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(23, 24, 27, 0.1);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.chip.is-active {
  color: #fff;
  background: #2b2c30;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

table th,
table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(23, 24, 27, 0.08);
  text-align: left;
  vertical-align: top;
}

table td,
table td span,
table td a {
  white-space: pre-wrap;
  word-break: break-word;
}

table th {
  width: 220px;
  color: #5f646d;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid rgba(23, 24, 27, 0.08);
  background: rgba(255,255,255,0.82);
}

.site-footer .container {
  padding: 18px 16px;
  color: #70737c;
  font-size: 13px;
}

[data-geo-hidden="1"] { display: none !important; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(21, 22, 25, 0.45);
  backdrop-filter: blur(4px);
}

@media (max-width: 1260px) {
  .topbar__inner {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr) auto;
    gap: 10px;
  }

  .topbar__stat { display: none; }

  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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

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

  .sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    z-index: 55;
    width: min(360px, 92vw);
    padding: 14px;
    overflow: auto;
    background: rgba(236,236,236,0.98);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .sidebar.is-open { transform: translateX(0); }

  .sidebar__card {
    padding-bottom: 24px;
  }

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

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

  .model-subnav {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  .model-subnav__main,
  .model-subnav__side,
  .profile-tabs {
    flex-wrap: wrap;
  }

  .player-card__toolbar {
    grid-template-columns: 1fr;
  }

  .chat__card--showcase {
    position: relative;
    top: auto;
  }

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

  .model-details__card--wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar__left {
    gap: 10px;
  }

  .topbar__link,
  .topbar__stat {
    display: none;
  }

  .category-strip {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-strip::-webkit-scrollbar { display: none; }

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

  .model-details__card {
    grid-template-columns: 1fr;
  }

  table th {
    width: 144px;
  }

  .player-card__toolbar,
  .goal-strip__head,
  .goal-strip__foot {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 520px) {
  .topbar__right .icon-btn:not(.icon-btn--plus),
  .balance-pill {
    display: none;
  }

  .search {
    padding-right: 10px;
  }

  .search__magic {
    display: none;
  }

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

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

  .profile-pill,
  .profile-tab {
    width: 100%;
    justify-content: center;
  }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
