@font-face {
  font-family: "TildaSans";
  src: url("/members/assets/fonts/TildaSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TildaSans";
  src: url("/members/assets/fonts/TildaSans-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "TildaSans";
  src: url("/members/assets/fonts/TildaSans-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "TildaSans";
  src: url("/members/assets/fonts/TildaSans-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --vy-pink: #fa6f93;
  --vy-pink-dark: #e85f84;
  --vy-pink-soft: #fff0f4;
  --vy-canvas: #f7f4f4;
  --vy-panel: rgba(255, 255, 255, 0.9);
  --vy-text: #111111;
  --vy-muted: #716d73;
  --vy-line: rgba(17, 17, 17, 0.1);
  --vy-focus: 0 0 0 3px rgba(250, 111, 147, 0.2);
  --vy-shadow: 0 24px 64px -50px rgba(45, 34, 41, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background: #fbf6fa;
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--vy-text);
  background:
    radial-gradient(circle at 12% -8%, rgba(250, 111, 147, 0.24), transparent 37%),
    radial-gradient(circle at 88% -6%, rgba(190, 196, 255, 0.28), transparent 39%),
    linear-gradient(180deg, #fbf6fa 0, #ffffff 45%);
  background-attachment: fixed;
  background-color: #fbf6fa;
  background-size: 100% 100dvh;
  font-family: "TildaSans", Arial, sans-serif;
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--vy-pink-dark);
  text-underline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

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

:focus-visible {
  outline: none;
  box-shadow: var(--vy-focus);
}

.auth-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(28px, 5.6vh, 54px) 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
}

.auth-main {
  width: min(500px, 100%);
  margin: auto 0;
}

.auth-panel {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--vy-text);
  text-decoration: none;
}

.brand-mark {
  width: 76px;
  height: 76px;
  padding: 13px 20px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 38px rgba(95, 69, 85, 0.08);
  object-fit: contain;
}

.brand-word {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth-heading {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: center;
}

.auth-lead {
  max-width: 420px;
  margin: 11px auto 0;
  color: var(--vy-muted);
  font-size: 16px;
  line-height: 1.42;
  text-align: center;
}

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

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

.form-field label {
  color: #4f4b50;
  font-size: 14px;
  font-weight: 500;
}

.form-field input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid #dfdadd;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--vy-text);
  font-size: 16px;
  line-height: 1.25;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field input::placeholder {
  color: #aaa5aa;
  opacity: 1;
}

.form-field input[readonly] {
  background: rgba(247, 244, 244, 0.9);
  color: var(--vy-muted);
}

.form-field input:hover {
  border-color: #ccc4c8;
}

.form-field input:focus-visible {
  border-color: var(--vy-pink);
  background: #ffffff;
}

.field-hint {
  margin: 0;
  color: var(--vy-muted);
  font-size: 12px;
  line-height: 1.45;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button {
  margin-top: 4px;
  border: 1px solid var(--vy-pink);
  background: var(--vy-pink);
  color: #ffffff;
}

.primary-button:hover {
  border-color: var(--vy-pink-dark);
  background: var(--vy-pink-dark);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:disabled {
  border-color: #efc6d1;
  background: #efc6d1;
  cursor: not-allowed;
  transform: none;
}

.secondary-button {
  border: 1px solid rgba(250, 111, 147, 0.35);
  background: #ffffff;
  color: var(--vy-pink-dark);
}

.secondary-button:hover {
  border-color: var(--vy-pink);
  background: var(--vy-pink-soft);
}

.form-message {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgba(194, 65, 96, 0.18);
  border-radius: 13px;
  background: var(--vy-pink-soft);
  color: #98405a;
  font-size: 13px;
  line-height: 1.45;
}

.form-message[hidden] {
  display: none;
}

.form-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 22px;
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
}

.auth-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--vy-line);
  color: var(--vy-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* Authenticated cabinet storefront. Content is rendered server-side; no client script is required. */
.home-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--vy-canvas);
}

.member-app {
  display: grid;
  grid-template-columns: 96px 18px minmax(0, 1040px);
  width: min(1158px, calc(100% - 40px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 24px 0 48px;
}

.member-nav {
  position: sticky;
  z-index: 8;
  top: 24px;
  grid-column: 1;
  align-self: start;
  width: 92px;
  padding: 8px;
  border: 1px solid var(--vy-line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.15);
}

.member-nav__item {
  display: flex;
  width: 76px;
  height: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 23px;
  color: #b1afb3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease;
}

.member-nav__item:hover,
.member-nav__item.is-active {
  color: var(--vy-pink);
}

.member-nav__iconbox,
.member-nav__icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.member-nav__icon {
  stroke: none;
}

.member-main {
  grid-column: 3;
  min-width: 0;
}

.member-pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}

.member-pagehead h1 {
  margin: 0;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.member-pagehead > span {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 10px;
  border-radius: 17px;
  background: #ffffff;
  color: var(--vy-muted);
  font-size: 13px;
  font-weight: 700;
}

.member-feature {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 34px;
  background: #e5e0e1;
  box-shadow: var(--vy-shadow);
  isolation: isolate;
}

.member-feature__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-feature__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 12, 14, 0.74) 0%, rgba(15, 12, 14, 0.38) 52%, rgba(15, 12, 14, 0.06) 78%);
}

.member-feature__body {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(530px, 68%);
  min-height: 370px;
  padding: 42px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  color: #ffffff;
}

.member-feature__eyebrow,
.member-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 240, 244, 0.94);
  color: var(--vy-pink-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.member-feature h2 {
  margin: 14px 0 0;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.member-feature p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.member-button {
  display: inline-flex;
  min-width: 176px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 0 20px;
  border: 1px solid var(--vy-pink);
  border-radius: 15px;
  background: var(--vy-pink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.member-button:hover {
  border-color: var(--vy-pink-dark);
  background: var(--vy-pink-dark);
}

.member-button.is-compact {
  min-width: 126px;
  min-height: 42px;
  margin-top: 15px;
}

.member-button.is-muted {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.94);
  color: #4f4b50;
  cursor: default;
}

.member-section {
  margin-top: 28px;
}

.member-section > h2,
.member-section__head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

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

.member-section__head a {
  color: var(--vy-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.member-section__head a:hover {
  color: var(--vy-pink-dark);
}

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

.owned-grid.is-full {
  margin-top: 0;
}

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

.owned-card,
.catalog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--vy-line);
  border-radius: 24px;
  background: #ffffff;
  transition: border-color 160ms ease, transform 160ms ease;
}

.owned-card:hover,
.catalog-card:hover {
  border-color: rgba(250, 111, 147, 0.35);
  transform: translateY(-2px);
}

.owned-card__media,
.catalog-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee9ea;
}

.owned-card__image,
.catalog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.owned-card:hover .owned-card__image,
.catalog-card:hover .catalog-card__image {
  transform: scale(1.025);
}

.catalog-card__media .member-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

.owned-card__body,
.catalog-card__body {
  min-width: 0;
  padding: 18px;
}

.owned-card h2,
.catalog-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.owned-card .member-badge {
  margin-bottom: 10px;
}

.owned-card p {
  margin: 7px 0 0;
  color: var(--vy-muted);
  font-size: 14px;
}

.owned-card .member-button.is-muted,
.catalog-card .member-button {
  border-color: rgba(250, 111, 147, 0.34);
  background: #ffffff;
  color: var(--vy-pink-dark);
}

.member-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--vy-line);
  border-radius: 24px;
  background: #ffffff;
}

.member-profile__avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--vy-pink-soft);
  color: var(--vy-pink-dark);
  font-size: 24px;
  font-weight: 800;
}

.member-profile h2 {
  margin: 0;
  font-size: 20px;
}

.member-profile p {
  margin: 5px 0 0;
  color: var(--vy-muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.member-logout {
  margin: 14px 0 0;
}

.member-logout button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--vy-line);
  border-radius: 14px;
  background: #ffffff;
  color: #4f4b50;
  font-weight: 700;
  cursor: pointer;
}

.member-logout button:hover {
  border-color: rgba(250, 111, 147, 0.45);
  color: var(--vy-pink-dark);
}

.member-empty {
  padding: 34px;
  border: 1px solid var(--vy-line);
  border-radius: 24px;
  background: #ffffff;
  text-align: center;
}

.member-empty h2,
.member-empty p {
  margin: 0;
}

.member-empty p {
  margin-top: 7px;
  color: var(--vy-muted);
}

@media (max-width: 1023px) {
  .member-app {
    display: block;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px 24px calc(94px + env(safe-area-inset-bottom, 0px));
  }

  .member-nav {
    position: fixed;
    z-index: 30;
    inset: auto 0 0;
    display: grid;
    width: 100%;
    min-height: calc(60px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: repeat(4, 1fr);
    padding: 5px 0 env(safe-area-inset-bottom, 0px);
    border: 0;
    border-top: 1px solid var(--vy-line);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: none;
    backdrop-filter: blur(24px) saturate(1.3);
    transform: none;
  }

  .member-nav__item {
    width: 100%;
    height: 50px;
    border-radius: 0;
  }

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

@media (max-width: 767px) {
  body {
    background:
      radial-gradient(circle at 8% -4%, rgba(250, 111, 147, 0.24), transparent 42%),
      radial-gradient(circle at 94% 0, rgba(190, 196, 255, 0.28), transparent 43%),
      linear-gradient(180deg, #fbf6fa 0, #ffffff 46%);
    background-attachment: fixed;
    background-size: 100% 100dvh;
  }

  body.home-page {
    background: var(--vy-canvas);
  }

  .auth-shell {
    padding: max(22px, env(safe-area-inset-top, 0px)) 20px max(22px, env(safe-area-inset-bottom, 0px));
  }

  .brand {
    margin-bottom: 19px;
  }

  .brand-mark {
    width: 68px;
    height: 68px;
    padding: 12px 18px;
    border-radius: 22px;
  }

  .auth-heading {
    font-size: 30px;
  }

  .auth-lead {
    font-size: 16px;
  }

  .auth-form {
    margin-top: 24px;
  }

  .member-app {
    padding: 15px 15px calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .member-nav {
    min-height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-top: 4px;
  }

  .member-nav__item {
    height: 48px;
    font-size: 10px;
  }

  .member-pagehead {
    margin-bottom: 14px;
  }

  .member-pagehead h1 {
    font-size: 28px;
  }

  .member-feature {
    min-height: 390px;
    border-radius: 26px;
  }

  .member-feature__shade {
    background: linear-gradient(0deg, rgba(15, 12, 14, 0.78) 0%, rgba(15, 12, 14, 0.16) 72%);
  }

  .member-feature__body {
    width: 100%;
    min-height: 390px;
    padding: 24px;
  }

  .member-feature h2 {
    font-size: 34px;
  }

  .member-button {
    width: 100%;
  }

  .owned-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .member-section {
    margin-top: 24px;
  }

  .member-section > h2,
  .member-section__head h2 {
    font-size: 22px;
  }

  .owned-card,
  .catalog-card,
  .member-profile,
  .member-empty {
    border-radius: 21px;
  }
}

@media (max-width: 380px) {
  .auth-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .auth-heading {
    font-size: 28px;
  }

  .member-feature__body { padding: 20px; }
}

@media (max-height: 680px) {
  .auth-shell {
    padding-top: max(18px, env(safe-area-inset-top, 0px));
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
  }

  .brand {
    margin-bottom: 15px;
  }

  .brand-mark {
    width: 60px;
    height: 60px;
    padding: 11px 16px;
    border-radius: 20px;
  }

  .auth-heading {
    font-size: 28px;
  }

  .auth-lead {
    margin-top: 8px;
  }

  .auth-form {
    gap: 12px;
    margin-top: 20px;
  }

  .form-links {
    margin-top: 15px;
  }

  .auth-note {
    margin-top: 14px;
    padding-top: 12px;
  }
}

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