/* ═══════════════════════════════════════════════════════
   F-SKILL PROFESSIONAL PROFILE — V3 EDITORIAL DESIGN
   Warm teal/amber palette, DM Sans + Fraunces typography
   Two-column layout with tabbed panels
   Compatible with Aristotle Drupal theme
   ═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   TOKENS — light & dark
───────────────────────────────────────── */
:root {
    --bg: #F2EFE9;
    --surface: #FAFAF8;
    --surface-2: #EEEBE4;
    --surface-3: #E6E2DA;
    --border: #E0DBD3;
    --border-strong: #C5BDB3;
    --text-1: #1A1714;
    --text-2: #55504A;
    --text-3: #9A948D;
    --teal: #1B7A6E;
    --teal-dim: #EAF4F2;
    --teal-mid: #C0DDD9;
    --amber: #C47C2B;
    --amber-dim: #FBF3E8;
    --red: #C0392B;
    --overlay: rgba(26, 23, 20, 0.55);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius: 14px;
    --radius-sm: 9px;
    --nav-h: 54px;
    --mob-nav-h: 64px;
}

[data-theme="dark"] {
    --bg: #111110;
    --surface: #1C1B19;
    --surface-2: #242320;
    --surface-3: #2C2B28;
    --border: #2E2D2A;
    --border-strong: #45433F;
    --text-1: #F0EDE7;
    --text-2: #A8A29C;
    --text-3: #6B6560;
    --teal: #3FB8A8;
    --teal-dim: #1A2E2C;
    --teal-mid: #2A4A46;
    --amber: #E09440;
    --amber-dim: #2C2118;
    --red: #E05A4A;
    --overlay: rgba(0, 0, 0, 0.7);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
}

/* ─────────────────────────────────────────
   PAGE LAYOUT
───────────────────────────────────────── */
.fsp-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    display: grid;
    grid-template-columns: 258px 1fr;
    gap: 18px;
    align-items: start;
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text-1);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
    padding-bottom: var(--mob-nav-h);
}

@media (min-width: 820px) {
    .fsp-layout {
        padding-bottom: 40px;
    }
}

.fsp-layout *,
.fsp-layout *::before,
.fsp-layout *::after {
    box-sizing: border-box;
}

/* ─────────────────────────────────────────
   LEFT PANEL
───────────────────────────────────────── */
.fsp-left-panel {
    position: sticky;
    top: calc(var(--nav-h) + 12px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ─── Identity Card ─── */
.fsp-identity-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: visible;
    position: relative;
    z-index: 10;
    transition: background 0.3s, border-color 0.3s;
    animation: fspFadeUp 0.4s ease both;
}

.fsp-identity-cover {
    height: 88px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--teal) 35%, var(--surface-2)),
            color-mix(in srgb, var(--amber) 20%, var(--surface-2)));
}

.fsp-identity-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fsp-identity-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--teal) 40%, transparent),
            color-mix(in srgb, var(--amber) 25%, transparent));
}

.fsp-identity-body {
    padding: 0 15px 15px;
}

.fsp-identity-ava-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fsp-identity-ava-wrap {
    position: relative;
    margin-top: -26px;
}

.fsp-identity-ava {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--surface);
    background-size: cover;
    background-position: center;
    display: block;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fsp-identity-ava:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.fsp-identity-verified {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 16px;
    height: 16px;
    background: var(--teal);
    border-radius: 50%;
    border: 2px solid var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fsp-identity-edit {
    font-size: 11px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-3);
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.15s;
}

.fsp-identity-edit:hover {
    color: var(--text-1);
    border-color: var(--border-strong);
}

.fsp-identity-name {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: var(--text-1);
    margin-bottom: 1px;
}

.fsp-identity-handle {
    font-size: 11.5px;
    color: var(--text-3);
    margin-bottom: 4px;
}

.fsp-identity-role {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.4;
    margin-bottom: 4px;
}

.fsp-identity-institution {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--teal);
    margin-bottom: 8px;
}

.fsp-identity-institution svg {
    flex-shrink: 0;
    color: var(--teal);
}

.fsp-identity-grad {
    color: var(--text-3);
    font-weight: 400;
}

/* Faculty Detail (CV panel) */
.fsp-faculty-detail {
    display: flex;
    align-items: flex-start;
}

.fsp-identity-loc {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 11px;
}

.fsp-identity-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 11px;
}

.fsp-id-stat {
    background: var(--surface-2);
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.fsp-id-stat:hover {
    background: var(--surface-3);
}

.fsp-id-stat-n {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-1);
    letter-spacing: -0.02em;
    display: block;
    transition: color 0.2s;
}

.fsp-id-stat:hover .fsp-id-stat-n {
    color: var(--teal);
}

.fsp-id-stat-l {
    font-size: 9.5px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fsp-identity-actions {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    align-items: center;
}

/* Buttons */
.fsp-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.fsp-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.2s;
}

.fsp-btn:hover::after {
    background: rgba(255, 255, 255, 0.08);
}

.fsp-btn:active {
    transform: scale(0.97);
}

.fsp-btn-teal {
    background: var(--teal);
    color: white;
    justify-content: center;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--teal) 35%, transparent);
}

.fsp-btn-teal:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--teal) 45%, transparent);
}

.fsp-btn-outline {
    background: var(--surface);
    color: var(--text-1);
    border: 1px solid var(--border-strong);
}

.fsp-btn-outline:hover {
    background: var(--surface-2);
}

.fsp-btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
    padding: 8px 10px;
}

.fsp-btn-ghost:hover {
    background: var(--surface-2);
    color: var(--text-1);
}

/* ─── Open to Work ─── */
.fsp-open-card {
    background: var(--teal-dim);
    border: 1px solid var(--teal-mid);
    border-radius: var(--radius);
    padding: 13px;
    animation: fspFadeUp 0.4s 0.06s ease both;
    transition: background 0.3s, border-color 0.3s;
}

.fsp-open-top {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 13px;
    color: var(--teal);
    margin-bottom: 5px;
}

.fsp-open-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    position: relative;
    flex-shrink: 0;
}

.fsp-open-pulse::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--teal);
    animation: fspRipple 1.8s ease-out infinite;
    opacity: 0;
}

@keyframes fspRipple {
    0% {
        transform: scale(0.6);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.fsp-open-desc {
    font-size: 12px;
    color: var(--teal);
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 8px;
}

.fsp-open-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fsp-open-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--teal) 12%, var(--surface));
    color: var(--teal);
    border: 1px solid var(--teal-mid);
    transition: all 0.15s;
    cursor: default;
}

.fsp-open-chip:hover {
    background: var(--teal);
    color: white;
}

/* ─── Left Nav ─── */
.fsp-left-nav {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    animation: fspFadeUp 0.4s 0.1s ease both;
    transition: background 0.3s, border-color 0.3s;
}

.fsp-l-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
    width: 100%;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

.fsp-l-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--teal);
    opacity: 0;
    transition: opacity 0.2s;
}

.fsp-l-nav-item:hover {
    background: var(--surface-2);
    color: var(--text-1);
}

.fsp-l-nav-item.active {
    background: var(--surface-2);
    color: var(--text-1);
    font-weight: 600;
}

.fsp-l-nav-item.active::before {
    opacity: 1;
}

.fsp-l-nav-item.active svg {
    color: var(--teal);
}

.fsp-l-nav-item svg {
    flex-shrink: 0;
    color: var(--text-3);
    transition: color 0.15s;
}

.fsp-l-nav-badge {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    background: var(--surface-3);
    color: var(--text-3);
    transition: all 0.2s;
}

.fsp-l-nav-item.active .fsp-l-nav-badge {
    background: var(--teal);
    color: white;
}

/* ─── Tools Card ─── */
.fsp-tools-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 13px;
    animation: fspFadeUp 0.4s 0.14s ease both;
    transition: background 0.3s, border-color 0.3s;
}

.fsp-tools-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-3);
    margin-bottom: 9px;
}

.fsp-tools-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fsp-tool-pill {
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--surface-2);
    color: var(--text-2);
    border: 1px solid var(--border);
    cursor: default;
    transition: all 0.18s;
}

.fsp-tool-pill:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-dim);
}

/* ─────────────────────────────────────────
   RIGHT COLUMN
───────────────────────────────────────── */
.fsp-right-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ─── Card ─── */
.fsp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s;
}

.fsp-card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 0;
    margin-bottom: 14px;
}

.fsp-card-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.02em;
    color: var(--text-1);
}

.fsp-card-link {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--teal);
    text-decoration: none;
    transition: opacity 0.15s;
}

.fsp-card-link:hover {
    opacity: 0.75;
}

/* ─── Mini Stats ─── */
.fsp-mini-stats {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.fsp-ms-item {
    padding: 12px 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.fsp-ms-item:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--teal) 12%, transparent);
}

.fsp-ms-n {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    color: var(--text-1);
}

.fsp-ms-l {
    font-size: 11px;
    color: var(--text-3);
}

.fsp-ms-d {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--teal);
}

/* ─── Composer ─── */
.fsp-composer {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fsp-composer-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fsp-composer-ava {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.fsp-composer-input {
    flex: 1;
    height: 38px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0 16px;
    font-size: 13px;
    color: var(--text-3);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}

.fsp-composer-input:hover {
    border-color: var(--border-strong);
    color: var(--text-2);
}

.fsp-composer-btns {
    display: flex;
    gap: 2px;
    padding-left: 46px;
}

.fsp-cmp-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 7px;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-3);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.fsp-cmp-btn:hover {
    background: var(--surface-2);
    color: var(--text-1);
}

/* ─── Post ─── */
.fsp-post {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.fsp-post:last-child {
    border-bottom: none;
}

.fsp-post-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.fsp-post-ava {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.fsp-post-ava:hover {
    transform: scale(1.05);
}

.fsp-post-meta {
    flex: 1;
}

.fsp-post-name {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-1);
    cursor: pointer;
    transition: color 0.15s;
}

.fsp-post-name:hover {
    color: var(--teal);
}

.fsp-post-sub {
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: 1px;
}

.fsp-post-more {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.fsp-post-more:hover {
    background: var(--surface-2);
    color: var(--text-1);
}

.fsp-post-body {
    font-size: 13.5px;
    color: var(--text-1);
    line-height: 1.6;
    margin-bottom: 12px;
}

.fsp-post-body .tag {
    color: var(--teal);
    font-weight: 500;
}

.fsp-post-imgs {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.fsp-post-imgs.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.fsp-post-img-wrap {
    overflow: hidden;
    cursor: pointer;
}

.fsp-post-img-wrap img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fsp-post-imgs.single img {
    aspect-ratio: 16/9;
}

.fsp-post-imgs.two img {
    aspect-ratio: 1;
}

.fsp-post-img-wrap:hover img {
    transform: scale(1.06);
}

.fsp-post-reactions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid var(--border);
}

.fsp-react-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fsp-react-emojis {
    font-size: 14px;
}

.fsp-react-count {
    font-size: 12px;
    color: var(--text-3);
}

.fsp-react-right {
    font-size: 12px;
    color: var(--text-3);
    cursor: pointer;
}

.fsp-react-right:hover {
    color: var(--text-1);
    text-decoration: underline;
}

.fsp-post-btns {
    display: flex;
    gap: 2px;
    margin-top: 4px;
}

.fsp-post-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 4px;
    border: none;
    background: transparent;
    font-size: 12.5px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-3);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.fsp-post-btn:hover {
    background: var(--surface-2);
    color: var(--text-1);
    transform: translateY(-1px);
}

.fsp-post-btn.liked {
    color: var(--red);
}

.fsp-post-btn.liked:hover {
    background: color-mix(in srgb, var(--red) 10%, transparent);
}

.fsp-post-btn.liked svg {
    animation: fspHeartPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fspHeartPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* ─── Portfolio ─── */
.fsp-portfolio-area {
    padding: 0 16px 16px;
}

.fsp-p-filter {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.fsp-p-filter::-webkit-scrollbar {
    display: none;
}

.fsp-filter-btn {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-2);
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all 0.18s;
}

.fsp-filter-btn:hover {
    border-color: var(--border-strong);
    color: var(--text-1);
}

.fsp-filter-btn.active {
    background: var(--text-1);
    color: var(--bg);
    border-color: var(--text-1);
}

.fsp-p-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 8px;
}

.fsp-p-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--surface-2);
    transition: box-shadow 0.3s ease;
}

.fsp-p-item.wide {
    grid-column: span 2;
    grid-row: span 2;
}

.fsp-p-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
    filter: saturate(0.92);
}

/* Rich hover */
.fsp-p-item:hover img {
    transform: scale(1.08);
    filter: saturate(1.1) brightness(0.88);
}

.fsp-p-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.1) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.fsp-p-item:hover .fsp-p-overlay {
    opacity: 1;
}

.fsp-p-overlay-top {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.35s 0.05s ease, transform 0.35s 0.05s ease;
    transform: translateY(-4px);
}

.fsp-p-item:hover .fsp-p-overlay-top {
    opacity: 1;
    transform: translateY(0);
}

.fsp-p-action {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background 0.15s;
}

.fsp-p-action:hover {
    background: rgba(255, 255, 255, 0.3);
}

.fsp-p-info {
    transform: translateY(6px);
    transition: transform 0.35s ease;
}

.fsp-p-item:hover .fsp-p-info {
    transform: translateY(0);
}

.fsp-p-title {
    font-weight: 700;
    font-size: 12.5px;
    color: white;
    margin-bottom: 3px;
}

.fsp-p-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.fsp-p-tags {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.35s 0.08s ease, transform 0.35s 0.08s ease;
}

.fsp-p-item:hover .fsp-p-tags {
    opacity: 1;
    transform: translateY(0);
}

.fsp-p-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ─── Portfolio Empty State ─── */
.fsp-portfolio-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 32px;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: 16px;
    min-height: 320px;
}

.fsp-portfolio-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--teal-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.fsp-portfolio-empty-title {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 8px;
}

.fsp-portfolio-empty-desc {
    font-size: 14px;
    color: var(--text-2);
    max-width: 380px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ─── CV ─── */
.fsp-cv-area {
    padding: 0 18px 18px;
}

.fsp-cv-sec-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    margin-top: 6px;
}

.fsp-cv-sec-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.fsp-cv-item {
    display: flex;
    gap: 12px;
    padding-bottom: 20px;
    position: relative;
}

.fsp-cv-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 38px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.fsp-cv-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.fsp-cv-item:hover .fsp-cv-icon {
    transform: scale(1.08);
}

.fsp-cv-role {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-1);
    margin-bottom: 1px;
}

.fsp-cv-company {
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 1px;
}

.fsp-cv-date {
    font-size: 11.5px;
    color: var(--text-3);
    margin-bottom: 6px;
}

.fsp-cv-desc {
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.55;
    margin-bottom: 8px;
}

.fsp-cv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fsp-cv-chip {
    font-size: 11px;
    padding: 3px 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-2);
    transition: all 0.15s;
}

.fsp-cv-chip:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-dim);
}

/* ─── Edit Overlays ─── */
.fsp-edit-banner-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-1);
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.25s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fsp-identity-cover:hover .fsp-edit-banner-btn {
    opacity: 1;
}

.fsp-edit-banner-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: white;
}

.fsp-edit-avatar-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    z-index: 10;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface, #fff);
    border: 2px solid var(--border, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.25s, transform 0.2s, border-color 0.2s;
}

.fsp-identity-ava-wrap:hover .fsp-edit-avatar-btn {
    opacity: 1;
}

.fsp-edit-avatar-btn:hover {
    transform: scale(1.12);
    border-color: var(--teal);
    color: var(--teal);
}

/* CV item actions (edit / delete) */
.fsp-cv-actions {
    display: flex;
    gap: 4px;
    align-items: flex-start;
    padding-top: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.fsp-cv-item:hover .fsp-cv-actions {
    opacity: 1;
}

.fsp-cv-act {
    font-size: 14px;
    text-decoration: none;
    padding: 3px 5px;
    border-radius: 6px;
    transition: background 0.15s, transform 0.15s;
    cursor: pointer;
    line-height: 1;
}

.fsp-cv-act:hover {
    background: var(--surface-2);
    transform: scale(1.15);
}

/* ─── Skills ─── */
.fsp-skills-area {
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fsp-sk-row {
    padding: 13px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.fsp-sk-row:hover {
    border-color: var(--border-strong);
    transform: translateX(3px);
    box-shadow: -3px 0 0 var(--teal);
}

.fsp-sk-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.fsp-sk-name {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-1);
}

.fsp-sk-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1.5px solid currentColor;
}

.fsp-sk-badge.expert {
    color: var(--teal);
    background: var(--teal-dim);
}

.fsp-sk-badge.advanced {
    color: var(--amber);
    background: var(--amber-dim);
}

.fsp-sk-badge.proficient {
    color: var(--text-3);
    background: var(--surface-3);
}

.fsp-sk-bar {
    height: 5px;
    background: var(--border);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.fsp-sk-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--teal), color-mix(in srgb, var(--teal) 60%, var(--amber)));
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fsp-sk-fill.amber {
    background: linear-gradient(90deg, var(--amber), color-mix(in srgb, var(--amber) 60%, #F5C56A));
}

.fsp-sk-fill.muted {
    background: var(--border-strong);
}

.fsp-sk-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fsp-sk-endorsers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fsp-sk-avas {
    display: flex;
}

.fsp-sk-ava {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    background: var(--bg) center/cover;
    margin-left: -6px;
    background-size: cover;
}

.fsp-sk-ava:first-child {
    margin-left: 0;
}

.fsp-sk-count {
    font-size: 11px;
    color: var(--text-3);
}

.fsp-sk-endorse-btn {
    font-size: 11.5px;
    font-weight: 600;
    font-family: inherit;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.2s;
}

.fsp-sk-endorse-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-dim);
    transform: scale(1.04);
}

/* ─── Hire Me Card ─── */
.fsp-hire-card {
    padding: 20px 20px 20px;
}

.fsp-hire-hero {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--teal) 12%, var(--surface-2)),
            color-mix(in srgb, var(--amber) 8%, var(--surface-2)));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.fsp-hire-hero::before {
    content: 'HIRE';
    position: absolute;
    right: -12px;
    bottom: -20px;
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 5rem;
    color: var(--teal);
    opacity: 0.06;
    letter-spacing: -0.05em;
    pointer-events: none;
    line-height: 1;
}

.fsp-hire-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.fsp-hire-tagline {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-1);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 10px;
}

.fsp-hire-sub {
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.55;
}

.fsp-hire-ctas {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.fsp-hire-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fsp-hire-btn:active {
    transform: scale(0.97);
}

.fsp-hire-btn-primary {
    background: var(--teal);
    color: white;
    flex: 1;
    justify-content: center;
    box-shadow: 0 3px 12px color-mix(in srgb, var(--teal) 35%, transparent);
}

.fsp-hire-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--teal) 40%, transparent);
}

.fsp-hire-btn-sec {
    background: var(--surface);
    color: var(--text-1);
    border: 1.5px solid var(--border-strong);
}

.fsp-hire-btn-sec:hover {
    background: var(--surface-2);
    transform: translateY(-1px);
}

/* Rate cards */
.fsp-rate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
}

.fsp-rate-card {
    padding: 14px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.fsp-rate-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--teal), var(--amber));
    opacity: 0;
    transition: opacity 0.2s;
}

.fsp-rate-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--teal);
}

.fsp-rate-card:hover::before {
    opacity: 0.06;
}

.fsp-rate-card.featured {
    border-color: var(--teal);
    border-width: 1.5px;
}

.fsp-rate-badge {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.fsp-rate-type {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-1);
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.fsp-rate-price {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-1);
    margin-bottom: 2px;
    position: relative;
    z-index: 1;
}

.fsp-rate-unit {
    font-size: 10.5px;
    color: var(--text-3);
    position: relative;
    z-index: 1;
}

.fsp-rate-items {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    z-index: 1;
}

.fsp-rate-item {
    font-size: 11px;
    color: var(--text-2);
    display: flex;
    gap: 5px;
    align-items: flex-start;
}

.fsp-rate-check {
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 1px;
}

/* Clients */
.fsp-clients-section {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.fsp-clients-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-3);
    margin-bottom: 10px;
}

.fsp-clients-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fsp-client-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    transition: all 0.15s;
}

.fsp-client-tag:hover {
    border-color: var(--border-strong);
    color: var(--text-1);
}

/* ─── Peers (people to follow) ─── */
.fsp-peers-list {
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fsp-peer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.fsp-peer-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fsp-peer-ava {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: center/cover;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.fsp-peer-item:hover .fsp-peer-ava {
    transform: scale(1.06);
}

.fsp-peer-info {
    flex: 1;
    min-width: 0;
}

.fsp-peer-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fsp-peer-role {
    font-size: 11.5px;
    color: var(--text-3);
}

.fsp-peer-follow {
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--teal);
    background: transparent;
    color: var(--teal);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.fsp-peer-follow:hover {
    background: var(--teal);
    color: white;
    transform: scale(1.04);
}

/* ─────────────────────────────────────────
   MOBILE BOTTOM NAV
───────────────────────────────────────── */
.fsp-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: var(--mob-nav-h);
    background: color-mix(in srgb, var(--surface) 95%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    padding: 0 8px env(safe-area-inset-bottom);
    align-items: center;
    justify-content: space-around;
    transition: background 0.3s, border-color 0.3s;
}

.fsp-mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-3);
    transition: all 0.2s;
    position: relative;
}

.fsp-mob-nav-item.active {
    color: var(--teal);
}

.fsp-mob-nav-item:active {
    transform: scale(0.92);
}

.fsp-mob-nav-pip {
    position: absolute;
    top: 6px;
    right: 10px;
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    border: 1.5px solid var(--surface);
}

.fsp-mob-nav-center {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--teal);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--teal) 45%, transparent);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fsp-mob-nav-center:hover {
    transform: scale(1.1);
}

.fsp-mob-nav-center:active {
    transform: scale(0.92);
}

@media (max-width: 819px) {
    .fsp-mobile-nav {
        display: flex;
    }
}

/* ─────────────────────────────────────────
   PANELS & TRANSITIONS
───────────────────────────────────────── */
.fsp-content-panel {
    display: none;
    flex-direction: column;
    gap: 14px;
    animation: fspPanelIn 0.3s ease both;
}

.fsp-content-panel.active {
    display: flex;
}

@keyframes fspPanelIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 819px) {
    .fsp-layout {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 12px 20px;
    }

    .fsp-left-panel {
        position: static;
    }

    .fsp-identity-cover {
        height: 70px;
    }

    .fsp-identity-ava {
        width: 52px;
        height: 52px;
    }

    .fsp-identity-ava-wrap {
        margin-top: -22px;
    }

    .fsp-p-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fsp-p-item.wide {
        grid-column: span 2;
        aspect-ratio: unset;
        min-height: 180px;
        align-self: stretch;
    }

    .fsp-rate-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .fsp-mini-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .fsp-p-grid {
        gap: 4px;
    }

    .fsp-p-item {
        border-radius: 7px;
    }

    .fsp-hire-ctas {
        flex-direction: column;
    }
}

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes fspFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.fsp-identity-card {
    animation: fspFadeUp 0.4s ease both;
}

.fsp-open-card {
    animation: fspFadeUp 0.4s 0.06s ease both;
}

.fsp-left-nav {
    animation: fspFadeUp 0.4s 0.1s ease both;
}

.fsp-tools-card {
    animation: fspFadeUp 0.4s 0.14s ease both;
}

.fsp-right-col>.fsp-card:nth-child(1) {
    animation: fspFadeUp 0.4s 0.08s ease both;
}

.fsp-right-col>.fsp-card:nth-child(2) {
    animation: fspFadeUp 0.4s 0.12s ease both;
}

.fsp-right-col>.fsp-card:nth-child(3) {
    animation: fspFadeUp 0.4s 0.16s ease both;
}

/* Skill bars animate in */
.fsp-sk-fill {
    width: 0 !important;
}

.fsp-sk-fill.loaded {
    width: var(--w) !important;
}

/* Scrollbar */
.fsp-layout ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.fsp-layout ::-webkit-scrollbar-track {
    background: transparent;
}

.fsp-layout ::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
}

/* ─────────────────────────────────────────
   DRUPAL / ARISTOTLE THEME OVERRIDES
   Neutralize the base theme's .page-main > .container > .row > .col-lg-*
   wrapper so the v3 profile layout renders correctly
───────────────────────────────────────── */

/* Reset Aristotle's container max-width for profile page */
.page-main>.container:has(.fsp-layout) {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

/* Remove Bootstrap row/col grid when profile is active */
.page-main>.container>.row:has(.fsp-layout) {
    margin: 0;
    padding: 0;
    display: block;
}

.page-main .col-lg-12:has(.fsp-layout),
.page-main .col-lg-9:has(.fsp-layout) {
    padding: 0;
    max-width: none;
    flex: none;
    width: 100%;
}

/* Hide Aristotle's page title block on profile pages */
.page-main:has(.fsp-layout) .block-page-title-block,
.page-main:has(.fsp-layout) .page-title {
    display: none !important;
}

/* Hide sidebar on profile pages */
.page-main:has(.fsp-layout) #sidebar-first {
    display: none !important;
}

/* Override main area background */
.page-main:has(.fsp-layout) {
    background: var(--bg, #F2EFE9);
    padding: 0;
    margin: 0;
}

/* Reset link and heading styles within layout */
.fsp-layout a {
    text-decoration: none;
    color: inherit;
}

.fsp-layout h1,
.fsp-layout h2,
.fsp-layout h3,
.fsp-layout h4 {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.fsp-layout .hidden {
    display: none !important;
}

.fsp-layout {
    margin-top: 0;
}

/* Reset Aristotle button styles within the profile */
.fsp-layout button,
.fsp-layout .fsp-btn,
.fsp-layout .fsp-btn-teal,
.fsp-layout .fsp-btn-outline,
.fsp-layout .fsp-btn-ghost {
    font-family: 'DM Sans', sans-serif;
    letter-spacing: normal;
    text-transform: none;
    box-shadow: none;
}

/* Prevent Aristotle's local tasks tabs from showing */
.page-main:has(.fsp-layout) .tabs,
.page-main:has(.fsp-layout) .action-links {
    display: none !important;
}

/* Ensure Aristotle's header nav stays visible */
.fsp-layout~header,
header:has(~ .page-main .fsp-layout) {
    position: relative;
    z-index: 200;
}

/* Fallback for browsers that don't support :has() */
@supports not selector(:has(a)) {
    .fsp-profile-page .page-main>.container {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .fsp-profile-page .page-main>.container>.row {
        margin: 0;
        display: block;
    }

    .fsp-profile-page .col-lg-12,
    .fsp-profile-page .col-lg-9 {
        padding: 0;
        max-width: none;
        width: 100%;
    }

    .fsp-profile-page .block-page-title-block,
    .fsp-profile-page .page-title,
    .fsp-profile-page .tabs,
    .fsp-profile-page .action-links {
        display: none !important;
    }

    .fsp-profile-page .page-main {
        background: var(--bg, #F2EFE9);
        padding: 0;
    }
}

/* ─────────────────────────────────────────
   TRAININGS PANEL
───────────────────────────────────────── */

/* Stat cards grid */
.fsp-training-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 0 18px 16px;
}

.fsp-stat-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-align: center;
    transition: transform 0.18s, box-shadow 0.18s;
}

.fsp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.fsp-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.fsp-stat-icon--teal {
    background: var(--teal-dim);
    color: var(--teal);
}

.fsp-stat-icon--amber {
    background: var(--amber-dim);
    color: var(--amber);
}

.fsp-stat-number {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-1);
    line-height: 1.1;
}

.fsp-stat-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-top: 4px;
}

/* Training time row */
.fsp-training-time {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px 16px;
    font-size: 13px;
    color: var(--text-2);
}

.fsp-training-time svg {
    color: var(--teal);
    flex-shrink: 0;
}

/* Training table */
.fsp-training-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.fsp-training-table thead th {
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    padding: 10px 8px 8px;
    border-bottom: 1px solid var(--border);
}

.fsp-training-table tbody tr {
    transition: background 0.12s;
}

.fsp-training-table tbody tr:hover {
    background: var(--surface-2);
}

.fsp-training-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.fsp-training-table tbody tr:last-child td {
    border-bottom: none;
}

.fsp-tt-name {
    font-weight: 500;
    color: var(--text-1);
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fsp-tt-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}

/* Progress bar */
.fsp-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--surface-3);
    border-radius: 3px;
    overflow: hidden;
}

.fsp-progress-fill {
    height: 100%;
    background: var(--teal);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.fsp-progress-fill--done {
    background: linear-gradient(135deg, var(--teal), #2ECC71);
}

.fsp-progress-pct {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
    min-width: 32px;
}

/* Status pills */
.fsp-status-pill {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: capitalize;
}

.fsp-status-pill--completed {
    background: var(--teal-dim);
    color: var(--teal);
}

.fsp-status-pill--pending {
    background: var(--amber-dim);
    color: var(--amber);
}

.fsp-status-pill--failed {
    background: #FDE8E8;
    color: var(--red);
}

/* Empty state */
.fsp-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-3);
    font-size: 14px;
}

.fsp-empty-state svg {
    margin-bottom: 10px;
}

/* ─── Trainings Responsive ─── */
@media (max-width: 768px) {
    .fsp-training-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .fsp-training-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .fsp-tt-name {
        max-width: 120px;
    }

    .fsp-tt-progress {
        min-width: 100px;
    }
}

/* ─────────────────────────────────────────
   FOLLOW & CONNECT BUTTONS — LinkedIn Style
───────────────────────────────────────── */

/* (identity-actions base styles are set above at line ~280) */

/* Wrapper resets */
.fsp-follow-wrap,
.fsp-connect-wrap {
    display: inline-flex;
    align-items: center;
}

/* Primary action: Connect button (filled teal) */
.fsp-action-primary .btn-connection {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    color: #fff;
    background: var(--teal);
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
    white-space: nowrap;
}

.fsp-action-primary .btn-connection i {
    font-size: 10px;
    margin: 0;
}

.fsp-action-primary .btn-connection:hover {
    background: var(--teal-dark, #00897B);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.fsp-action-primary .btn-connection.accept {
    background: var(--teal);
}



/* Hide the wrapper div prefix/suffix chrome */
.fsp-connect-wrap>div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Override Aristotle theme margin/min-width on connect button */
.fsp-identity-actions .btn-connection {
    margin-left: 0 !important;
    min-width: 0 !important;
}

/* ─── More Dropdown ─── */
.fsp-more-dropdown {
    position: relative;
    z-index: 9999;
}

.fsp-more-trigger {
    position: relative;
    z-index: 2;
}

.fsp-more-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.12));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    z-index: 10000;
    padding: 6px 0;
}

.fsp-more-dropdown.open .fsp-more-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown items */
.fsp-more-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-1);
    cursor: pointer;
    transition: background 0.12s;
    text-decoration: none;
    white-space: nowrap;
}

.fsp-more-item:hover {
    background: var(--surface-2);
}

.fsp-more-item svg {
    flex-shrink: 0;
    color: var(--text-3);
}

/* Follow button inside dropdown — override to look like a menu item */
.fsp-more-item.fsp-follow-wrap {
    padding: 0;
}

.fsp-more-item.fsp-follow-wrap .opigno-follow-wrapper {
    width: 100%;
    display: flex;
}

.fsp-more-item.fsp-follow-wrap .opigno-follow-separator {
    display: none;
}

.fsp-more-item.fsp-follow-wrap .opigno-follow-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-1);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s;
    text-align: left;
}

.fsp-more-item.fsp-follow-wrap .opigno-follow-link:hover {
    background: var(--surface-2);
    transform: none;
    box-shadow: none;
}

.fsp-more-item.fsp-follow-wrap .opigno-follow-link.is-following {
    background: transparent;
    border: none;
    color: var(--teal);
}

.fsp-more-item.fsp-follow-wrap .opigno-follow-link.is-following:hover {
    background: var(--surface-2);
    color: var(--red, #e53935);
}

.fsp-more-item.fsp-follow-wrap .opigno-follow-link .follow-icon {
    font-size: 13px;
    color: var(--text-3);
}

.fsp-more-item.fsp-follow-wrap .opigno-follow-link.is-following .follow-icon {
    color: var(--teal);
}

.fsp-more-item.fsp-follow-wrap .opigno-follow-link.loading {
    opacity: 0.6;
    pointer-events: none;
}