.card-action-btn {
    position: absolute; bottom: 18px; right: 18px;
    background: rgba(15,20,25,0.8); border: 1px solid rgba(99,102,241,0.25);
    border-radius: 8px; padding: 6px 12px;
    font-size: 12px; font-weight: 600; color: #94a3b8;
    cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px;
    font-family: inherit;
}
.card-action-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.card-action-btn:hover { border-color: #ef4444; color: #ef4444; }

/* ── Profile main content ── */
.profile-main { padding: 0; }

/* Profile header card */
.profile-hero {
    background: rgba(15,20,25,0.7);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 20px; padding: 36px 40px;
    display: flex; align-items: center; gap: 32px;
    margin-bottom: 40px; position: relative; overflow: visible;
}
.profile-hero::before { display: none; }

.avatar {
    width: 90px; height: 90px; min-width: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 700; color: #fff;
    border: 3px solid rgba(99,102,241,0.4);
    flex-shrink: 0;
}

.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.profile-username { font-size: 14px; color: #64748b; margin-bottom: 10px; }
.profile-email {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 14px; color: #94a3b8;
}
.profile-email svg { width: 14px; height: 14px; fill: none; stroke: #64748b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.profile-stats {
    display: flex; gap: 30px; margin-top: 20px; padding-top: 20px;
    border-top: 1px solid rgba(99,102,241,0.15);
    align-items: flex-end;
}
.profile-stat { text-align: center; }
.profile-stat-number {
    font-size: 22px; font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.profile-stat-label { font-size: 12px; color: #64748b; margin-top: 2px; }

.edit-profile-btn {
    background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.3);
    border-radius: 8px; padding: 7px 14px; color: #a5b4fc;
    font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.25s;
    display: flex; align-items: center; gap: 6px; font-family: inherit;
    white-space: nowrap; align-self: flex-start;
}
.edit-profile-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.edit-profile-btn:hover { background: rgba(99,102,241,0.2); border-color: #6366f1; color: #ffffff; }

/* Section headings */
.section-heading {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; padding-bottom: 16px;
    border-bottom: 1px solid rgba(99,102,241,0.15);
}
.section-title-text {
    font-size: 20px; font-weight: 700; color: #ffffff;
    display: flex; align-items: center; gap: 10px;
}
.section-title-text svg { width: 20px; height: 20px; fill: none; stroke: #8b5cf6; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.section-count {
    font-size: 13px; font-weight: 600; color: #64748b;
    background: rgba(99,102,241,0.1); padding: 3px 10px; border-radius: 20px;
}
.section-link {
    font-size: 13px; color: #8b5cf6; font-weight: 600;
    text-decoration: none; transition: color 0.2s;
}
.section-link:hover { color: #a78bfa; }

.articles-section { margin-bottom: 56px; }

/* Empty state */
.empty-state {
    background: rgba(15,20,25,0.5); border: 1px dashed rgba(99,102,241,0.25);
    border-radius: 16px; padding: 48px; text-align: center;
}
.empty-state-icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    background: rgba(99,102,241,0.1); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
}
.empty-state-icon svg { width: 28px; height: 28px; fill: none; stroke: #6366f1; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.empty-state-text { font-size: 15px; color: #64748b; line-height: 1.6; }
.empty-state-link { color: #8b5cf6; font-weight: 600; text-decoration: none; }

.recent-timestamp{
    color: #64748b;
}
.meta-stat{
    color: #64748b;
}

/* Empty states (logo box) and saved concepts / reading paths */
.prof-empty { background: rgba(26,20,64,0.55); border-radius: 14px; padding: 34px 24px; text-align: center; }
.prof-empty-logo { font-size: 20px; font-weight: 700; color: #7c5cf0; letter-spacing: -0.3px; margin-bottom: 8px; }
.prof-empty-text { font-size: 12px; color: #64748b; line-height: 1.6; margin: 0; }
.prof-empty-line { font-size: 13px; color: #64748b; line-height: 1.7; margin: 0; }
.prof-empty-line a { color: #8b5cf6; text-decoration: none; }
.prof-saved-section { margin-bottom: 36px; }
.prof-saved-section .section-heading { margin-bottom: 18px; padding-bottom: 12px; }
.prof-concept-grid, .prof-path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prof-concept-card { position: relative; background: rgba(15,20,25,0.6); border: 1px solid rgba(99,102,241,0.18); border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,0.4); transition: border-color 0.2s; }
.prof-concept-card:hover { border-color: rgba(99,102,241,0.5); }
.prof-concept-link { display: block; padding: 16px 40px 16px 18px; text-decoration: none; }
.prof-concept-name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
.prof-concept-cat { font-size: 12px; color: #64748b; margin-top: 4px; }
.prof-unsave { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: #64748b; cursor: pointer; padding: 0; border-radius: 6px; transition: all 0.2s; }
.prof-unsave:hover { color: #fff; background: rgba(99,102,241,0.2); }
.prof-unsave svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.prof-path-card { display: flex; flex-direction: column; background: rgba(15,20,25,0.6); border: 1px solid rgba(99,102,241,0.18); border-radius: 14px; padding: 22px; text-decoration: none; box-shadow: 0 4px 18px rgba(0,0,0,0.4); transition: all 0.2s; }
.prof-path-card:hover { border-color: rgba(99,102,241,0.5); transform: translateY(-2px); }
.prof-path-title { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: 10px; }
.prof-path-desc { font-size: 13px; color: #94a3b8; line-height: 1.6; flex: 1; margin-bottom: 18px; }
.prof-path-foot { font-size: 12px; font-weight: 700; color: #818cf8; border-top: 1px solid rgba(99,102,241,0.15); padding-top: 12px; }
@media (max-width: 768px) { .prof-concept-grid, .prof-path-grid { grid-template-columns: 1fr; } }
