:root {
  --pfa-surface: #0d1016;
  --pfa-surface-2: #121721;
  --pfa-surface-3: #171d28;
  --pfa-border: rgba(165, 177, 199, .18);
  --pfa-border-strong: rgba(196, 207, 226, .28);
  --pfa-text: #f7f8fb;
  --pfa-muted: #a7b0bf;
  --pfa-blue: #78c9ff;
  --pfa-purple: #a995ff;
  --pfa-green: #86d8ad;
  --pfa-orange: #ffbd78;
}

.pfs-header {
  min-height: 68px;
  background: rgba(7, 9, 13, .96);
  border-color: rgba(255, 255, 255, .09);
}
.pfs-nav { min-height: 68px; }
.pfs-brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  object-fit: contain;
  background: #11151d;
}
.pfs-brand-copy { min-width: 0; }
.pfs-brand-copy strong {
  color: #fff;
  font-size: .96rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.pfs-brand-copy > span {
  margin-top: 2px;
  color: #8f99aa;
  font-size: .64rem;
  letter-spacing: .12em;
}
.pfs-links { gap: 3px; }
.pfs-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 9px;
  color: #c8ced8;
  font-size: .91rem;
  font-weight: 750;
}
.pfs-links a:hover,
.pfs-links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .075);
}

.pfa-account-hero,
.pfa-support-hero {
  padding: 58px 0 34px;
  border-bottom: 1px solid var(--pfa-border);
  background:
    radial-gradient(circle at 82% 15%, rgba(108, 91, 196, .12), transparent 30rem),
    #090c12;
}
.pfa-account-hero-grid,
.pfa-support-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: end;
}
.pfa-account-hero h1,
.pfa-support-hero h1 {
  max-width: 820px;
  margin: 11px 0 14px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.06em;
}
.pfa-account-hero p,
.pfa-support-hero p {
  max-width: 700px;
  margin: 0;
  color: #aeb7c6;
  font-size: 1.05rem;
  line-height: 1.65;
}
.pfa-hero-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pfa-summary-item {
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--pfa-border);
  border-radius: 15px;
  background: rgba(18, 23, 33, .78);
}
.pfa-summary-item span,
.pfa-summary-item strong { display: block; }
.pfa-summary-item span {
  color: #8994a7;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pfa-summary-item strong {
  margin-top: 10px;
  color: #fff;
  font-size: 1rem;
}

.pfa-workspace { padding: 30px 0 84px; }
.pfa-workspace-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.pfa-rail {
  position: sticky;
  top: 88px;
  overflow: hidden;
  border: 1px solid var(--pfa-border);
  border-radius: 18px;
  background: linear-gradient(160deg, #141a25, #0d121a);
}
.pfa-profile-block {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--pfa-border);
}
.pfa-profile-block .pfs-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
.pfa-profile-copy { min-width: 0; }
.pfa-profile-copy strong,
.pfa-profile-copy span { display: block; }
.pfa-profile-copy strong { color: #fff; }
.pfa-profile-copy span {
  overflow: hidden;
  margin-top: 4px;
  color: #8f9bad;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pfa-rail-nav { display: grid; padding: 10px; }
.pfa-rail-nav a {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border-radius: 9px;
  color: #b6bfcd;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 750;
}
.pfa-rail-nav a:hover { color: #fff; background: rgba(255, 255, 255, .055); }
.pfa-rail-nav svg { width: 17px; height: 17px; color: #8996aa; }
.pfa-rail-footer {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-top: 1px solid var(--pfa-border);
}
.pfa-rail-footer .pfs-button { width: 100%; min-height: 42px; }

.pfa-content { display: grid; gap: 18px; }
.pfa-dashboard-card,
.pfa-support-card,
.pfa-support-form-card {
  overflow: hidden;
  border: 1px solid var(--pfa-border);
  border-radius: 18px;
  background: linear-gradient(145deg, #131925, #0d121b);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
}
.pfa-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--pfa-border);
}
.pfa-card-heading { display: flex; gap: 14px; align-items: flex-start; }
.pfa-card-heading h2 { margin: 1px 0 6px; font-size: 1.28rem; letter-spacing: -.025em; }
.pfa-card-heading p { margin: 0; color: #929daf; line-height: 1.5; }
.pfa-card-body { padding: 22px 24px; }
.pfa-card-body .pfs-facts { margin-top: 0; }
.pfa-card-icon,
.pfa-topic-icon,
.pfa-product-tile {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 900;
  letter-spacing: -.03em;
}
.pfa-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(145deg, #29364b, #182131);
}
.pfa-card-icon.plan { background: linear-gradient(145deg, #624ac7, #30265f); }
.pfa-card-icon.keys { background: linear-gradient(145deg, #2679a6, #153950); }
.pfa-card-icon.devices { background: linear-gradient(145deg, #31755b, #183c30); }
.pfa-card-icon.sessions { background: linear-gradient(145deg, #8c6333, #49321c); }

.pfs-license > div:first-child { position: relative; min-height: 44px; padding-left: 58px; }
.pfs-license > div:first-child::before {
  content: "APP";
  position: absolute;
  inset: 0 auto auto 0;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #324158, #1a2331);
  font-size: .7rem;
  font-weight: 950;
}
.pfs-license[data-license-row="prime-warden"] > div:first-child::before { content: "PW"; background: linear-gradient(145deg, #24689a, #17364e); }
.pfs-license[data-license-row="primemesh-studio"] > div:first-child::before { content: "MX"; background: linear-gradient(145deg, #714cc2, #392864); }
.pfs-license[data-license-row="primemotion-studio"] > div:first-child::before { content: "MO"; background: linear-gradient(145deg, #b06038, #61331e); }
.pfs-license[data-license-row="prime-creator-studio"] > div:first-child::before { content: "PCS"; background: linear-gradient(145deg, #704bc3, #30204f); font-size: .62rem; }

.pfa-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.pfa-support-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pfa-support-topic {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--pfa-border);
  border-radius: 14px;
  background: rgba(16, 21, 30, .72);
}
.pfa-support-topic strong,
.pfa-support-topic span { display: block; }
.pfa-support-topic span { margin-top: 4px; color: #8f9aab; font-size: .8rem; line-height: 1.4; }
.pfa-topic-icon { width: 46px; height: 46px; border-radius: 12px; background: #1d2737; }
.pfa-topic-icon.warden { background: linear-gradient(145deg, #24689a, #17364e); }
.pfa-topic-icon.mesh { background: linear-gradient(145deg, #714cc2, #392864); }
.pfa-topic-icon.motion { background: linear-gradient(145deg, #b06038, #61331e); }
.pfa-topic-icon.creator { background: linear-gradient(145deg, #704bc3, #30204f); font-size: .68rem; }
.pfa-topic-icon.account { background: linear-gradient(145deg, #38735d, #1d4034); }

.pfa-support-main { padding: 30px 0 84px; }
.pfa-support-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}
.pfa-support-aside { display: grid; gap: 16px; }
.pfa-support-card { padding: 22px; }
.pfa-support-card h2 { margin: 0 0 10px; font-size: 1.28rem; }
.pfa-support-card p { margin: 0; color: #96a1b2; line-height: 1.6; }
.pfa-contact-link {
  display: inline-flex;
  margin-top: 18px;
  color: #a8e7ff;
  font-weight: 800;
  text-decoration: none;
}
.pfa-support-form-card { padding: 24px; }
.pfa-form-heading { margin-bottom: 22px; }
.pfa-form-heading span { color: var(--pfa-blue); font-size: .72rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.pfa-form-heading h2 { margin: 8px 0 8px; font-size: 1.65rem; }
.pfa-form-heading p { margin: 0; color: #96a1b2; line-height: 1.6; }
.pfa-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pfa-field { display: grid; gap: 7px; }
.pfa-field.full { grid-column: 1 / -1; }
.pfa-field label { color: #dce2eb; font-size: .8rem; font-weight: 800; }
.pfa-input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #30394a;
  border-radius: 10px;
  color: #fff;
  background: #090d14;
  outline: none;
}
textarea.pfa-input { min-height: 148px; padding-top: 12px; resize: vertical; }
.pfa-input:focus { border-color: #66bce8; box-shadow: 0 0 0 3px rgba(65, 159, 207, .16); }
.pfa-consent { display: grid; grid-template-columns: 20px 1fr; gap: 9px; color: #a8b1bf; line-height: 1.5; }
.pfa-consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: #7867de; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 980px) {
  .pfa-account-hero-grid,
  .pfa-support-hero-grid,
  .pfa-support-layout { grid-template-columns: 1fr; }
  .pfa-workspace-grid { grid-template-columns: 1fr; }
  .pfa-rail { position: static; }
  .pfa-rail-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pfa-account-hero,
  .pfa-support-hero { padding-top: 42px; }
  .pfa-account-hero h1,
  .pfa-support-hero h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .pfa-hero-summary,
  .pfa-support-topic-grid,
  .pfa-form-grid { grid-template-columns: 1fr; }
  .pfa-rail-nav { grid-template-columns: 1fr 1fr; }
  .pfa-card-header { padding: 19px; }
  .pfa-card-body,
  .pfa-support-form-card { padding: 19px; }
  .pfs-license { grid-template-columns: 1fr; }
}
