﻿.profile-reference-main {
    width: min(100%, 1048px);
    max-width: 100%;
    padding: calc(20px + var(--safe-top)) 16px calc(116px + var(--safe-bottom));
}

.profile-reference {
    position: relative;
    display: grid;
    gap: 26px;
    min-height: var(--app-stable-height, 100vh);
}

.profile-reference::before,
.profile-reference::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.profile-reference::before {
    background:
        radial-gradient(circle at 18% 18%, rgba(130, 25, 32, 0.16), transparent 24%),
        radial-gradient(circle at 78% 20%, rgba(130, 25, 32, 0.08), transparent 20%),
        radial-gradient(circle at 50% 100%, rgba(115, 19, 25, 0.08), transparent 26%);
    filter: blur(8px);
}

.profile-reference::after {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
        radial-gradient(circle at 72% 28%, rgba(160, 48, 52, 0.18) 0 1px, transparent 1px);
    background-size: auto, 180px 180px, 260px 260px;
    opacity: 0.08;
    mask-image: linear-gradient(180deg, #000, transparent 96%);
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-header__actions {
    display: flex;
    gap: 12px;
}

.profile-header__button {
    position: relative;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(12, 12, 12, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 12px 32px rgba(0, 0, 0, 0.34);
    color: rgba(255, 240, 232, 0.9);
    backdrop-filter: blur(18px);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.profile-header__button svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.7;
}

.profile-header__button:hover {
    transform: translateY(-1px);
    border-color: rgba(161, 53, 58, 0.26);
    background: rgba(18, 16, 16, 0.72);
}

.profile-header__dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dc474f;
    box-shadow: 0 0 10px rgba(220, 71, 79, 0.52);
}

.profile-hero,
.profile-panel {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(121, 39, 43, 0.28);
    background:
        linear-gradient(180deg, rgba(14, 14, 14, 0.94), rgba(10, 10, 10, 0.98)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.015), transparent 30%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 30px 80px rgba(0, 0, 0, 0.42);
}

.profile-hero::before,
.profile-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at 100% 0%, rgba(138, 28, 35, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 42%);
}

.profile-hero {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 420px;
    gap: 34px;
    align-items: center;
    padding: 42px 34px 34px;
    min-height: 286px;
}

.hero-orb {
    display: grid;
    place-items: center;
}

.hero-orb__system {
    position: relative;
    width: 220px;
    height: 220px;
}

.hero-orb__ring,
.hero-orb__trace,
.hero-orb__particle,
.hero-orb__core {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
}

.hero-orb__ring {
    border-radius: 50%;
    border: 1px solid rgba(197, 61, 67, 0.28);
}

.hero-orb__ring--outer {
    width: 204px;
    height: 204px;
    box-shadow:
        0 0 32px rgba(142, 31, 37, 0.14),
        inset 0 0 22px rgba(171, 47, 54, 0.06);
}

.hero-orb__ring--inner {
    width: 156px;
    height: 156px;
    border-color: rgba(235, 88, 88, 0.56);
    box-shadow:
        0 0 24px rgba(205, 56, 63, 0.18),
        inset 0 0 20px rgba(205, 56, 63, 0.1);
}

.hero-orb__trace {
    border-radius: 50%;
    border: 1px solid rgba(212, 70, 75, 0.24);
    filter: drop-shadow(0 0 10px rgba(205, 56, 63, 0.16));
}

.hero-orb__trace--one {
    width: 208px;
    height: 114px;
    transform: translate(-50%, -50%) rotate(18deg);
    animation: heroOrbitOne 18s linear infinite;
}

.hero-orb__trace--two {
    width: 148px;
    height: 202px;
    transform: translate(-50%, -50%) rotate(44deg);
    animation: heroOrbitTwo 22s linear infinite;
}

.hero-orb__particle {
    width: 4px;
    height: 4px;
    margin-left: -2px;
    margin-top: -2px;
    border-radius: 50%;
    background: rgba(255, 215, 198, 0.9);
    box-shadow: 0 0 14px rgba(255, 165, 141, 0.46);
    animation: particleFloat 8s ease-in-out infinite;
}

.hero-orb__particle--one {
    top: 40px;
    left: 166px;
}

.hero-orb__particle--two {
    top: 148px;
    left: 36px;
    animation-delay: -2.6s;
}

.hero-orb__particle--three {
    top: 180px;
    left: 184px;
    animation-delay: -4.8s;
}

.hero-orb__core {
    display: grid;
    place-items: center;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    color: #ffe1d2;
    font: 600 54px/1 "Cormorant Garamond", serif;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 236, 226, 0.08), transparent 28%),
        radial-gradient(circle at center, rgba(45, 28, 30, 0.9), rgba(12, 12, 12, 0.98) 72%);
    box-shadow:
        inset 0 0 24px rgba(207, 69, 74, 0.08),
        inset 0 0 54px rgba(233, 91, 86, 0.06),
        0 0 36px rgba(144, 31, 37, 0.18),
        0 0 72px rgba(144, 31, 37, 0.08);
}

.hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
}

.hero-copy__eyebrow,
.depth-card__eyebrow,
.panel-head h3 {
    margin: 0;
    color: #c85a56;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.scenario-tile strong,
.signal-card__copy strong,
.stat-list strong,
.mini-card__cta,
.panel-head h3 {
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0;
}

.hero-copy h1 {
    margin: 0;
    color: #fff4ec;
    font-size: 68px;
    font-weight: 600;
    line-height: 0.92;
}

.hero-copy h2 {
    margin: 0;
    color: rgba(255, 239, 230, 0.92);
    font-size: 26px;
    font-weight: 500;
}

.hero-copy p {
    margin: 12px 0 0;
    color: rgba(235, 227, 223, 0.75);
    font-size: 18px;
    line-height: 1.55;
}

.hero-copy__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.hero-copy__badges span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(243, 236, 232, 0.82);
    font-size: 15px;
}

.depth-card {
    position: relative;
    z-index: 1;
    min-height: 252px;
    padding: 24px 24px 22px;
    border-radius: 24px;
    border: 1px solid rgba(126, 40, 43, 0.34);
    background:
        radial-gradient(circle at 80% 30%, rgba(142, 31, 37, 0.12), transparent 24%),
        rgba(20, 16, 16, 0.55);
}

.depth-card strong {
    display: block;
    margin-top: 24px;
    color: #e15b56;
    font: 500 72px/0.95 "Cormorant Garamond", serif;
}

.depth-card h3 {
    margin: 10px 0 0;
    color: rgba(247, 240, 236, 0.88);
    font-size: 22px;
    font-weight: 400;
}

.depth-card__bar {
    position: relative;
    width: 180px;
    height: 6px;
    margin-top: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: visible;
}

.depth-card__bar span {
    position: relative;
    display: block;
    width: var(--depth-progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b63b43, #ee786f);
    box-shadow: 0 0 18px rgba(220, 85, 82, 0.28);
    transform-origin: left center;
    will-change: transform, opacity;
    animation: depthBarPulse 4.2s ease-in-out infinite;
}

.depth-card__bar span::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffd2c3;
    box-shadow: 0 0 16px rgba(255, 170, 144, 0.52);
    transform: translateY(-50%);
}

.depth-card p {
    margin: 34px 0 0;
    color: rgba(230, 224, 220, 0.72);
    font-size: 17px;
    line-height: 1.5;
}

.depth-card__orb {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 194px;
    height: 194px;
}

.depth-card__grid,
.depth-card__glow,
.depth-card__beam {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
}

.depth-card__grid {
    width: 152px;
    height: 152px;
    border-radius: 50%;
    border: 1px solid rgba(184, 58, 63, 0.18);
    box-shadow:
        inset 0 0 26px rgba(182, 59, 67, 0.08),
        0 0 22px rgba(94, 20, 25, 0.08);
}

.depth-card__grid::before,
.depth-card__grid::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    border: 1px solid rgba(184, 58, 63, 0.12);
}

.depth-card__grid::after {
    inset: 40px;
}

.depth-card__grid--large {
    width: 194px;
    height: 194px;
    border-color: rgba(150, 42, 46, 0.12);
}

.depth-card__beam {
    width: 116px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 102, 95, 0.7), transparent);
    transform: translate(-50%, -50%) rotate(-38deg);
    will-change: transform, opacity;
    animation: depthOrbFloat 9s ease-in-out infinite;
}

.depth-card__beam::after,
.depth-card__beam::before {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    top: 50%;
    margin-top: -2px;
    border-radius: 50%;
    background: rgba(255, 216, 196, 0.92);
    box-shadow: 0 0 12px rgba(255, 164, 137, 0.46);
}

.depth-card__beam::before {
    left: 16px;
}

.depth-card__beam::after {
    right: 8px;
}

.depth-card__glow {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 236, 230, 0.96) 0 24%, rgba(255, 105, 94, 0.84) 30%, rgba(133, 27, 34, 0.34) 62%, transparent 78%);
    box-shadow: 0 0 36px rgba(255, 120, 105, 0.36);
}

.panel-head {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.panel-head h3 {
    color: rgba(255, 244, 236, 0.92);
    font-size: 22px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.04em;
}

.panel-head--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-link {
    color: rgba(236, 228, 224, 0.72);
    font-size: 15px;
}

.profile-panel {
    padding: 28px 28px 26px;
}

.opened-modes-panel {
    display: grid;
    gap: 18px;
}

.opened-modes-panel__lead {
    max-width: 34ch;
    margin: 8px 0 0;
    color: rgba(246, 240, 234, 0.54);
    font-size: 14px;
    line-height: 1.45;
}

.opened-modes-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.opened-mode-card {
    min-height: 96px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(201, 161, 108, 0.16);
    background:
        linear-gradient(135deg, rgba(201, 161, 108, 0.08), rgba(182, 61, 70, 0.035)),
        rgba(255, 255, 255, 0.025);
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.opened-mode-card__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(201, 161, 108, 0.18);
    background: rgba(201, 161, 108, 0.08);
    overflow: hidden;
}

.opened-mode-card__icon img {
    width: 100%;
    height: 100%;
    padding: 10px;
    display: block;
    object-fit: contain;
    box-sizing: border-box;
    filter: drop-shadow(0 0 10px rgba(201, 161, 108, 0.18));
}

.opened-mode-card__body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.opened-mode-card__body strong {
    color: rgba(255, 244, 236, 0.92);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.18;
}

.opened-mode-card__body small {
    color: rgba(246, 240, 234, 0.48);
    font-size: 12px;
    line-height: 1.35;
}

.opened-mode-card__body em {
    width: max-content;
    margin-top: 2px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(126, 185, 116, 0.24);
    background: rgba(95, 145, 84, 0.12);
    color: rgba(158, 213, 145, 0.9);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.opened-mode-card--subscription {
    border-color: rgba(201, 161, 108, 0.22);
    background:
        linear-gradient(135deg, rgba(201, 161, 108, 0.1), rgba(182, 61, 70, 0.055)),
        rgba(255, 255, 255, 0.025);
}

.opened-mode-card__body .opened-mode-card__badge--locked {
    border-color: rgba(201, 161, 108, 0.28);
    background: rgba(201, 161, 108, 0.12);
    color: rgba(232, 190, 132, 0.95);
}

.opened-mode-card__arrow {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: rgba(246, 240, 234, 0.46);
    background: rgba(255, 255, 255, 0.035);
}

.opened-mode-card__arrow svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) {
    .opened-mode-card {
        transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
    }

    .opened-mode-card:hover {
        transform: translateY(-1px);
        border-color: rgba(201, 161, 108, 0.3);
        background:
            linear-gradient(135deg, rgba(201, 161, 108, 0.11), rgba(182, 61, 70, 0.05)),
            rgba(255, 255, 255, 0.035);
    }
}

.system-path {
    position: relative;
    z-index: 1;
}

.system-path__line {
    position: absolute;
    top: 32px;
    left: 40px;
    right: 40px;
    height: 1px;
    background: linear-gradient(90deg, rgba(227, 78, 74, 0.08), rgba(232, 83, 78, 0.9) 18%, rgba(231, 82, 77, 0.18) 58%, rgba(227, 78, 74, 0.68) 100%);
}

.system-path__nodes {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.system-node {
    position: relative;
    display: grid;
    justify-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: center;
    transition: transform 180ms ease, opacity 180ms ease;
}

.system-node__circle {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 50%;
    border: 1px solid rgba(148, 50, 53, 0.34);
    background: rgba(28, 20, 20, 0.86);
    color: rgba(248, 239, 233, 0.92);
    font: 500 24px/1 "Cormorant Garamond", serif;
    box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.02);
}

.system-node strong {
    color: rgba(247, 239, 234, 0.92);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
}

.system-node small {
    margin-top: 6px;
    color: rgba(221, 214, 211, 0.66);
    font-size: 14px;
    line-height: 1.3;
}

.system-node--completed .system-node__circle {
    border-color: rgba(210, 77, 74, 0.54);
    box-shadow:
        0 0 18px rgba(188, 57, 58, 0.16),
        inset 0 0 16px rgba(188, 57, 58, 0.06);
}

.system-node--active .system-node__circle {
    width: 58px;
    height: 58px;
    border-color: rgba(242, 110, 97, 0.88);
    box-shadow:
        0 0 24px rgba(229, 88, 82, 0.34),
        0 0 0 4px rgba(174, 48, 52, 0.12),
        inset 0 0 18px rgba(255, 183, 170, 0.06);
}

.system-node--active strong,
.system-node--active small {
    color: #fff4ed;
}

.system-node--locked {
    opacity: 0.74;
}

.system-node:hover,
.system-node:focus-visible {
    transform: translateY(-2px);
}

.system-node:focus-visible {
    outline: none;
}

.scenario-grid,
.dual-grid,
.triple-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
}

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

.scenario-tile {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    align-content: start;
    min-height: 286px;
    padding: 22px 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(109, 35, 39, 0.34);
    background:
        radial-gradient(circle at 0% 0%, rgba(105, 25, 30, 0.08), transparent 42%),
        rgba(19, 16, 16, 0.48);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.scenario-tile:hover,
.mini-card__cta:hover {
    transform: translateY(-2px);
}

.scenario-tile:hover {
    border-color: rgba(172, 58, 61, 0.42);
}

.scenario-tile__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    border-radius: 50%;
    border: 1px solid rgba(206, 77, 73, 0.42);
    background:
        radial-gradient(circle at center, rgba(116, 26, 31, 0.62), rgba(30, 21, 21, 0.92));
    color: #f2967d;
    box-shadow:
        inset 0 0 16px rgba(226, 111, 97, 0.06),
        0 0 22px rgba(123, 28, 32, 0.12);
}

.scenario-tile__icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.65;
}

.scenario-tile__icon img {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

.scenario-tile strong {
    display: block;
    min-height: 54px;
    overflow: hidden;
    color: #fff2ea;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.05;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.scenario-tile__time {
    display: block;
    margin-top: 12px;
    color: rgba(226, 218, 214, 0.7);
    font-size: 15px;
}

.scenario-tile p {
    margin: 18px 0 0;
    max-width: 100%;
    overflow: hidden;
    color: rgba(231, 224, 220, 0.74);
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.scenario-tile__arrow {
    position: absolute;
    right: 20px;
    bottom: 18px;
    color: rgba(231, 224, 220, 0.78);
    font-size: 28px;
    line-height: 1;
}

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

.insight-list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 14px 0 0;
    list-style: none;
}

.insight-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(234, 227, 223, 0.8);
    font-size: 16px;
    line-height: 1.45;
}

.insight-list__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(157, 53, 56, 0.34);
    color: #ef9c84;
    background: rgba(24, 19, 19, 0.64);
}

.insight-list__icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.7;
}

.signal-card__content {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(220px, 1fr);
    gap: 10px;
    align-items: center;
}

.signal-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.signal-card:hover,
.signal-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(172, 58, 61, 0.42);
    outline: none;
}

.signal-card__copy strong {
    display: block;
    color: #e15956;
    font-size: 88px;
    font-weight: 500;
    line-height: 0.86;
}

.signal-card__copy p {
    margin: 18px 0 0;
    color: rgba(235, 228, 224, 0.8);
    font-size: 18px;
}

.signal-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 18px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 40, 44, 0.48);
    color: #e45e5a;
    font-size: 18px;
    letter-spacing: 0.06em;
}

.signal-card__orb {
    position: relative;
    width: 100%;
    height: 220px;
}

.signal-card__ring,
.signal-card__core {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
}

.signal-card__ring {
    border-radius: 50%;
    border: 1px solid rgba(149, 43, 46, 0.18);
}

.signal-card__ring--one {
    width: 198px;
    height: 198px;
    animation: signalPulse 8.8s ease-in-out infinite;
}

.signal-card__ring--two {
    width: 152px;
    height: 152px;
    animation: signalPulse 7.1s ease-in-out infinite reverse;
}

.signal-card__ring--three {
    width: 106px;
    height: 106px;
    animation: signalPulse 5.4s ease-in-out infinite;
}

.signal-card__core {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 244, 236, 0.98) 0 26%, rgba(255, 126, 108, 0.88) 34%, rgba(162, 33, 39, 0.42) 68%, transparent 82%);
    box-shadow: 0 0 36px rgba(248, 122, 103, 0.36);
    animation: signalCoreGlow 4.8s ease-in-out infinite;
}

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

.mini-card {
    min-height: 252px;
}

.stat-list {
    display: grid;
    gap: 22px;
    margin: 0;
    padding: 10px 0 0;
    list-style: none;
}

.stat-list li {
    display: grid;
    grid-template-columns: 52px auto 1fr;
    align-items: center;
    gap: 14px;
}

.stat-list__icon,
.mode-icons__item,
.archive-card__icon {
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(150, 44, 46, 0.4);
    background: rgba(21, 18, 18, 0.56);
    color: #f1987f;
}

.stat-list__icon {
    width: 44px;
    height: 44px;
}

.stat-list__icon svg,
.archive-card__icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.65;
}

.stat-list__icon img,
.archive-card__icon img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.stat-list strong {
    color: #fff3eb;
    font-size: 28px;
    font-weight: 500;
}

.stat-list span {
    color: rgba(232, 226, 222, 0.72);
    font-size: 17px;
}

.mode-icons {
    display: flex;
    gap: 16px;
    padding-top: 12px;
}

.mode-icons__item {
    width: 62px;
    height: 62px;
    color: rgba(248, 147, 121, 0.96);
}

.mode-icons__item svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.7;
}

.mode-icons__item img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.mode-icons__item--active {
    box-shadow: 0 0 18px rgba(166, 50, 51, 0.16);
}

.mini-card__meta,
.archive-card p {
    margin: 22px 0 0;
    color: rgba(231, 224, 220, 0.76);
    font-size: 16px;
    line-height: 1.55;
}

.mini-card__cta {
    display: grid;
    place-items: center;
    height: 60px;
    margin-top: 22px;
    border-radius: 14px;
    border: 1px solid rgba(154, 46, 49, 0.52);
    background: linear-gradient(180deg, rgba(102, 25, 29, 0.9), rgba(95, 23, 27, 0.86));
    color: #fff2ea;
    font-size: 18px;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 180ms ease, filter 180ms ease;
}

.archive-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding-top: 8px;
}

.archive-card__icon {
    width: 52px;
    height: 52px;
}

.archive-card p {
    margin: 0;
}

.profile-empty-state {
    display: grid;
    gap: 10px;
    align-items: center;
    min-height: 286px;
    padding: 30px 26px;
    border-radius: 22px;
    border: 1px solid rgba(109, 35, 39, 0.34);
    background:
        radial-gradient(circle at 0% 0%, rgba(105, 25, 30, 0.08), transparent 42%),
        rgba(19, 16, 16, 0.48);
}

.profile-empty-state strong {
    color: #fff2ea;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.08;
}

.profile-empty-state p {
    margin: 0;
    color: rgba(231, 224, 220, 0.74);
    font-size: 16px;
    line-height: 1.55;
}

.profile-empty-state--wide {
    grid-column: 1 / -1;
}

.profile-level-modal[hidden] {
    display: none;
}

.profile-modal-open {
    overflow: hidden;
}

.profile-level-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.profile-level-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(6, 5, 5, 0.74);
}

.profile-level-modal__sheet {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(440px, calc(100vw - 32px));
    padding: 26px 24px 22px;
    border-radius: 24px;
    border: 1px solid rgba(126, 40, 43, 0.34);
    background:
        radial-gradient(circle at 50% 0%, rgba(142, 31, 37, 0.14), transparent 38%),
        rgba(20, 16, 16, 0.92);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    transform: translate(-50%, -50%);
}

.profile-level-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(243, 236, 232, 0.82);
    font-size: 22px;
    line-height: 1;
}

.profile-level-modal__eyebrow {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 40, 44, 0.48);
    color: #e45e5a;
    font-size: 14px;
    letter-spacing: 0.06em;
}

.profile-level-modal__sheet h4 {
    margin: 18px 0 0;
    color: #fff2ea;
    font: 500 34px/0.95 "Cormorant Garamond", serif;
}

.profile-level-modal__sheet p {
    margin: 16px 0 0;
    color: rgba(235, 228, 224, 0.8);
    font-size: 17px;
    line-height: 1.55;
}

.profile-level-modal__sheet small {
    display: block;
    margin-top: 16px;
    color: rgba(226, 218, 214, 0.7);
    font-size: 14px;
}

.profile-legacy-cache {
    display: none;
}

@keyframes particleFloat {
    0%,
    100% {
        transform: translate(-50%, -50%) translate3d(0, 0, 0);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50%, -50%) translate3d(5px, -12px, 0);
        opacity: 1;
    }
}

@keyframes heroOrbitOne {
    0% { transform: translate(-50%, -50%) rotate(18deg); }
    100% { transform: translate(-50%, -50%) rotate(378deg); }
}

@keyframes heroOrbitTwo {
    0% { transform: translate(-50%, -50%) rotate(44deg); }
    100% { transform: translate(-50%, -50%) rotate(-316deg); }
}

@keyframes depthBarPulse {
    0%, 100% { opacity: 0.92; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.02); }
}

@keyframes depthOrbFloat {
    0%, 100% { transform: translate(-50%, -50%) rotate(-38deg) translate3d(0, 0, 0); }
    50% { transform: translate(-50%, -50%) rotate(-38deg) translate3d(0, -6px, 0); }
}

@keyframes signalPulse {
    0%, 100% { opacity: 0.48; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.92; transform: translate(-50%, -50%) scale(1.03); }
}

@keyframes signalCoreGlow {
    0%, 100% { opacity: 0.88; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@media (max-width: 1080px) {
    .profile-reference-main {
        width: min(100%, 980px);
    }

    .profile-hero {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .depth-card {
        grid-column: 1 / -1;
    }

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

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

    .triple-grid .mini-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .profile-reference {
        gap: 18px;
    }

    .profile-hero,
    .dual-grid,
    .triple-grid,
    .scenario-grid {
        grid-template-columns: 1fr;
    }

    .profile-hero {
        gap: 22px;
        padding: 24px 18px 20px;
    }

    .hero-orb__system {
        width: 180px;
        height: 180px;
    }

    .hero-orb__ring--outer {
        width: 170px;
        height: 170px;
    }

    .hero-orb__trace--one {
        width: 174px;
    }

    .hero-orb__trace--two {
        width: 126px;
        height: 170px;
    }

    .hero-orb__ring--inner {
        width: 132px;
        height: 132px;
    }

    .hero-orb__core {
        width: 104px;
        height: 104px;
        font-size: 44px;
    }

    .hero-copy h1 {
        font-size: 52px;
    }

    .hero-copy p,
    .depth-card p {
        font-size: 16px;
    }

    .depth-card {
        min-height: auto;
        padding-bottom: 180px;
    }

    .depth-card strong,
    .signal-card__copy strong {
        font-size: 68px;
    }

    .depth-card__orb {
        top: auto;
        right: 50%;
        bottom: 12px;
        transform: translateX(50%);
        width: 170px;
        height: 170px;
    }

    .system-path__nodes {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: 22px;
    }

    .system-path__line {
        display: none;
    }

    .signal-card__content {
        grid-template-columns: 1fr;
    }

    .signal-card__orb {
        height: 180px;
    }

    .profile-level-modal__sheet {
        width: calc(100vw - 24px);
        padding: 24px 18px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-orb__particle,
    .hero-orb__trace,
    .depth-card__bar span,
    .depth-card__orb,
    .signal-card__ring,
    .signal-card__core {
        animation: none;
    }

    .profile-header__button,
    .scenario-tile,
    .mini-card__cta,
    .signal-card,
    .system-node {
        transition: none;
    }
}

.profile-reference {
    gap: 28px;
}

.profile-panel--hero-rail {
    padding: 0;
    overflow: hidden;
}

.hero-rail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 12% 50%, rgba(168, 44, 51, 0.14), transparent 34%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.01));
}

.hero-rail__status,
.hero-rail__metrics {
    padding: 22px 24px;
}

.hero-rail__status {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-rail__label,
.panel-head__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(229, 100, 95, 0.84);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-rail__status strong {
    display: block;
    margin-top: 10px;
    color: #f9efe8;
    font: 500 32px/0.96 "Cormorant Garamond", serif;
}

.hero-rail__status small,
.referral-metric small,
.referral-progress small,
.archive-line__summary small,
.diagnostic-card small {
    display: block;
    margin-top: 8px;
    color: rgba(222, 215, 210, 0.68);
    font-size: 13px;
    line-height: 1.5;
}

.hero-rail__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hero-rail__metrics article {
    min-height: 112px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.016);
}

.hero-rail__metrics span,
.referral-metric span,
.diagnostic-card span {
    display: block;
    color: rgba(224, 217, 212, 0.66);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-rail__metrics strong,
.referral-metric strong,
.diagnostic-card strong {
    display: block;
    margin-top: 14px;
    color: #fff3ec;
    font: 500 32px/0.95 "Cormorant Garamond", serif;
}

.panel-head__meta {
    color: rgba(223, 214, 209, 0.7);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.referral-panel {
    overflow: hidden;
}

.referral-panel__status {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(170, 52, 56, 0.34);
    background: rgba(112, 28, 32, 0.12);
    color: #f0c6bd;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.referral-panel__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 26px;
    margin-top: 24px;
}

.referral-panel__copy > p {
    margin: 0;
    max-width: 540px;
    color: rgba(232, 224, 219, 0.76);
    font-size: 16px;
    line-height: 1.7;
}

.referral-panel__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.referral-metric {
    min-height: 118px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    background:
        radial-gradient(circle at 12% 10%, rgba(171, 49, 54, 0.1), transparent 40%),
        rgba(255, 255, 255, 0.016);
}

.referral-progress {
    margin-top: 22px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.015);
}

.referral-progress__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.referral-progress__head span {
    color: rgba(223, 216, 210, 0.64);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.referral-progress__head strong {
    color: #fff0e7;
    font: 500 26px/1 "Cormorant Garamond", serif;
}

.referral-progress__bar {
    position: relative;
    height: 7px;
    margin-top: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.referral-progress__bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--referral-progress, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(177, 44, 50, 0.6), rgba(229, 98, 93, 0.9));
    box-shadow: 0 0 18px rgba(177, 44, 50, 0.28);
    animation: depthBarPulse 5.4s ease-in-out infinite;
}

.referral-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.referral-panel__cta,
.referral-panel__secondary {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.referral-panel__cta {
    border: 1px solid rgba(182, 52, 57, 0.34);
    background: linear-gradient(180deg, rgba(121, 28, 34, 0.92), rgba(84, 20, 24, 0.96));
    color: #fff3ed;
    box-shadow: 0 14px 34px rgba(72, 9, 11, 0.28);
}

.referral-panel__secondary {
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(239, 232, 226, 0.82);
}

.referral-panel__cta:hover,
.referral-panel__secondary:hover {
    transform: translateY(-1px);
}

.referral-network {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 8%, rgba(172, 45, 49, 0.18), transparent 40%),
        rgba(255, 255, 255, 0.015);
}

.referral-network__map {
    position: relative;
    height: 300px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background:
        radial-gradient(circle at 50% 50%, rgba(149, 34, 39, 0.14), transparent 54%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008));
    overflow: hidden;
}

.referral-network__map::before,
.referral-network__map::after {
    content: "";
    position: absolute;
    inset: 50%;
    border-radius: 50%;
    border: 1px solid rgba(176, 58, 61, 0.12);
    transform: translate(-50%, -50%);
}

.referral-network__map::before {
    width: 164px;
    height: 164px;
}

.referral-network__map::after {
    width: 236px;
    height: 236px;
}

.referral-network__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.referral-network__svg line {
    stroke: rgba(194, 69, 64, 0.2);
    stroke-width: 0.36;
}

.referral-network__core,
.referral-network__node {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.referral-network__core {
    left: 50%;
    top: 50%;
    width: 78px;
    height: 78px;
    border: 1px solid rgba(205, 83, 78, 0.44);
    background:
        radial-gradient(circle, rgba(237, 119, 109, 0.32), rgba(115, 28, 31, 0.92));
    color: #fff8f3;
    box-shadow:
        0 0 42px rgba(184, 60, 55, 0.34),
        inset 0 0 30px rgba(255, 221, 214, 0.08);
    animation: signalCoreGlow 7s ease-in-out infinite;
}

.referral-network__node {
    left: var(--x);
    top: var(--y);
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 244, 239, 0.92);
    font-size: 14px;
    background: rgba(30, 23, 23, 0.86);
}

.referral-network__node--active {
    box-shadow: 0 0 22px rgba(186, 62, 56, 0.28);
    border-color: rgba(201, 79, 73, 0.28);
}

.referral-network__node--pending {
    opacity: 0.82;
}

.referral-network__people {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.referral-person {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.018);
}

.referral-person__initial {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(165, 44, 49, 0.16);
    color: #fff4ee;
}

.referral-person strong {
    display: block;
    color: #fff3ec;
    font-size: 15px;
    font-weight: 600;
}

.referral-person small {
    display: block;
    margin-top: 3px;
    color: rgba(225, 217, 211, 0.66);
    font-size: 12px;
}

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

.scenario-tile--detailed {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
    min-height: 280px;
    padding: 22px;
}

.scenario-tile__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.scenario-tile__status,
.signal-card__inline-badge {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(177, 53, 58, 0.3);
    background: rgba(131, 28, 34, 0.12);
    color: #efc0b7;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scenario-tile__body {
    display: grid;
    align-content: start;
    gap: 10px;
}

.scenario-tile__body small {
    color: rgba(228, 219, 214, 0.62);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.scenario-tile__body strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #fff4ed;
    font: 500 28px/1 "Cormorant Garamond", serif;
}

.scenario-tile__body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 72px;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    color: rgba(233, 224, 219, 0.76);
    font-size: 15px;
    line-height: 1.58;
}

.scenario-tile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-right: 32px;
}

.scenario-tile__meta span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(236, 228, 223, 0.7);
    font-size: 12px;
}

.scenario-tile__arrow {
    position: absolute;
    right: 22px;
    bottom: 22px;
}

.scenario-tile--detailed:hover {
    transform: translateY(-2px);
}

.dual-grid--system {
    align-items: stretch;
}

.insight-list--rich {
    gap: 14px;
}

.insight-list--rich li {
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.insight-list--rich li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.insight-list--rich .insight-list__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.insight-list--rich .insight-list__icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.signal-card--expanded .signal-card__copy p {
    max-width: 340px;
}

.signal-card__metrics {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.signal-card__metrics span {
    display: inline-flex;
    color: rgba(230, 222, 217, 0.72);
    font-size: 13px;
}

.diagnostic-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.diagnostic-card {
    min-height: 174px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008)),
        radial-gradient(circle at 14% 0%, rgba(175, 50, 54, 0.09), transparent 40%);
}

.diagnostic-card__icon,
.archive-line__summary-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.diagnostic-card__icon img,
.archive-line__summary-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.diagnostic-card strong {
    margin-top: 18px;
}

.diagnostic-card span:nth-of-type(2) {
    margin-top: 8px;
}

.archive-line__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    margin-top: 24px;
}

.archive-line__intro {
    display: grid;
    gap: 18px;
}

.archive-line__summary {
    min-height: 220px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    background:
        radial-gradient(circle at 16% 10%, rgba(169, 43, 49, 0.12), transparent 42%),
        rgba(255, 255, 255, 0.015);
}

.archive-line__summary strong {
    display: block;
    margin-top: 18px;
    color: #fff2ea;
    font: 500 30px/1 "Cormorant Garamond", serif;
}

.archive-line__summary p {
    margin: 12px 0 0;
    color: rgba(234, 225, 219, 0.76);
    font-size: 16px;
    line-height: 1.6;
}

.archive-timeline {
    display: grid;
    gap: 14px;
}

.archive-timeline__item {
    position: relative;
    padding: 0 0 0 26px;
}

.archive-timeline__item::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 18px;
    bottom: -16px;
    width: 1px;
    background: linear-gradient(180deg, rgba(177, 60, 57, 0.28), rgba(177, 60, 57, 0));
}

.archive-timeline__item:last-child::before {
    display: none;
}

.archive-timeline__dot {
    position: absolute;
    left: 0;
    top: 12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(201, 84, 77, 0.3);
    background: radial-gradient(circle, rgba(223, 114, 107, 0.48), rgba(119, 28, 33, 0.9));
    box-shadow: 0 0 18px rgba(177, 60, 57, 0.22);
}

.archive-timeline__content {
    padding: 14px 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.015);
}

.archive-timeline__content small {
    color: rgba(222, 215, 210, 0.6);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.archive-timeline__content strong {
    display: block;
    margin-top: 8px;
    color: #fff2eb;
    font-size: 17px;
    font-weight: 600;
}

.archive-timeline__content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: rgba(232, 224, 219, 0.74);
    font-size: 14px;
    line-height: 1.58;
}

@media (max-width: 1080px) {
    .hero-rail,
    .referral-panel__grid,
    .archive-line__grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .profile-reference {
        gap: 20px;
    }

    .hero-rail__metrics,
    .referral-panel__metrics,
    .diagnostic-grid,
    .scenario-grid--immersive {
        grid-template-columns: 1fr;
    }

    .hero-rail__status,
    .hero-rail__metrics,
    .referral-network,
    .archive-line__summary,
    .archive-timeline__content,
    .referral-metric,
    .diagnostic-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .referral-network__map {
        height: 240px;
    }

    .referral-network__core {
        width: 68px;
        height: 68px;
    }

    .referral-network__node {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .scenario-tile--detailed {
        min-height: 0;
    }

    .scenario-tile__body strong {
        font-size: 24px;
    }

    .scenario-tile__body p {
        min-height: 0;
        -webkit-line-clamp: 3;
    }
}

/* Layout rollback: restore lighter hierarchy with compact referral integration */

.profile-reference {
    gap: 22px;
}

.referral-panel {
    padding: 22px 22px 20px;
}

.referral-panel .panel-head h3 {
    max-width: 420px;
}

.referral-panel__grid {
    grid-template-columns: minmax(0, 1.15fr) 260px;
    gap: 18px;
    margin-top: 18px;
    align-items: stretch;
}

.referral-panel__copy > p {
    margin: 0 0 16px;
    max-width: 520px;
    font-size: 14px;
    line-height: 1.55;
}

.referral-panel__metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
}

.referral-metric {
    min-height: 96px;
    padding: 14px 14px 12px;
    border-radius: 16px;
}

.referral-metric strong {
    margin-top: 10px;
    font-size: 24px;
}

.referral-metric small {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
}

.referral-panel__actions {
    margin-top: 16px;
}

.referral-panel__cta,
.referral-panel__secondary {
    min-height: 42px;
    padding: 0 16px;
    font-size: 13px;
}

.referral-network {
    display: grid;
    align-content: space-between;
    padding: 14px;
    border-radius: 20px;
}

.referral-network__map {
    height: 170px;
    border-radius: 18px;
}

.referral-network__map::before {
    width: 120px;
    height: 120px;
}

.referral-network__map::after {
    width: 168px;
    height: 168px;
}

.referral-network__core {
    width: 58px;
    height: 58px;
    font-size: 13px;
}

.referral-network__node {
    width: 28px;
    height: 28px;
    font-size: 10px;
}

.referral-network__caption {
    display: block;
    margin-top: 12px;
    color: rgba(225, 217, 212, 0.62);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.scenario-grid--immersive .scenario-tile {
    min-height: 0;
}

.scenario-grid--immersive .scenario-tile strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.scenario-grid--immersive .scenario-tile p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 56px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.signal-card__badge {
    display: inline-flex;
    margin-top: 16px;
}

.triple-grid {
    align-items: start;
}

.archive-card--compact {
    display: grid;
    gap: 12px;
}

.archive-card--compact p {
    margin: 0;
    color: rgba(232, 224, 219, 0.76);
    font-size: 15px;
    line-height: 1.55;
}

.archive-timeline--compact {
    gap: 10px;
}

.archive-timeline--compact .archive-timeline__item {
    padding-left: 20px;
}

.archive-timeline--compact .archive-timeline__item::before {
    left: 6px;
    top: 16px;
    bottom: -12px;
}

.archive-timeline--compact .archive-timeline__dot {
    top: 10px;
    width: 12px;
    height: 12px;
}

.archive-timeline--compact .archive-timeline__content {
    padding: 10px 12px 12px;
    border-radius: 14px;
}

.archive-timeline--compact .archive-timeline__content strong {
    font-size: 14px;
}

.archive-timeline--compact .archive-timeline__content p {
    -webkit-line-clamp: 2;
    font-size: 13px;
}

@media (max-width: 1080px) {
    .referral-panel__grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 760px) {
    .referral-panel {
        padding: 18px 18px 16px;
    }

    .referral-panel__metrics,
    .scenario-grid--immersive {
        grid-template-columns: 1fr;
    }

    .referral-network {
        padding: 12px;
    }

    .referral-network__map {
        height: 150px;
    }
}

/* Referral block final direction */

.referral-panel {
    position: relative;
    min-height: 438px;
    padding: 42px 44px 40px;
    border-radius: 30px;
    border: 1px solid rgba(146, 30, 34, 0.38);
    background:
        radial-gradient(circle at 0% 18%, rgba(148, 20, 28, 0.12), transparent 30%),
        radial-gradient(circle at 100% 100%, rgba(125, 18, 24, 0.1), transparent 34%),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.015), transparent 58%),
        linear-gradient(180deg, rgba(11, 11, 12, 0.98), rgba(8, 8, 9, 0.99));
    box-shadow:
        0 0 0 1px rgba(171, 36, 41, 0.04),
        0 18px 80px rgba(59, 8, 12, 0.18);
    overflow: hidden;
}

.referral-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.018), transparent 24%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.008) 0 1px, transparent 1px 3px);
    opacity: 0.08;
    pointer-events: none;
}

.referral-panel__grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1.88fr) minmax(320px, 0.92fr);
    gap: 36px;
    align-items: stretch;
    margin-top: 0;
}

.referral-panel__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.referral-panel__copy .panel-head__eyebrow {
    color: #f4554d;
    font-size: 12px;
    letter-spacing: 0.16em;
}

.referral-panel__copy h3 {
    max-width: 84%;
    margin: 20px 0 0;
    color: #fff6f0;
    font: 500 clamp(38px, 4.1vw, 58px)/0.98 "Cormorant Garamond", serif;
    letter-spacing: 0;
}

.referral-panel__copy p {
    max-width: 70%;
    margin: 30px 0 0;
    color: rgba(222, 215, 210, 0.82);
    font-size: 15px;
    line-height: 1.62;
}

.referral-panel__metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.referral-metric {
    position: relative;
    min-height: 176px;
    padding: 24px 20px 18px;
    border-radius: 24px;
    border: 1px solid rgba(146, 34, 39, 0.34);
    background:
        linear-gradient(180deg, rgba(14, 14, 15, 0.92), rgba(11, 11, 12, 0.98)),
        radial-gradient(circle at 50% 0%, rgba(181, 38, 44, 0.06), transparent 44%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.referral-metric__icon {
    display: inline-flex;
    width: 74px;
    height: 74px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(173, 43, 48, 0.48);
    background:
        radial-gradient(circle, rgba(176, 39, 45, 0.16), rgba(22, 18, 18, 0.72));
    box-shadow:
        inset 0 0 30px rgba(229, 93, 88, 0.06),
        0 0 30px rgba(144, 25, 31, 0.1);
}

.referral-metric__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #ff6a61;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.referral-metric > span:last-of-type,
.referral-metric > span:nth-of-type(2) {
    margin-top: 24px;
    color: rgba(213, 206, 200, 0.72);
    font-size: 11px;
    letter-spacing: 0.09em;
}

.referral-metric strong {
    margin-top: 14px;
    color: #fff8f2;
    font: 500 58px/0.92 "Cormorant Garamond", serif;
}

.referral-metric small {
    margin-top: 10px;
    color: rgba(186, 180, 176, 0.78);
    font-size: 13px;
    line-height: 1.42;
}

.referral-panel__actions {
    margin-top: auto;
    padding-top: 30px;
}

.referral-panel__cta {
    width: min(100%, 640px);
    min-height: 64px;
    justify-content: center;
    gap: 14px;
    border-radius: 22px;
    border: 1px solid rgba(232, 102, 96, 0.32);
    background:
        linear-gradient(180deg, rgba(177, 41, 45, 0.96), rgba(132, 28, 33, 0.96)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
    color: #fff8f3;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 214, 0.22),
        0 12px 44px rgba(120, 18, 24, 0.28),
        0 0 34px rgba(171, 34, 38, 0.16);
}

.referral-panel__cta:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 214, 0.24),
        0 14px 48px rgba(120, 18, 24, 0.32),
        0 0 40px rgba(171, 34, 38, 0.2);
}

.referral-panel__cta-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.referral-panel__cta-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.referral-panel__right {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 18px;
}

.referral-panel__status {
    align-self: flex-end;
    min-height: 72px;
    padding: 0 30px 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(150, 36, 41, 0.42);
    background: rgba(21, 15, 16, 0.88);
    color: #f1e7e2;
    font-size: 15px;
    letter-spacing: 0;
    gap: 14px;
}

.referral-panel__status-dot {
    position: relative;
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(151, 33, 37, 0.42);
    background: radial-gradient(circle, rgba(177, 39, 45, 0.18), rgba(18, 14, 15, 0.76));
    box-shadow: inset 0 0 20px rgba(220, 93, 88, 0.06);
}

.referral-panel__status-dot::before,
.referral-panel__status-dot::after {
    content: "";
    position: absolute;
    background: #ff574f;
}

.referral-panel__status-dot::before {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(255, 87, 79, 0.34);
}

.referral-panel__status-dot::after {
    width: 18px;
    height: 18px;
    clip-path: polygon(0 63%, 12% 63%, 24% 28%, 36% 82%, 52% 24%, 66% 63%, 100% 63%, 100% 74%, 60% 74%, 50% 46%, 36% 100%, 22% 40%, 14% 74%, 0 74%);
    background: #ff574f;
    box-shadow: 0 0 12px rgba(255, 87, 79, 0.26);
}

.referral-network {
    flex: 1;
    padding: 28px 26px 24px;
    border-radius: 30px;
    border: 1px solid rgba(147, 33, 38, 0.34);
    background:
        radial-gradient(circle at 50% 42%, rgba(145, 22, 28, 0.12), transparent 48%),
        linear-gradient(180deg, rgba(17, 14, 15, 0.94), rgba(10, 10, 11, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.016);
}

.referral-network__map {
    height: 274px;
    border: 0;
    background:
        radial-gradient(circle at 50% 48%, rgba(163, 30, 36, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.008), rgba(255, 255, 255, 0));
}

.referral-network__map::before,
.referral-network__map::after {
    display: none;
}

.referral-network__orbits {
    position: absolute;
    inset: 0;
}

.referral-network__orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1px solid rgba(187, 52, 50, 0.32);
    transform: translate(-50%, -50%);
}

.referral-network__orbit--one {
    width: 112px;
    height: 112px;
}

.referral-network__orbit--two {
    width: 168px;
    height: 168px;
    border-color: rgba(187, 52, 50, 0.24);
}

.referral-network__orbit--three {
    width: 220px;
    height: 220px;
    border-color: rgba(187, 52, 50, 0.18);
    animation: heroOrbitOne 28s linear infinite;
}

.referral-network__svg line {
    stroke: rgba(232, 84, 76, 0.68);
    stroke-width: 0.42;
    stroke-dasharray: 2.3 2.3;
}

.referral-network__core {
    width: 96px;
    height: 96px;
    border: 1px solid rgba(231, 95, 88, 0.56);
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.24), rgba(178, 35, 40, 0.58) 34%, rgba(36, 17, 18, 0.9) 80%);
    box-shadow:
        0 0 56px rgba(190, 48, 43, 0.34),
        inset 0 0 36px rgba(255, 232, 225, 0.1);
}

.referral-network__core svg {
    width: 38px;
    height: 38px;
    fill: #fff6f1;
    stroke: none;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.3));
}

.referral-network__node {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(221, 88, 81, 0.54);
    background:
        radial-gradient(circle, rgba(248, 114, 103, 0.14), rgba(25, 16, 17, 0.92));
    box-shadow: 0 0 26px rgba(184, 47, 43, 0.18);
}

.referral-network__node svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #fff0eb;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.referral-network__node--1 {
    left: 50% !important;
    top: 18% !important;
}

.referral-network__node--2 {
    left: 22% !important;
    top: 74% !important;
}

.referral-network__node--3 {
    left: 78% !important;
    top: 74% !important;
}

.referral-network__particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 99, 90, 0.84);
    box-shadow: 0 0 12px rgba(255, 99, 90, 0.38);
    animation: particleFloat 8s ease-in-out infinite;
}

.referral-network__particle--one {
    left: 18%;
    top: 32%;
}

.referral-network__particle--two {
    right: 18%;
    top: 62%;
    animation-delay: 1.2s;
}

.referral-network__particle--three {
    right: 30%;
    top: 20%;
    animation-delay: 2.4s;
}

.referral-network__footer {
    margin-top: 26px;
}

.referral-network__footer strong {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ff5d55;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.referral-network__footer strong span {
    color: #fff3ec;
    font-size: 23px;
    letter-spacing: 0;
    text-transform: none;
}

.referral-network__footer small {
    display: block;
    margin-top: 10px;
    color: rgba(210, 203, 198, 0.76);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 1180px) {
    .referral-panel {
        min-height: 0;
        padding: 36px 30px 32px;
    }

    .referral-panel__grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .referral-panel__copy h3,
    .referral-panel__copy p {
        max-width: 100%;
    }

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

    .referral-panel__cta {
        width: 100%;
    }

    .referral-panel__right {
        gap: 16px;
    }

    .referral-panel__status {
        align-self: flex-start;
    }
}

@media (max-width: 760px) {
    .referral-panel {
        padding: 24px 20px 22px;
        border-radius: 26px;
    }

    .referral-panel__copy h3 {
        margin-top: 14px;
        font-size: 34px;
    }

    .referral-panel__copy p {
        margin-top: 18px;
        font-size: 14px;
    }

    .referral-panel__metrics {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 22px;
    }

    .referral-metric {
        min-height: 148px;
        padding: 16px 14px 14px;
        border-radius: 18px;
    }

    .referral-metric__icon {
        width: 58px;
        height: 58px;
    }

    .referral-metric strong {
        font-size: 42px;
    }

    .referral-panel__actions {
        padding-top: 22px;
    }

    .referral-panel__cta {
        min-height: 58px;
        border-radius: 18px;
    }

    .referral-panel__status {
        width: 100%;
        min-height: 58px;
        justify-content: flex-start;
        padding: 0 18px 0 14px;
        font-size: 14px;
    }

    .referral-panel__status-dot {
        width: 42px;
        height: 42px;
    }

    .referral-network {
        padding: 18px 16px 18px;
        border-radius: 22px;
    }

    .referral-network__map {
        height: 216px;
    }

    .referral-network__orbit--one {
        width: 88px;
        height: 88px;
    }

    .referral-network__orbit--two {
        width: 132px;
        height: 132px;
    }

    .referral-network__orbit--three {
        width: 176px;
        height: 176px;
    }

    .referral-network__core {
        width: 78px;
        height: 78px;
    }

    .referral-network__node {
        width: 44px;
        height: 44px;
    }
}

/* Referral refinement: compact premium network block */

.referral-panel {
    min-height: 0;
    max-height: 380px;
    padding: 38px 40px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 0% 0%, rgba(120, 16, 22, 0.1), transparent 28%),
        radial-gradient(circle at 90% 18%, rgba(117, 16, 22, 0.06), transparent 26%),
        linear-gradient(180deg, rgba(8, 8, 9, 0.985), rgba(10, 10, 11, 0.99));
    box-shadow:
        0 0 0 1px rgba(142, 28, 33, 0.03),
        0 12px 48px rgba(60, 7, 11, 0.16);
}

.referral-panel::before {
    opacity: 0.045;
}

.referral-panel__grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(250px, 0.85fr);
    gap: 28px;
}

.referral-panel__copy h3 {
    max-width: 620px;
    margin-top: 16px;
    font-size: clamp(42px, 3.6vw, 56px);
    line-height: 0.98;
}

.referral-panel__copy p {
    max-width: 430px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.58;
    color: rgba(214, 208, 203, 0.76);
}

.referral-panel__metrics {
    gap: 12px;
    margin-top: 26px;
}

.referral-metric {
    min-height: 138px;
    padding: 16px 16px 14px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(13, 13, 14, 0.94), rgba(10, 10, 11, 0.98));
}

.referral-metric__icon {
    width: 52px;
    height: 52px;
    box-shadow:
        inset 0 0 18px rgba(229, 93, 88, 0.05),
        0 0 18px rgba(144, 25, 31, 0.06);
}

.referral-metric__icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.65;
}

.referral-metric > span:last-of-type,
.referral-metric > span:nth-of-type(2) {
    margin-top: 16px;
    font-size: 10px;
    letter-spacing: 0.11em;
}

.referral-metric strong {
    margin-top: 10px;
    font-size: 42px;
}

.referral-metric small {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(184, 178, 173, 0.72);
}

.referral-panel__actions {
    padding-top: 22px;
}

.referral-panel__cta {
    width: min(100%, 600px);
    min-height: 58px;
    justify-content: center;
    padding: 0 20px;
    border-radius: 19px;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 214, 0.18),
        0 10px 28px rgba(120, 18, 24, 0.2),
        0 0 18px rgba(171, 34, 38, 0.08);
}

.referral-panel__cta:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 214, 0.2),
        0 12px 30px rgba(120, 18, 24, 0.22),
        0 0 20px rgba(171, 34, 38, 0.1);
}

.referral-panel__cta span:last-child {
    font-size: 15px;
    font-weight: 500;
}

.referral-panel__right {
    gap: 14px;
}

.referral-panel__status {
    min-height: 50px;
    padding: 0 16px 0 12px;
    font-size: 13px;
    border-radius: 999px;
    background: rgba(19, 15, 16, 0.9);
}

.referral-panel__status-dot {
    width: 34px;
    height: 34px;
}

.referral-panel__status-dot::before {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff574f;
    box-shadow: 0 0 10px rgba(255, 87, 79, 0.32);
}

.referral-panel__status-dot::after {
    display: none;
}

.referral-network {
    padding: 16px 16px 14px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 45%, rgba(121, 16, 23, 0.11), transparent 36%),
        linear-gradient(180deg, rgba(14, 12, 13, 0.94), rgba(11, 11, 12, 0.98));
}

.referral-network__map {
    height: 222px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 46%, rgba(153, 25, 31, 0.08), transparent 28%);
}

.referral-network__svg line {
    stroke: rgba(212, 78, 72, 0.42);
    stroke-width: 0.5;
    stroke-dasharray: none;
}

.referral-network__core {
    left: 50%;
    top: 46%;
    width: 72px;
    height: 72px;
    box-shadow:
        0 0 34px rgba(190, 48, 43, 0.2),
        inset 0 0 22px rgba(255, 232, 225, 0.08);
}

.referral-network__core svg {
    width: 30px;
    height: 30px;
}

.referral-network__node {
    width: 42px;
    height: 42px;
    background: rgba(20, 16, 17, 0.94);
    box-shadow: 0 0 14px rgba(184, 47, 43, 0.08);
}

.referral-network__node svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.65;
}

.referral-network__node--top {
    left: 50%;
    top: 18%;
}

.referral-network__node--left {
    left: 26%;
    top: 68%;
}

.referral-network__node--right {
    left: 74%;
    top: 68%;
}

.referral-network__particle {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 8px rgba(255, 99, 90, 0.22);
    opacity: 0.7;
}

.referral-network__particle--one {
    left: 22%;
    top: 30%;
}

.referral-network__particle--two {
    right: 24%;
    top: 28%;
}

.referral-network__particle--three {
    left: 36%;
    bottom: 20%;
}

.referral-network__particle--four {
    right: 36%;
    bottom: 18%;
    animation-delay: 1.8s;
}

.referral-network__footer {
    margin-top: 18px;
}

.referral-network__footer strong {
    gap: 8px;
    color: #f15e56;
    font-size: 15px;
}

.referral-network__footer strong span {
    font-size: 16px;
    color: rgba(255, 243, 236, 0.9);
}

.referral-network__footer small {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(192, 186, 182, 0.68);
}

@media (max-width: 1180px) {
    .referral-panel {
        max-height: none;
        padding: 30px 28px;
    }

    .referral-panel__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .referral-panel__copy h3 {
        max-width: 640px;
    }

    .referral-panel__copy p {
        max-width: 500px;
    }

    .referral-panel__right {
        max-width: 360px;
    }
}

@media (max-width: 760px) {
    .referral-panel {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .referral-panel__copy h3 {
        font-size: 34px;
        max-width: 100%;
    }

    .referral-panel__copy p {
        max-width: 100%;
        margin-top: 16px;
    }

    .referral-panel__metrics {
        grid-template-columns: 1fr 1fr;
    }

    .referral-metric {
        min-height: 128px;
        padding: 14px 14px 12px;
    }

    .referral-metric strong {
        font-size: 34px;
    }

    .referral-panel__cta {
        width: 100%;
        min-height: 54px;
    }

    .referral-panel__right {
        max-width: none;
    }

    .referral-network__map {
        height: 200px;
    }
}

/* Final fixes: icon alignment and CTA visibility */

.referral-panel {
    max-height: none;
    height: auto;
}

.referral-panel__copy {
    min-width: 0;
}

.referral-panel__actions {
    display: flex;
    margin-top: 18px;
    padding-top: 18px;
}

.referral-panel__cta {
    display: inline-flex;
    width: min(100%, 600px);
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    visibility: visible;
    opacity: 1;
}

.referral-metric {
    display: flex;
    flex-direction: column;
}

.referral-metric__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
    line-height: 0;
}

.referral-metric__icon svg,
.referral-panel__cta-icon svg,
.referral-network__core svg,
.referral-network__node svg {
    display: block;
    margin: 0;
    overflow: visible;
}

.referral-metric > span:nth-of-type(2) {
    margin-top: 14px;
}

@media (max-width: 1180px) {
    .referral-panel__cta {
        width: 100%;
    }
}

.referral-metric__icon svg {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    margin: 0;
    transform: translate(-50%, -50%);
    fill: none;
    stroke: #ff6a61;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
}

.referral-network__node {
    display: flex;
    align-items: center;
    justify-content: center;
}

.referral-network__node-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 241, 235, 0.95);
    box-shadow: 0 0 10px rgba(255, 241, 235, 0.16);
}

.referral-network__node svg {
    display: none;
}

@media (min-width: 431px) {
    .profile-reference-main {
        width: min(100%, var(--miniapp-max-width, 430px)) !important;
        max-width: var(--miniapp-max-width, 430px) !important;
        padding-inline: 10px !important;
    }

    .profile-hero,
    .dual-grid,
    .triple-grid,
    .scenario-grid,
    .hero-rail,
    .referral-panel__grid,
    .archive-line__grid {
        grid-template-columns: 1fr !important;
    }

    .profile-hero {
        gap: 22px !important;
        padding: 24px 18px 20px !important;
        min-height: auto !important;
    }

    .hero-orb__system {
        width: 180px !important;
        height: 180px !important;
    }

    .hero-orb__ring--outer {
        width: 170px !important;
        height: 170px !important;
    }

    .hero-orb__trace--one {
        width: 174px !important;
    }

    .hero-orb__trace--two {
        width: 126px !important;
        height: 170px !important;
    }

    .hero-orb__ring--inner {
        width: 132px !important;
        height: 132px !important;
    }

    .hero-orb__core {
        width: 104px !important;
        height: 104px !important;
        font-size: 44px !important;
    }

    .hero-copy h1 {
        font-size: 52px !important;
    }

    .hero-copy p,
    .depth-card p {
        font-size: 16px !important;
    }

    .depth-card {
        min-height: auto !important;
        padding-bottom: 180px !important;
    }

    .depth-card strong,
    .signal-card__copy strong {
        font-size: 68px !important;
    }

    .depth-card__orb {
        top: auto !important;
        right: 50% !important;
        bottom: 12px !important;
        transform: translateX(50%) !important;
        width: 170px !important;
        height: 170px !important;
    }

    .hero-rail__metrics,
    .diagnostic-grid,
    .scenario-grid--immersive {
        grid-template-columns: 1fr !important;
    }

    .referral-panel {
        padding: 24px 20px 22px !important;
        border-radius: 26px !important;
    }

    .referral-panel__copy h3 {
        margin-top: 14px !important;
        max-width: 100% !important;
        font-size: 34px !important;
    }

    .referral-panel__copy p {
        max-width: 100% !important;
        margin-top: 18px !important;
        font-size: 14px !important;
    }

    .referral-panel__metrics {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        margin-top: 22px !important;
    }

    .referral-metric {
        min-height: 148px !important;
        padding: 16px 14px 14px !important;
        border-radius: 18px !important;
    }

    .referral-panel__cta {
        width: 100% !important;
        min-height: 54px !important;
    }

    .referral-network__map {
        height: 240px !important;
    }

    .referral-network__core {
        width: 68px !important;
        height: 68px !important;
    }

    .referral-network__node {
        width: 36px !important;
        height: 36px !important;
        font-size: 12px !important;
    }

    .diagnostic-card,
    .referral-metric,
    .archive-line__summary,
    .archive-timeline__content,
    .referral-network {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .scenario-tile--detailed {
        min-height: 0 !important;
    }

    .scenario-tile__body strong {
        font-size: 24px !important;
    }

    .scenario-tile__body p {
        min-height: 0 !important;
        -webkit-line-clamp: 3 !important;
    }
}

/* Mobile-native profile flow */
body[data-page="profile"] .profile-reference {
    display: grid;
    gap: 18px;
}

body[data-page="profile"] .profile-header {
    position: sticky;
    top: calc(4px + var(--safe-top));
    z-index: 20;
    padding: 8px 0 2px;
    backdrop-filter: blur(14px);
}

body[data-page="profile"] .profile-hero,
body[data-page="profile"] .profile-panel {
    border-radius: 28px;
}

body[data-page="profile"] .profile-hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 18px !important;
    min-height: 0 !important;
}

body[data-page="profile"] .hero-orb {
    justify-items: center;
}

body[data-page="profile"] .hero-copy {
    gap: 10px;
    text-align: left;
}

body[data-page="profile"] .hero-copy h1 {
    font-size: clamp(34px, 10vw, 42px) !important;
    line-height: 0.94 !important;
}

body[data-page="profile"] .hero-copy h2 {
    font-size: 18px !important;
}

body[data-page="profile"] .hero-copy p {
    margin-top: 2px;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

body[data-page="profile"] .hero-copy__badges span {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
}

body[data-page="profile"] .depth-card {
    padding: 18px 18px 150px !important;
    border-radius: 22px !important;
}

body[data-page="profile"] .depth-card strong {
    font-size: 60px !important;
}

body[data-page="profile"] .depth-card h3 {
    font-size: 18px;
}

body[data-page="profile"] .referral-panel {
    padding: 18px !important;
}

body[data-page="profile"] .referral-panel__grid {
    display: grid;
    gap: 14px;
}

body[data-page="profile"] .referral-panel__copy {
    display: contents;
}

body[data-page="profile"] .referral-panel__copy > .panel-head__eyebrow,
body[data-page="profile"] .referral-panel__copy > h3,
body[data-page="profile"] .referral-panel__copy > p {
    order: 1;
}

body[data-page="profile"] .referral-panel__right {
    order: 2;
    max-width: none !important;
}

body[data-page="profile"] .referral-panel__metrics {
    order: 3;
}

body[data-page="profile"] .referral-panel__actions {
    order: 4;
    margin-top: 2px !important;
    padding-top: 0 !important;
}

body[data-page="profile"] .referral-panel__copy h3 {
    font-size: clamp(28px, 8vw, 34px) !important;
    line-height: 0.98 !important;
}

body[data-page="profile"] .referral-network {
    padding: 14px !important;
    border-radius: 22px;
}

body[data-page="profile"] .referral-network__map {
    height: 188px !important;
}

body[data-page="profile"] .referral-panel__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body[data-page="profile"] .referral-panel__cta {
    width: 100% !important;
}

body[data-page="profile"] .panel-head h3,
body[data-page="profile"] .insight-card h3,
body[data-page="profile"] .mini-card h3 {
    font-size: 28px;
    line-height: 1;
}

body[data-page="profile"] .system-path {
    overflow-x: auto;
    padding-bottom: 2px;
}

body[data-page="profile"] .system-path__line {
    display: none;
}

body[data-page="profile"] .system-path__nodes {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    gap: 12px;
}

body[data-page="profile"] .system-node {
    min-height: 0;
    padding: 16px;
    border-radius: 22px;
    scroll-snap-align: start;
}

body[data-page="profile"] .scenario-grid--immersive {
    display: flex !important;
    flex-direction: column !important;
    overflow-x: visible !important;
    overflow-y: auto;
    max-height: calc(3.6 * 84px + 3 * 10px);
    gap: 10px !important;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

body[data-page="profile"] .scenario-grid--immersive::-webkit-scrollbar {
    display: none;
}

body[data-page="profile"] .scenario-grid--immersive > * {
    scroll-snap-align: start;
    flex: 0 0 auto;
}

body[data-page="profile"] .scenario-grid--immersive .scenario-tile {
    display: grid !important;
    grid-template-columns: 52px 1fr 28px !important;
    grid-template-rows: auto auto !important;
    align-items: center;
    height: 84px !important;
    min-height: 0 !important;
    padding: 0 14px !important;
}

body[data-page="profile"] .scenario-grid--immersive .scenario-tile p {
    display: none !important;
}

body[data-page="profile"] .scenario-tile {
    min-height: 0;
    padding: 18px;
    border-radius: 22px;
}

body[data-page="profile"] .dual-grid,
body[data-page="profile"] .triple-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
}

body[data-page="profile"] .signal-card__content {
    gap: 16px;
}

body[data-page="profile"] .stat-list {
    gap: 12px;
}

body[data-page="profile"] .mode-icons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="profile"] .opened-modes-list {
    grid-template-columns: 1fr;
}

body[data-page="profile"] .opened-mode-card {
    min-height: 92px;
    border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   ACTIVITY HISTORY — Premium Cinematic Feed
   ═══════════════════════════════════════════════════════════════ */

.activity-history-panel {
    padding: 30px 26px 22px;
}

/* ── See-all button ─────────────────────────────────────── */

.activity-see-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 6px 11px 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(200, 70, 65, 0.2);
    background: rgba(255, 255, 255, 0.025);
    color: rgba(230, 182, 162, 0.62);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
    -webkit-tap-highlight-color: transparent;
}

.activity-see-all svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: transform 220ms ease;
}

@media (hover: hover) {
    .activity-see-all:hover {
        color: rgba(240, 190, 168, 0.92);
        border-color: rgba(210, 78, 72, 0.38);
        background: rgba(175, 46, 43, 0.1);
    }

    .activity-see-all:hover svg {
        transform: translateX(3px);
    }
}

/* ── Feed container ─────────────────────────────────────── */

.activity-feed {
    display: flex;
    flex-direction: column;
}

/* ── Capsule row ────────────────────────────────────────── */

.activity-capsule {
    position: relative;
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.042);
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.activity-capsule:first-child {
    padding-top: 4px;
}

.activity-capsule:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

/* ── Icon wrap ──────────────────────────────────────────── */

.activity-capsule__icon-wrap {
    position: relative;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}

.activity-capsule__icon-aura {
    position: absolute;
    inset: -7px;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(200, 60, 56, 0.24) 0%, transparent 68%);
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
    transition: opacity 300ms ease;
}

.activity-capsule__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    border: 1px solid rgba(198, 66, 62, 0.26);
    background:
        radial-gradient(ellipse at 42% 28%, rgba(148, 36, 34, 0.54) 0%, rgba(15, 9, 9, 0.97) 66%);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        inset 0 0 18px rgba(200, 66, 62, 0.07);
    overflow: hidden;
    transition: border-color 260ms ease, box-shadow 260ms ease;
}

.activity-capsule__icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

/* ── Body ───────────────────────────────────────────────── */

.activity-capsule__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
}

.activity-capsule__title {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: rgba(255, 244, 235, 0.9);
    font: 500 15.5px/1.25 "Cormorant Garamond", Georgia, serif;
    letter-spacing: 0.01em;
}

.activity-capsule__preview {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: rgba(208, 198, 192, 0.42);
    font-size: 12.5px;
    line-height: 1.35;
    letter-spacing: 0.005em;
}

/* ── Right column ───────────────────────────────────────── */

.activity-capsule__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    padding-left: 2px;
}

.activity-capsule__time {
    display: block;
    color: rgba(196, 187, 180, 0.36);
    font-size: 11px;
    letter-spacing: 0.025em;
    line-height: 1;
    white-space: nowrap;
}

/* ── Arrow button ───────────────────────────────────────── */

.activity-capsule__btn {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(192, 65, 60, 0.17);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(222, 166, 146, 0.48);
    flex-shrink: 0;
    transition: border-color 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.activity-capsule__btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* ── Hover states ───────────────────────────────────────── */

@media (hover: hover) {
    .activity-capsule:hover .activity-capsule__icon {
        border-color: rgba(218, 80, 74, 0.5);
        box-shadow:
            0 3px 18px rgba(0, 0, 0, 0.52),
            inset 0 1px 0 rgba(255, 255, 255, 0.07),
            inset 0 0 20px rgba(196, 62, 58, 0.12),
            0 0 22px rgba(182, 50, 48, 0.1);
    }

    .activity-capsule:hover .activity-capsule__icon-aura {
        opacity: 1;
    }

    .activity-capsule:hover .activity-capsule__title {
        color: rgba(255, 248, 242, 1);
    }

    .activity-capsule:hover .activity-capsule__btn {
        border-color: rgba(212, 76, 70, 0.44);
        background: rgba(158, 40, 38, 0.14);
        color: rgba(240, 182, 162, 0.88);
        box-shadow: 0 0 14px rgba(190, 54, 50, 0.2);
    }
}

/* ── Press state (GPU-friendly, no scale) ───────────────── */

.activity-capsule:active .activity-capsule__icon {
    border-color: rgba(222, 82, 76, 0.58);
    box-shadow:
        0 1px 8px rgba(0, 0, 0, 0.52),
        inset 0 0 18px rgba(196, 62, 58, 0.16);
}

.activity-capsule:active .activity-capsule__btn {
    background: rgba(158, 40, 38, 0.2);
    border-color: rgba(212, 76, 70, 0.5);
}

/* ── Profile page overrides ─────────────────────────────── */

body[data-page="profile"] .activity-history-panel {
    padding: 26px 20px 18px;
}

body[data-page="profile"] .activity-history-panel .panel-head {
    margin-bottom: 14px;
}

body[data-page="profile"] .activity-history-panel .panel-head h3 {
    font-size: 26px;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE ARCHIVE — Cinematic Timeline Section  (pa-*)
   ═══════════════════════════════════════════════════════════════ */

.pa-section {
    position: relative;
    overflow: hidden;
    padding: 32px 24px 36px;
    border-radius: 28px;
    background:
        linear-gradient(160deg, rgba(22, 12, 10, 0.97) 0%, rgba(12, 8, 7, 0.99) 100%);
    border: 1px solid rgba(182, 61, 70, 0.14);
    box-shadow:
        0 8px 48px rgba(0, 0, 0, 0.54),
        0 0 80px rgba(182, 61, 70, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ── Ambient glow layers ───────────────────────────── */
.pa-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}
.pa-glow--1 {
    width: 320px;
    height: 320px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(182, 61, 70, 0.08) 0%, transparent 70%);
}
.pa-glow--2 {
    width: 280px;
    height: 280px;
    bottom: -80px;
    left: -80px;
    background: radial-gradient(circle, rgba(182, 61, 70, 0.05) 0%, transparent 70%);
}

/* ── Header row ────────────────────────────────────── */
.pa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.pa-title {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: rgba(246, 240, 234, 0.97);
    letter-spacing: -0.025em;
}

/* ── "Открыть →" pill button ───────────────────────── */
.pa-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(182, 61, 70, 0.44);
    background: rgba(182, 61, 70, 0.07);
    color: rgba(225, 90, 82, 0.92);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.015em;
    text-decoration: none;
    box-shadow:
        0 0 18px rgba(182, 61, 70, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition:
        background 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease,
        color 200ms ease;
    -webkit-tap-highlight-color: transparent;
}
.pa-cta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pa-cta:active {
    background: rgba(182, 61, 70, 0.14);
    border-color: rgba(182, 61, 70, 0.62);
    box-shadow: 0 0 26px rgba(182, 61, 70, 0.22);
    color: rgba(240, 110, 100, 1);
}

/* ── Intro block ───────────────────────────────────── */
.pa-intro {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.046);
}

.pa-intro__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(182, 61, 70, 0.30);
    background:
        radial-gradient(circle at 40% 35%, rgba(128, 28, 30, 0.52), rgba(20, 10, 10, 0.88));
    box-shadow:
        0 0 22px rgba(182, 61, 70, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pa-intro__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.pa-intro__text {
    margin: 0;
    padding-top: 6px;
    font-size: 16px;
    line-height: 1.62;
    color: rgba(231, 224, 220, 0.62);
    letter-spacing: 0.005em;
}

/* ── Timeline container ────────────────────────────── */
.pa-tl {
    position: relative;
    padding-left: 34px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Vertical spine */
.pa-tl__spine {
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(182, 61, 70, 0.58) 10%,
        rgba(182, 61, 70, 0.40) 55%,
        rgba(182, 61, 70, 0.18) 90%,
        transparent 100%
    );
    box-shadow:
        0 0 12px rgba(182, 61, 70, 0.18),
        0 0 24px rgba(182, 61, 70, 0.08);
}

/* Timeline item row */
.pa-tl__item {
    position: relative;
}

/* Dot node (positioned against the spine) */
.pa-tl__node {
    position: absolute;
    left: -34px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pa-tl__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(182, 61, 70, 0.94);
    box-shadow:
        0 0 0 3px rgba(182, 61, 70, 0.14),
        0 0 10px rgba(182, 61, 70, 0.56),
        0 0 22px rgba(182, 61, 70, 0.24);
}

/* ── Memory Capsule Card ───────────────────────────── */
.pa-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 20px 22px 24px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.058);
    background:
        linear-gradient(
            140deg,
            rgba(32, 16, 13, 0.90) 0%,
            rgba(16, 10, 9, 0.92) 100%
        );
    box-shadow:
        0 4px 36px rgba(0, 0, 0, 0.44),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px rgba(182, 61, 70, 0.05);
    overflow: hidden;
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    cursor: default;
}

/* Card body */
.pa-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Date label */
.pa-card__label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.11em;
    color: rgba(200, 65, 55, 0.80);
    text-transform: uppercase;
}

/* Title */
.pa-card__title {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.22;
    color: rgba(246, 240, 234, 0.97);
    letter-spacing: -0.015em;
}

/* Description */
.pa-card__desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.52;
    color: rgba(231, 224, 220, 0.44);
}

/* Arrow button */
.pa-card__arrow-btn {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(182, 61, 70, 0.30);
    background: rgba(182, 61, 70, 0.07);
    color: rgba(210, 78, 70, 0.88);
    text-decoration: none;
    box-shadow:
        0 0 14px rgba(182, 61, 70, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition:
        border-color 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease;
    -webkit-tap-highlight-color: transparent;
}
.pa-card__arrow-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pa-card__arrow-btn:active {
    background: rgba(182, 61, 70, 0.16);
    border-color: rgba(182, 61, 70, 0.52);
    box-shadow: 0 0 22px rgba(182, 61, 70, 0.22);
}

/* Inner ambient glow (bottom-left of card) */
.pa-card__inner-glow {
    position: absolute;
    pointer-events: none;
    width: 180px;
    height: 180px;
    bottom: -70px;
    left: -50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(182, 61, 70, 0.07) 0%, transparent 68%);
}

/* ── Pointer device hover states (GPU-friendly) ──── */
@media (hover: hover) {
    .pa-cta:hover {
        background: rgba(182, 61, 70, 0.13);
        border-color: rgba(182, 61, 70, 0.60);
        box-shadow: 0 0 22px rgba(182, 61, 70, 0.18);
        color: rgba(242, 116, 106, 1);
    }

    .pa-card:hover {
        border-color: rgba(182, 61, 70, 0.16);
        box-shadow:
            0 4px 36px rgba(0, 0, 0, 0.50),
            0 0 22px rgba(182, 61, 70, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .pa-card__arrow-btn:hover {
        background: rgba(182, 61, 70, 0.14);
        border-color: rgba(182, 61, 70, 0.48);
        box-shadow: 0 0 18px rgba(182, 61, 70, 0.18);
    }
}

/* ── Touch press state ──────────────────────────── */
.pa-card:active .pa-card__arrow-btn {
    background: rgba(182, 61, 70, 0.18);
    border-color: rgba(182, 61, 70, 0.54);
}

/* ── Empty state ─────────────────────────────────── */
.pa-empty {
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.62;
    color: rgba(231, 224, 220, 0.46);
}

/* ── Profile page spacing override ──────────────── */
body[data-page="profile"] .pa-section {
    padding: 28px 20px 32px;
}

body[data-page="profile"] .pa-title {
    font-size: 34px;
}

body[data-page="profile"] .pa-card__title {
    font-size: 20px;
}

/* ── Very narrow screens (<360px) ───────────────── */
@media (max-width: 359px) {
    .pa-title {
        font-size: 30px;
    }
    .pa-card__title {
        font-size: 18px;
    }
    .pa-card {
        padding: 18px 14px 18px 18px;
    }
    .pa-tl {
        padding-left: 28px;
    }
    .pa-tl__node {
        left: -28px;
    }
}
