/* =============================================================================
   TRACKORIGIN · PROFILE PAGE
   Loads after base.css, components.css, and public.css
   ============================================================================= */

/* --------------------------------------------------------------------------
   PAGE SHELL
   -------------------------------------------------------------------------- */

.main {
  background: var(--navy);
}

.profile-hero,
.profile-section {
  background: var(--navy);
  scroll-margin-top: 96px;
}

/* --------------------------------------------------------------------------
   NAV COMPATIBILITY
   -------------------------------------------------------------------------- */

.nav__desktop-actions {
  gap: 14px;
}

.nav__link {
  font-size: 13px;
  white-space: nowrap;
}

.nav .btn--small {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */

.profile-hero {
  padding: clamp(78px, 8vw, 126px) 0 clamp(78px, 8vw, 126px);
  border-bottom: 1px solid var(--navy-line);
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 50% at 82% 24%, rgba(45, 85, 184, 0.32) 0%, transparent 62%),
    radial-gradient(ellipse 42% 42% at 12% 78%, rgba(45, 85, 184, 0.14) 0%, transparent 60%),
    linear-gradient(transparent 95%, rgba(255, 255, 255, 0.025) 95%) 0 0 / 100% 26px;
  pointer-events: none;
}

.profile-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(45, 85, 184, 0.45) 30%, rgba(45, 85, 184, 0.45) 70%, transparent 100%);
  pointer-events: none;
}

/* Live "Verified" indicator dot on the eyebrow */
.profile-hero__eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green, #2D8859);
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 8px var(--green, #2D8859);
  animation: profile-pulse 2.4s ease-in-out infinite;
}

@keyframes profile-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-hero__eyebrow .dot { animation: none; }
}

.profile-hero__inner {
  position: relative;
  z-index: 1;
}

.profile-hero__eyebrow {
  margin-bottom: 26px;
}

.profile-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(44px, 6vw, 90px);
  align-items: center;
}

/* CRITICAL: Grid items default to `min-width: auto`, which is sized to
   their MIN-CONTENT — i.e., the widest unbroken word inside them. That
   means any long unbroken display name (like "ASDASDASDASDAS") forces
   the left column to grow beyond its `1fr` allocation, blowing past the
   identity card and the viewport. Setting min-width: 0 here lets the
   column actually respect its template width, which in turn lets
   overflow-wrap on the name below take effect. */
.profile-hero__grid > * {
  min-width: 0;
}

.profile-hero .display-xl {
  max-width: 100%;
}

.profile-hero__name {
  /* Force long unbroken strings to wrap. overflow-wrap handles the modern
     case; word-break is the fallback. Together they guarantee no string
     can extend past the column regardless of content. */
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
  /* Scale font down for long names so layout stays balanced. Real names
     hit the upper end of the clamp; pathological inputs use the lower
     bound and wrap onto multiple lines. */
  font-size: clamp(40px, 5.5vw, 92px);
  line-height: 0.95;
}

.profile-hero__lede {
  max-width: 760px;
  margin-top: 30px;
}

.profile-handle {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-muted);
  overflow-wrap: anywhere;
}

.profile-hero__actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.profile-hero__actions--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   BIO / LOCATION / EXTERNAL LINKS
   -------------------------------------------------------------------------- */

.profile-bio {
  margin-top: 24px;
  max-width: 600px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-muted);
  overflow-wrap: anywhere;
  max-width: 100%;
}

.profile-location svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  max-width: 100%;
}

.profile-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--navy-line-hi);
  border-radius: 999px;
  font-size: 13px;
  color: var(--cream);
  text-decoration: none;
  max-width: 100%;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.profile-link-chip:hover {
  background: rgba(245, 239, 224, 0.05);
  border-color: var(--blue-bright);
  transform: translateY(-1px);
}

.profile-link-chip svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

/* --------------------------------------------------------------------------
   IDENTITY CARD
   -------------------------------------------------------------------------- */

.profile-identity-card {
  background:
    radial-gradient(circle at 50% 22%, rgba(58, 108, 217, 0.36), transparent 44%),
    linear-gradient(180deg, rgba(19, 28, 68, 0.96), rgba(7, 17, 45, 1));
  border: 1px solid var(--navy-line-hi);
  padding: 36px;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 32px 80px -40px rgba(0, 0, 0, 0.7),
    0 0 80px -20px rgba(45, 85, 184, 0.35);
}

.profile-identity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 95%, rgba(255, 255, 255, 0.04) 95%) 0 0 / 100% 22px,
    linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.025) 95%) 0 0 / 22px 100%;
  pointer-events: none;
  opacity: 0.7;
}

.profile-identity-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--blue-bright) 50%, transparent 100%);
  pointer-events: none;
}

.profile-identity-card > * { position: relative; z-index: 1; }

.profile-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 2px solid var(--blue-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 54px;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 32px;
  box-shadow: 0 0 50px rgba(45, 85, 184, 0.28);
  overflow: hidden;
  flex: 0 0 132px;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.profile-identity-card__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 14px;
}

.profile-identity-card__name {
  font-family: var(--display);
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--cream);
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.profile-identity-card__handle {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-muted);
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   STATS
   -------------------------------------------------------------------------- */

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--navy-line);
  border-bottom: 1px solid var(--navy-line);
  margin-top: clamp(44px, 5vw, 72px);
}

.profile-stats__cell {
  padding: 28px var(--gutter) 28px 0;
  border-right: 1px solid var(--navy-line);
  min-width: 0;
}

.profile-stats__cell:last-child {
  border-right: none;
  padding-right: 0;
}

.profile-stats__cell .label {
  margin-bottom: 12px;
  font-size: 10px;
}

.profile-stats__cell .num {
  font-family: var(--display);
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 0.9;
  color: var(--cream);
}

.profile-stats__cell .num--blue {
  color: var(--blue-bright);
  text-shadow: 0 0 32px rgba(45, 85, 184, 0.45);
}

.profile-stats__date {
  font-size: clamp(22px, 2.2vw, 32px) !important;
}

/* --------------------------------------------------------------------------
   SECTION LAYOUT
   -------------------------------------------------------------------------- */

.profile-section {
  padding: clamp(68px, 7vw, 108px) 0;
  border-bottom: 1px solid var(--navy-line);
}

.profile-section__head {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
  margin-bottom: clamp(34px, 4vw, 58px);
}

.profile-section__num {
  align-self: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
  position: relative;
  padding-left: 14px;
}

.profile-section__num::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 8px var(--blue-bright);
}

.profile-section__title {
  margin: 0;
  max-width: 1040px;
  text-align: left;
  font-family: var(--display);
  font-size: clamp(48px, 5.6vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.prose {
  max-width: 68ch;
}

.two-col {
  gap: clamp(44px, 5vw, 72px);
}

/* --------------------------------------------------------------------------
   INTRO NOTE
   -------------------------------------------------------------------------- */

.profile-intro {
  margin-bottom: clamp(36px, 4vw, 56px);
}

.profile-note {
  background: var(--navy-soft);
  border: 1px solid var(--navy-line-hi);
  padding: clamp(24px, 3vw, 34px);
}

.profile-note .card__body {
  color: var(--cream-muted);
}

/* --------------------------------------------------------------------------
   TRACK LIST
   -------------------------------------------------------------------------- */

.profile-track-list {
  border-top: 1px solid var(--navy-line);
  border-bottom: 1px solid var(--navy-line);
}

.profile-track-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 150px auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--navy-line);
  color: inherit;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, padding 0.18s ease;
  position: relative;
}

.profile-track-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--blue-bright);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.profile-track-row:last-child {
  border-bottom: none;
}

.profile-track-row:hover {
  color: var(--cream);
  background: rgba(45, 85, 184, 0.06);
  padding-left: 18px;
}

.profile-track-row:hover::before {
  opacity: 1;
}

.profile-track-row__seal {
  width: 64px;
  height: 64px;
}

.profile-track-row__seal .seal-mini {
  width: 64px;
  height: 64px;
}

.profile-track-row__main {
  min-width: 0;
}

.profile-track-row__title {
  font-family: var(--display);
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--cream);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-track-row__meta {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.profile-track-row__date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  white-space: nowrap;
}

.profile-track-row__verdict {
  display: flex;
  justify-content: flex-end;
}

.profile-revoked-note {
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   EMPTY STATE
   -------------------------------------------------------------------------- */

.profile-empty {
  padding: 80px 0;
  text-align: center;
}

.profile-empty__title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 18px;
}

.profile-empty p {
  color: var(--cream-muted);
  margin: 0 auto;
  max-width: 48ch;
}

/* --------------------------------------------------------------------------
   ACTIONS
   -------------------------------------------------------------------------- */

.profile-actions-inline {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .profile-hero__grid {
    grid-template-columns: 1fr;
  }

  .profile-identity-card {
    max-width: 480px;
  }
}

@media (max-width: 980px) {
  .profile-track-row {
    grid-template-columns: 84px minmax(0, 1fr) auto;
  }

  .profile-track-row__date {
    display: none;
  }
}

@media (max-width: 880px) {
  .profile-hero {
    padding-top: 60px;
  }

  .profile-section {
    padding: 72px 0;
  }

  .profile-section__head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-section__title {
    font-size: clamp(42px, 11vw, 64px);
  }

  .two-col {
    gap: 38px;
  }

  .profile-stats {
    grid-template-columns: 1fr 1fr;
  }

  .profile-stats__cell:nth-child(2) {
    border-right: none;
  }

  .profile-stats__cell:nth-child(3),
  .profile-stats__cell:nth-child(4) {
    border-top: 1px solid var(--navy-line);
  }
}

@media (max-width: 760px) {
  .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-stats__cell {
    border-right: none;
    border-top: 1px solid var(--navy-line);
  }

  .profile-stats__cell:first-child {
    border-top: none;
  }

  .profile-track-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
  }

  .profile-track-row__verdict {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 12px;
  }

  .profile-track-row__title {
    font-size: clamp(26px, 8vw, 34px);
  }

  .profile-hero__name {
    font-size: clamp(34px, 11vw, 72px);
  }

  .profile-identity-card {
    min-height: 320px;
  }

  .profile-avatar {
    width: 110px;
    height: 110px;
    font-size: 46px;
    flex: 0 0 110px;
  }

  .profile-bio {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .profile-hero,
  .profile-section {
    scroll-margin-top: 78px;
  }

  .profile-track-row {
    grid-template-columns: 1fr;
  }

  .profile-track-row__seal {
    display: none;
  }

  .profile-track-row__verdict {
    grid-column: auto;
  }

  .profile-identity-card {
    padding: 26px;
  }

  .profile-hero__name {
    font-size: clamp(30px, 13vw, 56px);
  }
}

/* --------------------------------------------------------------------------
   ACCOUNT PAGE — READONLY FIELDS
   -------------------------------------------------------------------------- */

.form-readonly {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: var(--cream);
  font-size: 15px;
  font-family: inherit;
  cursor: default;
  user-select: text;
}

.form-readonly__handle {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--cream);
}

.form-readonly__empty {
  color: var(--cream-muted, rgba(244, 239, 230, 0.5));
  font-style: italic;
}
/* =============================================================================
   PROFILE — PREMIUM POLISH (additive)
   Visualizer · name shine · identity ring · cert trail · closing band
   ============================================================================= */

/* ── Ambient equalizer behind the hero ─────────────────────────── */
.profile-visualizer {
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 6px;
  opacity: 0.14;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 80%, transparent 100%);
}

.profile-visualizer span {
  flex: 1;
  background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue-deep) 100%);
  border-radius: 1px;
  animation: profile-eq-bar 1.1s cubic-bezier(.4,.0,.2,1) infinite alternate;
  transform-origin: bottom;
}

@keyframes profile-eq-bar {
  from { transform: scaleY(0.18); opacity: 0.45; }
  to   { transform: scaleY(1.00); opacity: 1.00; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-visualizer span { animation: none; transform: scaleY(0.5); }
}

/* ── Shine sweep across the artist name ─────────────────────────── */
.profile-hero__name-sweep {
  background: linear-gradient(
    100deg,
    var(--cream) 0%,
    var(--cream) 40%,
    #ffffff 50%,
    var(--cream) 60%,
    var(--cream) 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: profile-name-sweep 9s ease-in-out infinite;
}

@keyframes profile-name-sweep {
  0%, 100% { background-position: 110% 0; }
  50%      { background-position: -10% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-hero__name-sweep { animation: none; color: var(--cream); -webkit-text-fill-color: var(--cream); }
}

/* ── Identity card upgrades ─────────────────────────────────────── */
.profile-identity-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.profile-identity-card__head .profile-identity-card__label {
  margin-bottom: 0;
}

.profile-live-chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--cream);
  background: rgba(58, 108, 217, 0.18);
  border: 1px solid var(--blue-bright);
  padding: 4px 8px 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-live-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: profile-pulse 1.8s ease-in-out infinite;
}

/* Avatar shell — rotating conic-gradient ring around the photo */
.profile-avatar-shell {
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 32px;
  flex: 0 0 132px;
}

.profile-avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--blue-bright) 60deg,
    transparent 140deg,
    transparent 220deg,
    rgba(58, 108, 217, 0.45) 280deg,
    transparent 360deg
  );
  filter: blur(1px);
  animation: profile-ring-spin 6s linear infinite;
}

.profile-avatar-ring::after {
  /* Mask the inner area to make it a ring not a disc */
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--navy);
}

.profile-avatar-shell .profile-avatar {
  position: relative;
  margin-bottom: 0;
  z-index: 1;
}

@keyframes profile-ring-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .profile-avatar-ring { animation: none; }
}

/* Card meta strip at the bottom */
.profile-identity-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(245, 239, 224, 0.10);
  font-family: var(--mono);
}

.profile-identity-card__meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.profile-identity-card__meta-k {
  font-size: 9px;
  letter-spacing: 0.20em;
  color: var(--cream-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.profile-identity-card__meta-v {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-transform: lowercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Corner crop marks — cinematic technical-card vibe */
.profile-identity-card__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--blue-bright);
  pointer-events: none;
  z-index: 2;
}
.profile-identity-card__corner--tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.profile-identity-card__corner--tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.profile-identity-card__corner--bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.profile-identity-card__corner--br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* ── Stats sparkline / bar accents ──────────────────────────────── */
.profile-stats__bar {
  margin-top: 14px;
  height: 3px;
  background: rgba(245, 239, 224, 0.06);
  position: relative;
  overflow: hidden;
}

.profile-stats__bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-bright) 100%);
  box-shadow: 0 0 8px rgba(58, 108, 217, 0.4);
  animation: profile-bar-fill 1.2s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes profile-bar-fill {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-stats__bar > span { animation: none; }
}

/* ── Certificate trail ─────────────────────────────────────────── */
.profile-cert-trail {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-bottom: 1px solid var(--navy-line);
  padding: 28px 0;
  position: relative;
  overflow: hidden;
}

.profile-cert-trail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--blue-bright) 50%, transparent 100%);
}

.profile-cert-trail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.profile-cert-trail__label { color: var(--blue-bright); font-weight: 600; }
.profile-cert-trail__count { color: var(--cream-dim); }

.profile-cert-trail__rail {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.profile-cert-trail__strip {
  display: inline-flex;
  gap: 10px;
  white-space: nowrap;
  animation: profile-marquee 45s linear infinite;
}

.profile-cert-trail__rail:hover .profile-cert-trail__strip {
  animation-play-state: paused;
}

@keyframes profile-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .profile-cert-trail__strip { animation: none; }
}

.profile-cert-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--navy-line-hi);
  background: rgba(7, 17, 45, 0.6);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--cream-muted);
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.profile-cert-chip:hover {
  border-color: var(--blue-bright);
  color: var(--cream);
  background: rgba(45, 85, 184, 0.10);
}

.profile-cert-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.profile-cert-chip__dot--live { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.profile-cert-chip__dot--revoked { background: #ff8a80; box-shadow: 0 0 6px #ff8a80; }

/* ── Track row premium upgrade ─────────────────────────────────── */
.profile-track-row {
  grid-template-columns: 44px 84px minmax(0, 1fr) 150px auto 24px;
}

.profile-track-row__seq {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cream-dim);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.profile-track-row__cert {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--cream-dim);
  text-transform: lowercase;
  opacity: 0.7;
}

.profile-track-row__arrow {
  font-family: var(--mono);
  color: var(--cream-dim);
  font-size: 18px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.profile-track-row:hover .profile-track-row__arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--blue-bright);
}

@media (max-width: 980px) {
  .profile-track-row {
    grid-template-columns: 36px 64px minmax(0, 1fr) auto 20px;
  }
  .profile-track-row__date { display: none; }
}

@media (max-width: 760px) {
  .profile-track-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .profile-track-row__seal { display: none; }
  .profile-track-row__arrow { display: none; }
}

/* ── Closing band ──────────────────────────────────────────────── */
.profile-closing {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45, 85, 184, 0.22) 0%, transparent 70%),
    linear-gradient(180deg, var(--navy-deep) 0%, #050a1c 100%);
  padding: clamp(80px, 9vw, 130px) 0 clamp(60px, 7vw, 100px);
  border-top: 1px solid var(--navy-line);
  position: relative;
  overflow: hidden;
}

.profile-closing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--blue-bright) 50%, transparent 100%);
}

.profile-closing__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-bottom: clamp(56px, 6vw, 88px);
}

.profile-closing__cell {
  padding: 28px 0;
  border-top: 1px solid var(--navy-line);
}

.profile-closing__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--blue-bright);
  font-weight: 600;
  margin-bottom: 14px;
}

.profile-closing__title {
  font-family: var(--display);
  font-size: clamp(48px, 5.5vw, 78px);
  line-height: 0.9;
  letter-spacing: -0.005em;
  color: var(--cream);
  margin-bottom: 14px;
  text-shadow: 0 0 32px rgba(58, 108, 217, 0.18);
}

.profile-closing__cell p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cream-muted);
  margin: 0;
  max-width: 36ch;
}

.profile-closing__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--navy-line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.profile-closing__mark {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--blue-bright);
  padding: 4px 10px;
  border: 1px solid var(--blue-bright);
  background: rgba(45, 85, 184, 0.10);
}

.profile-closing__foot a {
  color: var(--cream-muted);
  text-decoration: none;
  border-bottom: 1px dotted rgba(245, 239, 224, 0.25);
  padding-bottom: 2px;
}

.profile-closing__foot a:hover {
  color: var(--blue-bright);
  border-bottom-color: var(--blue-bright);
}

@media (max-width: 860px) {
  .profile-closing__row {
    grid-template-columns: 1fr;
  }
  .profile-identity-card__meta {
    grid-template-columns: 1fr 1fr;
  }
}
