:root {
  color-scheme: light dark;
  --page: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --text: #151821;
  --muted: #747b8c;
  --faint: #eef0f5;
  --line: #e1e5ed;
  --blue: #1f63ff;
  --blue-dark: #154de0;
  --action-start: #1aa7b8;
  --action-mid: #2669f2;
  --action-end: #6246d9;
  --action-hover-start: #35c5d1;
  --action-hover-mid: #3a7cff;
  --action-hover-end: #7560ee;
  --danger: #d9363e;
  --danger-bg: #fff1f1;
  --danger-line: #f0b5b9;
  --placeholder-a: #f4f5f8;
  --placeholder-b: #e7e9ef;
  --placeholder-c: #fafbfc;
  --placeholder-icon: #c7ccd6;
  --unavailable-opacity: 0.58;
  --shadow: 0 18px 42px rgba(24, 30, 44, 0.1);
  --soft-shadow: 0 10px 24px rgba(24, 30, 44, 0.07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b0f17;
    --surface: #111723;
    --surface-soft: #161d2a;
    --text: #f4f7fb;
    --muted: #a7afbf;
    --faint: #1d2635;
    --line: #283244;
    --blue: #4f7dff;
    --blue-dark: #6b91ff;
    --action-start: #23b8c5;
    --action-mid: #4f7dff;
    --action-end: #8a6cff;
    --action-hover-start: #40d0dc;
    --action-hover-mid: #6b91ff;
    --action-hover-end: #9d82ff;
    --danger: #ff6b75;
    --danger-bg: #2a1519;
    --danger-line: #7a3038;
    --placeholder-a: #202838;
    --placeholder-b: #2a3446;
    --placeholder-c: #171e2b;
    --placeholder-icon: #4d586b;
    --unavailable-opacity: 0.5;
    --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    --soft-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --text: #151821;
  --muted: #747b8c;
  --faint: #eef0f5;
  --line: #e1e5ed;
  --blue: #1f63ff;
  --blue-dark: #154de0;
  --action-start: #1aa7b8;
  --action-mid: #2669f2;
  --action-end: #6246d9;
  --action-hover-start: #35c5d1;
  --action-hover-mid: #3a7cff;
  --action-hover-end: #7560ee;
  --danger: #d9363e;
  --danger-bg: #fff1f1;
  --danger-line: #f0b5b9;
  --placeholder-a: #f4f5f8;
  --placeholder-b: #e7e9ef;
  --placeholder-c: #fafbfc;
  --placeholder-icon: #c7ccd6;
  --unavailable-opacity: 0.58;
  --shadow: 0 18px 42px rgba(24, 30, 44, 0.1);
  --soft-shadow: 0 10px 24px rgba(24, 30, 44, 0.07);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b0f17;
  --surface: #111723;
  --surface-soft: #161d2a;
  --text: #f4f7fb;
  --muted: #a7afbf;
  --faint: #1d2635;
  --line: #283244;
  --blue: #4f7dff;
  --blue-dark: #6b91ff;
  --action-start: #23b8c5;
  --action-mid: #4f7dff;
  --action-end: #8a6cff;
  --action-hover-start: #40d0dc;
  --action-hover-mid: #6b91ff;
  --action-hover-end: #9d82ff;
  --danger: #ff6b75;
  --danger-bg: #2a1519;
  --danger-line: #7a3038;
  --placeholder-a: #202838;
  --placeholder-b: #2a3446;
  --placeholder-c: #171e2b;
  --placeholder-icon: #4d586b;
  --unavailable-opacity: 0.5;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 99, 255, 0.08), transparent 28rem),
    linear-gradient(180deg, var(--page) 0%, var(--surface-soft) 58%, var(--page) 100%);
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 250px minmax(260px, 520px) 1fr;
  align-items: center;
  gap: 32px;
  min-height: 96px;
  padding: 22px clamp(26px, 4vw, 64px);
  border-bottom: 1px solid rgba(225, 229, 237, 0.7);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand-logo {
  width: 202px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
  filter: saturate(1.05);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo {
    filter: brightness(1.7) contrast(1.12) saturate(1.18) drop-shadow(0 0 14px rgba(79, 125, 255, 0.34));
  }
}

:root[data-theme="dark"] .brand-logo {
  filter: brightness(1.7) contrast(1.12) saturate(1.18) drop-shadow(0 0 14px rgba(79, 125, 255, 0.34));
}

.global-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(24, 30, 44, 0.04);
}

.global-search svg {
  color: #576071;
  flex: 0 0 auto;
}

.global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.global-search input::placeholder {
  color: #7d8494;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.2vw, 38px);
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  color: var(--text);
  font-weight: 500;
}

.main-nav a[aria-current="page"] {
  color: var(--blue);
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 99px;
  background: var(--blue);
}

.nav-icon svg {
  width: 21px;
  height: 21px;
}

.settings-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.settings-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(31, 99, 255, 0.1);
}

.settings-button svg {
  width: 21px;
  height: 21px;
}

.settings-button[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  background: color-mix(in srgb, var(--blue) 14%, var(--surface));
}

.settings-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  width: 260px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(18px);
}

.settings-menu.is-open .settings-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.settings-field {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 0.9rem;
}

.settings-field span {
  color: var(--text);
  font-weight: 750;
}

.settings-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.home-shell,
.page-shell {
  width: min(1560px, calc(100% - 96px));
  margin: 0 auto;
}

.home-shell {
  padding: 28px 0 26px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 312px;
  overflow: hidden;
  border: 1px solid rgba(14, 22, 37, 0.09);
  border-radius: 17px;
  background: #111722;
  box-shadow: var(--shadow);
}

.feature-card img,
.feature-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.feature-card img {
  object-fit: cover;
}

.feature-shade {
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.86) 0%, rgba(3, 8, 18, 0.48) 47%, rgba(3, 8, 18, 0.08) 100%),
    linear-gradient(180deg, rgba(3, 8, 18, 0.1), rgba(3, 8, 18, 0.35));
}

.feature-copy {
  position: relative;
  z-index: 1;
  width: min(330px, calc(100% - 48px));
  padding: 45px 36px;
  color: #ffffff;
}

.feature-copy h1,
.feature-copy h2 {
  margin: 11px 0 14px;
  color: #ffffff;
  font-size: clamp(2rem, 2.9vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.feature-copy h2 {
  font-size: clamp(1.65rem, 2.2vw, 2.18rem);
}

.feature-copy p:not(.tag) {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.04rem;
  line-height: 1.38;
}

.tag {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #ffffff;
  font-size: 0.89rem;
  font-weight: 700;
}

.tag span,
.feature-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.feature-dots {
  position: absolute;
  left: 36px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
}

.feature-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.carousel-next {
  position: absolute;
  right: -28px;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  color: #303746;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(24, 30, 44, 0.2);
  cursor: pointer;
}

.home-section {
  margin-top: 31px;
}

.home-section h2,
.section-title h2,
.preview-panel h2,
.page-title h1 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.32rem;
  line-height: 1.1;
  letter-spacing: 0;
}

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

.category-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 6px 22px rgba(24, 30, 44, 0.04);
}

.category-card:hover {
  border-color: rgba(31, 99, 255, 0.32);
  box-shadow: var(--soft-shadow);
  transform: translateY(-1px);
}

.category-card svg {
  width: 36px;
  height: 36px;
  color: var(--blue);
}

.category-card span {
  display: grid;
  gap: 3px;
  color: var(--text);
  line-height: 1.24;
}

.category-card strong {
  color: var(--text);
  font-size: 0.98rem;
}

.home-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.85fr);
  gap: 48px;
  align-items: start;
  margin-top: 31px;
}

.section-title p {
  margin: -7px 0 18px;
  color: var(--muted);
}

.skeleton-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(138px, 1fr));
  gap: 14px;
}

.app-skeleton {
  min-height: 164px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  opacity: var(--unavailable-opacity);
}

.app-skeleton i,
.app-skeleton span,
.app-skeleton b,
.app-skeleton em,
.app-skeleton strong,
.line,
.thumb-row span,
.preview-gallery {
  display: block;
  border-radius: 8px;
  background: linear-gradient(100deg, var(--placeholder-a) 0%, var(--placeholder-b) 38%, var(--placeholder-c) 50%, var(--placeholder-b) 62%, var(--placeholder-a) 100%);
  background-size: 220% 100%;
  animation: unavailable-sweep 3.8s ease-in-out infinite;
}

.app-skeleton i {
  width: 62px;
  height: 62px;
  margin-bottom: 21px;
}

.app-skeleton span {
  width: 57px;
  height: 10px;
  margin-left: 76px;
  margin-top: -54px;
}

.app-skeleton b {
  width: 48px;
  height: 10px;
  margin-left: 76px;
  margin-top: 15px;
}

.app-skeleton em {
  width: 100%;
  height: 8px;
  margin-top: 45px;
}

.app-skeleton strong {
  width: 100%;
  height: 30px;
  margin-top: 22px;
}

.preview-panel {
  min-height: 246px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.product-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(220px, 0.84fr);
  gap: 22px;
}

.preview-gallery {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 154px;
  opacity: var(--unavailable-opacity);
}

.preview-gallery-real {
  display: block;
  min-height: 0;
  opacity: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.preview-gallery-real img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.preview-gallery button {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  transform: translateY(-50%);
}

.preview-gallery button:first-child {
  left: 14px;
}

.preview-gallery button:last-child {
  right: 14px;
}

.preview-gallery button svg {
  width: 15px;
  height: 15px;
}

.image-mark {
  width: 52px;
  height: 52px;
  color: var(--placeholder-icon);
}

.preview-info {
  padding-top: 2px;
}

.preview-info h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.line {
  height: 8px;
  margin-bottom: 14px;
}

.line.long {
  width: 58%;
}

.line.full {
  width: 100%;
}

.line.mid {
  width: 72%;
}

.preview-info dl {
  display: grid;
  gap: 8px;
  margin: 15px 0 17px;
  color: var(--muted);
  font-size: 0.86rem;
  opacity: 0.72;
}

.preview-info dl div {
  display: grid;
  grid-template-columns: 84px 1fr;
}

.preview-info dd {
  margin: 0;
}

.download-button,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.download-button,
.primary-button {
  width: 100%;
  border: 0;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--action-start), var(--action-mid) 52%, var(--action-end));
  box-shadow: 0 10px 22px rgba(38, 105, 242, 0.2);
}

.download-button:hover,
.primary-button:hover {
  background: linear-gradient(135deg, var(--action-hover-start), var(--action-hover-mid) 52%, var(--action-hover-end));
  box-shadow: 0 12px 24px rgba(38, 105, 242, 0.26);
  transform: translateY(-1px);
}

.download-button svg,
.primary-button svg {
  width: 18px;
  height: 18px;
}

.platform-downloads {
  display: grid;
  gap: 10px;
}

.platform-download-button {
  text-decoration: none;
}

.platform-logo {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}

.ghost-button:hover {
  border-color: color-mix(in srgb, var(--action-mid) 34%, var(--line));
  background: color-mix(in srgb, var(--action-mid) 8%, var(--surface));
}

.preview-open-link {
  width: fit-content;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 14px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.thumb-row span {
  height: 35px;
  opacity: var(--unavailable-opacity);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 24px clamp(26px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: #8b93a3;
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 58px);
}

.page-shell {
  padding: 38px 0 52px;
}

.page-title {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.page-title h1 {
  font-size: 2.2rem;
}

.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.shop-head,
.split-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 30px;
  align-items: start;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}

.filter {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.filter.is-active,
.filter:hover {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.app-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.35fr) minmax(300px, 1.2fr) minmax(180px, 0.75fr) auto;
  gap: 14px;
  align-items: stretch;
  margin: 18px 0 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 8px 28px rgba(24, 30, 44, 0.04);
}

.filter-group {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.filter-group h2 {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.2;
}

.segmented-control,
.check-filter-grid,
.select-filter-grid {
  display: grid;
  gap: 8px;
}

.segmented-control {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.segmented-control label,
.check-filter-grid label {
  position: relative;
  min-width: 0;
}

.segmented-control input,
.check-filter-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span,
.check-filter-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.segmented-control input:checked + span,
.check-filter-grid input:checked + span {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  color: var(--blue-dark);
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
}

.segmented-control input:focus-visible + span,
.check-filter-grid input:focus-visible + span {
  outline: 2px solid color-mix(in srgb, var(--blue) 68%, transparent);
  outline-offset: 2px;
}

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

.check-filter-grid.compact {
  grid-template-columns: repeat(2, minmax(70px, 1fr));
}

.check-filter-grid span {
  border-color: var(--line);
  background: var(--surface);
}

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

.select-filter-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.select-filter-grid select {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.filter-actions {
  display: grid;
  gap: 10px;
  align-content: end;
  min-width: 140px;
}

.filter-count {
  margin: 0;
  color: var(--muted);
  text-align: right;
  font-size: 0.9rem;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 240px));
  justify-content: start;
  gap: 14px;
}

.product-card,
.empty-state,
.summary-panel,
.auth-panel,
.product-empty {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(24, 30, 44, 0.04);
}

.product-card {
  overflow: hidden;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover,
.product-card:focus-visible,
.product-card.is-selected {
  border-color: color-mix(in srgb, var(--action-mid) 34%, var(--line));
  box-shadow: var(--soft-shadow);
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-1px);
}

.shop-shot {
  position: relative;
  overflow: hidden;
  background: var(--surface-soft);
}

.shop-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shop-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("assets/logofull.png") center / min(58%, 520px) auto no-repeat;
  opacity: 0.02;
  pointer-events: none;
}

.shop-shot::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    color-mix(in srgb, var(--surface) 84%, transparent)
    url("assets/logodot.png") center / 22px auto no-repeat;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  pointer-events: none;
}

.product-card-body {
  padding: 12px 13px 10px;
}

.product-card h2 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.38;
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.product-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--surface-soft);
}

.product-card a {
  display: block;
  margin: 0 13px 13px;
  padding: 9px 12px;
  border-radius: 7px;
  color: #ffffff;
  text-align: center;
  font-weight: 700;
  background: linear-gradient(135deg, var(--action-start), var(--action-mid) 54%, var(--action-end));
  box-shadow: 0 9px 18px rgba(38, 105, 242, 0.18);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card a:hover {
  background: linear-gradient(135deg, var(--action-hover-start), var(--action-hover-mid) 54%, var(--action-hover-end));
  box-shadow: 0 11px 22px rgba(38, 105, 242, 0.24);
  transform: translateY(-1px);
}

.empty-state,
.product-empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 34px;
  text-align: center;
  opacity: 0.82;
}

.empty-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 12px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 45%, var(--placeholder-b) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, var(--placeholder-b) 45% 55%, transparent 55%),
    var(--placeholder-a);
  background-size: 220% 100%;
  animation: unavailable-sweep 4.2s ease-in-out infinite;
}

@keyframes unavailable-sweep {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-skeleton i,
  .app-skeleton span,
  .app-skeleton b,
  .app-skeleton em,
  .app-skeleton strong,
  .line,
  .thumb-row span,
  .preview-gallery,
  .empty-icon {
    animation: none;
  }
}

.summary-panel,
.auth-panel {
  padding: 24px;
}

.summary-panel h2,
.auth-panel h2 {
  margin-top: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.auth-panel {
  display: grid;
  gap: 14px;
}

.auth-panel label,
.search-box,
.share-panel label,
.settings-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.auth-panel input,
.search-box input,
.share-panel select,
.settings-card input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--text);
  outline: none;
  background: var(--surface);
}

.auth-panel input:focus,
.search-box input:focus,
.share-panel select:focus,
.settings-card input:focus {
  border-color: var(--blue);
}

.account-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 30px;
  align-items: start;
}

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

.account-sidebar,
.account-content,
.settings-card,
.share-panel,
.profile-photo-card,
.account-warning,
.modal-card,
.library-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(24, 30, 44, 0.04);
}

.account-sidebar {
  position: sticky;
  top: 124px;
  display: grid;
  gap: 12px;
  padding: 22px;
}

.account-sidebar > strong {
  margin-bottom: 10px;
  text-align: center;
  font-size: 1.05rem;
}

.account-sidebar button:not(.ghost-button) {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.account-sidebar button:not(.ghost-button).is-active,
.account-sidebar button:not(.ghost-button):hover {
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
}

.account-content {
  min-height: 440px;
  padding: 26px;
}

.account-section-title {
  margin-bottom: 22px;
}

.account-section-title h1 {
  margin: 0 0 8px;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
  border-radius: 24px;
  color: var(--blue);
  font-size: 2rem;
  font-weight: 900;
  background: color-mix(in srgb, var(--blue) 10%, var(--surface-soft));
}

.account-avatar.large {
  width: 132px;
  height: 132px;
  border-radius: 32px;
  font-size: 3.3rem;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.library-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px;
}

.library-item h3 {
  margin: 0 0 5px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr);
  gap: 20px;
}

.profile-photo-card,
.share-panel,
.settings-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
}

.file-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.file-button input {
  display: none;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--blue-dark);
  line-height: 1.45;
}

.security-warning {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--danger-line);
  border-radius: 15px;
  color: var(--danger);
  background: var(--danger-bg);
}

.security-warning strong,
.security-alert {
  color: var(--danger);
  font-weight: 900;
}

.security-warning p,
.security-note {
  margin: 0;
  color: color-mix(in srgb, var(--danger) 78%, var(--text));
  line-height: 1.55;
}

.security-note {
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-soft);
}

.warning-link {
  justify-self: start;
  min-height: 38px;
  border: 1px solid var(--danger-line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--danger);
  font-weight: 800;
  background: color-mix(in srgb, var(--danger-bg) 74%, var(--surface));
  cursor: pointer;
}

.account-warning {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border-color: color-mix(in srgb, #f0a000 34%, var(--line));
  background: color-mix(in srgb, #f0a000 9%, var(--surface));
}

.account-warning p {
  margin: 4px 0 0;
  color: var(--muted);
}

.danger-zone {
  margin-top: 18px;
  border-color: color-mix(in srgb, #e5484d 34%, var(--line));
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  font-weight: 800;
  background: #d9363e;
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 18, 0.58);
  backdrop-filter: blur(10px);
}

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

.modal-card {
  width: min(520px, 100%);
  padding: 26px;
}

.modal-card h2 {
  margin-top: 0;
}

.security-modal ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.compact-empty {
  min-height: 230px;
}

.is-disabled {
  opacity: var(--unavailable-opacity);
  cursor: not-allowed;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.product-shot {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.product-shot img {
  aspect-ratio: 16 / 10;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meta-list dt {
  color: var(--muted);
}

.meta-list dd {
  margin: 0;
  font-weight: 800;
}

.compatibility-panel {
  width: 100%;
  margin: 18px 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
  text-align: left;
}

.compatibility-panel h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.compatibility-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.compatibility-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line));
  border-radius: 999px;
  color: var(--blue-dark);
  font-weight: 700;
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
}

.product-description,
.updates-panel,
.purchases-library {
  margin-top: 24px;
}

.purchases-library {
  grid-column: 1 / -1;
}

.product-description,
.updates-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.product-description h2,
.updates-panel h2,
.updates-panel h3 {
  margin-top: 0;
}

.current-version-box {
  margin: 12px 0 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

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

.version-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.version-item h3 {
  margin: 0 0 5px;
}

.version-item h3 span {
  color: var(--blue-dark);
  font-size: 0.85rem;
}

.download-unavailable,
.library-update {
  color: var(--muted);
  font-weight: 800;
}

.library-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.account-updates {
  margin: 0 0 18px;
}

@media (max-width: 1320px) {
  .site-header {
    grid-template-columns: 220px 1fr;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: center;
  }

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

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

  .filter-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .filter-count {
    text-align: left;
  }

  .home-lower {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 980px) {
  .home-shell,
  .page-shell {
    width: min(100% - 36px, 760px);
  }

  .feature-grid,
  .shop-head,
  .split-page,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 300px;
  }

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

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

  .app-filter-panel,
  .select-filter-grid {
    grid-template-columns: 1fr;
  }

  .product-preview {
    grid-template-columns: 1fr;
  }

  .account-auth,
  .account-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-inline: 18px;
  }

  .brand-logo {
    width: 170px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .home-shell,
  .page-shell {
    width: calc(100% - 28px);
  }

  .feature-copy {
    padding: 34px 24px;
  }

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

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

  .check-filter-grid,
  .check-filter-grid.compact,
  .segmented-control {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    grid-template-columns: 1fr;
  }

  .library-item,
  .version-item {
    display: grid;
    justify-items: start;
  }

  .library-actions {
    justify-items: start;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* Store v1: focused catalogue and refined product presentation */
.site-header {
  grid-template-columns: 210px minmax(240px, 460px) 1fr;
  min-height: 82px;
  padding-block: 15px;
}

.brand-logo {
  width: 178px;
  height: 42px;
}

.home-shell,
.page-shell {
  width: min(1240px, calc(100% - 64px));
}

.compact-page {
  padding-top: 46px;
  padding-bottom: 70px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.72fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 26px 70px rgba(12, 26, 60, 0.12);
}

.home-showcase-media {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: #05133b;
}

.home-showcase-media img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.home-showcase-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 58px);
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-identity h1,
.app-identity p {
  margin: 0;
}

.app-identity h1 {
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 1.02;
}

.app-identity p {
  margin-top: 7px;
  color: var(--muted);
  font-weight: 700;
}

.app-icon {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(15, 58, 145, 0.2);
}

.home-showcase-lead,
.product-lead {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.availability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.availability-row span,
.product-platforms span {
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
  border-radius: 999px;
  color: var(--blue-dark);
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  font-size: 0.82rem;
  font-weight: 800;
}

.showcase-button {
  width: fit-content;
  min-width: 190px;
  padding: 0 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 18px;
}

.section-heading h2,
.section-heading p {
  margin-top: 0;
}

.section-heading > p {
  max-width: 480px;
  margin-bottom: 3px;
  color: var(--muted);
  line-height: 1.5;
}

.category-grid-available {
  grid-template-columns: minmax(260px, 390px);
}

.home-catalog-section {
  margin-top: 48px;
}

.catalog-count {
  align-self: end;
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 800;
}

.product-grid,
.product-grid-catalog {
  grid-template-columns: repeat(auto-fill, minmax(310px, 390px));
  gap: 22px;
}

.home-product-grid {
  grid-template-columns: minmax(310px, 430px);
}

.product-card {
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(24, 30, 44, 0.07);
}

.product-card .shop-shot img {
  aspect-ratio: 16 / 10;
}

.product-card-body {
  padding: 17px 18px 12px;
}

.product-card-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.product-card-identity img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(15, 58, 145, 0.17);
}

.product-card-identity h2 {
  margin-bottom: 3px;
  font-size: 1.12rem;
}

.product-card-identity span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-card > a {
  margin: 2px 18px 18px;
  padding: 11px 14px;
}

.protected-media,
[data-protected-media] {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

[data-protected-media] {
  pointer-events: none;
}

.product-hero-refined {
  grid-template-columns: minmax(0, 1.38fr) minmax(330px, 0.72fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  padding-top: 48px;
}

.product-poster,
.product-screenshot {
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(12, 26, 60, 0.14);
}

.product-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-summary {
  min-width: 0;
}

.product-identity .app-icon {
  width: 104px;
  height: 104px;
  border-radius: 26px;
}

.product-identity h1 {
  font-size: clamp(2.25rem, 4vw, 4rem);
}

.product-platforms {
  margin: 24px 0 20px;
}

.platform-downloads {
  gap: 12px;
}

.platform-download-button {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  min-height: 68px;
  padding: 12px 18px;
  border-radius: 14px;
}

.platform-download-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-download-meta {
  margin-left: 29px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 650;
}

.install-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.product-gallery {
  margin-top: 64px;
}

.product-screenshot {
  padding: 16px;
  background: color-mix(in srgb, var(--surface-soft) 82%, var(--surface));
}

.product-screenshot img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  border-radius: 14px;
}

.product-information-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 64px;
}

.product-information-grid .product-description,
.product-information-grid .updates-panel {
  margin-top: 0;
  padding: 30px;
  border-radius: 18px;
}

.product-description p,
.updates-panel p {
  line-height: 1.65;
}

.version-item {
  padding: 13px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

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

  .home-shell,
  .page-shell {
    width: min(100% - 36px, 780px);
  }

  .home-showcase,
  .product-hero-refined,
  .product-information-grid {
    grid-template-columns: 1fr;
  }

  .home-showcase-media,
  .home-showcase-media img {
    min-height: 0;
  }

  .home-showcase-media img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .home-shell,
  .page-shell {
    width: calc(100% - 28px);
  }

  .home-showcase {
    border-radius: 18px;
  }

  .home-showcase-copy {
    padding: 28px 22px 30px;
  }

  .app-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
  }

  .product-identity .app-icon {
    width: 78px;
    height: 78px;
    border-radius: 20px;
  }

  .section-heading {
    display: block;
  }

  .product-grid,
  .home-product-grid,
  .product-grid-catalog,
  .category-grid-available {
    grid-template-columns: 1fr;
  }

  .product-screenshot {
    padding: 8px;
  }
}
