﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --text: #111827;
  --muted: #4b5563;
  --accent: #d60f2f;
  --border: #e5e7eb;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.14);
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.is-loading {
  overflow: hidden;
}

body.no-scroll {
  overflow: hidden;
}

main {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.is-loading main {
  opacity: 0;
  transform: translateY(8px);
}

body.is-ready main {
  opacity: 1;
  transform: translateY(0);
}

.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.loader-inner {
  display: grid;
  gap: 12px;
  align-items: center;
  justify-items: center;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.loader-mark {
  font-size: 14px;
  color: var(--accent);
}

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.logo img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
}

.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.lang-switch {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.lang-flag {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  display: none;
  min-width: 120px;
  box-shadow: var(--shadow-sm);
  z-index: 20;
}

.lang-switch.open .lang-menu {
  display: grid;
  gap: 6px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
}

.lang-option:hover,
.lang-option.active {
  background: var(--bg-alt);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.nav-toggle-bars {
  display: inline-block;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.nav-toggle-label {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero {
  background: radial-gradient(circle at top right, #fef2f2 0%, #ffffff 48%, #f6f7fb 100%);
  padding: 84px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.mt-24 {
  margin-top: 24px;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.hero-card h3 {
  font-size: 24px;
}

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

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  align-content: start;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 18px;
  display: grid;
  gap: 12px;
  height: 100%;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-desc {
  color: var(--muted);
  font-size: 14px;
}

.card-meta,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}

.badge-released {
  background: #fff0f2;
  border-color: #f8c0ca;
  color: #b10b25;
}

.badge-wip {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.badge-prototype {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 12px;
  color: var(--muted);
}

.chip-outline {
  background: transparent;
  border: 1px solid var(--border);
}

.filters {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.filters input,
.filters select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.results-info {
  color: var(--muted);
  margin-bottom: 16px;
}

.empty {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 32px 0;
}

.load-more {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.detail-cover {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.detail-summary h1 {
  font-size: clamp(32px, 4vw, 44px);
}

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

.detail-links .btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.detail-links .btn:hover {
  filter: brightness(0.96);
}

.detail-links .btn:focus-visible {
  outline: 2px solid rgba(214, 15, 47, 0.35);
  outline-offset: 2px;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.detail-main {
  display: grid;
  gap: 20px;
}

.detail-main p {
  color: var(--muted);
}

.detail-aside {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  display: grid;
  gap: 16px;
  height: fit-content;
}

.spec-item {
  display: grid;
  gap: 6px;
}

.spec-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.spec-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.spec-link:focus-visible {
  outline: 2px solid rgba(214, 15, 47, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #f9fafb;
  cursor: zoom-in;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.34), rgba(17, 24, 39, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.gallery-item::after {
  content: "⌕";
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery-item:hover::before,
.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover::after {
  transform: translateY(0);
}

.gallery-item.landscape {
  aspect-ratio: 16 / 9;
}

.gallery-item.portrait {
  aspect-ratio: 3 / 4;
}

.gallery-item.square {
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(4px);
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox-stage {
  position: relative;
  width: min(1120px, 94vw);
  display: grid;
  justify-items: center;
  gap: 12px;
}

.gallery-lightbox-media {
  width: 100%;
  max-height: 84vh;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  background: rgba(15, 23, 42, 0.8);
}

.gallery-lightbox-media img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
}

.gallery-lightbox-caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-lightbox-btn {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-close {
  top: 14px;
  right: 14px;
  font-size: 24px;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
}

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

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

.gallery-lightbox-btn:hover {
  background: rgba(15, 23, 42, 0.95);
}

.gallery-lightbox-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (min-width: 900px) {
  .gallery-item.landscape {
    grid-column: span 2;
  }
}

.article {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.article h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.article-cover {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.article-content {
  display: grid;
  gap: 16px;
  color: var(--text);
}

.article-content p {
  color: var(--muted);
}

.article-content ul {
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.back-link {
  color: var(--accent);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .detail-hero,
  .detail-body {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .header-inner {
    gap: 10px 12px;
  }

  .nav {
    margin-left: auto;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
    box-shadow: var(--shadow-sm);
    z-index: 1200;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 6px 0;
  }

  .nav-link.active::after {
    bottom: -3px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .header-actions .btn-outline,
  .header-actions .btn-accent {
    padding: 9px 14px;
  }

  .nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .nav-links {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .hero {
    padding: 64px 0;
  }

  .section {
    padding: 48px 0;
  }

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

  .gallery-lightbox {
    padding: 12px;
  }

  .gallery-lightbox-media {
    max-height: 76vh;
  }

  .gallery-lightbox-media img {
    max-height: 76vh;
  }

  .gallery-lightbox-btn {
    width: 38px;
    height: 38px;
  }

  .gallery-lightbox-prev {
    left: 8px;
  }

  .gallery-lightbox-next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main,
  .page-loader {
    transition: none;
  }

  .spinner {
    animation: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Own ID specific additions */
.section-tight {
  padding: 24px 0;
}

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

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 24px;
  align-items: start;
}

body.login-flow-page {
  min-height: 100vh;
  padding-bottom: 0;
  background:
    radial-gradient(circle at 10% 92%, rgba(56, 189, 248, 0.28), rgba(56, 189, 248, 0) 34%),
    radial-gradient(circle at 88% 8%, rgba(214, 15, 47, 0.14), rgba(214, 15, 47, 0) 32%),
    linear-gradient(160deg, #f7f9ff 0%, #eef3ff 55%, #f6f8ff 100%);
}

.login-shell {
  min-height: calc(100vh - 110px);
  padding: 48px 16px 112px;
  display: grid;
  place-items: center;
}

.login-card {
  width: min(460px, 100%);
  border-radius: 22px;
  border: 1px solid #d6deef;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.16);
  padding: 22px;
  display: grid;
  gap: 12px;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.login-brand img {
  width: 32px;
  height: auto;
}

.login-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7a859f;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login-progress-head span.active {
  color: #111827;
}

.login-progress-track {
  height: 14px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
  border: 1px solid #c2d4ff;
}

.login-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  transition: width 0.25s ease;
}

.login-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.15;
  margin-top: 8px;
}

.login-subtitle {
  text-align: center;
  color: #4b5563;
  font-size: 17px;
}

.login-form {
  margin-top: 4px;
}

.login-form label {
  gap: 8px;
}

.login-input {
  border-radius: 14px;
  border: 1px solid #bfd4ff;
  padding: 13px 14px;
  background: #ffffff;
}

.login-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.login-username-wrap {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
  padding: 10px;
}

.login-otp-grid {
  gap: 8px;
}

.login-otp-cell {
  border-radius: 14px;
  border: 1px solid #c5d5f8;
  min-height: 58px;
  font-size: 26px;
}

.login-primary-btn,
.login-secondary-btn {
  width: 100%;
  min-height: 52px;
}

.login-secondary-btn {
  margin-top: -4px;
}

.login-hint {
  text-align: center;
  font-size: 14px;
}

.login-legal-consent {
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #ffffff;
}

.login-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: #334155;
  font-size: 14px;
}

.login-consent-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #d60f2f;
}

.login-inline-link {
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-inline-link:hover {
  color: #0f3bb6;
}

.login-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(15, 23, 42, 0.5);
  display: grid;
  place-items: center;
  padding: 14px;
}

.login-legal-card {
  width: min(820px, 100%);
  height: min(82vh, 760px);
  background: #fff;
  border: 1px solid #dbe4f8;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.24);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.login-legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.login-legal-head h2 {
  font-size: 18px;
  line-height: 1.2;
}

.login-legal-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.login-legal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.login-notice {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid;
  font-size: 14px;
  font-weight: 600;
}

.login-notice-error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.login-notice-success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.login-links-bar {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 3;
}

.login-lang-form {
  min-width: 140px;
}

.login-lang-select {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.76);
  color: #0f172a;
  padding: 8px 12px;
}

.login-lang-select option {
  color: #111827;
}

.login-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.login-legal-links a {
  font-size: 14px;
  color: #334155;
  font-weight: 600;
}

.login-legal-links a:hover {
  color: #1d4ed8;
}

.auth-main-card {
  min-height: 520px;
}

.auth-side-card {
  position: sticky;
  top: 96px;
}

.auth-steps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.auth-step {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  font-weight: 600;
}

.auth-step.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.otp-group {
  display: grid;
  gap: 8px;
}

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

.otp-cell {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}

.otp-cell:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(214, 15, 47, 0.14);
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.auth-grid,
.grid-2,
.grid-3 {
  display: grid;
  gap: 20px;
}

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

.grid-1 {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.auth-single {
  width: min(680px, 100%);
}

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

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

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

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

textarea {
  resize: vertical;
}

.inline-field {
  display: inline-grid;
  gap: 6px;
  align-items: center;
}

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

.page-title-block {
  display: grid;
  gap: 8px;
}

.page-title-block h1 {
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.1;
}

.admin-table-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.admin-filter-field {
  display: grid;
  gap: 6px;
  font-weight: 600;
  flex: 1 1 260px;
  min-width: 220px;
}

.admin-filter-sm {
  flex: 0 0 170px;
  min-width: 170px;
}

.table-count {
  margin-left: auto;
  align-self: end;
  padding-bottom: 4px;
}

.identity-stack {
  display: grid;
  gap: 2px;
}

.translation-toolbar-wide .admin-filter-field:first-child {
  min-width: min(360px, 100%);
}

.admin-access-row {
  margin-top: 10px;
}

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

.metric-card {
  display: grid;
  gap: 8px;
}

.metric-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}

.metric-value span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  margin-left: 4px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 12px;
}

.status-current {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-revoked {
  background: #fee2e2;
  color: #991b1b;
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

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

.data-table th {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.table-actions form {
  margin: 0;
}

.moderation-form {
  gap: 8px;
}

.moderation-form .btn {
  min-height: 40px;
}

.alert {
  margin-top: 12px;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
}

.alert-dismissible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.alert-close {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  padding: 0 4px;
}

.alert-error {
  background: #fff0f2;
  border-color: #fecdd3;
  color: #be123c;
}

.alert-success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.feature-list {
  margin-left: 16px;
  display: grid;
  gap: 8px;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  font-weight: 500;
}

.chip-active {
  background: #fff0f2;
  border-color: #fecdd3;
  color: #b10b25;
}

.chip input {
  width: auto;
}

.plain-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.doc-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.doc-content h1,
.doc-content h2,
.doc-content h3,
.doc-content p,
.doc-content ul,
.doc-content ol,
.doc-content pre {
  margin-bottom: 14px;
}

.inline-form {
  display: grid;
  gap: 8px;
}

.translation-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.translation-toolbar input[type="search"] {
  width: min(280px, 100%);
}

.lang-inline {
  min-width: 110px;
}

.lang-inline select {
  padding: 8px 10px;
}

.profile-form {
  gap: 16px;
}

.onboarding-note {
  border: 1px solid #bbf7d0;
  background: #ecfdf3;
  color: #166534;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 4px;
}

.avatar-editor {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  gap: 12px;
  align-content: start;
  width: 100%;
}

.avatar-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: -8px;
}

.avatar-preview-shell {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.avatar-preview-frame {
  padding: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(214, 15, 47, 0.18), rgba(17, 24, 39, 0.08));
}

.avatar-preview {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: var(--shadow-xs);
}

.avatar-preview-bg {
  position: absolute;
  inset: 0;
  background: var(--accent);
}

.avatar-preview img {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 22px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.4));
}

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

.avatar-controls .btn {
  min-height: 46px;
}

.profile-save-btn {
  width: 100%;
  min-height: 48px;
}

.danger-zone {
  margin-top: 8px;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.danger-zone h3 {
  color: #9f1239;
}

.delete-account-form {
  gap: 10px;
}

.btn-danger {
  border-color: #fda4af;
  color: #9f1239;
  background: #fff;
}

.support-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, #dbe4f8 0%, #cdd9ef 50%, #dbe4f8 100%);
  border-radius: 999px;
  margin: 4px 0 2px;
}

.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1800;
  background: rgba(15, 23, 42, 0.56);
  display: grid;
  place-items: center;
  padding: 20px;
}

.popup-card {
  width: min(760px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.popup-close {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-weight: 700;
}

.popup-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.popup-foot-end {
  justify-content: flex-end;
}

.bust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.bust-option {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 8px;
}

.bust-option.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(214, 15, 47, 0.15);
}

.bust-option-empty {
  min-height: 120px;
  place-content: center;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
  background: #f8fafc;
}

.bust-option-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
  overflow: hidden;
}

.bust-option-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bust-option-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.color-swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
}

.color-swatch.selected {
  box-shadow: 0 0 0 2px var(--accent);
}

.gradient-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: 10px;
}

.gradient-swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.gradient-swatch.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(214, 15, 47, 0.15);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  margin-top: 40px;
}

.site-footer-fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  margin-top: 0;
}

.footer-fixed-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 36px;
  height: auto;
}

.footer-brand p {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--muted);
  background: #f8fafc;
}

.footer-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-socials img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

body {
  padding-bottom: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 32px 0;
}

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

  .auth-side-card {
    position: static;
  }

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

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

@media (max-width: 860px) {
  body {
    padding-bottom: 0;
  }

  .site-footer-fixed {
    position: static;
  }

  .footer-fixed-inner {
    min-height: 0;
    padding: 10px 0;
  }

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

  .avatar-controls {
    grid-template-columns: 1fr;
  }

  .footer-brand p {
    font-size: 13px;
    letter-spacing: 0.04em;
  }

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

  .table-count {
    margin-left: 0;
    width: 100%;
    padding-bottom: 0;
  }

  .otp-grid {
    gap: 6px;
  }

  .otp-cell {
    padding: 10px 0;
    font-size: 20px;
  }

  .login-links-bar {
    left: 12px;
    right: 12px;
    bottom: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .login-lang-form {
    width: 100%;
  }

  .login-lang-select {
    width: 100%;
  }

  .login-legal-links {
    justify-content: flex-start;
    gap: 12px;
  }

  .login-title {
    font-size: 30px;
  }

  .login-subtitle {
    font-size: 15px;
  }

  .login-legal-card {
    height: min(88vh, 760px);
    border-radius: 14px;
  }
}

/* Own Studio brand refresh (global non-login pages) */
:root {
  --brand-navy: #0a1f63;
  --brand-blue: #1d4ed8;
  --brand-cyan: #22d3ee;
  --brand-red: #d60f2f;
}

body.brand-page {
  background:
    radial-gradient(circle at 8% 100%, rgba(148, 223, 248, 0.28), rgba(148, 223, 248, 0) 28%),
    radial-gradient(circle at 95% 0%, rgba(54, 99, 235, 0.12), rgba(54, 99, 235, 0) 35%),
    #f7f9ff;
}

body.brand-page .site-header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: #dbe4f8;
}

body.brand-page .logo-copy {
  display: inline-grid;
  line-height: 1.1;
}

body.brand-page .logo-main {
  font-size: 18px;
}

body.brand-page .logo-sub {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #4b5563;
}

body.brand-page .header-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dbe4f8;
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  background: #ffffff;
  max-width: 240px;
}

body.brand-page .header-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px #cbd5e1;
  flex: 0 0 auto;
}

body.brand-page .header-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.brand-page .header-user-meta {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

body.brand-page .header-user-meta strong {
  font-size: 13px;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.brand-page .header-user-meta small {
  font-size: 11px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.brand-page .nav-link {
  color: #334155;
}

body.brand-page .nav-link.active {
  color: #111827;
}

body.brand-page .btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

body.brand-page .btn:hover {
  transform: translateY(-1px);
}

body.brand-page .btn-accent {
  background: linear-gradient(90deg, var(--brand-red), #f43f5e);
  box-shadow: 0 8px 18px rgba(214, 15, 47, 0.28);
}

body.brand-page .btn-outline {
  border-color: #cbd5e1;
  background: #fff;
}

body.brand-page .btn-outline:hover {
  border-color: #94a3b8;
}

body.brand-page .hero {
  background:
    radial-gradient(circle at 85% 18%, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0) 36%),
    linear-gradient(180deg, #f4f7ff 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}

body.brand-page .hero h1 {
  color: #0f172a;
}

body.brand-page .hero-card {
  border-color: #d6e0f5;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.player-showcase {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.player-showcase-window {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 8px 6px 4px;
  background: linear-gradient(180deg, #f9fbff 0%, #f3f7ff 100%);
  border: 1px solid #dbe4f8;
}

.player-showcase-window::before,
.player-showcase-window::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 2;
}

.player-showcase-window::before {
  left: 0;
  background: linear-gradient(90deg, #f6f9ff 5%, rgba(246, 249, 255, 0));
}

.player-showcase-window::after {
  right: 0;
  background: linear-gradient(270deg, #f6f9ff 5%, rgba(246, 249, 255, 0));
}

.player-showcase-track {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: max-content;
  transition: transform 0.64s cubic-bezier(0.25, 0.9, 0.34, 1);
  will-change: transform;
}

.showcase-player {
  width: 102px;
  display: grid;
  justify-items: center;
  gap: 8px;
  opacity: 0.4;
  color: #64748b;
  transform: scale(0.88);
  filter: saturate(0.72);
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease, color 0.45s ease;
}

.showcase-player p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.showcase-player.is-active {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1);
  color: #0f172a;
}

.showcase-avatar {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px #dbe4f8, 0 8px 18px rgba(15, 23, 42, 0.16);
  background: #e2e8f0;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 4px;
}

.showcase-player.is-active .showcase-avatar {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35), 0 10px 22px rgba(37, 99, 235, 0.24);
}

.showcase-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 3px 4px rgba(15, 23, 42, 0.2));
}

.showcase-avatar-fallback {
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
}

.player-showcase-id {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.player-showcase-id-badge {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: #111827;
  border-radius: 8px;
  padding: 1px 8px;
}

.player-showcase-id-name {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: #111827;
}

.player-showcase-id-cursor {
  width: 3px;
  height: 24px;
  border-radius: 999px;
  background: #38bdf8;
  animation: id-cursor-blink 1.1s steps(1) infinite;
}

@keyframes id-cursor-blink {
  0%,
  48% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.2;
  }
}

.hero-country-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.country-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dbe4f8;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
}

.stats-strip {
  border: 1px solid #dbe4f8;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.stats-item {
  padding: 16px 18px;
  border-right: 1px solid #e2e8f0;
}

.stats-item:last-child {
  border-right: 0;
}

.stats-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.stats-value {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

body.brand-page .section-alt {
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5ff 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

body.brand-page .page-hero {
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid #dbe4f8;
  background: linear-gradient(150deg, #ffffff 0%, #f3f7ff 100%);
  box-shadow: var(--shadow-xs);
  margin-bottom: 8px;
}

body.brand-page .page-hero h1 {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
}

body.brand-page .page-hero-user {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dbe4f8;
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
}

body.brand-page .page-hero-avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #dbe4f8;
  flex: 0 0 auto;
}

body.brand-page .page-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.brand-page .card {
  border-color: #dbe4f8;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

body.brand-page .card:hover {
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

body.brand-page .metric-card {
  background: linear-gradient(140deg, #f8fbff 0%, #ffffff 75%);
  border-radius: 14px;
  border: 1px solid #dbeafe;
  padding: 12px;
}

body.brand-page .metric-label {
  color: #475569;
}

body.brand-page .metric-value {
  color: #0f172a;
}

body.brand-page input,
body.brand-page select,
body.brand-page textarea {
  border-color: #cdd9ef;
  background: #ffffff;
}

body.brand-page input:focus,
body.brand-page select:focus,
body.brand-page textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

body.brand-page .table-wrap {
  border-color: #dbe4f8;
}

body.brand-page .data-table th {
  background: #f8faff;
  color: #475569;
}

body.brand-page .data-table td code {
  background: #f1f5f9;
  border: 1px solid #dbe4f8;
  border-radius: 6px;
  padding: 2px 6px;
}

body.brand-page .chip {
  border-color: #dbe4f8;
  background: #ffffff;
}

body.brand-page .chip-active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

body.brand-page .admin-subnav {
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #dbe4f8;
  background: #ffffff;
}

body.brand-page .admin-subnav .chip {
  padding: 7px 14px;
  font-weight: 600;
}

body.brand-page .doc-content {
  border-color: #dbe4f8;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

body.brand-page .site-footer-fixed {
  border-top-color: rgba(214, 226, 248, 0.7);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

body.brand-page .footer-fixed-inner {
  min-height: 66px;
}

body.brand-page .footer-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

body.brand-page .footer-links a {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

body.brand-page .footer-links a:hover {
  color: var(--brand-blue);
}

body.brand-page .footer-socials a {
  background: #ffffff;
}

.page-error-card {
  width: min(760px, 100%);
  margin: 30px auto;
}

.legal-hero {
  display: grid;
  gap: 8px;
}

.legal-updated {
  font-size: 14px;
}

.legal-card {
  border-radius: 22px;
}

.legal-body {
  padding: clamp(18px, 2.8vw, 34px);
  gap: 22px;
}

.legal-section {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}

.legal-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.2;
}

.legal-section p,
.legal-section li {
  color: #334155;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

@media (max-width: 980px) {
  body.brand-page .logo-sub {
    display: none;
  }

  body.brand-page .header-user-meta {
    display: none;
  }

  body.brand-page .header-user {
    padding-right: 4px;
  }
}

@media (max-width: 860px) {
  body.brand-page .page-hero {
    padding: 16px;
  }

  body.brand-page .footer-fixed-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 0;
  }

  body.brand-page .footer-links {
    order: 2;
    width: auto;
    justify-content: flex-end;
    gap: 10px;
  }

  body.brand-page .footer-links a {
    font-size: 12px;
  }

  body.brand-page .footer-brand img {
    width: 28px;
  }

  body.brand-page .footer-brand p {
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  body.brand-page .footer-socials {
    gap: 8px;
  }

  body.brand-page .footer-socials a {
    width: 30px;
    height: 30px;
  }

  body.brand-page .footer-socials img {
    width: 15px;
    height: 15px;
  }

  .player-showcase-window::before,
  .player-showcase-window::after {
    width: 24px;
  }

  .showcase-player {
    width: 84px;
  }

  .showcase-avatar {
    width: 66px;
    height: 66px;
  }

  .showcase-player p {
    font-size: 12px;
  }

  .player-showcase-id-name {
    font-size: 24px;
  }

  .player-showcase-id-cursor {
    height: 20px;
  }

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

  .stats-item {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .stats-item:last-child {
    border-bottom: 0;
  }
}
