:root {
  --pink: #f64f93;
  --pink-deep: #d92d79;
  --pink-soft: #fff0f7;
  --yellow: #f7c948;
  --yellow-soft: #fff7d9;
  --black: #0c0b10;
  --ink: #1d1820;
  --muted: #756b76;
  --line: #eee6ec;
  --paper: #ffffff;
  --paper-soft: #fffafd;
  --shadow: 0 18px 42px rgba(12, 11, 16, 0.12);
  --soft-shadow: 0 10px 24px rgba(12, 11, 16, 0.08);
  --radius: 8px;
  --container: 1160px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  background: var(--paper);
}

body.member-body {
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--paper-soft) 0%, #ffffff 48%, var(--yellow-soft) 100%);
}

body.is-locked {
  overflow: hidden;
}

body.is-guarding .member-shell {
  visibility: hidden;
}

[hidden] {
  display: none !important;
}

main {
  position: relative;
  overflow: visible;
}

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

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

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

button {
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(247, 201, 72, 0.9);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 24px), var(--container));
  margin-inline: auto;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex: 0 0 auto;
}

.icon.sm {
  width: 16px;
  height: 16px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.solid,
.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 12px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-header:not(.solid):not(.is-scrolled):not(.is-open) .brand-logo {
  padding: 4px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
}

.brand-name {
  max-width: 150px;
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav-links,
.nav-cta {
  display: none;
}

.menu-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: currentColor;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
}

.site-header.solid .menu-toggle,
.site-header.is-scrolled .menu-toggle,
.site-header.is-open .menu-toggle {
  background: var(--paper);
  border-color: var(--line);
}

.site-header.is-open .nav-links {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  gap: 6px;
  padding: 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-links a {
  padding: 12px;
  color: currentColor;
  font-weight: 850;
  border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--pink-deep);
  background: var(--pink-soft);
}

.btn,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  gap: 6px;
  padding: 0 12px;
  font-size: 0.84rem;
  color: var(--black);
  font-weight: 900;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.nav-cta {
  display: none;
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.btn.primary,
.nav-cta {
  color: var(--black);
  background: linear-gradient(135deg, var(--pink) 0%, var(--yellow) 100%);
}

.btn.dark {
  color: #ffffff;
  background: var(--black);
}

.btn.pale {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn.outline {
  color: var(--black);
  background: var(--paper);
  border-color: var(--line);
}

.btn.full {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn[aria-busy="true"] {
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--yellow);
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  padding: 92px 0 48px;
  align-items: end;
  color: #ffffff;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(12, 11, 16, 0.22) 0%, rgba(12, 11, 16, 0.78) 100%),
    linear-gradient(90deg, rgba(12, 11, 16, 0.76) 0%, rgba(12, 11, 16, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

h1,
h2 {
  margin: 0;
  color: var(--black);
  font-family: var(--display);
  line-height: 1.02;
  overflow-wrap: break-word;
}

.hero h1 {
  color: #ffffff;
  font-size: 3.1rem;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.06rem;
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.section {
  position: relative;
  z-index: 1;
  min-height: 1px;
  padding: 64px 0;
  overflow: visible;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2,
.split-layout h2,
.image-panel h2,
.page-hero h1,
.auth-panel h1,
.portal-copy h1 {
  font-size: 2.35rem;
}

.section-heading p,
.split-layout p,
.image-panel p,
.page-hero p,
.auth-panel p,
.portal-copy p {
  color: var(--muted);
}

.soft-pink {
  background: linear-gradient(180deg, var(--pink-soft), #ffffff);
}

.warm-section {
  background: linear-gradient(180deg, var(--yellow-soft), #ffffff);
}

.intro-section {
  background: var(--paper);
}

.split-layout {
  display: grid;
  gap: 18px;
}

.split-layout > *,
.image-panel > *,
.portal-layout > *,
.dashboard-layout > *,
.payment-grid > * {
  min-width: 0;
}

.split-layout > p {
  margin: 0;
  font-size: 1.04rem;
}

.feature-grid,
.value-grid,
.steps {
  display: grid;
  gap: 14px;
}

.feature-card,
.value-grid article,
.steps article,
.portal-card,
.panel,
.summary-grid article,
.policy-section,
.policy-nav,
.auth-panel,
.receipt-card {
  min-width: 0;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.feature-card h3,
.value-grid h3,
.steps h3,
.portal-card strong,
.panel h2,
.policy-section h2 {
  margin: 0 0 8px;
  color: var(--black);
  line-height: 1.2;
}

.feature-card p,
.value-grid p,
.steps p,
.portal-card span,
.panel p,
.policy-section p,
.policy-section li {
  color: var(--muted);
}

.icon-badge {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--black);
  background: linear-gradient(135deg, var(--pink-soft), var(--yellow-soft));
  border: 1px solid rgba(246, 79, 147, 0.22);
  border-radius: var(--radius);
}

.image-panel {
  display: grid;
  gap: 24px;
}

.image-panel figure,
.gallery-strip img {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-panel figure img {
  width: 100%;
  height: min(76vw, 470px);
  object-fit: cover;
}

.image-panel p {
  font-size: 1.02rem;
}

.image-panel .btn {
  margin-top: 16px;
}

.black-band {
  color: #ffffff;
  background: var(--black);
}

.black-band h2 {
  color: #ffffff;
}

.black-band p {
  color: rgba(255, 255, 255, 0.76);
}

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

.promise-list article {
  display: grid;
  gap: 4px;
  padding: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.promise-list span {
  color: rgba(255, 255, 255, 0.76);
}

.steps article span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  place-items: center;
  color: var(--black);
  font-weight: 950;
  background: var(--yellow);
  border-radius: 999px;
}

.gallery-strip {
  display: grid;
  gap: 14px;
}

.gallery-strip img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.page-hero {
  padding: 112px 0 56px;
  background:
    linear-gradient(180deg, rgba(255, 240, 247, 0.94), #ffffff),
    url("../images/logo-card.jpg") right 12% bottom / 280px auto no-repeat;
}

.page-hero.policy-top {
  background: linear-gradient(180deg, var(--pink-soft), #ffffff);
}

.page-hero p {
  max-width: 780px;
  margin-top: 16px;
}

.policy-layout {
  display: grid;
  gap: 18px;
}

.policy-nav {
  display: grid;
  gap: 6px;
}

.policy-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 850;
  border-radius: var(--radius);
}

.policy-nav a:hover {
  color: var(--black);
  background: var(--pink-soft);
}

.policy-doc {
  display: grid;
  gap: 14px;
}

.policy-section ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.policy-section a,
.text-link,
.auth-switch a,
.policy-link {
  color: var(--pink-deep);
  font-weight: 900;
}

.site-footer {
  padding: 34px 0 20px;
  color: rgba(255, 255, 255, 0.74);
  background: var(--black);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-brand {
  color: #ffffff;
  font-weight: 950;
}

.footer-grid p {
  max-width: 360px;
}

.footer-grid h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 0.92rem;
}

.footer-grid a,
.footer-grid span,
.footer-grid p {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.74);
}

.footer-bottom,
.mini-footer,
.member-credit {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
}

.creator-credit {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.mini-footer {
  width: min(100% - 24px, var(--container));
  margin: 0 auto;
  padding: 18px 0 24px;
  color: var(--muted);
  border-color: var(--line);
}

.developer-credit {
  margin-top: 12px;
  padding-top: 10px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
}

.site-footer .developer-credit {
  color: rgba(255, 255, 255, 0.66);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-footer .developer-credit {
  grid-column: 1 / -1;
  width: 100%;
  color: rgba(29, 24, 32, 0.65);
  border-top: 1px solid rgba(29, 24, 32, 0.08);
}

.developer-credit a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 160ms ease, opacity 160ms ease;
}

.developer-credit a:hover,
.developer-credit a:focus-visible {
  color: inherit;
  opacity: 1;
  text-decoration: underline;
}

.site-footer .developer-credit a:hover,
.site-footer .developer-credit a:focus-visible {
  color: rgba(255, 255, 255, 0.84);
}

.mini-footer .developer-credit a:hover,
.mini-footer .developer-credit a:focus-visible {
  color: rgba(29, 24, 32, 0.84);
}

.portal-hero {
  min-height: 100svh;
  padding: 112px 0 64px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 247, 0.9)),
    url("../images/hero-packaging.jpg") center / cover;
}

.portal-layout {
  display: grid;
  gap: 24px;
}

.portal-copy p {
  max-width: 640px;
}

.portal-options {
  display: grid;
  gap: 14px;
}

.portal-card {
  display: grid;
  gap: 12px;
  color: inherit;
}

.portal-card.accent {
  border-color: rgba(246, 79, 147, 0.35);
}

.auth-page {
  min-height: 100svh;
  padding: 100px 0 44px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 250, 253, 0.95), rgba(255, 247, 217, 0.88)),
    url("../images/brand-bags.jpg") center / cover;
}

.auth-layout {
  display: grid;
}

.activation-layout {
  display: grid;
  gap: 18px;
}

.auth-panel {
  width: 100%;
  max-width: 560px;
}

.auth-panel.wide-panel {
  max-width: 100%;
}

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

.onboarding-panel .form-grid {
  margin-top: 0;
}

.onboarding-step {
  display: grid;
  gap: 16px;
  scroll-margin-top: 110px;
}

.onboarding-policy-document {
  display: grid;
  gap: 12px;
  line-height: 1.7;
}

.onboarding-policy-document h2,
.onboarding-policy-document h3,
.onboarding-policy-document p,
.onboarding-policy-document ul {
  margin: 0;
}

.onboarding-policy-document h2 { margin-top: 12px; }
.onboarding-policy-document h3 { margin-top: 10px; }
.onboarding-policy-document hr { width: 100%; border: 0; border-top: 1px solid var(--line); }

.legacy-full-policy {
  display: none !important;
}

.policy-step-subtitle {
  max-width: 760px;
  margin: -5px 0 4px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.onboarding-step[data-onboarding-step="2"] > h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.15rem);
  line-height: 1.02;
}

.policy-summary {
  display: grid;
  gap: 12px;
}

.policy-summary-card {
  min-width: 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(12, 11, 16, 0.045);
}

.policy-card-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
}

.policy-card-heading h2 {
  margin: 0;
  color: var(--black);
  font-size: 1.02rem;
  line-height: 1.25;
}

.policy-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--pink-deep);
  background: var(--pink-soft);
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 950;
}

.policy-summary-card p,
.policy-summary-card ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.policy-summary-card p + p {
  margin-top: 9px;
}

.policy-summary-card ul {
  display: grid;
  gap: 7px;
  padding-left: 19px;
}

.policy-summary-card strong {
  color: var(--black);
}

.policy-accent-card {
  background: linear-gradient(145deg, var(--yellow-soft), #ffffff 72%);
  border-color: rgba(247, 201, 72, 0.48);
}

.policy-deadline-card {
  background: linear-gradient(145deg, var(--pink-soft), #ffffff 76%);
  border-color: rgba(246, 79, 147, 0.34);
}

.policy-deadline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 10px !important;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
}

.policy-deadline strong {
  color: var(--pink-deep);
  font-size: 1rem;
}

.policy-warning-card {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(145deg, #2b1119, #120c10);
  border-color: #4b202d;
  box-shadow: 0 16px 34px rgba(50, 14, 25, 0.18);
}

.policy-warning-card::after {
  position: absolute;
  right: -12px;
  bottom: -70px;
  color: rgba(255, 255, 255, 0.035);
  content: "!";
  font-family: var(--display);
  font-size: 180px;
  font-weight: 900;
  line-height: 1;
}

.policy-warning-card .policy-card-heading,
.policy-warning-card ul,
.policy-warning-label {
  position: relative;
  z-index: 1;
}

.policy-warning-card .policy-card-heading h2,
.policy-warning-card strong {
  color: #ffffff;
}

.policy-warning-card ul {
  color: rgba(255, 255, 255, 0.76);
}

.policy-warning-card .policy-number {
  color: #ffffff;
  background: var(--pink-deep);
}

.policy-warning-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  color: #ffd1e3;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.policy-warning-label span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #281018;
  background: #ffd1e3;
  border-radius: 8px;
}

.policy-fraud-card {
  border-color: rgba(217, 45, 79, 0.3);
  box-shadow: inset 4px 0 0 #d92d4f, 0 10px 26px rgba(12, 11, 16, 0.045);
}

.complete-policy-callout {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fffafd;
  border: 1px dashed rgba(246, 79, 147, 0.45);
  border-radius: 14px;
}

.complete-policy-callout strong {
  display: block;
  margin-bottom: 5px;
  color: var(--black);
  font-size: 1rem;
}

.complete-policy-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.complete-policy-callout .btn {
  width: 100%;
  text-align: center;
}

.onboarding-step[data-onboarding-step="2"] .check-row {
  align-items: flex-start;
  padding: 16px;
  color: var(--black);
  background: #ffffff;
  border: 1px solid rgba(246, 79, 147, 0.32);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(12, 11, 16, 0.045);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.55;
}

.onboarding-step[data-onboarding-step="2"] .check-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  accent-color: var(--pink-deep);
}

.onboarding-step[data-onboarding-step="2"] [data-onboarding-next]:disabled {
  color: rgba(255, 255, 255, 0.8);
  background: #a99fa5;
  box-shadow: none;
  cursor: not-allowed;
}

@media (min-width: 760px) {
  .policy-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-warning-card,
  .policy-deadline-card {
    grid-column: 1 / -1;
  }

  .complete-policy-callout {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .complete-policy-callout .btn {
    width: auto;
  }
}

.onboarding-scroll-cue {
  position: sticky;
  bottom: 14px;
  z-index: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(20, 14, 17, .12);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  animation: scroll-cue-bob 1.8s ease-in-out infinite;
}

.onboarding-scroll-cue span:last-child { font-size: 1.15rem; }

@keyframes scroll-cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.onboarding-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.onboarding-steps span {
  width: 100%;
  height: 5px;
  background: var(--line);
  border-radius: 999px;
}

.onboarding-steps span.is-active {
  background: var(--pink);
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.split-actions .btn {
  flex: 1 1 160px;
}

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

.field label {
  color: var(--black);
  font-size: 0.92rem;
  font-weight: 900;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

textarea {
  width: 100%;
  min-height: 104px;
  padding: 12px 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  resize: vertical;
  outline: 0;
}

.input-shell input[type="number"] {
  appearance: textfield;
}

.password-toggle,
.forgot-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  color: var(--pink-deep);
  font-size: 0.82rem;
  font-weight: 950;
  background: transparent;
  border-radius: var(--radius);
  white-space: nowrap;
}

.password-toggle {
  padding: 0 2px;
  flex: 0 0 auto;
}

.forgot-link {
  justify-self: start;
  padding: 0;
}

.password-rules {
  display: none;
  gap: 6px;
  margin: 0;
  padding: 10px 12px;
  color: #b42318;
  list-style: none;
  background: #fff5f8;
  border: 1px solid #ffd5e5;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 850;
}

.password-rules.is-active {
  display: grid;
}

.password-rules li::before {
  content: "x";
  display: inline-grid;
  width: 16px;
  height: 16px;
  margin-right: 7px;
  place-items: center;
  color: #ffffff;
  background: #b42318;
  border-radius: 999px;
  font-size: 0.66rem;
}

.password-rules li.is-complete {
  color: #087443;
}

.password-rules li.is-complete::before {
  content: "";
  background: #087443;
}

.password-rules li.is-complete::after {
  content: "";
  position: absolute;
}

.password-match {
  margin: 0;
  color: #b42318;
  font-size: 0.84rem;
  font-weight: 900;
}

.password-match.is-complete {
  color: #087443;
}

.form-error {
  margin: 0;
  color: #b42318;
  font-size: 0.88rem;
  font-weight: 900;
}

.helper-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.payment-email-panel {
  margin-top: 14px;
}

.phone-edit-panel {
  display: none;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.phone-edit-panel.is-visible {
  display: grid;
}

.success-check {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 18px;
  color: #087443;
  background: #e8fff4;
  border: 1px solid #b8f3d5;
  border-radius: var(--radius);
  text-align: center;
}

.success-check[hidden] {
  display: none;
}

.success-check .icon {
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 50%;
  color: #fff;
  background: #15945b;
}

.success-check.is-celebrating .icon {
  animation: success-tick-in .7s cubic-bezier(.2, .9, .25, 1.2) both;
}

@keyframes success-tick-in {
  0% { opacity: 0; transform: scale(.55) rotate(-12deg); }
  65% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-scroll-cue,
  .success-check.is-celebrating .icon { animation: none; }
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.check-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--pink-deep);
  flex: 0 0 auto;
}

.auth-switch {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.secure-check {
  min-height: 1px;
}

.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(12, 11, 16, 0.7);
  backdrop-filter: blur(12px);
}

.policy-modal.is-visible {
  display: flex;
}

.policy-modal-card {
  width: min(100%, 520px);
  max-height: min(88svh, 680px);
  overflow: auto;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-logo {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  object-fit: contain;
}

.policy-modal-card h2 {
  font-size: 2.2rem;
}

.policy-modal-card p {
  color: var(--muted);
}

.modal-policy-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding-left: 20px;
  color: var(--muted);
}

.policy-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.policy-link {
  display: inline-flex;
  margin: 4px 0 16px;
}

.member-shell {
  min-height: 100svh;
}

.member-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: min(290px, 86vw);
  overflow-y: auto;
  padding: 18px 12px;
  color: rgba(255, 255, 255, 0.76);
  background: var(--black);
  box-shadow: var(--shadow);
  transform: translateX(-105%);
  transition: transform 180ms ease;
}

body.member-menu-open .member-sidebar { transform: translateX(0); }
.member-menu-button, .member-menu-close { display: grid; flex: 0 0 auto; width: 40px; height: 40px; place-items: center; color: var(--black); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.member-menu-button { gap: 3px; padding: 10px; }
.member-menu-button span { width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.member-menu-close { margin: 0 0 12px auto; color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); font-size: 26px; }

.sidebar-brand {
  color: #ffffff;
  margin-bottom: 18px;
}

.sidebar-brand .brand-logo {
  padding: 4px;
  background: #ffffff;
  border-radius: var(--radius);
}

.side-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 850;
  border-radius: var(--radius);
}

.side-nav a:hover,
.side-nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-note {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(246, 79, 147, 0.28), rgba(247, 201, 72, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.member-main {
  min-width: 0;
}

.member-topbar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  min-height: 74px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.member-topbar > div:not(.topbar-actions) {
  grid-column: 2;
  min-width: 0;
}

.member-topbar > .profile-chip,
.member-topbar > .topbar-actions {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  justify-self: start;
}

.member-topbar > .topbar-actions {
  width: auto;
  justify-content: flex-end;
}

.member-topbar h1 {
  margin: 0;
  font-size: clamp(1.8rem, 9vw, 2.35rem);
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
}

.member-topbar p:not(.eyebrow) {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.profile-chip {
  max-width: 100%;
}

.profile-chip b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--black);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
}

.icon-button span {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  background: var(--pink-deep);
  border: 2px solid #ffffff;
  border-radius: 999px;
}

.notification-shell {
  position: relative;
}

.notification-panel {
  position: fixed;
  top: 76px;
  right: 12px;
  left: 12px;
  z-index: 30;
  display: none;
  width: auto;
  padding: 16px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.notification-shell.is-open .notification-panel {
  display: grid;
  gap: 10px;
}

.notification-panel p,
.notification-panel div {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.member-notification-list {
  display: grid;
  gap: 8px;
  max-height: min(430px, 65svh);
  overflow: auto;
}

.member-notification {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--pink-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pink-deep);
  border-radius: 8px;
}

.member-notification.payment { border-left-color: var(--yellow); }
.member-notification.important { border-left-color: #d92d4f; }
.member-notification p { line-height: 1.45; }
.member-notification small { color: var(--muted); font-size: 0.75rem; }

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 999px;
}

.status-dot.success {
  background: #087443;
}

.status-dot.warning {
  background: var(--yellow);
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.profile-chip span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #ffffff;
  background: var(--pink-deep);
  border-radius: 999px;
}

.profile-chip b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-content {
  display: grid;
  gap: 16px;
  padding: 16px 12px 28px;
}

.summary-grid,
.dashboard-layout,
.payment-grid {
  display: grid;
  gap: 14px;
}

.summary-grid.expanded {
  grid-template-columns: 1fr;
}

.summary-grid article {
  display: grid;
  gap: 4px;
}

.summary-grid article.summary-wide {
  gap: 6px;
}

.summary-grid span,
.amount-card span,
.detail-list span,
.receipt-table span,
.record-list span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.summary-grid strong,
.amount-card strong {
  color: var(--black);
  font-size: 1.85rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

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

.panel-heading h2 {
  font-size: 1.15rem;
}

.panel-heading p {
  margin: 4px 0 0;
}

.panel-heading.compact {
  align-items: flex-start;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 950;
  background: var(--yellow-soft);
  border-radius: 999px;
}

.selected-list,
.record-list,
.detail-list,
.receipt-table {
  display: grid;
  gap: 10px;
}

.visible-list {
  margin: 0;
}

.selected-list article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.selected-list img {
  width: 72px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
}

.selected-list strong,
.selected-list span {
  display: block;
}

.selected-list span {
  color: var(--muted);
}

.progress-track {
  overflow: hidden;
  height: 10px;
  margin-bottom: 16px;
  background: var(--pink-soft);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
}

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

.day-cell {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.day-cell.paid {
  color: var(--black);
  background: var(--yellow);
}

.day-cell.unpaid {
  color: var(--muted);
  background: #f3f1f3;
}

.day-cell.future {
  color: #8a838c;
  background: #e8e5e8;
}

.day-cell.current {
  color: #ffffff;
  background: var(--pink-deep);
  border-color: var(--pink-deep);
}

.day-cell.calendar-extension {
  color: #777078;
  background: repeating-linear-gradient(135deg, #f7f4f6, #f7f4f6 5px, #ece8eb 5px, #ece8eb 10px);
  border-style: dashed;
}

.record-list article,
.receipt-table div,
.detail-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.record-list em {
  color: var(--black);
  font-style: normal;
  font-weight: 950;
}

.amount-card {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 18px;
  background: linear-gradient(135deg, var(--pink-soft), var(--yellow-soft));
  border-radius: var(--radius);
}

.receipt-card {
  max-width: 860px;
  margin-inline: auto;
}

.receipt-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.receipt-head p {
  margin: 0;
  color: var(--muted);
}

.receipt-head strong {
  color: var(--black);
  font-size: 1.2rem;
}

.receipt-status {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 18px;
  color: var(--black);
  background: linear-gradient(135deg, var(--yellow-soft), var(--pink-soft));
  border-radius: var(--radius);
}

.receipt-status span {
  font-weight: 950;
}

.receipt-status strong {
  font-size: 2.35rem;
  line-height: 1;
}

.receipt-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.otp-timer,
.payment-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.whatsapp-banner {
  position: sticky;
  top: 0;
  z-index: 24;
  display: grid;
  gap: 12px;
  padding: 12px;
  color: var(--black);
  background: linear-gradient(135deg, var(--pink-soft), var(--yellow-soft));
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform 240ms ease;
}

.banner-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--black);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 950;
}

.whatsapp-banner.is-visible {
  transform: translateY(0);
}

.whatsapp-banner strong,
.whatsapp-banner span {
  display: block;
}

.whatsapp-banner span {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hair-grid,
.hair-plan-list,
.payment-items,
.history-list {
  display: grid;
  gap: 14px;
}

.hair-card,
.hair-plan-card,
.payment-row,
.empty-state,
.history-item {
  min-width: 0;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hair-card,
.hair-plan-card {
  overflow: hidden;
}

.hair-card.selectable-hair {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hair-card.selectable-hair.is-selected {
  border-color: rgba(246, 79, 147, 0.55);
  box-shadow: var(--soft-shadow);
  transform: translateY(-2px);
}

.hair-card img,
.hair-plan-card > img,
.payment-row img {
  width: 100%;
  object-fit: cover;
}

.hair-card img {
  height: 190px;
}

.hair-plan-card > img {
  height: 180px;
}

.compact-hair-card,
.compact-owned-hair {
  display: grid;
}

.hair-gallery {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  background: #ffffff;
}

.hair-main-image {
  display: block;
  width: 100%;
  height: 148px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hair-main-image img,
.hair-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hair-thumbs button {
  height: 46px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: var(--radius);
}

.hair-thumbs button.is-active {
  border-color: var(--pink);
}

.hair-card-body {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.hair-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hair-card-head > div {
  min-width: 0;
}

.hair-card h3,
.hair-plan-card h3 {
  margin: 0;
  color: var(--black);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hair-card p,
.hair-plan-card p,
.empty-state p {
  margin: 0;
  color: var(--muted);
}

.hair-card-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hair-card-total strong {
  color: var(--black);
}

.hair-money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hair-money-grid div,
.hair-mini-stats span,
.payment-row-total {
  min-width: 0;
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hair-money-grid span,
.payment-row-total span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.hair-money-grid strong,
.payment-row-total em {
  display: block;
  color: var(--black);
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hair-action-row {
  display: grid;
  gap: 7px;
}

.hair-action-row > span {
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 950;
}

.hair-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hair-mini-stats span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.select-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--black);
  font-weight: 900;
  background: var(--yellow-soft);
  border-radius: 999px;
}

.select-pill input {
  width: 16px;
  height: 16px;
  accent-color: var(--pink);
}

.hair-meta,
.hair-stats {
  display: grid;
  gap: 8px;
}

.hair-meta span,
.hair-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 850;
}

.hair-stats strong {
  color: var(--black);
}

.quantity-control {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
}

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

.quantity-control button,
.quantity-control input {
  display: grid;
  width: 100%;
  height: 42px;
  place-items: center;
  color: var(--black);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 950;
}

/* Compact mobile-first hair price list */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hair-grid:has(.hair-compact-row) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.hair-compact-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 88px;
  padding: 9px 10px;
  overflow: visible;
  border-radius: 11px;
  background: #fff;
}

.hair-compact-row.selectable-hair.is-selected {
  transform: none;
}

.hair-compact-row .hair-gallery {
  position: relative;
  display: block;
  width: 68px;
  height: 68px;
  padding: 0;
  border-radius: 9px;
  background: transparent;
}

.hair-compact-row .hair-main-image {
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 9px;
  touch-action: pan-y;
}

.hair-compact-row .hair-main-image img {
  height: 68px;
  object-fit: cover;
}

.hair-compact-row .hair-thumbs {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 3px;
  pointer-events: auto;
}

.hair-compact-row .hair-thumbs button {
  width: 5px;
  height: 5px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.hair-compact-row .hair-thumbs button.is-active {
  background: var(--pink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.hair-compact-row .hair-thumbs img {
  display: none;
}

.compact-hair-copy {
  min-width: 0;
  overflow: hidden;
}

.compact-hair-copy h3,
.compact-hair-copy p {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-variant {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.compact-variant select {
  min-width: 0;
  max-width: 100%;
  padding: 1px 16px 1px 4px;
  overflow: hidden;
  color: var(--black);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-hair-copy h3 {
  font-size: 14px;
  line-height: 1.15;
}

.compact-hair-copy p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
}

.compact-hair-prices {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.compact-hair-prices strong {
  color: var(--black);
  font-size: 11px;
}

.compact-hair-prices span:last-child strong {
  color: var(--pink-dark, var(--pink));
  font-size: 12px;
}

.compact-hair-copy small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.72;
}

.compact-hair-actions {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 82px;
}

.compact-hair-actions .quantity-control {
  grid-template-columns: 28px 28px 28px;
  gap: 3px;
  max-width: none;
}

.compact-hair-actions .quantity-control button,
.compact-hair-actions .quantity-control input {
  width: 28px;
  height: 28px;
  min-height: 0;
  padding: 0;
  border-radius: 7px;
  font-size: 11px;
}

.compact-hair-actions .quantity-control button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.compact-select {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.compact-select input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--pink);
}

.compact-add {
  min-height: 0;
  padding: 2px 7px;
  color: #fff;
  background: var(--pink);
  border: 0;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}

.owned-hair-row { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%; min-height: 88px; padding: 9px 10px; color: var(--ink); text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.owned-hair-row > img { width: 68px; height: 68px; object-fit: cover; border-radius: 9px; }
.owned-hair-copy { display: grid; min-width: 0; gap: 3px; }
.owned-hair-copy strong, .owned-hair-copy small, .owned-hair-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owned-hair-copy strong { font-size: 14px; line-height: 1.2; }
.owned-hair-copy small { color: var(--muted); font-size: 11px; line-height: 1.25; }
.owned-hair-copy b { color: var(--pink-deep); font-size: 12px; line-height: 1.2; }
.owned-hair-progress { display: grid; gap: 2px; color: var(--black); font-size: 12px; font-weight: 950; text-align: center; }
.owned-hair-progress small { color: var(--muted); font-size: 9px; }

.detail-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; padding: 12px; background: rgba(12,11,16,.66); }
.detail-modal.is-open { display: flex; }
.detail-modal-panel { position: relative; width: min(680px, 100%); max-height: 90svh; overflow: auto; padding: 22px 16px 18px; background: #fff; border-radius: 16px 16px 12px 12px; box-shadow: var(--shadow); }
.detail-modal-close { position: sticky; top: 0; z-index: 2; display: grid; width: 36px; height: 36px; margin: 0 0 -36px auto; place-items: center; color: var(--black); background: var(--paper-soft); border: 1px solid var(--line); border-radius: 50%; font-size: 24px; }
.detail-modal-head h2 { margin: 0 44px 8px 0; font-size: 1.25rem; }
.detail-description { margin: 0 44px 14px 0; color: var(--muted); font-size: .85rem; }
.modal-calendar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 16px; }
.calendar-month { min-width: 0; }
.calendar-month h3 { margin: 0 0 6px; color: var(--muted); font-family: var(--font); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.calendar-month-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.history-only-layout { display: block; max-width: 760px; }
.history-item span { display: grid; min-width: 0; text-align: left; }
.history-item span small { color: var(--muted); font-size: 10px; font-weight: 700; }
.member-credit .creator-credit { color: var(--black); }
.account-detail-grid { display: grid; gap: 8px; margin-top: 14px; }
.account-detail-grid div { display: grid; gap: 3px; padding: 10px 12px; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 9px; }
.account-detail-grid span { color: var(--muted); font-size: 11px; }
.account-detail-grid strong { color: var(--black); font-size: 13px; overflow-wrap: anywhere; }
.profile-chip[role="button"] { cursor: pointer; }

@media (max-width: 520px) {
  .member-topbar p:not(.eyebrow) { display: none; }
  .member-topbar .eyebrow { margin-bottom: 4px; font-size: .72rem; }
  .member-topbar { gap: 8px; padding-inline: 10px; }
  .member-topbar h1 { font-size: clamp(1.15rem, 5vw, 1.4rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .member-topbar .eyebrow { display: none; }
  .member-topbar > .profile-chip { max-width: 138px; }
  .member-topbar > .topbar-actions { gap: 6px; }
  .member-topbar .profile-chip { max-width: 128px; padding-right: 8px; font-size: .75rem; }
  .member-topbar .profile-chip span { width: 30px; height: 30px; }
  .member-topbar .icon-button { width: 36px; height: 36px; }
  .member-content { gap: 12px; padding: 12px 10px 24px; }
  .panel { padding: 18px 16px; }
  .panel-heading { display: grid; gap: 10px; }
  .panel-heading .text-link { justify-self: start; }
  .panel-heading p { font-size: .88rem; line-height: 1.45; }
  .empty-state { padding: 16px; }
  .empty-state p { font-size: .9rem; line-height: 1.45; }
}

/* Member notifications: compact previews, clear unread state, and focused detail view. */
.notification-shell .icon-button > span{top:4px;right:3px;display:grid;min-width:18px;height:18px;padding:0 4px;place-items:center;color:#fff;background:var(--pink-deep);border:2px solid #fff;border-radius:999px;font-size:9px;font-weight:800;line-height:1}.notification-panel{padding:0;overflow:hidden}.notification-shell.is-open .notification-panel{gap:0}.notification-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 16px 12px}.notification-panel-head>div{display:grid;gap:2px}.notification-panel-head small{color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.notification-panel-head strong{font-size:18px}.notification-panel-head>span{padding:5px 8px;color:var(--pink-deep);background:var(--pink-soft);border-radius:999px;font-size:10px;font-weight:800}.notification-filters{display:flex;gap:5px;padding:0 16px 12px;border-bottom:1px solid var(--line)}.notification-filters button{padding:6px 10px;color:var(--muted);background:transparent;border:0;border-radius:999px;font-size:11px;font-weight:700}.notification-filters button.is-active{color:var(--pink-deep);background:var(--pink-soft)}.member-notification-list{gap:0;max-height:min(430px,62svh)}.member-notification{grid-template-columns:auto minmax(0,1fr) auto;gap:10px;width:100%;padding:13px 16px;text-align:left;background:#fff;border:0;border-bottom:1px solid var(--line);border-left:0;border-radius:0}.member-notification:last-child{border-bottom:0}.member-notification:hover{background:#fffafb}.member-notification.is-unread{background:linear-gradient(90deg,var(--pink-soft),#fff 58%)}.member-notification.is-read{opacity:.78}.notification-type-mark{display:grid;width:34px;height:34px;place-items:center;color:var(--pink-deep);background:var(--pink-soft);border-radius:10px;font-size:13px;font-weight:800}.member-notification.payment .notification-type-mark{color:#8a6500;background:#fff8d9}.member-notification.important .notification-type-mark{color:#b4233e;background:#fff0f3}.notification-preview{display:grid;min-width:0;gap:3px}.notification-preview>span{display:flex;align-items:center;gap:6px;min-width:0}.notification-preview strong{overflow:hidden;color:var(--ink);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.notification-preview i{width:7px;height:7px;flex:0 0 auto;background:var(--pink-deep);border-radius:50%}.notification-preview p{display:-webkit-box;overflow:hidden;color:var(--muted);font-size:11px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:1}.notification-preview small{color:#9a8f97;font-size:9px}.member-notification>b{align-self:center;color:#aaa0a7;font-size:20px;font-weight:400}.notification-empty{display:grid;justify-items:center;gap:5px;padding:34px 20px;text-align:center}.notification-empty>span{display:grid;width:42px;height:42px;margin-bottom:5px;place-items:center;color:var(--pink-deep);background:var(--pink-soft);border-radius:13px;font-weight:800}.notification-empty strong{color:var(--ink)}.notification-empty p{max-width:230px;line-height:1.45}.notification-detail-head{display:flex;align-items:center;gap:11px;padding:14px 16px;border-bottom:1px solid var(--line)}.notification-detail-head button{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;color:var(--ink);background:#faf7f9;border:1px solid var(--line);border-radius:10px}.notification-detail-head>div{display:grid;min-width:0}.notification-detail-head small{color:var(--pink-deep);font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.notification-detail-head strong{overflow:hidden;color:var(--ink);text-overflow:ellipsis;white-space:nowrap}.notification-detail{display:grid;gap:14px;padding:19px 18px 20px}.notification-detail-mark{display:grid;width:42px;height:42px;place-items:center;color:var(--pink-deep);background:var(--pink-soft);border-radius:13px;font-weight:800}.notification-detail.payment .notification-detail-mark{color:#8a6500;background:#fff8d9}.notification-detail.important .notification-detail-mark{color:#b4233e;background:#fff0f3}.notification-detail p{color:var(--ink);font-size:13px;line-height:1.65;white-space:pre-wrap}.notification-detail small{color:var(--muted);font-size:10px}
@media(min-width:800px){.notification-panel{width:min(430px,calc(100vw - 32px))}}

/* First-visit member guide. Saved locally per member; it never touches Firebase. */
.tour-replay{display:grid;width:36px;height:36px;flex:0 0 auto;place-items:center;color:var(--pink-deep);background:#fff;border:1px solid var(--line);border-radius:50%;box-shadow:0 7px 18px rgba(25,16,22,.07);font-weight:800}.tour-replay:hover{background:var(--pink-soft);border-color:#f4bdd4}.guided-tour{position:fixed;inset:0;z-index:10000;pointer-events:none}.guided-tour.is-leaving{opacity:0;transition:opacity .18s ease}.tour-spotlight{position:fixed;border:2px solid rgba(255,255,255,.95);border-radius:16px;box-shadow:0 0 0 9999px rgba(20,12,18,.7),0 0 0 6px rgba(237,61,135,.22);transition:all .28s cubic-bezier(.22,.8,.3,1);animation:tourPulse 2.2s ease-in-out infinite;pointer-events:none}.tour-card{position:fixed;display:grid;gap:15px;max-height:calc(100svh - 20px);padding:18px;overflow:auto;color:var(--ink);background:rgba(255,255,255,.98);border:1px solid rgba(255,255,255,.8);border-radius:20px;box-shadow:0 24px 70px rgba(15,8,13,.3);animation:tourCardIn .28s cubic-bezier(.2,.8,.3,1);pointer-events:auto;overscroll-behavior:contain}.tour-top,.tour-footer,.tour-actions{display:flex;align-items:center}.tour-top,.tour-footer{justify-content:space-between;gap:12px}.tour-character{position:relative;display:grid;width:47px;height:47px;flex:0 0 auto;place-items:center;color:#fff;background:linear-gradient(145deg,#f1609e,#bd1f63);border-radius:17px 17px 17px 6px;box-shadow:0 9px 20px rgba(190,31,100,.23);transform:rotate(-3deg)}.tour-character:before,.tour-character:after{content:"";position:absolute;top:18px;width:4px;height:5px;background:#fff;border-radius:50%}.tour-character:before{left:14px}.tour-character:after{right:14px}.tour-character i{position:absolute;left:18px;bottom:11px;width:11px;height:5px;border-bottom:2px solid #fff;border-radius:50%}.tour-character b{position:absolute;right:-7px;top:-8px;display:grid;width:23px;height:23px;place-items:center;color:#7c5900;background:#ffe382;border:3px solid #fff;border-radius:50%;font-size:10px;font-style:normal}.tour-skip{padding:6px 2px;color:var(--muted);background:transparent;border:0;font-size:10px;font-weight:700}.tour-skip:hover{color:var(--pink-deep)}.tour-copy{display:grid;gap:5px}.tour-copy small{color:var(--pink-deep);font-size:9px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.tour-copy h2{margin:0;font:700 23px/1.1 var(--font-display,Georgia,serif)}.tour-copy p{margin:2px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.tour-footer{padding-top:13px;border-top:1px solid var(--line)}.tour-progress{display:flex;gap:4px}.tour-progress i{display:block;width:6px;height:6px;background:#e8dfe4;border-radius:99px;transition:.2s ease}.tour-progress i.is-active{width:18px;background:var(--pink-deep)}.tour-progress i.is-done{background:#e7b13a}.tour-actions{gap:6px}.tour-actions button{min-height:37px;padding:0 12px;border-radius:10px;font-size:11px;font-weight:800}.tour-back{color:var(--muted);background:#fff;border:1px solid var(--line)}.tour-next{display:flex;align-items:center;gap:8px;color:#fff;background:linear-gradient(135deg,var(--pink-deep),#dd3b81);border:0;box-shadow:0 8px 16px rgba(190,31,100,.18)}.tour-next span{font-size:15px}.tour-is-open{overflow:hidden}.tour-card:after{content:"";position:absolute;left:calc(50% - 8px);bottom:-8px;width:16px;height:16px;background:#fff;transform:rotate(45deg)}.tour-card.points-up:after{top:-8px;bottom:auto}@keyframes tourCardIn{from{opacity:0;transform:translateY(8px) scale(.97)}}@keyframes tourPulse{50%{box-shadow:0 0 0 9999px rgba(20,12,18,.7),0 0 0 10px rgba(237,61,135,.1)}}
@media(max-width:520px){.tour-card{padding:16px;border-radius:18px}.tour-copy h2{font-size:21px}.tour-copy p{font-size:11.5px}.tour-replay{width:34px;height:34px}.member-topbar>.tour-replay{margin-left:auto}.member-topbar>.tour-replay+.profile-chip{margin-left:0}}
@media(prefers-reduced-motion:reduce){.tour-spotlight,.tour-card{animation:none!important;transition:none!important}}
.tour-copy h2{font-family:var(--display)}

/* My Hairs uses the same three-photo experience as Hair Collection. */
.hair-main-image img{transition:opacity .3s ease,transform .3s ease}.hair-main-image img.is-changing{opacity:.38;transform:scale(1.018)}.owned-hair-details{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:11px;min-width:0;width:100%;padding:0;color:var(--ink);text-align:left;background:transparent;border:0}.owned-hair-details:focus-visible{outline:2px solid var(--pink);outline-offset:5px;border-radius:8px}.owned-hair-row .hair-main-image{box-shadow:0 4px 13px rgba(25,16,22,.09)}.owned-hair-row .hair-main-image:focus-visible{outline:2px solid var(--pink);outline-offset:2px}.owned-hair-detail-gallery{margin:2px 0 16px;padding:8px;background:linear-gradient(145deg,#fff7fb,#fff);border:1px solid var(--line);border-radius:14px}.owned-hair-detail-gallery .hair-gallery{padding:0;background:transparent}.owned-hair-detail-gallery .hair-main-image{height:210px;border:0;border-radius:11px}.owned-hair-detail-gallery .hair-thumbs{grid-template-columns:repeat(3,54px);justify-content:center;margin-top:8px}.owned-hair-detail-gallery .hair-thumbs button{height:42px;border-radius:8px}.owned-hair-detail-gallery .hair-thumbs button.is-active{box-shadow:0 0 0 2px var(--pink-soft)}
@media(max-width:520px){.owned-hair-row{grid-template-columns:58px minmax(0,1fr)!important;gap:9px}.owned-hair-details{gap:7px}.owned-hair-copy strong{font-size:12px}.owned-hair-copy small{font-size:9px}.owned-hair-copy b{font-size:10px}.owned-hair-progress{font-size:10px}.owned-hair-detail-gallery .hair-main-image{height:185px}}

/* Keep member notifications spacious, readable, and fully interactive. */
.notification-panel{max-height:calc(100svh - 88px);overscroll-behavior:contain}
.notification-preview p{-webkit-line-clamp:3;font-size:11.5px;line-height:1.48}
.member-notification-list{min-height:0;max-height:min(560px,calc(100svh - 205px));overflow-y:auto}
.notification-detail{min-height:0;overflow-y:auto}
.notification-detail p{overflow-wrap:anywhere}
@media(max-width:799px){
  .notification-panel{top:68px;right:8px;bottom:8px;left:8px;width:auto;max-height:none;border-radius:16px}
  .notification-shell.is-open .notification-panel{grid-template-rows:auto auto minmax(0,1fr)}
  .notification-panel-head{padding:17px 17px 13px}
  .notification-filters{padding:0 17px 13px}
  .member-notification-list{max-height:none}
  .member-notification{padding:15px 17px}
  .notification-preview strong{font-size:13px}
  .notification-preview p{font-size:12px;-webkit-line-clamp:3}
  .notification-detail{align-content:start;overflow-y:auto;padding:20px 18px 24px}
}
@media(min-width:800px){.notification-panel{width:min(430px,calc(100vw - 32px))}}

@media (max-width: 350px) {
  .hair-compact-row {
    grid-template-columns: 58px minmax(0, 1fr) 78px;
    gap: 5px;
    padding-inline: 5px;
  }

  .hair-compact-row .hair-gallery,
  .hair-compact-row .hair-main-image,
  .hair-compact-row .hair-main-image img {
    width: 58px;
    height: 58px;
  }

  .compact-hair-prices {
    gap: 4px;
    font-size: 10px;
  }
}

.empty-state {
  padding: 20px;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--black);
  font-size: 1.1rem;
}

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

.compact-calendar .day-cell {
  min-width: 0;
  font-size: 0.62rem;
  border-radius: 4px;
}

.payment-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.payment-row.compact-payment-row {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.payment-row .hair-gallery {
  padding: 0;
  background: transparent;
}

.payment-row .hair-main-image {
  height: 118px;
}

.payment-row .hair-thumbs button {
  height: 36px;
}

.payment-row img {
  height: 60px;
  border-radius: var(--radius);
}

.payment-row .hair-main-image img,
.payment-row .hair-thumbs img {
  height: 100%;
  border-radius: inherit;
}

.payment-row strong,
.payment-row span,
.payment-row em {
  display: block;
}

.payment-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.payment-row label {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 950;
}

.payment-row input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.payment-row em {
  color: var(--black);
  font-style: normal;
  font-weight: 950;
}

.payment-copy {
  min-width: 0;
}

.payment-days {
  min-width: 0;
}

.payment-days .quantity-control {
  max-width: 190px;
}

.payment-row.compact-payment-row {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 10px;
  min-height: 78px;
  padding: 9px 10px;
  background: #fff;
  border-radius: 11px;
}


.compact-payment-row .payment-hair-thumb {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 9px;
}

.compact-payment-row .payment-copy {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
}

.compact-payment-row .payment-copy strong,
.compact-payment-row .payment-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-payment-row .payment-copy strong {
  font-size: 13px;
  line-height: 1.2;
}

.compact-payment-row .payment-copy span {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.2;
}

.compact-payment-row .payment-days {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 7px;
}

.compact-payment-row .payment-days > span {
  flex: 0 0 auto;
  font-size: 10px;
}

.compact-payment-row .payment-days .quantity-control {
  grid-template-columns: repeat(3, 28px);
  gap: 3px;
  max-width: none;
}

.compact-payment-row .quantity-control button,
.compact-payment-row .quantity-control input {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 7px;
  font-size: 11px;
}

.compact-payment-row .payment-row-total {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  min-width: 76px;
  padding: 7px 8px;
  text-align: right;
  background: var(--pink-soft);
}

.compact-payment-row .payment-row-total span {
  font-size: 9px;
  white-space: nowrap;
}

.compact-payment-row .payment-row-total em {
  margin-top: 2px;
  color: var(--pink-deep);
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 370px) {
  .payment-row.compact-payment-row { grid-template-columns: 50px minmax(0, 1fr); }
  .compact-payment-row .payment-hair-thumb { width: 50px; height: 50px; }
  .compact-payment-row .payment-row-total { grid-column: 2; grid-row: 2; justify-self: end; min-width: 0; padding: 4px 7px; }
  .compact-payment-row .payment-days { padding-right: 82px; }
  .compact-payment-row .payment-row-total span { display: none; }
}

.hair-lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 11, 16, 0.78);
}

.hair-lightbox[hidden] {
  display: none;
}

.hair-lightbox-panel {
  position: relative;
  display: grid;
  width: min(100%, 860px);
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hair-lightbox-panel img {
  width: 100%;
  max-height: 72svh;
  object-fit: contain;
  background: var(--paper-soft);
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--black);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
  font-weight: 950;
}

.lightbox-close {
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
}

.lightbox-nav {
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
}

.lightbox-nav.previous {
  left: 10px;
}

.lightbox-nav.next {
  right: 10px;
}

.lightbox-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.lightbox-caption strong {
  color: var(--black);
}

.support-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.support-strip strong {
  flex: 1 1 220px;
  color: var(--black);
}

.registration-checkout[hidden] {
  display: none;
}

.flow-list {
  display: grid;
  gap: 8px;
}

.flow-list span {
  padding: 12px;
  color: var(--black);
  font-weight: 950;
  background: linear-gradient(135deg, var(--pink-soft), var(--yellow-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.receipt-layout {
  display: grid;
  gap: 16px;
}

.receipt-grid {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.receipt-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.receipt-grid strong {
  color: var(--black);
  overflow-wrap: anywhere;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  text-align: left;
}

.history-item span {
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.history-item strong,
.history-item b {
  color: var(--black);
}

.history-item em {
  justify-self: start;
  padding: 4px 8px;
  color: var(--black);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 950;
  background: var(--yellow-soft);
  border-radius: 999px;
}

.history-item em.completed {
  color: #087443;
  background: #e8fff4;
}

.history-item em.failed {
  color: #b42318;
  background: #fff1f1;
}

.receipt-status.pending {
  background: linear-gradient(135deg, var(--yellow-soft), #ffffff);
}

.receipt-status.failed {
  background: linear-gradient(135deg, #fff1f1, #ffffff);
}

.member-credit {
  color: var(--muted);
  border-color: var(--line);
}

.member-developer-credit {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  padding-top: 7px;
  color: rgba(29, 24, 32, 0.58);
  border-top: 1px solid rgba(29, 24, 32, 0.06);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.member-developer-credit a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 2px;
}

.member-developer-credit a:hover,
.member-developer-credit a:focus-visible {
  color: rgba(29, 24, 32, 0.78);
  text-decoration: underline;
}

.toast-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 130;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: var(--black);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: toast-in 180ms ease both;
}

.toast.is-leaving {
  animation: toast-out 180ms ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (min-width: 680px) {
  .hero-actions,
  .receipt-actions,
  .policy-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .feature-grid,
  .value-grid,
  .steps,
  .summary-grid,
  .summary-grid.expanded,
  .hair-meta,
  .hair-stats,
  .receipt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hair-grid:has(.hair-compact-row) {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary-grid article.summary-wide {
    grid-column: 1 / -1;
  }

  .hair-plan-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .hair-plan-card > img {
    height: 100%;
  }

  .compact-owned-hair {
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .compact-owned-hair .hair-gallery {
    align-self: stretch;
  }

  .compact-owned-hair .hair-main-image {
    height: 150px;
  }

  .compact-owned-hair .hair-thumbs button {
    height: 40px;
  }

  .payment-row {
    grid-template-columns: 70px minmax(0, 1fr) 120px 110px;
  }

  .payment-row label,
  .payment-row em {
    grid-column: auto;
  }

  .payment-row.compact-payment-row {
    grid-template-columns: 54px minmax(220px, 1fr) auto;
    align-items: center;
  }

  .payment-row.compact-payment-row .payment-hair-thumb {
    grid-row: 1 / span 2;
  }

  .payment-row.compact-payment-row .payment-copy,
  .payment-row.compact-payment-row .payment-days {
    grid-column: 2;
  }

  .payment-row.compact-payment-row .payment-row-total {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

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

  .two-column {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .nav-shell {
    min-height: 76px;
  }

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

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

  .menu-toggle {
    display: none;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    max-width: none;
  }

  .hero {
    min-height: 86svh;
    padding-top: 108px;
    align-items: center;
  }

  .hero h1 {
    font-size: 5.45rem;
  }

  .section-heading h2,
  .split-layout h2,
  .image-panel h2,
  .page-hero h1,
  .auth-panel h1,
  .portal-copy h1 {
    font-size: 4.35rem;
  }

  .policy-modal-card h2 {
    font-size: 3.1rem;
  }

  .section {
    padding: 92px 0;
  }

  .split-layout,
  .image-panel,
  .portal-layout,
  .dashboard-layout,
  .payment-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .image-panel.reverse figure {
    order: 2;
  }

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

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

  .policy-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
  }

  .policy-nav {
    position: sticky;
    top: 96px;
  }

  .portal-options {
    grid-template-columns: 1fr 1fr;
  }

  .auth-layout {
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  }

  .member-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .member-sidebar {
    position: sticky;
    top: 0;
    height: 100svh;
    padding: 22px;
    width: auto;
    transform: none;
    box-shadow: none;
  }

  .member-menu-button, .member-menu-close { display: none; }
  .notification-panel { position: absolute; top: calc(100% + 10px); right: 0; left: auto; width: min(320px, calc(100vw - 24px)); }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .sidebar-note {
    margin-top: 28px;
  }

  .member-topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 0 28px;
  }

  .member-topbar > div:not(.topbar-actions),
  .member-topbar > .profile-chip,
  .member-topbar > .topbar-actions { grid-column: auto; width: auto; justify-self: auto; }

  .member-topbar h1 {
    font-size: 2.2rem;
  }

  .member-content {
    padding: 28px;
  }

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

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

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

  .hair-grid:has(.hair-compact-row) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .receipt-layout {
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
  }

  .whatsapp-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 12px 28px;
  }

  .summary-grid strong,
  .amount-card strong {
    font-size: 2.15rem;
  }

  .receipt-status strong {
    font-size: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.7fr 0.7fr;
  }

  .footer-bottom,
  .member-credit,
  .mini-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1120px) {
  .hero h1 {
    font-size: 5.9rem;
  }
}

@media print {
  .member-sidebar,
  .member-topbar,
  .receipt-actions,
  .member-credit,
  .toast-root {
    display: none;
  }

  .member-shell {
    display: block;
  }

  .member-content {
    padding: 0;
  }

  .receipt-card {
    box-shadow: none;
  }

  body > *:not(.detail-modal), .detail-modal-close, .detail-modal .receipt-actions { display: none !important; }
  .detail-modal, .detail-modal.is-open { position: static; display: block; padding: 0; background: #fff; }
  .detail-modal-panel { width: 100%; max-height: none; overflow: visible; padding: 0; box-shadow: none; }
}

/* Compact, calm controls and sheet-style dialogs. */
.btn,
.nav-cta {
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  padding-inline: 11px;
  border-radius: 11px;
  font-size: .8rem;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(12, 11, 16, .06);
}

.btn.full {
  width: fit-content;
  justify-self: start;
}

.split-actions .btn {
  flex: 0 0 auto;
}

.dashboard-actions,
.receipt-actions,
.policy-actions {
  align-items: center;
  justify-content: flex-start;
}

.input-shell {
  min-height: 44px;
  border-radius: 12px;
}

.policy-modal,
.detail-modal {
  align-items: center;
  padding: 18px;
  background: rgba(18, 18, 22, .44);
  backdrop-filter: blur(18px) saturate(120%);
}

.policy-modal-card,
.detail-modal-panel {
  width: min(560px, 100%);
  max-height: min(86svh, 720px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(12, 11, 16, .24), 0 2px 8px rgba(12, 11, 16, .08);
}

.detail-modal-close {
  width: 30px;
  height: 30px;
  margin-bottom: -30px;
  border-radius: 10px;
  font-size: 19px;
}

.toast-root {
  inset: 16px 16px auto;
  align-items: center;
  pointer-events: none;
}

.toast {
  width: fit-content;
  max-width: min(92vw, 420px);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(12, 11, 16, .18);
}

@media (max-width: 520px) {
  .policy-modal,
  .detail-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .policy-modal-card,
  .detail-modal-panel {
    width: 100%;
    max-height: 88svh;
    padding: 20px 16px 16px;
    border-radius: 24px;
  }

  .split-actions {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.member-sidebar {
  display: flex;
  flex-direction: column;
}

.member-identity-footer {
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.member-identity-footer span,
.member-identity-footer strong { display: block; }
.member-identity-footer span { margin-top: .5rem; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; opacity: .68; }
.member-identity-footer span:first-child { margin-top: 0; }
.member-identity-footer strong { margin-top: .15rem; overflow-wrap: anywhere; font-size: .82rem; line-height: 1.35; }

.contribution-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  color: #2f2510;
  background: linear-gradient(135deg, #fff8d9, #fff2c1);
  border: 1px solid #ead681;
  border-radius: 14px;
}
.contribution-notice div { display: grid; gap: 2px; }
.contribution-notice span,
.contribution-notice small { font-size: .76rem; }
.contribution-notice strong { font-size: .95rem; }
.contribution-notice b { flex: 0 0 auto; padding: 7px 10px; color: #fff; background: #1e1b17; border-radius: 999px; font-size: .75rem; }

.summary-registration-id {
  font-size: .74rem;
  line-height: 1.35;
  opacity: .72;
}
body.notifications-open .summary-registration-id { visibility: hidden; }
.summary-registration-id b {
  display: inline;
  font-size: inherit;
  overflow-wrap: anywhere;
}

.daily-todo { margin-top: 0; }
.todo-complete { display: flex; align-items: center; gap: 12px; }
.todo-complete > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: #fff; background: #15945b; border-radius: 50%; font-weight: 950; }
.todo-complete h2,
.todo-complete p { margin: 0; }

.detail-modal { overscroll-behavior: contain; }
.detail-modal-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - max(24px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom)));
  padding: 0;
  overflow: hidden;
}
.detail-modal-close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: 10px;
  z-index: 5;
  width: 38px;
  height: 38px;
  margin: 0;
  color: #111;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 5px 18px rgba(12, 11, 16, .16);
  border-radius: 50%;
}
.detail-modal [data-detail-modal-content] {
  min-height: 0;
  padding: 22px 58px 22px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 520px) {
  .contribution-notice { align-items: flex-start; }
  .contribution-notice b { white-space: nowrap; }
  .detail-modal { align-items: stretch; padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); }
  .detail-modal-panel { max-height: 100%; border-radius: 18px; }
  .detail-modal [data-detail-modal-content] { padding: 58px 16px 18px; }
  .detail-modal-close { top: 10px; right: 10px; }
}

/* Final responsive notification sizing lives here so later desktop rules cannot
   compress the member message experience. */
@media (max-width: 799px) {
  .notification-panel {
    position: fixed;
    top: 68px;
    right: 8px;
    bottom: auto;
    left: 8px;
    width: auto;
    height: calc(100svh - 76px);
    max-height: none;
  }
  .member-notification-list {
    align-content: start;
    grid-auto-rows: max-content;
  }
  .notification-panel .notification-preview p { display: -webkit-box; }
  .notification-panel .notification-detail p,
  .notification-panel .notification-empty p { display: block; }
}
@media (min-width: 800px) {
  .notification-panel {
    width: min(430px, calc(100vw - 32px));
    max-height: min(650px, calc(100svh - 100px));
  }
}

/* Notifications must always paint as an opaque layer above dashboard content. */
.notification-panel {
  z-index: 120;
  isolation: isolate;
  opacity: 1;
  background-color: #fff;
}

/* Complete shared Hair Contribution handbook. */
.legacy-policy-copy { display: none !important; }
.handbook-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; max-width: 760px; margin-top: 24px; }
.handbook-facts span { display: grid; gap: 3px; padding: 13px 15px; background: rgba(255,255,255,.72); border: 1px solid rgba(190,31,100,.12); border-radius: 12px; }
.handbook-facts small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.handbook-facts strong { color: var(--ink); font-size: 13px; }
.handbook-page-layout { display: grid; gap: 20px; }
.handbook-toc { align-self: start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(25,16,22,.05); }
.handbook-toc>strong { display: block; margin-bottom: 12px; font-family: var(--display); font-size: 21px; }
.handbook-toc nav { display: grid; gap: 4px; }
.handbook-toc a { padding: 8px 10px; color: var(--muted); border-radius: 8px; font-size: 11px; font-weight: 750; }
.handbook-toc a:hover { color: var(--pink-deep); background: var(--pink-soft); }
.policy-handbook { display: grid; gap: 14px; min-width: 0; }
.handbook-loading,.handbook-error { display: grid; justify-items: center; gap: 10px; padding: 38px 20px; color: var(--muted); text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.handbook-loading>span { width: 30px; height: 30px; border: 3px solid var(--pink-soft); border-top-color: var(--pink-deep); border-radius: 50%; animation: handbookSpin .8s linear infinite; }
@keyframes handbookSpin { to { transform: rotate(360deg); } }
.handbook-cover { display: grid; gap: 7px; padding: clamp(22px,5vw,42px); overflow: hidden; color: #fff; background: radial-gradient(circle at 90% 0,rgba(237,61,135,.34),transparent 33%),linear-gradient(145deg,#171116,#32232e); border-radius: 20px; box-shadow: 0 18px 48px rgba(25,16,22,.13); }
.handbook-cover p,.handbook-cover h2,.handbook-cover h3 { margin: 0; color: inherit; }
.handbook-cover h2 { max-width: 700px; font: 700 clamp(1.8rem,5vw,3rem)/1.03 var(--display); }
.handbook-cover h3 { margin-bottom: 10px; color: #f4ca62; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.handbook-cover p { color: #f1e9ee; font-size: 14px; font-weight: 650; line-height: 1.6; }
.handbook-cover .handbook-brand-line { color: #f09ac0; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.handbook-section { scroll-margin-top: 100px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 10px 30px rgba(25,16,22,.045); }
.handbook-section.is-critical { border-color: #f2b7c9; box-shadow: 0 12px 34px rgba(190,31,100,.08); }
.handbook-section-heading { display: flex; align-items: center; gap: 12px; padding: 17px 19px; background: linear-gradient(100deg,#fff7fb,#fff); border-bottom: 1px solid var(--line); }
.handbook-section.is-critical .handbook-section-heading { background: linear-gradient(100deg,#fff0f4,#fff9f1); }
.handbook-section-mark { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--pink-deep); border-radius: 11px; font-size: 9px; font-weight: 900; }
.handbook-section-heading h2 { margin: 0; color: var(--ink); font: 700 19px/1.1 var(--display); }
.handbook-section-body { display: grid; gap: 11px; padding: 18px; }
.handbook-section-body>p,.handbook-rule p { margin: 0; color: #29232a; font-size: 14px; font-weight: 600; line-height: 1.72; }
.handbook-subheading { margin: 2px 0 3px; color: var(--pink-deep); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.handbook-rule { position: relative; display: grid; gap: 8px; padding: 16px 16px 16px 52px; background: #fcfafb; border: 1px solid #eee6eb; border-radius: 13px; }
.handbook-rule-number { position: absolute; top: 14px; left: 14px; display: grid; width: 27px; height: 27px; place-items: center; color: var(--pink-deep); background: var(--pink-soft); border-radius: 8px; font-size: 9px; font-weight: 950; }
.handbook-rule h3 { margin: 1px 0 0; color: #171217; font-size: 15px; font-weight: 850; line-height: 1.4; }
.handbook-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.handbook-list li { position: relative; padding-left: 18px; color: #29232a; font-size: 14px; font-weight: 600; line-height: 1.62; }
.handbook-list li:before { content: ""; position: absolute; top: .58em; left: 1px; width: 6px; height: 6px; background: var(--pink-deep); border-radius: 50%; }
.policy-handbook-onboarding { margin-top: 14px; }
.policy-handbook-onboarding .handbook-cover { padding: 24px 20px; }
.onboarding-page .policy-handbook-onboarding .handbook-cover p:not(.eyebrow) { color: #f1e9ee; }
.handbook-progress { position: sticky; top: 7px; z-index: 8; height: 4px; margin: 13px 0 -5px; overflow: hidden; background: #efe7eb; border-radius: 99px; }
.handbook-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,var(--pink-deep),#efba3f); transition: width .2s ease; }
.handbook-see-more { position: sticky; bottom: 10px; z-index: 9; display: flex; width: min(100%,420px); min-height: 58px; margin: 14px auto; padding: 9px 10px 9px 16px; align-items: center; justify-content: space-between; color: #fff; text-align: left; background: rgba(28,18,25,.95); border: 1px solid rgba(255,255,255,.12); border-radius: 15px; box-shadow: 0 14px 34px rgba(25,16,22,.22); backdrop-filter: blur(12px); }
.handbook-see-more span { display: grid; gap: 1px; }
.handbook-see-more small { color: #cbbfc7; font-size: 9px; }
.handbook-see-more strong { font-size: 13px; }
.handbook-see-more b { display: grid; width: 38px; height: 38px; place-items: center; color: var(--ink); background: linear-gradient(135deg,#ffc3dc,#f0c552); border-radius: 11px; font-size: 18px; }
@media(min-width:900px){.handbook-page-layout{grid-template-columns:230px minmax(0,1fr)}.handbook-toc{position:sticky;top:92px}.policy-handbook-page .handbook-section-body{padding:22px}.policy-handbook-page .handbook-rule{padding:18px 18px 18px 58px}}
@media(max-width:600px){.handbook-facts{grid-template-columns:1fr}.handbook-section-heading{padding:14px}.handbook-section-body{padding:14px}.handbook-rule{padding:15px 14px 15px 47px}.handbook-rule-number{left:11px}.handbook-cover h2{font-size:1.75rem}.handbook-section-body>p,.handbook-rule p,.handbook-list li{font-size:13.5px}.handbook-see-more{bottom:max(8px,env(safe-area-inset-bottom))}}

/* Strong, readable account-creation typography across every onboarding step. */
.onboarding-step :where(p,li,label),.activation-page .auth-panel :where(p,li,label),.auth-page .auth-copy :where(p,li),.onboarding-panel .form-helper { color:#171217; font-size:14px; font-weight:700; line-height:1.72; }
.onboarding-page .onboarding-step p:not(.eyebrow),.onboarding-page .onboarding-step li,.onboarding-page .onboarding-step label{color:#171217}.policy-handbook .handbook-section-body>p,.policy-handbook .handbook-rule p,.policy-handbook .handbook-list li{color:#171217;font-weight:700}
.onboarding-step :where(input,select,textarea),.activation-page :where(input,select,textarea){color:#111;font-weight:650}.onboarding-step :where(.muted,.helper-note,small),.activation-page :where(.muted,.helper-note,small){color:#3f373d;font-weight:650}
.onboarding-step h1,.activation-page .auth-panel h1 { color:#151116; font-weight:800; }
.payment-fee-breakdown{display:grid;gap:8px;margin:14px 0;padding:14px;background:#fffafc;border:1px solid #f1dce5;border-radius:13px}.payment-fee-breakdown>div{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px}.payment-fee-breakdown strong{color:var(--ink);font-size:12px}.payment-fee-breakdown .payment-fee-total{padding-top:9px;border-top:1px solid var(--line)}.payment-fee-breakdown .payment-fee-total strong{color:var(--pink-deep);font-size:16px}.payment-fee-breakdown>small{color:#8b7c85;font-size:9px;font-weight:800;text-transform:uppercase}.payment-fee-breakdown>p{margin:0;color:#51464d;font-size:10.5px;line-height:1.55}.profile-edit-note{display:grid;gap:12px;margin-top:14px;padding:14px;background:linear-gradient(135deg,#fff5f9,#fffaf0);border:1px solid #f0d9e3;border-radius:13px}.profile-edit-note p{margin:4px 0 0;color:#51464d;font-size:11px;line-height:1.55}.profile-edit-note .btn{justify-self:start}
.hair-main-image video,
.hair-thumbs video,
.lightbox-media video,
.lightbox-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lightbox-media {
  width: 100%;
  height: min(72vh, 720px);
  min-height: 280px;
  background: #090909;
}

.lightbox-media video {
  object-fit: contain;
}
.cac-trust-section{padding-top:0}
.cac-trust-card{display:grid;grid-template-columns:minmax(150px,240px) minmax(0,1fr);align-items:center;gap:clamp(18px,4vw,42px);padding:clamp(16px,3vw,28px);overflow:hidden;background:linear-gradient(145deg,#fff,#fbfff9);border:1px solid rgba(55,139,86,.2);border-radius:20px;box-shadow:0 18px 48px rgba(24,65,39,.08)}
.cac-certificate-preview{position:relative;display:block;width:100%;padding:8px;overflow:hidden;background:#fff;border:1px solid rgba(55,139,86,.2);border-radius:14px;box-shadow:0 10px 26px rgba(25,75,43,.1)}
.cac-certificate-preview img{width:100%;max-height:255px;object-fit:cover;object-position:top;border-radius:8px;transition:transform .28s ease}
.cac-certificate-preview>span{position:absolute;right:14px;bottom:14px;padding:5px 9px;color:#fff;background:rgba(18,48,28,.82);border-radius:999px;font-size:10px;font-weight:800;backdrop-filter:blur(8px)}
.cac-certificate-preview:hover img{transform:scale(1.018)}
.cac-trust-copy{min-width:0}
.cac-trust-copy h2{margin:3px 0 10px;color:var(--black)}
.cac-trust-copy>p:not(.eyebrow){max-width:660px;color:var(--muted)}
.cac-view-link{display:inline-flex;align-items:center;gap:7px;margin-top:4px;padding:9px 12px;color:#23683d;background:rgba(75,167,105,.09);border:1px solid rgba(55,139,86,.18);border-radius:10px;font-size:12px;font-weight:850}
.cac-view-link:hover{color:#174d2c;background:rgba(75,167,105,.14)}
.cac-trust-compact{grid-template-columns:96px minmax(0,1fr);gap:14px;margin-top:20px;padding:12px;border-radius:14px;box-shadow:none}
.cac-trust-compact .cac-certificate-preview{padding:5px;border-radius:10px}
.cac-trust-compact .cac-certificate-preview img{height:124px}
.cac-trust-compact .cac-certificate-preview>span{right:8px;bottom:8px;padding:3px 6px;font-size:8px}
.cac-trust-compact .cac-trust-copy h2{font-size:18px}
.cac-trust-compact .cac-trust-copy p{margin:4px 0 8px;font-size:12px}
.cac-trust-compact .cac-view-link{margin:0;padding:7px 9px;font-size:10px}
.cac-lightbox{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:16px;background:rgba(9,17,12,.78);backdrop-filter:blur(12px)}
.cac-lightbox[hidden]{display:none}
.cac-lightbox-panel{display:grid;width:min(100%,780px);max-height:calc(100svh - 32px);overflow:hidden;background:#fff;border:1px solid rgba(255,255,255,.7);border-radius:18px;box-shadow:0 28px 90px rgba(0,0,0,.32)}
.cac-lightbox-panel header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border-bottom:1px solid var(--line)}
.cac-lightbox-panel header>div{display:grid}
.cac-lightbox-panel header small{color:#35704b;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.cac-lightbox-panel header strong{color:var(--black);font-size:14px}
.cac-lightbox-panel header button{display:grid;width:36px;height:36px;flex:0 0 auto;place-items:center;color:var(--black);background:#f7f8f6;border:1px solid var(--line);border-radius:50%;font-size:22px}
.cac-lightbox-image{min-height:0;padding:12px;overflow:auto;background:#eef4ef;overscroll-behavior:contain}
.cac-lightbox-image img{width:auto;max-width:100%;max-height:calc(100svh - 150px);margin:auto;object-fit:contain;box-shadow:0 8px 30px rgba(18,48,28,.12)}
.cac-lightbox-panel>p{margin:0;padding:9px 15px 11px;color:var(--muted);font-size:10px;font-weight:750;text-align:center}
@media(max-width:620px){
  .cac-trust-card:not(.cac-trust-compact){grid-template-columns:106px minmax(0,1fr);gap:13px;padding:13px;border-radius:15px}
  .cac-trust-card:not(.cac-trust-compact) .cac-certificate-preview img{height:146px}
  .cac-trust-card:not(.cac-trust-compact) .cac-trust-copy h2{font-size:19px}
  .cac-trust-card:not(.cac-trust-compact) .cac-trust-copy>p:not(.eyebrow){display:-webkit-box;overflow:hidden;font-size:11px;-webkit-box-orient:vertical;-webkit-line-clamp:3}
  .cac-trust-compact{grid-template-columns:84px minmax(0,1fr)}
  .cac-trust-compact .cac-certificate-preview img{height:110px}
  .cac-lightbox{padding:8px}
  .cac-lightbox-panel{max-height:calc(100svh - 16px);border-radius:14px}
  .cac-lightbox-image{padding:7px}
  .cac-lightbox-image img{max-height:calc(100svh - 132px)}
}
