/* Blasphemy — private client design system (loads after style.css) */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@500;600;700;800&display=swap");

html.private-client {
  --pc-bg: #060606;
  --pc-bg-elev: #0c0c0c;
  --pc-line: rgba(255, 255, 255, 0.08);
  --pc-text: #ececec;
  --pc-muted: #7a7a7a;
  --pc-dim: #4e4e4e;
  --pc-bone: #f2efe8;
  --pc-font: "DM Sans", "Segoe UI", sans-serif;
  --pc-display: "Syne", "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.private-client,
html.private-client body {
  background:
    radial-gradient(ellipse 120% 70% at 50% -20%, rgba(255, 255, 255, 0.045), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(90, 70, 55, 0.08), transparent 50%),
    var(--pc-bg);
  color: var(--pc-text);
  font-family: var(--pc-font);
}

/* ——— Access / gate ——— */
.access-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.access-page .gate-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.access-page .gate-video {
  filter: none;
  transition: opacity 0.9s ease;
}

.access-page .gate-video:not(.is-active) {
  visibility: hidden;
  will-change: auto;
}

.access-page .gate-video.is-active {
  will-change: opacity;
}

.access-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 80% at 50% 45%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(118deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.86) 100%);
  pointer-events: none;
}

.access-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 380px);
  align-items: center;
  gap: clamp(2rem, 7vw, 5.5rem);
  width: min(1040px, 100%);
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.access-brand {
  padding-right: 0.5rem;
  animation: accessFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.access-panel {
  min-width: 0;
  animation: accessFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes accessFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accessLogoGlow {
  0%,
  100% {
    filter: drop-shadow(0 6px 24px rgba(255, 255, 255, 0.06));
  }
  50% {
    filter: drop-shadow(0 10px 32px rgba(255, 255, 255, 0.12));
  }
}

.access-shell--narrow {
  grid-template-columns: 1fr;
  max-width: 480px;
  align-content: center;
}

.access-logo-link {
  display: block;
  margin-bottom: 1rem;
  width: fit-content;
}

.access-logo {
  width: clamp(160px, 22vw, 220px);
  height: clamp(160px, 22vw, 220px);
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 10px 28px rgba(255, 255, 255, 0.08));
  animation: accessLogoGlow 6s ease-in-out infinite;
}

.access-brand-name {
  margin: 0 0 0.65rem;
  font-family: var(--pc-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--pc-bone);
}

.access-tagline {
  margin: 0;
  max-width: 28ch;
  font-size: 1rem;
  line-height: 1.55;
  color: #9a9a9a;
  font-weight: 400;
}

.access-points,
.access-eyebrow,
.access-title,
.access-wordmark {
  display: none !important;
}

.access-music-btn {
  z-index: 3;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(8, 8, 8, 0.72) !important;
  color: #666 !important;
  box-shadow: none !important;
}

.access-music-btn:hover,
.access-music-btn.is-active {
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #aaa !important;
  box-shadow: none !important;
}

.gate-music-dock {
  position: fixed;
  z-index: 100;
  left: 1.25rem;
  bottom: 1.25rem;
}

.gate-music-bar {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.gate-music-dock .gate-music-btn {
  position: static;
  min-width: 4.5rem;
}

.gate-music-btn--menu {
  min-width: 2.15rem !important;
  padding: 0 0.45rem !important;
  font-size: 0.85rem !important;
}

.gate-music-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.5rem);
  width: min(280px, calc(100vw - 2.5rem));
  padding: 0.85rem 0.9rem 0.9rem;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.gate-music-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gate-music-panel-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
}

.gate-music-close {
  border: none;
  background: transparent;
  color: #555;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.gate-music-close:hover {
  color: #aaa;
}

.gate-music-field {
  display: block;
  margin-bottom: 0.75rem;
}

.gate-music-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
}

.gate-music-field output {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.gate-music-field select,
.gate-music-field input[type="range"] {
  width: 100%;
}

.gate-music-field select {
  padding: 0.45rem 0.5rem;
  border: 1px solid #222;
  border-radius: 2px;
  background: #080808;
  color: #ccc;
  font-size: 0.78rem;
}

.gate-music-field select:focus {
  outline: none;
  border-color: #3a3a3a;
}

.gate-music-field input[type="range"] {
  accent-color: #ccc;
  height: 1.25rem;
}

.gate-music-transport {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.gate-music-transport .btn-sm {
  padding: 0.4rem 0.35rem;
  font-size: 0.72rem;
}

@media (max-width: 480px) {
  .gate-music-dock {
    left: 0.75rem;
    bottom: 0.75rem;
  }
}

.access-card {
  padding: 1.65rem 1.65rem 1.45rem;
  background: rgba(10, 10, 10, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.access-card:hover {
  border-color: rgba(255, 255, 255, 0.09);
}

.access-panel .access-tagline {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #848484;
}

.access-tagline--compact {
  margin-bottom: 1.25rem;
}

.access-points {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.25rem;
}

.access-points li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  color: #6a6a6a;
  line-height: 1.45;
}

.access-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #444;
}

.access-bg {
  display: none;
}

.access-card--rules {
  padding: 1.75rem 1.65rem;
}

.access-card-head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.access-card-head h2,
.access-rules-title {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #efefef;
}

.access-card-head p {
  margin: 0;
  font-size: 0.8rem;
  color: #6e6e6e;
}

.access-tabs {
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.access-tabs .auth-tab {
  position: relative;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  transition: color 0.25s ease;
}

.access-tabs .auth-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #d8d8d8;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.access-tabs .auth-tab:hover {
  color: #888;
}

.access-tabs .auth-tab.is-active {
  color: #f0f0f0;
}

.access-tabs .auth-tab.is-active::after {
  transform: scaleX(1);
}

html.private-client .access-page .auth-panel.is-active {
  animation: none;
}

.access-card .field {
  margin-bottom: 0.9rem;
}

.access-card .field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c5c5c;
}

.access-card .field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: #555;
}

.access-card .field input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #222;
  border-radius: 4px;
  background: #080808;
  color: #ececec;
  font-size: 0.88rem;
  transition: border-color 0.15s ease;
}

.access-card .field input:hover {
  border-color: #2e2e2e;
}

.access-card .field input:focus {
  outline: none;
  border-color: #444;
  background: #060606;
  box-shadow: none;
}

.access-submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.72rem 1rem;
  font-size: 0.82rem;
  border-radius: 4px;
}

.access-submit:active {
  transform: none;
}

.access-foot {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.78rem;
}

.access-foot a {
  color: #666;
  text-decoration: none;
}

.access-foot a:hover {
  color: #aaa;
}

.access-foot--inline {
  margin-top: 1.5rem;
  text-align: left;
}

.access-rules-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #9a9a9a;
  font-size: 0.84rem;
  line-height: 1.65;
}

.access-rules-list li {
  margin-bottom: 0.35rem;
}

.access-brand-name--sm {
  font-family: var(--pc-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

.access-brand-mark--centered {
  text-align: center;
  margin-bottom: 1rem;
}

.access-brand-mark--centered .access-logo-link {
  display: flex;
  justify-content: center;
}

.access-logo--sm {
  width: 64px;
  height: 64px;
  margin-bottom: 0.75rem;
}

.access-wordmark--sm {
  width: min(220px, 100%);
  margin-bottom: 1rem;
}

.access-card-head--brand {
  text-align: center;
}

.access-card-head--brand .access-eyebrow {
  text-align: left;
}

.access-card-head--brand .access-rules-title,
.access-card-head--brand .access-tagline {
  text-align: left;
}

html.private-client .access-page.xf-gate .auth-tab.is-active {
  color: #f0f0f0 !important;
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .access-brand,
  .access-panel,
  .access-logo-link,
  .access-logo,
  .gate-music-dock,
  html.private-client .access-page .auth-panel.is-active {
    animation: none !important;
  }
}

@media (max-width: 780px) {
  .access-shell {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .access-brand {
    padding-right: 0;
    text-align: center;
  }

  .access-logo-link {
    display: block;
    text-align: center;
  }

  .access-logo {
    width: 200px;
    height: 200px;
  }

  .access-brand-mark {
    text-align: center;
  }

  .access-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .access-points {
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ——— Site chrome ——— */
html.private-client .xf-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

html.private-client .xf-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

html.private-client .xf-logo-text {
  font-family: var(--pc-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--pc-bone);
  line-height: 1;
}

html.private-client .xf-wordmark-img,
html.private-client .xf-footer-wordmark,
html.private-client .access-wordmark {
  display: none !important;
}

html.private-client .xf-site-header,
html.private-client .topbar {
  background: rgba(6, 6, 6, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
}

html.private-client .xf-header-row {
  min-height: 64px;
  align-items: center;
}

html.private-client .xf-nav > a,
html.private-client .xf-nav-drop-btn,
html.private-client .xf-header-link,
html.private-client .topbar-user-tag,
html.private-client .xf-header-user span {
  color: #777 !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  text-transform: none !important;
}

html.private-client .xf-nav > a:hover,
html.private-client .xf-nav-drop-btn:hover,
html.private-client .xf-header-link:hover {
  color: #ccc !important;
}

html.private-client .xf-nav > a.is-active,
html.private-client .xf-nav-drop-btn[aria-expanded="true"] {
  color: #eee !important;
}

html.private-client .xf-nav-drop-panel {
  background: #0e0e0e !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55) !important;
}

html.private-client .xf-nav-drop-panel a {
  color: #888 !important;
  font-weight: 500 !important;
}

html.private-client .xf-nav-drop-panel a:hover {
  background: #161616 !important;
  color: #ddd !important;
}

html.private-client .xf-breadcrumb {
  display: none;
}

html.private-client .xf-page {
  background: transparent;
}

html.private-client .xf-page-inner {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

html.private-client .xf-site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  padding: 1rem 0 1.25rem;
}

html.private-client .xf-footer-nav a {
  color: #555;
  font-size: 0.75rem;
}

html.private-client .xf-footer-nav a:hover {
  color: #999;
}

html.private-client .xf-footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #444;
}

html.private-client .xf-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

html.private-client .xf-footer-wordmark {
  height: 12px;
  width: auto;
  opacity: 0.35;
}

/* ——— Typography ——— */
html.private-client .xf-page-title {
  font-family: var(--pc-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--pc-bone);
}

html.private-client .xf-lead {
  color: #707070;
  font-size: 0.84rem;
  line-height: 1.55;
}

html.private-client .portal-page-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html.private-client .portal-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #505050;
}

/* ——— Panels & cards ——— */
html.private-client .xf-block,
html.private-client .post-card,
html.private-client .form-card,
html.private-client .community-card,
html.private-client .modal-card {
  background: #0c0c0c !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}

html.private-client .xf-forum-block {
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}

html.private-client .xf-forum-block-head {
  padding: 0.6rem 1rem;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html.private-client .xf-forum-block-head h2 {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #505050;
}

html.private-client .xf-forum-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.12s ease;
}

html.private-client .xf-forum-row:hover {
  background: #101010;
}

html.private-client .xf-forum-row:last-child {
  border-bottom: none;
}

html.private-client .xf-forum-title {
  color: #ddd;
  font-weight: 600;
  font-size: 0.86rem;
}

html.private-client .xf-forum-desc {
  color: #555;
  font-size: 0.76rem;
}

html.private-client .xf-forum-stat {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  padding: 0.12rem 0.38rem;
  border-radius: 2px;
}

/* ——— Buttons ——— */
html.private-client .btn-primary {
  background: #ececec !important;
  border: 1px solid #ececec !important;
  color: #0a0a0a !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  border-radius: 2px !important;
}

html.private-client .btn-primary:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: #0a0a0a !important;
  box-shadow: none !important;
}

html.private-client .btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #888 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.private-client .btn-ghost:hover {
  background: #141414 !important;
  color: #ccc !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* ——— Forms (fields) ——— */
html.private-client .field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #555;
}

html.private-client .field input,
html.private-client .field textarea,
html.private-client .field select {
  border: 1px solid #222 !important;
  border-radius: 2px !important;
  background: #080808 !important;
  color: #e8e8e8 !important;
  box-shadow: none !important;
}

html.private-client .field input:focus,
html.private-client .field textarea:focus,
html.private-client .field select:focus {
  border-color: #3a3a3a !important;
  outline: none !important;
  box-shadow: none !important;
}

html.private-client .field.is-invalid input,
html.private-client .field.is-invalid textarea,
html.private-client .field.is-invalid select {
  border-color: #6b3a3a !important;
}

html.private-client body.form-page .page-root {
  max-width: 900px;
}

html.private-client .form-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

html.private-client .form-rail {
  position: sticky;
  top: calc(var(--topbar-h) + 1.5rem);
}

html.private-client .form-rail-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: #484848;
}

html.private-client .form-tabs--rail a {
  padding: 0.38rem 0;
  font-size: 0.78rem;
  color: #555;
  border: none;
}

html.private-client .form-tabs--rail a.is-active {
  color: #ddd;
  font-weight: 600;
}

html.private-client .form-rail-meta {
  border-top-color: rgba(255, 255, 255, 0.06);
}

html.private-client .form-card {
  padding: 1.35rem 1.5rem;
}

html.private-client .form-note {
  margin-bottom: 1.1rem;
  padding: 0.5rem 0.65rem;
  border-left: 2px solid #333;
  background: #0a0a0a;
  font-size: 0.76rem;
  color: #666;
}

html.private-client .form-step-head {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

html.private-client .form-progress-track {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

html.private-client .form-progress-fill {
  background: #ccc;
}

html.private-client .form-progress-steps li {
  font-size: 0.62rem;
  color: #444;
}

html.private-client .form-card .form-actions {
  border-top-color: rgba(255, 255, 255, 0.06);
}

html.private-client .success-panel {
  text-align: left;
}

html.private-client .success-panel .success-icon {
  border-radius: 2px;
  background: rgba(74, 124, 89, 0.1);
  color: #5a8f6a;
}

html.private-client .review-list li {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 720px) {
  html.private-client .form-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  html.private-client .form-rail-meta {
    display: none;
  }
}

/* ——— Posts & community ——— */
html.private-client .post-card {
  padding: 1rem 1.1rem;
}

html.private-client .post-head,
html.private-client .post-meta {
  color: #555;
  font-size: 0.75rem;
}

html.private-client .post-body {
  color: #bbb;
  font-size: 0.88rem;
  line-height: 1.55;
}

html.private-client .post-vote-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
  color: #666;
}

html.private-client .post-vote-btn:hover {
  background: #141414;
  color: #aaa;
}

html.private-client .post-vote-btn.is-active {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ddd;
}

/* ——— Chat & DMs ——— */
html.private-client .chat-mini-toggle,
html.private-client .dm-mini-toggle {
  background: #0c0c0c !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #777 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

html.private-client .chat-mini-panel,
html.private-client .dm-mini-panel {
  background: #0c0c0c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55) !important;
}

html.private-client .chat-mini-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0a0a;
}

html.private-client .chat-form input,
html.private-client .dm-compose input {
  background: #080808 !important;
  border-color: #222 !important;
}

/* ——— Product pages ——— */
html.private-client .product-showcase-video-wrap {
  display: none;
}

html.private-client .product-showcase-content {
  position: relative;
}

html.private-client .product-showcase-hero {
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

html.private-client .product-showcase-badge {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

html.private-client .product-gallery {
  border-color: rgba(255, 255, 255, 0.07);
}

/* ——— Features ——— */
html.private-client .features-page {
  max-width: 720px;
}

html.private-client .feature-block {
  margin-bottom: 0.75rem;
}

html.private-client .feature-block-head {
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html.private-client .feature-tab-badge {
  color: #484848;
  font-family: var(--font-mono);
}

html.private-client .feature-list li {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

html.private-client .feature-name {
  font-weight: 600;
  color: #ccc;
}

html.private-client .feature-desc {
  color: #555;
}

html.private-client .feature-list kbd {
  border-color: rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  color: #888;
}

/* ——— Settings & members ——— */
html.private-client .settings-section,
html.private-client .settings-layout-card,
html.private-client .member-card,
html.private-client .members-row {
  border-color: rgba(255, 255, 255, 0.07) !important;
  background: #0c0c0c !important;
}

html.private-client .settings-layout-card.is-selected {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

html.private-client .topbar-role-tag {
  background: #141414 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #777 !important;
}

html.private-client .topbar-role-tag.role-owner,
html.private-client .topbar-role-tag.role-admin {
  color: #aaa !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ——— Modals ——— */
html.private-client .modal {
  background: rgba(0, 0, 0, 0.75);
}

html.private-client .modal-head h2 {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ——— Sidebar (classic layout) ——— */
html.private-client .sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: #080808;
}

html.private-client .sidebar-title {
  color: #484848;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

html.private-client .community-item.is-active a {
  background: #141414;
  color: #ddd;
}

/* ——— Kill flashy FX ——— */
html.private-client .layout-fx-canvas {
  display: none !important;
}

html.private-client .gate-error {
  color: #a85555;
  font-size: 0.78rem;
}

html.private-client .submit-status.is-error {
  color: #a85555;
}

/* Neutralize leftover purple accents site-wide */
html.private-client [class*="layout-"]:not(.layout-classic):not(.layout-wire):not(.layout-ink):not(.layout-steel):not(.layout-terminal) {
  --accent: #d0d0d0;
  --accent-light: #ececec;
  --accent-glow: transparent;
}

html.private-client .community-card:hover,
html.private-client .xf-forum-row:hover .xf-forum-title {
  color: #fff;
}

html.private-client .home-section-title {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #484848;
  margin-bottom: 0.65rem;
}

/* ——— Portal hub (home overview) ——— */
html.private-client .community-feed {
  display: block;
}

html.private-client .portal-hub {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

html.private-client .portal-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding-bottom: 0.25rem;
  animation: portalFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.private-client .portal-hero-mark {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 8px 20px rgba(255, 255, 255, 0.06));
}

html.private-client .portal-hero-title {
  margin: 0;
  font-family: var(--pc-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--pc-bone);
  line-height: 0.95;
}

html.private-client .portal-hero-lead {
  margin: 0.35rem 0 0;
  max-width: 36ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #808080;
}

html.private-client .portal-hub-section {
  animation: portalFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.12s;
}

html.private-client .portal-hub-section + .portal-hub-section {
  animation-delay: 0.22s;
}

html.private-client .portal-hub-section-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

html.private-client .portal-hub-section-title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #525252;
}

html.private-client .portal-hub-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.62rem;
  font-weight: 600;
  color: #666;
  font-variant-numeric: tabular-nums;
}

html.private-client .portal-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 0.85rem;
}

html.private-client .portal-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 0.85rem;
  align-items: center;
  padding: 1.1rem 1.15rem;
  border-radius: 2px;
  border: 1px solid var(--pc-line);
  background: linear-gradient(180deg, #101010 0%, #0a0a0a 100%);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    background 0.28s ease;
  animation: portalCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.08s + (var(--card-i, 0) * 0.05s));
}

html.private-client .portal-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

html.private-client .portal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #141414 0%, #0c0c0c 100%);
}

html.private-client .portal-card:hover .portal-card-shine {
  transform: translateX(120%);
}

html.private-client .portal-card--product {
  border-color: rgba(255, 255, 255, 0.09);
}

html.private-client .portal-card--product .portal-card-icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e8e8e8;
}

html.private-client .portal-card--community .portal-card-icon {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #bbb;
}

html.private-client .portal-card-icon {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

html.private-client .portal-card:hover .portal-card-icon {
  transform: scale(1.06);
}

html.private-client .portal-card-body {
  min-width: 0;
}

html.private-client .portal-card-title {
  margin: 0 0 0.2rem;
  font-family: var(--pc-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ececec;
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}

html.private-client .portal-card:hover .portal-card-title {
  color: #fff;
}

html.private-client .portal-card-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #5a5a5a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.private-client .portal-card-meta {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: #666;
}

html.private-client .portal-card-tag {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  transition: color 0.25s ease, border-color 0.25s ease;
}

html.private-client .portal-card:hover .portal-card-tag {
  color: #888;
  border-color: rgba(255, 255, 255, 0.14);
}

html.private-client .portal-card-arrow {
  grid-column: 3;
  grid-row: 2;
  align-self: end;
  font-size: 0.95rem;
  color: #444;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}

html.private-client .portal-card:hover .portal-card-arrow {
  transform: translateX(4px);
  color: #aaa;
}

html.private-client .portal-empty {
  padding: 2rem 1.25rem;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
}

html.private-client .portal-empty-text {
  margin: 0;
  font-size: 0.84rem;
  color: #555;
}

@keyframes portalFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes portalCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ——— Forms revamp ——— */
html.private-client body.form-page .page-root {
  max-width: 980px;
}

html.private-client .form-layout--v2 {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

html.private-client .form-layout--v2 .form-rail {
  position: sticky;
  top: calc(var(--topbar-h, 56px) + 1.25rem);
  padding: 1.15rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
}

html.private-client .form-layout--v2 .form-rail-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: #454545;
}

html.private-client .form-layout--v2 .form-tabs--rail {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1rem;
}

html.private-client .form-layout--v2 .form-tabs--rail a {
  position: relative;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

html.private-client .form-layout--v2 .form-tabs--rail a:hover {
  color: #bbb;
  background: rgba(255, 255, 255, 0.04);
}

html.private-client .form-layout--v2 .form-tabs--rail a.is-active {
  color: #f0f0f0;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

html.private-client .form-layout--v2 .form-rail-meta {
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html.private-client .form-layout--v2 .form-rail-label {
  margin: 0 0 0.2rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #454545;
}

html.private-client .form-layout--v2 .form-rail-value {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #777;
}

html.private-client .portal-hero--form {
  margin-bottom: 1.35rem;
  padding-bottom: 0;
  border-bottom: none;
}

html.private-client .portal-hero--form .xf-page-title {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin-bottom: 0.35rem;
}

html.private-client .form-layout--v2 .form-card {
  padding: 1.5rem 1.55rem 1.4rem;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background: #0a0a0a !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
}

html.private-client .form-layout--v2 .form-card:hover {
  border-color: rgba(255, 255, 255, 0.09) !important;
}

html.private-client .form-layout--v2 .form-note {
  margin-bottom: 1.15rem;
  padding: 0.65rem 0.8rem;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 0 6px 6px 0;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.76rem;
  color: #666;
}

html.private-client .form-layout--v2 .form-progress {
  margin-bottom: 1.35rem;
}

html.private-client .form-layout--v2 .form-progress-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

html.private-client .form-layout--v2 .form-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #888, #ececec);
  border-radius: inherit;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

html.private-client .form-layout--v2 .form-progress-steps {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding: 0;
  list-style: none;
}

html.private-client .form-layout--v2 .form-progress-steps li {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444;
  transition: color 0.3s ease;
}

html.private-client .form-layout--v2 .form-progress-steps li.is-active {
  color: #ddd;
}

html.private-client .form-layout--v2 .form-progress-steps li.is-complete {
  color: #777;
}

html.private-client .form-layout--v2 .form-step-head {
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html.private-client .form-layout--v2 .form-step-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ececec;
}

html.private-client .form-layout--v2 .form-step-desc {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
}

html.private-client .form-layout--v2 .form-step.is-active {
  animation: none;
}

html.private-client .form-layout--v2 .field {
  transition: none;
}

html.private-client .form-layout--v2 .field.is-focused {
  transform: none;
}

html.private-client .form-layout--v2 .field input,
html.private-client .form-layout--v2 .field textarea,
html.private-client .form-layout--v2 .field select {
  border-radius: 6px !important;
  padding: 0.72rem 0.8rem !important;
  transition: border-color 0.15s ease, background 0.15s ease !important;
}

html.private-client .form-layout--v2 .field input:focus,
html.private-client .form-layout--v2 .field textarea:focus,
html.private-client .form-layout--v2 .field select:focus {
  border-color: #4a4a4a !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04) !important;
}

html.private-client .form-layout--v2 .form-card .form-actions {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 0.65rem;
}

html.private-client .form-layout--v2 .form-card .btn {
  border-radius: 6px !important;
}

html.private-client .form-layout--v2 .success-panel {
  animation: none;
}

@keyframes formStepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  html.private-client .form-layout--v2 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  html.private-client .form-layout--v2 .form-rail {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1rem;
  }

  html.private-client .form-layout--v2 .form-rail-eyebrow {
    margin: 0;
    width: 100%;
  }

  html.private-client .form-layout--v2 .form-tabs--rail {
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 0;
    width: 100%;
  }

  html.private-client .form-layout--v2 .form-rail-meta {
    display: none;
  }

  html.private-client .portal-hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.private-client .portal-hero,
  html.private-client .portal-hub-section,
  html.private-client .portal-card,
  html.private-client .form-layout--v2 .form-rail,
  html.private-client .form-layout--v2 .form-content,
  html.private-client .portal-hero--form,
  html.private-client .form-layout--v2 .form-step.is-active,
  html.private-client .form-layout--v2 .success-panel {
    animation: none !important;
  }

  html.private-client .portal-card,
  html.private-client .portal-card-icon,
  html.private-client .portal-card-arrow,
  html.private-client .portal-card-shine {
    transition: none !important;
  }
}

/* ——— Form app (lightweight shell) ——— */
html.private-client .form-app .xf-site-header,
html.private-client .form-app .form-site-header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #0a0a0a !important;
}

html.private-client .form-app .form-header-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
}

html.private-client .form-app .form-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-width: 0;
}

html.private-client .form-app .form-header-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  white-space: nowrap;
}

html.private-client .form-app .form-header-nav a:hover {
  color: #bbb;
}

html.private-client .form-app .form-header-nav a.is-active {
  color: #eee;
  font-weight: 600;
}

html.private-client .form-app .form-header-account {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

html.private-client .form-app .form-header-user {
  font-size: 0.78rem;
  color: #888;
  text-decoration: none;
}

html.private-client .form-app .form-header-user:hover {
  color: #ccc;
}

html.private-client .form-app .form-site-inner {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

html.private-client .form-app .form-site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.85rem 0;
  text-align: center;
}

html.private-client .form-app .form-rail {
  display: block;
}

html.private-client .form-app .form-layout--v2 {
  grid-template-columns: 160px minmax(0, 1fr);
  max-width: 900px;
  margin: 0 auto;
  gap: 2rem;
}

html.private-client .form-app .portal-hero--form {
  margin-bottom: 1rem;
}

html.private-client .form-app .form-step.is-active {
  animation: none !important;
}

html.private-client .form-app .field input,
html.private-client .form-app .field textarea,
html.private-client .form-app .field select {
  box-shadow: none !important;
}

html.private-client .form-app .field input:focus,
html.private-client .form-app .field textarea:focus,
html.private-client .form-app .field select:focus {
  box-shadow: none !important;
}

@media (max-width: 720px) {
  html.private-client .form-app .form-header-nav {
    display: none;
  }

  html.private-client .form-app .form-header-row {
    grid-template-columns: auto 1fr;
  }

  html.private-client .form-app .form-rail {
    display: block;
    position: static;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
  }

  html.private-client .form-app .form-tabs--rail {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  html.private-client .xf-logo-text {
    font-size: 0.95rem;
  }

  html.private-client .portal-hero-mark {
    width: 72px;
    height: 72px;
  }
}

/* ——— Revamp polish ——— */
html.private-client .access-card {
  background: rgba(8, 8, 8, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

html.private-client .access-card-head h2 {
  font-family: var(--pc-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pc-bone);
}

html.private-client .access-submit {
  width: 100%;
  margin-top: 0.35rem;
  min-height: 2.6rem;
  font-family: var(--pc-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

html.private-client .product-showcase {
  max-width: 720px;
}

html.private-client .product-showcase-content {
  position: relative;
  z-index: 1;
}

html.private-client .product-showcase-hero {
  padding: 1.5rem 0 0.5rem;
  border: none !important;
  background: transparent !important;
}

html.private-client .product-showcase-badge {
  font-family: var(--pc-font);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #777;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  border-radius: 2px;
  padding: 0.2rem 0.45rem;
}

html.private-client .btn,
html.private-client .btn-primary,
html.private-client .btn-ghost {
  font-family: var(--pc-font);
  border-radius: 2px !important;
}

@media (max-width: 780px) {
  .access-brand {
    text-align: center;
  }

  .access-logo-link {
    margin-left: auto;
    margin-right: auto;
  }

  .access-tagline {
    margin-left: auto;
    margin-right: auto;
  }
}
