:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --ink: #1f2329;
  --text: #677788;
  --heading: #1f2329;
  --muted: #7d8795;
  --line: #edf0f5;
  --accent: #2f7df6;
  --accent-2: #24c6a8;
  --warning: #ffb84d;
  --danger: #ec4f78;
  --notice-bg: #e5e7ec;
  --notice-ink: #27334a;
  --topbar-bg: rgba(255, 255, 255, 0.96);
  --logo-core: #ffffff;
  --shadow: 0 10px 30px rgba(31, 36, 48, 0.05);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}

body.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(47, 125, 246, 0.12), transparent 44%),
    linear-gradient(315deg, rgba(36, 198, 168, 0.12), transparent 42%),
    #f3f6fb;
}

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

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

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--bg);
  color: var(--text);
}

body[data-theme="dark"],
.app-shell[data-theme="dark"] {
  --bg: #0f1726;
  --surface: #182235;
  --surface-2: #101827;
  --ink: #f4f7fb;
  --text: #b3bdcc;
  --heading: #f4f7fb;
  --muted: #a6afc0;
  --line: #2e3a50;
  --accent: #4d8dff;
  --accent-2: #35d4ba;
  --danger: #ff6b97;
  --notice-bg: #273247;
  --notice-ink: #e9eef7;
  --topbar-bg: rgba(15, 23, 38, 0.94);
  --logo-core: #182235;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 28px 18px;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-close {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--heading);
  cursor: pointer;
  line-height: 1;
}

.sidebar-close i {
  display: block;
  font-size: 16px;
  line-height: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 0 0 22px;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  display: none;
}

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

.nav-group {
  margin: 30px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.nav-item {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  color: var(--heading);
  padding: 0 0;
  font-size: 14px;
  font-weight: 500;
}

.nav-item span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.nav-icon {
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  font-weight: 400;
  min-width: 18px;
  text-align: center;
}

.nav-item.active,
.nav-item:hover {
  color: var(--accent);
  background: transparent;
}

.badge {
  border-radius: 999px;
  background: #16c7d7;
  color: #fff;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.theme-btn,
.ghost-btn,
.primary-btn,
.danger-btn,
.icon-btn,
.user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 0 15px;
  font-size: 13px;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.theme-btn {
  width: 100%;
  color: var(--muted);
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
  padding: 0 24px;
  backdrop-filter: blur(8px);
}

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

.language-select {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
}

.language-select i {
  color: var(--muted);
  font-size: 15px;
}

.language-select select {
  width: 74px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--heading);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.app-language-menu {
  position: relative;
  flex: 0 0 auto;
}

.app-language-trigger {
  display: inline-flex;
  min-width: 116px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: var(--surface);
  color: var(--heading);
  padding: 0 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.app-language-trigger:hover,
.app-language-trigger:focus-visible,
.app-language-menu[data-open="true"] .app-language-trigger {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.app-language-trigger > .bi-translate {
  color: var(--muted);
  font-size: 16px;
}

.app-language-chevron {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  transition: transform 180ms ease;
}

.app-language-menu[data-open="true"] .app-language-chevron {
  transform: rotate(180deg);
}

.app-language-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  display: grid;
  width: 210px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 7px;
  box-shadow: 0 18px 46px rgba(9, 17, 31, 0.22);
}

.app-language-popover[hidden] {
  display: none;
}

.app-language-popover button {
  display: grid;
  min-height: 54px;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--heading);
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.app-language-popover button:hover,
.app-language-popover button:focus-visible {
  outline: 0;
  background: var(--surface-2);
}

.app-language-popover button.is-selected {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent);
}

.app-language-copy {
  display: grid;
  gap: 4px;
}

.app-language-copy strong {
  letter-spacing: 0;
  font-size: 13px;
}

.app-language-copy small {
  color: var(--muted);
  font-size: 11px;
}

.app-language-popover .bi-check2 {
  color: var(--accent);
  font-size: 17px;
  opacity: 0;
}

.app-language-popover button.is-selected .bi-check2 {
  opacity: 1;
}

.auth-language-select {
  align-self: flex-start;
  margin-left: auto;
}

.auth-language-menu {
  position: relative;
  flex: 0 0 auto;
}

.auth-language-trigger {
  display: inline-flex;
  min-width: 92px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  padding: 0 11px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.auth-language-trigger:hover,
.auth-language-trigger:focus-visible,
.auth-language-menu[data-open="true"] .auth-language-trigger {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.auth-language-trigger > .bi-translate {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.auth-language-chevron {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  transition: transform 180ms ease;
}

.auth-language-menu[data-open="true"] .auth-language-chevron {
  transform: rotate(180deg);
}

.auth-language-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: grid;
  width: 220px;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(12, 15, 21, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  padding: 7px;
  backdrop-filter: blur(22px);
}

.auth-language-popover[hidden] {
  display: none;
}

.auth-language-popover button {
  display: grid;
  min-height: 56px;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 7px 10px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.auth-language-popover button:hover,
.auth-language-popover button:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.auth-language-popover button.is-selected {
  background: rgba(80, 129, 255, 0.16);
  color: #fff;
}

.auth-language-code {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 850;
}

.auth-language-popover strong,
.auth-language-popover small {
  display: block;
  letter-spacing: 0;
}

.auth-language-popover strong {
  color: inherit;
  font-size: 13px;
}

.auth-language-popover small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.auth-language-popover button > .bi-check2 {
  color: #8eacff;
  font-size: 15px;
  opacity: 0;
}

.auth-language-popover button.is-selected > .bi-check2 {
  opacity: 1;
}

.user-btn {
  min-width: 52px;
  border-color: transparent;
  background: linear-gradient(135deg, rgba(47, 125, 246, 0.1), rgba(36, 198, 168, 0.1));
  color: var(--heading);
  font-weight: 800;
}

.user-menu {
  position: relative;
}

.user-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(31, 36, 48, 0.16);
  padding: 12px;
  overflow: hidden;
}

.user-popover::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 86px;
  background: linear-gradient(135deg, rgba(47, 125, 246, 0.12), rgba(36, 198, 168, 0.12));
  pointer-events: none;
}

.user-popover-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 12px 8px 14px;
}

.user-avatar {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(47, 125, 246, 0.25);
}

.user-popover-meta {
  min-width: 0;
  padding-top: 2px;
}

.user-popover-meta strong,
.user-popover-meta small {
  display: block;
}

.user-popover-meta strong {
  color: var(--heading);
  font-size: 16px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-popover-meta small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-plan-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(47, 125, 246, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 125, 246, 0.1), rgba(36, 198, 168, 0.08)),
    var(--surface);
  margin: 0 0 10px;
  padding: 12px;
}

.user-plan-card span,
.user-plan-card strong,
.user-plan-card small {
  display: block;
}

.user-plan-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.user-plan-card strong {
  margin-top: 7px;
  color: var(--heading);
  font-size: 14px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-plan-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.user-plan-card > a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0 12px;
}

.user-plan-card.is-empty {
  border-color: rgba(255, 184, 77, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 184, 77, 0.13), rgba(47, 125, 246, 0.06)),
    var(--surface);
}

.user-plan-card.is-empty > a {
  background: var(--warning);
  color: #1f2329;
}

.user-menu-list {
  position: relative;
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.user-menu-list a,
.user-menu-list button,
.user-logout {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0 10px;
  text-align: left;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.user-menu-list i,
.user-logout i {
  color: var(--muted);
  font-size: 15px;
  min-width: 18px;
  text-align: center;
}

.user-menu-list a:hover,
.user-menu-list button:hover {
  background: var(--surface-2);
  color: var(--heading);
  transform: translateX(2px);
}

.user-support-note {
  position: relative;
  border: 1px solid rgba(36, 198, 168, 0.22);
  border-radius: 8px;
  background: rgba(36, 198, 168, 0.08);
  margin: 0 0 10px;
  padding: 11px 12px;
}

.user-support-note strong {
  margin-bottom: 4px;
  color: var(--heading);
  font-size: 13px;
}

.user-support-note small {
  display: block;
  margin: 0;
  line-height: 1.5;
}

.user-logout {
  position: relative;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--danger);
  padding-top: 10px;
}

.user-logout i {
  color: var(--danger);
}

.user-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

.content {
  max-width: 1720px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.page-title h1 {
  margin: 0;
  color: var(--heading);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
}

.page-title p {
  display: none;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.page-title .action-row {
  align-items: stretch;
}

.page-title .action-row > a,
.page-title .action-row > button {
  min-height: 40px;
}

.primary-btn {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 7px 16px rgba(47, 125, 246, 0.18);
}

.theme-btn:hover,
.ghost-btn:hover,
.primary-btn:hover,
.danger-btn:hover,
.icon-btn:hover,
.user-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:hover {
  box-shadow: 0 10px 22px rgba(47, 125, 246, 0.24);
}

.danger-btn {
  border-color: rgba(242, 95, 92, 0.35);
  color: var(--danger);
}

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

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

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

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

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  color: var(--heading);
  isolation: isolate;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(47, 125, 246, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(36, 198, 168, 0.08), transparent 38%);
  opacity: 0;
  content: "";
  transition: opacity 180ms ease;
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover,
.card:focus-within {
  border-color: rgba(47, 125, 246, 0.24);
  box-shadow: 0 14px 34px rgba(31, 36, 48, 0.08);
  transform: translateY(-1px);
}

.card:hover::before,
.card:focus-within::before {
  opacity: 1;
}

body[data-theme="dark"] .card::before,
.app-shell[data-theme="dark"] .card::before {
  background:
    linear-gradient(135deg, rgba(77, 141, 255, 0.12), transparent 44%),
    linear-gradient(315deg, rgba(53, 212, 186, 0.1), transparent 38%);
}

.card h2,
.card h3,
.card h4 {
  margin: 0 0 10px;
}

.card h2 {
  font-size: 20px;
  line-height: 1.25;
}

.card h3 {
  font-size: 15px;
  line-height: 1.3;
}

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

.metric {
  min-height: 116px;
}

.metric strong {
  display: block;
  margin: 10px 0 6px;
  color: var(--heading);
  font-size: 26px;
}

.metric-actions {
  margin-top: 12px;
}

.home-support {
  display: grid;
  gap: 14px;
}

.home-support-head {
  display: grid;
  gap: 8px;
}

.support-kicker {
  width: fit-content;
  border-radius: 999px;
  background: rgba(47, 125, 246, 0.14);
  color: var(--accent);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.home-support-head h2 {
  margin: 0;
  font-size: 20px;
}

.home-support-head p {
  margin: 0;
  line-height: 1.7;
}

.home-support-grid,
.support-channel-grid,
.ticket-detail-grid {
  display: grid;
  gap: 10px;
}

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

.home-support-item,
.support-channel,
.ticket-summary,
.ticket-detail-grid > div,
.ticket-description {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.home-support-item,
.support-channel {
  padding: 12px 14px;
}

.home-support-item strong,
.support-channel strong,
.ticket-summary strong,
.ticket-detail-grid strong,
.ticket-description strong {
  display: block;
  color: var(--heading);
  font-size: 13px;
}

.home-support-item p,
.support-channel span,
.ticket-summary p,
.ticket-detail-grid p,
.ticket-description p {
  display: block;
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-support-actions {
  margin-top: 2px;
}

.empty-state {
  display: grid;
  min-height: 140px;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

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

.empty-state p {
  max-width: 360px;
  margin: 0;
  line-height: 1.7;
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.notice {
  border: 0;
  background: var(--notice-bg);
  box-shadow: none;
  color: var(--notice-ink);
}

.notice h2 {
  color: var(--notice-ink);
}

.shop-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}

.shop-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(47, 125, 246, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(36, 198, 168, 0.18), transparent 46%);
  content: "";
}

.shop-hero-copy h2 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.shop-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--notice-ink);
  line-height: 1.7;
}

.shop-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.shop-hero-tags span {
  border: 1px solid rgba(47, 125, 246, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--notice-ink);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 700;
}

.shop-grid {
  margin-top: 18px;
}

.plan-card {
  display: grid;
  min-height: 438px;
  align-content: start;
  gap: 14px;
}

.plan-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background:
    linear-gradient(135deg, rgba(47, 125, 246, 0.12), transparent 44%),
    linear-gradient(315deg, rgba(255, 184, 77, 0.16), transparent 48%);
  transition: opacity 180ms ease;
  content: "";
}

.plan-card:hover,
.plan-card.recommended {
  border-color: rgba(47, 125, 246, 0.28);
  box-shadow: 0 18px 42px rgba(31, 36, 48, 0.1);
}

.plan-card:hover::before,
.plan-card.recommended::before {
  opacity: 1;
}

.plan-card.recommended .badge {
  background: var(--warning);
  color: #27334a;
}

.plan-head {
  display: grid;
  gap: 10px;
}

.plan-head h2 {
  min-height: 56px;
  margin: 0;
  color: var(--heading);
  font-size: 20px;
  line-height: 1.4;
}

.price {
  color: var(--heading);
  font-size: 28px;
  font-weight: 800;
}

.price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.plan-card > .primary-btn {
  width: 100%;
  min-height: 42px;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.feature-list li::before {
  color: var(--accent-2);
  content: "✓ ";
}

.plan-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.plan-specs div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 10px 12px;
}

.plan-specs strong,
.plan-specs span {
  display: block;
}

.plan-specs strong {
  overflow-wrap: anywhere;
  color: var(--heading);
  font-size: 14px;
}

.plan-specs span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

body[data-theme="dark"] .shop-hero-tags span,
.app-shell[data-theme="dark"] .shop-hero-tags span,
body[data-theme="dark"] .plan-specs div,
.app-shell[data-theme="dark"] .plan-specs div {
  background: rgba(16, 24, 39, 0.72);
}

.table-wrap {
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: var(--surface);
}

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

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

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

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

.status {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(36, 198, 168, 0.12);
  color: var(--accent-2);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.status.off {
  background: rgba(242, 95, 92, 0.12);
  color: var(--danger);
}

.status.pending {
  background: rgba(255, 184, 77, 0.16);
  color: #b87900;
}

.invite-list-stack {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.doc-card {
  display: flex;
  min-height: 150px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.doc-card p {
  min-height: 48px;
}

.download-hero {
  max-width: 1160px;
  margin: 0 auto 14px;
}

.download-grid {
  max-width: 1160px;
  margin: 0 auto;
}

.client-card {
  min-height: 220px;
  padding: 0;
}

.download-card {
  display: grid;
  height: 100%;
  align-content: start;
  gap: 10px;
  padding: 26px;
}

.download-card h2 {
  margin: 12px 0 0;
  font-size: 24px;
}

.download-card strong {
  color: var(--heading);
  font-size: 15px;
}

.download-card small {
  color: var(--muted);
  line-height: 1.7;
}

.source-tag {
  width: fit-content;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.guide-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

.guide-article h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.guide-subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
}

.guide-block {
  border-top: 1px solid var(--line);
  padding: 24px 0 4px;
}

.guide-block h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.guide-notice {
  border-top: 0;
  border-radius: 8px;
  background: var(--notice-bg);
  color: var(--notice-ink);
  margin-bottom: 14px;
  padding: 22px;
}

.guide-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.8;
}

.guide-notice .guide-list {
  color: var(--notice-ink);
}

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

.guide-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px 16px;
}

.guide-link span {
  color: var(--muted);
}

.guide-link strong {
  color: var(--accent);
  text-align: right;
}

.admin-table {
  margin-top: 22px;
}

.read-btn {
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
}

.section-label {
  max-width: 1160px;
  margin: 54px auto 20px;
  color: var(--notice-ink);
  font-size: 13px;
  font-weight: 700;
}

.node-grid {
  max-width: 1160px;
  margin: 0 auto;
}

.node-card {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.node-card h3 {
  margin: 0;
  color: var(--heading);
  font-size: 22px;
}

.node-tags {
  min-height: 17px;
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-notice {
  display: grid;
  max-width: 1160px;
  min-height: 76px;
  margin: 0 auto;
  padding-left: 106px;
  position: relative;
}

.status-notice::before {
  position: absolute;
  left: 28px;
  top: 22px;
  color: var(--notice-ink);
  content: "📣";
  font-size: 42px;
}

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

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

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 11px 12px;
}

button:disabled,
.primary-btn:disabled,
.ghost-btn:disabled,
.danger-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

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

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.48);
  padding: 18px;
}

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

.modal {
  position: relative;
  width: min(100%, 620px);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(18, 24, 38, 0.18);
  padding: 24px;
}

.modal-head {
  padding-right: 38px;
}

.modal-head h2 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 22px;
}

.modal-head p {
  margin: 0 0 18px;
  line-height: 1.7;
}

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

.modal-list-item,
.setting-row,
.quick-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--heading);
  padding: 13px 14px;
  text-align: left;
}

button.modal-list-item,
button.setting-row,
button.quick-card {
  cursor: pointer;
}

.modal-list-item p,
.support-status p,
.subscribe-info p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.modal-list-item small {
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}

.modal-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(47, 125, 246, 0.1);
  color: var(--accent);
  font-size: 16px;
}

.subscribe-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 14px;
}

.qr-box {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}

.qr-box i {
  color: var(--heading);
  font-size: 54px;
}

.subscribe-info {
  min-width: 0;
}

.subscribe-info strong,
.support-status strong {
  display: block;
  color: var(--heading);
}

.copy-box {
  overflow: hidden;
  margin-top: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 11px 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-code-box {
  color: var(--heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

.invite-limit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px 14px;
}

.invite-limit strong {
  color: var(--heading);
  font-size: 20px;
}

.invite-limit span {
  color: var(--muted);
  font-size: 13px;
}

.modal-form-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  line-height: 1.5;
}

.modal-form-message[data-type="info"] {
  color: var(--muted);
}

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

.quick-card {
  min-height: 74px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.quick-card i {
  color: var(--accent);
  font-size: 20px;
}

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

.setting-row {
  justify-content: space-between;
}

.setting-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.setting-row.active {
  border-color: rgba(47, 125, 246, 0.45);
  background: rgba(47, 125, 246, 0.08);
  color: var(--accent);
}

.support-panel,
.support-status {
  display: grid;
  gap: 14px;
}

.contact-support-panel {
  gap: 16px;
}

.support-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--notice-bg);
  color: var(--notice-ink);
  padding: 16px;
}

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

.support-channel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.support-channel:hover,
.support-channel:focus-visible {
  border-color: rgba(47, 125, 246, 0.26);
  box-shadow: 0 10px 24px rgba(31, 36, 48, 0.06);
  transform: translateY(-1px);
}

.ticket-summary {
  padding: 14px 16px;
}

.ticket-summary strong {
  margin-bottom: 4px;
}

.ticket-detail {
  display: grid;
  gap: 16px;
}

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

.ticket-detail-grid > div,
.ticket-description {
  padding: 12px 14px;
}

.ticket-description p {
  margin-top: 6px;
}

.ticket-sub-meta {
  margin: 4px 0 0;
  font-size: 12px;
}

.modal-metrics {
  margin-bottom: 16px;
}

.modal-actions {
  margin-top: 16px;
}

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

.auth-landing {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 430px);
  align-items: center;
  gap: 38px;
}

.auth-intro {
  display: grid;
  gap: 28px;
  color: var(--text);
}

.auth-hero-brand {
  width: fit-content;
  margin-bottom: 0;
}

.auth-hero-brand .brand-mark {
  width: 54px;
  height: 54px;
}

.auth-hero-brand strong {
  font-size: 22px;
}

.auth-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(47, 125, 246, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.auth-hero-copy h1 {
  max-width: 720px;
  margin: 14px 0 14px;
  color: var(--heading);
  font-size: 58px;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-hero-copy p {
  max-width: 660px;
  margin: 0;
  color: #5f6d7d;
  font-size: 16px;
  line-height: 1.9;
}

.auth-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-feature-tags span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(47, 125, 246, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--heading);
  padding: 0 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(31, 36, 48, 0.05);
}

.auth-feature-tags i {
  color: var(--accent);
}

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

.auth-flow div,
.auth-proof-grid article {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 32px rgba(31, 36, 48, 0.06);
}

.auth-flow div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.auth-flow strong {
  color: var(--accent);
  font-size: 13px;
}

.auth-flow span {
  color: var(--heading);
  font-weight: 800;
}

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

.auth-proof-grid article {
  padding: 18px;
}

.auth-proof-grid i {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(47, 125, 246, 0.1);
  color: var(--accent);
  font-size: 18px;
}

.auth-proof-grid strong {
  display: block;
  margin-top: 14px;
  color: var(--heading);
  font-size: 15px;
}

.auth-proof-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-panel {
  width: min(100%, 430px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(31, 36, 48, 0.1);
  padding: 30px;
}

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

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-panel-head .auth-brand {
  margin-bottom: 0;
}

.auth-brand span,
.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand strong {
  color: var(--heading);
  font-size: 18px;
}

.auth-brand small {
  color: var(--muted);
  font-size: 12px;
}

.auth-brand.auth-hero-brand {
  margin-bottom: 0;
}

.auth-brand.auth-hero-brand strong {
  font-size: 22px;
}

.auth-copy h1 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 26px;
}

.auth-copy p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

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

.auth-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
}

.auth-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  line-height: 1.5;
}

.auth-message[data-type="success"] {
  color: var(--accent-2);
}

.auth-message[data-type="info"] {
  color: var(--muted);
}

.auth-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--accent);
  font-weight: 700;
}

body.signin-dark-page {
  min-height: 100vh;
  background: #040507;
  color: #fff;
  overflow-x: hidden;
}

.signin-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  background: #040507;
  padding: 116px 24px 58px;
}

.signin-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.signin-bg-shade {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 74% 20%, rgba(52, 105, 255, 0.24), transparent 30%),
    radial-gradient(circle at 18% 88%, rgba(11, 214, 171, 0.12), transparent 27%),
    linear-gradient(90deg, rgba(4, 5, 7, 0.95) 0%, rgba(4, 5, 7, 0.82) 42%, rgba(4, 5, 7, 0.66) 100%),
    linear-gradient(180deg, rgba(4, 5, 7, 0.48), rgba(4, 5, 7, 0.94));
  pointer-events: none;
}

.signin-header {
  position: fixed;
  top: 22px;
  right: 24px;
  left: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.signin-brand {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.64);
  color: #fff;
  padding: 7px 16px 7px 9px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.signin-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.signin-brand span,
.signin-brand strong,
.signin-brand small {
  display: block;
}

.signin-brand strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.1;
}

.signin-brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0;
}

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

.signin-header-actions .language-select,
.signin-header-actions .auth-language-trigger,
.signin-home-link {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.64);
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.signin-header-actions .language-select select {
  width: 64px;
  color: #fff;
}

.signin-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.signin-grid {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1120px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 68px;
  align-items: center;
  justify-self: center;
}

.signin-copy {
  display: grid;
  gap: 26px;
  max-width: 620px;
}

.signin-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 56px;
  line-height: 1.16;
  letter-spacing: 0;
}

.signin-copy p:not(.uhd-eyebrow) {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.92;
}

.signin-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.signin-proof div {
  min-height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 18px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.signin-proof i {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.signin-proof span {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.signin-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(10, 13, 19, 0.76);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(22px);
}

.signin-panel::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at 78% 10%, rgba(47, 125, 246, 0.18), transparent 34%);
  content: "";
  pointer-events: none;
}

.signin-panel > * {
  position: relative;
  z-index: 1;
}

.signin-panel .auth-brand strong,
.signin-panel .auth-copy h1,
.signin-panel .field label,
.signin-panel .signin-panel-note strong {
  color: #fff;
}

.signin-panel .auth-brand small,
.signin-panel .auth-copy p,
.signin-panel .auth-switch,
.signin-panel .signin-panel-note small {
  color: rgba(255, 255, 255, 0.58);
}

.signin-panel-kicker {
  margin: 0 0 12px !important;
  color: rgba(255, 255, 255, 0.42) !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.signin-panel .field input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.signin-panel .field input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.signin-panel .field input:focus {
  border-color: rgba(85, 147, 255, 0.74);
  box-shadow: 0 0 0 4px rgba(47, 125, 246, 0.18);
}

.signin-panel .auth-submit {
  background: linear-gradient(135deg, #ffffff, #dfeaff 48%, #66f2d7);
  color: #05070a;
  box-shadow: 0 16px 34px rgba(95, 174, 255, 0.24);
}

.register-panel {
  padding-top: 26px;
  padding-bottom: 24px;
}

.register-panel .auth-panel-head {
  margin-bottom: 16px;
}

.register-panel .auth-copy p {
  margin-bottom: 18px;
}

.register-panel .auth-form {
  gap: 12px;
}

.register-panel .field label {
  margin-bottom: 7px;
}

.register-panel .field input {
  height: 42px;
}

.register-panel .auth-switch {
  margin-top: 18px;
  padding-top: 15px;
}

.register-panel .signin-panel-note {
  margin-top: 16px;
}

.signin-panel .auth-switch {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.signin-panel .auth-switch a {
  color: #9fd7ff;
}

.signin-panel-note {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.signin-panel-note i {
  color: #66f2d7;
}

.signin-panel-note span,
.signin-panel-note strong,
.signin-panel-note small {
  display: block;
}

.signin-panel-note small {
  margin-top: 4px;
  line-height: 1.7;
}

.modal {
  position: relative;
  width: min(620px, 100%);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.promo-box {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.promo-box > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px 16px;
}

.promo-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--heading);
}

.promo-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.footer {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 18px 24px 28px;
  font-size: 13px;
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 240px minmax(0, 1fr);
  background: var(--bg);
  color: var(--text);
}

.admin-sidebar {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 0 20px 20px;
}

.admin-brand {
  padding-top: 18px;
}

.admin-brand-text {
  display: block;
}

.admin-brand-text strong,
.admin-brand-text small {
  display: block;
}

.admin-brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.admin-workspace {
  min-width: 0;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.admin-kv {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 18px 0;
}

.admin-kv dt {
  color: var(--muted);
}

.admin-kv dd {
  margin: 0;
  color: var(--heading);
}

.admin-state-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-detail-grid {
  margin-top: 22px;
}

body.sidebar-collapsed .app-shell {
  grid-template-columns: 84px minmax(0, 1fr);
}

body.sidebar-collapsed .brand span:last-child,
body.sidebar-collapsed .nav-item small,
body.sidebar-collapsed .nav-group,
body.sidebar-collapsed .sidebar-footer {
  display: none;
}

@media (max-width: 1120px) {
  .auth-landing {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .auth-panel {
    width: min(100%, 560px);
  }

  .auth-hero-copy h1 {
    max-width: 680px;
    font-size: 46px;
  }
}

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

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 30;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    box-shadow: 20px 0 46px rgba(18, 24, 38, 0.12);
  }

  .sidebar-close {
    display: inline-flex;
  }

  .sidebar .brand {
    flex: 1;
    padding-right: 12px;
  }

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

  body.sidebar-collapsed .app-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: auto;
  }

  .top-actions > a {
    display: none;
  }

  .topbar {
    gap: 10px;
    padding: 0 14px;
  }

  .top-actions {
    gap: 6px;
  }

  .language-select {
    min-height: 36px;
    padding: 0 8px;
  }

  .language-select i {
    display: none;
  }

  .language-select select {
    width: 58px;
    font-size: 12px;
  }

  .app-language-trigger {
    min-width: 92px;
    min-height: 36px;
    gap: 7px;
    padding: 0 9px;
    font-size: 12px;
  }

  .app-language-popover {
    width: 190px;
  }

  .cols-2,
  .cols-3,
  .cols-4 {
    grid-template-columns: 1fr;
  }

  .page-title {
    display: grid;
  }

  .page-title h1 {
    font-size: 28px;
  }

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

  .shop-hero-tags {
    justify-content: flex-start;
  }

  .plan-card {
    min-height: auto;
  }

  .plan-head h2 {
    min-height: 0;
  }

  .modal {
    width: min(100%, 360px);
    padding: 22px 18px;
  }

  .subscribe-panel,
  .modal-grid,
  .modal-metrics,
  .home-support-grid,
  .support-channel-grid,
  .ticket-detail-grid {
    grid-template-columns: 1fr;
  }

  .modal-list-item {
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .auth-shell {
    align-items: flex-start;
    padding: 18px 14px 28px;
  }

  .auth-landing {
    gap: 18px;
  }

  .auth-intro {
    gap: 18px;
  }

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

  .auth-hero-copy h1 {
    font-size: 34px;
    line-height: 1.16;
  }

  .auth-hero-copy p {
    font-size: 14px;
    line-height: 1.75;
  }

  .auth-feature-tags span {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .auth-flow,
  .auth-proof-grid {
    grid-template-columns: 1fr;
  }

  .auth-flow div {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    padding: 13px 14px;
  }

  .auth-proof-grid article {
    padding: 15px;
  }

  .auth-panel {
    padding: 22px 18px;
  }

  .auth-panel-head {
    align-items: center;
  }

  .auth-copy h1 {
    font-size: 24px;
  }
}

body.uhd-auth-page {
  --uhd-bg: #040507;
  --uhd-ink: #ffffff;
  --uhd-soft: rgba(255, 255, 255, 0.64);
  --uhd-faint: rgba(255, 255, 255, 0.1);
  min-height: 100vh;
  background: var(--uhd-bg);
  color: var(--uhd-ink);
  font-family: "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

@font-face {
  font-family: "Inter Tight";
  src: url("./landing/fonts/inter-tight.woff2") format("woff2");
  font-display: swap;
}

.uhd-login-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 68% 12%, rgba(66, 118, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #040507 0%, #05070a 52%, #080a0f 100%);
}

.uhd-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  padding: 22px 18px 0;
}

.uhd-nav {
  display: flex;
  width: min(640px, 100%);
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.68);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  padding: 7px 8px 7px 14px;
  backdrop-filter: blur(18px);
}

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

.uhd-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.uhd-brand span,
.uhd-brand strong,
.uhd-brand small {
  display: block;
}

.uhd-brand strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.1;
}

.uhd-brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0;
}

.uhd-nav-links {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.uhd-nav-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.uhd-nav-links a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.uhd-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.uhd-nav-actions .language-select {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
}

.uhd-nav-actions .auth-language-trigger {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.uhd-nav-actions .language-select select {
  width: 58px;
  color: #fff;
}

.uhd-join-btn,
.uhd-register-btn,
.uhd-secondary-cta,
.uhd-primary-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: #fff;
  color: #050507;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.12);
  transition: transform 180ms ease, background 180ms ease;
}

.uhd-join-btn:hover,
.uhd-register-btn:hover,
.uhd-secondary-cta:hover,
.uhd-primary-cta:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.uhd-register-btn,
.uhd-secondary-cta {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.uhd-register-btn:hover,
.uhd-secondary-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.uhd-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #040507;
}

.uhd-hero-media,
.uhd-cinema-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uhd-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 5, 7, 0.95) 0%, rgba(4, 5, 7, 0.72) 31%, rgba(4, 5, 7, 0.18) 68%, rgba(4, 5, 7, 0.66) 100%),
    linear-gradient(180deg, rgba(4, 5, 7, 0.35) 0%, rgba(4, 5, 7, 0) 45%, rgba(4, 5, 7, 0.86) 100%);
}

.uhd-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  align-items: center;
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 110px 28px 190px;
}

.uhd-hero-copy {
  max-width: 560px;
}

.uhd-eyebrow {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.uhd-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 58px;
  line-height: 1.24;
  letter-spacing: 0;
}

.uhd-hero h1 span {
  display: block;
  white-space: nowrap;
}

.uhd-hero-title-short {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.uhd-hero-title-long {
  margin-top: 0;
}

.uhd-lede {
  max-width: 520px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 16px;
  line-height: 1.95;
}

.uhd-primary-cta {
  min-height: 48px;
  padding: 0 28px;
}

.uhd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.uhd-secondary-cta {
  min-height: 48px;
  padding: 0 24px;
}

.uhd-hero-meta {
  position: absolute;
  right: 28px;
  bottom: 42px;
  left: 28px;
  z-index: 3;
  display: grid;
  width: min(1360px, calc(100% - 56px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin: 0 auto;
}

.uhd-hero-meta div {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, 0.72);
}

.uhd-hero-meta i {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.uhd-hero-meta strong {
  color: #fff;
  font-size: 15px;
}

.uhd-hero-meta span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.uhd-scroll-tip {
  position: absolute;
  right: 11%;
  bottom: 44px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.uhd-platforms {
  position: relative;
  overflow: hidden;
  background: #040507;
  padding: 170px 0 130px;
}

.uhd-section-copy {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 0 28px;
}

.uhd-section-copy.centered {
  max-width: 820px;
  text-align: center;
}

.uhd-section-copy h2,
.uhd-cinema-copy h2,
.uhd-login-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: 0;
}

.uhd-section-copy p:not(.uhd-eyebrow),
.uhd-cinema-copy p:not(.uhd-eyebrow),
.uhd-login-copy p:not(.uhd-eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.9;
}

.uhd-section-copy.centered p:not(.uhd-eyebrow) {
  margin-right: auto;
  margin-left: auto;
}

.uhd-marquee {
  position: relative;
  margin-top: 70px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.uhd-marquee::before,
.uhd-marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 16%;
  content: "";
  pointer-events: none;
}

.uhd-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #040507, transparent);
}

.uhd-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #040507, transparent);
}

.uhd-marquee-track {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  animation: uhdMarquee 34s linear infinite;
  white-space: nowrap;
}

.uhd-game-marquee {
  margin-top: 0;
  border-top: 0;
  background: rgba(255, 255, 255, 0.015);
}

.uhd-marquee-track-reverse {
  animation-name: uhdMarqueeReverse;
  animation-duration: 38s;
}

.uhd-platform-item {
  display: inline-flex;
  min-height: 88px;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.86);
  padding: 26px 38px;
  font-size: 19px;
}

.uhd-platform-item img {
  flex: 0 0 auto;
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.9;
}

.uhd-platform-item b {
  font-weight: 650;
  line-height: 1;
}

.uhd-game-item img {
  border-radius: 7px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.28);
}

.uhd-game-item .uhd-game-icon-symbol {
  box-sizing: border-box;
  background: #1a1e26;
  padding: 4px;
}

@keyframes uhdMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes uhdMarqueeReverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.uhd-cinema {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  background: #040507;
  text-align: center;
}

.uhd-cinema::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(4, 5, 7, 0.02), rgba(4, 5, 7, 0.72) 70%),
    linear-gradient(180deg, rgba(4, 5, 7, 0.6), rgba(4, 5, 7, 0.1), rgba(4, 5, 7, 0.72));
  content: "";
}

.uhd-cinema-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: 120px 24px;
}

.uhd-cinema-copy p:not(.uhd-eyebrow) {
  margin-right: auto;
  margin-left: auto;
}

.uhd-audio .uhd-cinema-media {
  transform: scaleX(-1);
}

.uhd-essentials {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #07090d;
  background-size: 64px 64px;
  padding: 150px 24px 110px;
}

.uhd-anchor {
  position: absolute;
  top: 0;
  left: 0;
}

.uhd-device-card,
.uhd-card-grid {
  width: min(1040px, 100%);
  margin: 74px auto 0;
}

.uhd-device-card {
  display: grid;
  grid-template-columns: 0.92fr 1.35fr;
  gap: 44px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 44px;
}

.uhd-device-copy h3,
.uhd-card-grid h3 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: 0;
}

.uhd-device-copy p,
.uhd-card-grid p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.9;
}

.uhd-device-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.uhd-device-tags span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.64);
  padding: 7px 12px;
  font-size: 12px;
}

.uhd-device-visual {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.55fr 0.35fr;
  gap: 22px;
  align-items: end;
}

.screen {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.02), 0 20px 45px rgba(0, 0, 0, 0.28);
}

.screen i {
  color: #fff;
  font-size: 24px;
  opacity: 0.9;
}

.screen span {
  position: absolute;
  right: 14px;
  bottom: 16px;
  left: 14px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff 52%, rgba(255, 255, 255, 0.16) 52%);
}

.screen.tv {
  height: 128px;
}

.screen.laptop {
  height: 104px;
}

.screen.tablet {
  height: 132px;
}

.screen.phone {
  height: 112px;
}

.uhd-card-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.65fr;
  gap: 18px;
}

.uhd-card-grid article {
  min-height: 270px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  padding: 36px;
}

.uhd-card-grid article.wide {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(255, 255, 255, 0.025);
}

.uhd-progress {
  height: 4px;
  margin-top: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.uhd-progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.uhd-card-grid small {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.46);
}

.uhd-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.uhd-stats strong {
  display: block;
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.uhd-stats span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.46);
}

.uhd-login-section {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 60px;
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
  background: #040507;
  padding: 130px 24px 110px;
}

.uhd-login-panel {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.uhd-login-panel .auth-copy h1,
.uhd-login-panel .auth-brand strong {
  color: #111827;
}

.uhd-login-panel .auth-copy p,
.uhd-login-panel .auth-brand small,
.uhd-login-panel .auth-switch {
  color: #667085;
}

.uhd-footer {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #05070a;
  color: rgba(255, 255, 255, 0.42);
  padding: 0 max(24px, calc((100vw - 1040px) / 2));
  font-size: 12px;
}

.uhd-footer a {
  color: rgba(255, 255, 255, 0.54);
}

@media (max-width: 980px) {
  .uhd-nav {
    width: 100%;
  }

  .uhd-nav-links {
    display: none;
  }

  .uhd-hero h1 {
    font-size: 42px;
  }

  .uhd-hero h1 span {
    white-space: normal;
  }

  .uhd-device-card,
  .uhd-card-grid,
  .uhd-login-section {
    grid-template-columns: 1fr;
  }

  .uhd-hero-meta {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 28px;
    padding: 0 24px 44px;
  }

  .uhd-hero-meta div {
    min-width: 0;
    min-height: 88px;
    align-content: start;
  }

  .uhd-scroll-tip {
    display: none;
  }

  .uhd-hero-inner {
    padding-bottom: 72px;
  }

  .uhd-login-section {
    min-height: auto;
    gap: 34px;
  }

  .signin-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .signin-copy {
    max-width: 720px;
  }

  .signin-copy h1 {
    font-size: 42px;
  }
}

@media (max-width: 640px) {
  .uhd-header {
    padding: 14px 10px 0;
  }

  .uhd-nav {
    gap: 8px;
    min-height: 54px;
    padding-left: 10px;
  }

  .uhd-brand {
    min-width: 0;
  }

  .uhd-brand img {
    width: 30px;
    height: 30px;
  }

  .uhd-brand strong {
    font-size: 14px;
  }

  .uhd-brand span,
  .uhd-brand small {
    display: none;
  }

  .uhd-nav-actions {
    gap: 6px;
  }

  .uhd-join-btn {
    min-height: 34px;
    padding: 0 9px;
    font-size: 11px;
  }

  .uhd-register-btn {
    min-height: 34px;
    padding: 0 9px;
    font-size: 11px;
  }

  .uhd-nav-actions .language-select {
    min-height: 34px;
    padding: 0 8px;
  }

  .uhd-nav-actions .auth-language-trigger {
    min-width: 82px;
    min-height: 34px;
    gap: 6px;
    padding: 0 8px;
    font-size: 12px;
  }

  .uhd-nav-actions .language-select select {
    width: 58px;
    font-size: 12px;
  }

  .uhd-hero-inner {
    padding: 94px 18px 48px;
  }

  .uhd-hero h1,
  .uhd-section-copy h2,
  .uhd-cinema-copy h2,
  .uhd-login-copy h2 {
    font-size: 34px;
  }

  .uhd-lede,
  .uhd-section-copy p:not(.uhd-eyebrow),
  .uhd-cinema-copy p:not(.uhd-eyebrow),
  .uhd-login-copy p:not(.uhd-eyebrow) {
    font-size: 14px;
    line-height: 1.8;
  }

  .uhd-hero-meta {
    column-gap: 14px;
    row-gap: 22px;
    padding: 0 18px 34px;
  }

  .uhd-hero-meta div {
    min-height: 92px;
  }

  .uhd-platforms {
    padding: 90px 0 86px;
  }

  .uhd-section-copy {
    padding: 0 18px;
  }

  .uhd-platform-item {
    min-height: 76px;
    gap: 11px;
    padding: 20px 22px;
    font-size: 16px;
  }

  .uhd-platform-item img {
    width: 24px;
    height: 24px;
  }

  .uhd-cinema {
    min-height: 76vh;
  }

  .uhd-essentials {
    padding: 90px 14px 74px;
  }

  .uhd-device-card,
  .uhd-card-grid article {
    border-radius: 14px;
    padding: 24px 18px;
  }

  .uhd-device-copy h3,
  .uhd-card-grid h3 {
    font-size: 26px;
  }

  .uhd-device-visual {
    grid-template-columns: 1fr 1fr;
  }

  .screen.tv,
  .screen.laptop,
  .screen.tablet,
  .screen.phone {
    height: 102px;
  }

  .uhd-stats {
    grid-template-columns: 1fr;
  }

  .uhd-login-section {
    padding: 84px 14px 64px;
  }

  .uhd-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 18px;
  }

  .signin-shell {
    padding: 92px 14px 28px;
  }

  .signin-header {
    top: 14px;
    right: 10px;
    left: 10px;
    gap: 8px;
  }

  .signin-brand {
    min-height: 44px;
    padding: 6px 9px;
  }

  .signin-brand .brand-mark {
    width: 30px;
    height: 30px;
  }

  .signin-brand span {
    display: none;
  }

  .signin-header-actions {
    gap: 6px;
  }

  .signin-header-actions .language-select,
  .signin-header-actions .auth-language-trigger,
  .signin-home-link {
    min-height: 34px;
  }

  .signin-header-actions .language-select {
    padding: 0 8px;
  }

  .signin-header-actions .auth-language-trigger {
    min-width: 82px;
    gap: 6px;
    padding: 0 8px;
    font-size: 12px;
  }

  .auth-language-popover {
    position: fixed;
    top: 76px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  .signin-header-actions .language-select select {
    width: 58px;
    font-size: 12px;
  }

  .signin-home-link {
    padding: 0 10px;
    font-size: 11px;
  }

  .signin-grid {
    gap: 24px;
  }

  .signin-copy {
    gap: 18px;
  }

  .signin-copy h1 {
    font-size: 34px;
  }

  .signin-copy p:not(.uhd-eyebrow) {
    font-size: 14px;
    line-height: 1.8;
  }

  .signin-proof {
    grid-template-columns: 1fr;
  }

  .signin-proof div {
    min-height: auto;
    padding: 14px;
  }

  .signin-proof span {
    margin-top: 10px;
  }

  .signin-panel {
    padding: 24px 18px;
  }
}
