/**
 * LCC Member Profile – Design System
 * Version: 1.1.0
 *
 * Sections:
 *  1. CSS Custom Properties
 *  2. Cover / Hero
 *  3. Profile Bar (avatar, name, badges)
 *  4. Points Chips
 *  5. Rank Card
 *  6. Tab Navigation
 *  7. Tab Panels
 *  8. Badge Grid
 *  9. Course Tracker
 * 10. Activity Feed
 * 11. About / xProfile
 * 12. Progress / Radar Chart
 * 13. Toast Notifications
 * 14. Utilities & Animations
 * 15. Responsive Overrides
 * 16. Reduced-Motion
 * 17. Social Links Row & Editor Panel
 * 18. Layout / Customize Drawer
 * 19. Posts Grid (author articles)
 */

/* =========================================================
   1. CSS Custom Properties
   ========================================================= */
:root {
    --lcc-bg:           #0f172a;
    --lcc-surface:      #1e293b;
    --lcc-surface-2:    #263045;
    --lcc-border:       rgba(255,255,255,0.08);
    --lcc-accent:       #f59e0b;
    --lcc-accent-dark:  #d97706;
    --lcc-spirit:       #8b5cf6;  /* purple */
    --lcc-mind:         #3b82f6;  /* blue   */
    --lcc-body:         #22c55e;  /* green  */
    --lcc-heart:        #ef4444;  /* red    */
    --lcc-text:         #f1f5f9;
    --lcc-text-muted:   #94a3b8;
    --lcc-radius:       12px;
    --lcc-radius-sm:    6px;
    --lcc-shadow:       0 4px 24px rgba(0,0,0,0.35);
    --lcc-font:         'Inter', system-ui, -apple-system, sans-serif;
    --lcc-transition:   0.2s ease;
}

/* =========================================================
   2. Cover / Hero
   ========================================================= */
.lcc-profile-wrap {
    background: var(--lcc-bg);
    color: var(--lcc-text);
    font-family: var(--lcc-font);
    min-height: 100vh;
}

.lcc-cover {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e293b 100%);
    overflow: hidden;
}

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

.lcc-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(15,23,42,0.85) 100%);
}

/* =========================================================
   3. Profile Bar
   ========================================================= */
.lcc-profile-bar {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 24px 20px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

.lcc-avatar-wrap {
    flex-shrink: 0;
    position: relative;
}

.lcc-avatar-wrap img,
.lcc-avatar-wrap .avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid var(--lcc-accent);
    object-fit: cover;
    display: block;
    box-shadow: 0 0 0 3px var(--lcc-bg);
}

/* Rank-tier ring colours */
.lcc-avatar-wrap[data-tier="bronze"] img  { border-color: #cd7f32; }
.lcc-avatar-wrap[data-tier="silver"] img  { border-color: #c0c0c0; }
.lcc-avatar-wrap[data-tier="gold"]   img  { border-color: #ffd700; }
.lcc-avatar-wrap[data-tier="diamond"] img { border-color: #b9f2ff; box-shadow: 0 0 12px #b9f2ff66, 0 0 0 3px var(--lcc-bg); }

.lcc-avatar-online-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--lcc-bg);
}

.lcc-profile-meta {
    flex: 1;
    min-width: 0;
    padding-bottom: 4px;
}

.lcc-profile-name {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 4px;
    color: var(--lcc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lcc-profile-tagline {
    font-size: 0.875rem;
    color: var(--lcc-text-muted);
    margin: 0 0 10px;
}

.lcc-profile-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lcc-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--lcc-border);
    background: var(--lcc-surface);
    color: var(--lcc-text-muted);
}

.lcc-pill--rank   { border-color: var(--lcc-accent); color: var(--lcc-accent); }
.lcc-pill--member { border-color: #6366f1; color: #818cf8; }
.lcc-pill--coach  { border-color: #22c55e; color: #4ade80; }

.lcc-profile-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 4px;
    flex-wrap: wrap;
}

.lcc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--lcc-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--lcc-transition), transform var(--lcc-transition);
    border: none;
    text-decoration: none;
}

.lcc-btn:focus-visible {
    outline: 2px solid var(--lcc-accent);
    outline-offset: 2px;
}

.lcc-btn--primary {
    background: var(--lcc-accent);
    color: #0f172a;
}

.lcc-btn--primary:hover {
    background: var(--lcc-accent-dark);
    transform: translateY(-1px);
}

.lcc-btn--ghost {
    background: var(--lcc-surface-2);
    color: var(--lcc-text);
    border: 1px solid var(--lcc-border);
}

.lcc-btn--ghost:hover {
    background: var(--lcc-surface);
    transform: translateY(-1px);
}

/* =========================================================
   4. Points Chips
   ========================================================= */
.lcc-points-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 24px;
    border-bottom: 1px solid var(--lcc-border);
}

.lcc-points-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--lcc-surface);
    border: 1px solid var(--lcc-border);
    border-radius: var(--lcc-radius);
    padding: 10px 16px;
    min-width: 120px;
    transition: transform var(--lcc-transition), border-color var(--lcc-transition);
}

.lcc-points-chip:hover {
    transform: translateY(-2px);
    border-color: var(--lcc-accent);
}

.lcc-points-chip__icon {
    font-size: 1.4rem;
    line-height: 1;
}

.lcc-points-chip__body {
    display: flex;
    flex-direction: column;
}

.lcc-points-chip__amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lcc-text);
    line-height: 1;
    transition: color 0.3s ease;
}

.lcc-points-chip__amount.is-animating { color: var(--lcc-accent); }

.lcc-points-chip__label {
    font-size: 0.7rem;
    color: var(--lcc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* =========================================================
   5. Rank Card
   ========================================================= */
.lcc-rank-section {
    padding: 20px 24px;
    border-bottom: 1px solid var(--lcc-border);
}

.lcc-rank-card {
    background: var(--lcc-surface);
    border: 1px solid var(--lcc-border);
    border-radius: var(--lcc-radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.lcc-rank-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--lcc-accent);
}

.lcc-rank-thumbnail--placeholder {
    background: var(--lcc-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.lcc-rank-info { flex: 1; min-width: 0; }

.lcc-rank-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lcc-text-muted);
    margin-bottom: 2px;
}

.lcc-rank-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lcc-accent);
    margin-bottom: 10px;
}

.lcc-rank-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lcc-rank-progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--lcc-surface-2);
    overflow: hidden;
}

.lcc-rank-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lcc-accent-dark), var(--lcc-accent));
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lcc-rank-progress-pct {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lcc-accent);
    white-space: nowrap;
}

.lcc-rank-next {
    font-size: 0.75rem;
    color: var(--lcc-text-muted);
    margin-top: 4px;
}

.lcc-rank-next strong { color: var(--lcc-text); }

/* =========================================================
   5b. LCC Score Widget (life-coach-code-scores integration)
   ========================================================= */

/*
 * The score widget sits at the far right of .lcc-profile-bar.
 * Colours are overridden to match the dark profile theme via
 * inline CSS injected by life-coach-code-scores.php.
 */
.lcc-profile-score-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    padding-bottom: 4px;
}

.lcc-profile-score-wrap .lcc-score-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Hide the duplicate name inside the score widget — already shown above. */
.lcc-profile-score-wrap .lcc-coach-name {
    display: none;
}

.lcc-profile-score-wrap .lcc-recommendation-text {
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    color: var(--lcc-accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* On mobile the score widget moves below the profile meta */
@media (max-width: 640px) {
    .lcc-profile-score-wrap {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        padding-top: 8px;
        border-top: 1px solid var(--lcc-border);
    }
}

/* =========================================================
   6. Tab Navigation
   ========================================================= */
.lcc-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--lcc-border);
    padding: 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lcc-tabs-nav::-webkit-scrollbar { display: none; }

.lcc-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lcc-text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color var(--lcc-transition), border-color var(--lcc-transition);
    white-space: nowrap;
    position: relative;
    bottom: -1px;
}

.lcc-tab-btn:hover { color: var(--lcc-text); }

.lcc-tab-btn[aria-selected="true"] {
    color: var(--lcc-accent);
    border-bottom-color: var(--lcc-accent);
}

.lcc-tab-btn:focus-visible {
    outline: 2px solid var(--lcc-accent);
    outline-offset: -2px;
    border-radius: 3px 3px 0 0;
}

.lcc-tab-btn .lcc-tab-icon { font-size: 1rem; }

.lcc-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--lcc-surface-2);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--lcc-text-muted);
}

.lcc-tab-btn[aria-selected="true"] .lcc-tab-count {
    background: var(--lcc-accent);
    color: #0f172a;
}

/* =========================================================
   7. Tab Panels
   ========================================================= */
.lcc-tab-panels { padding: 24px; }

.lcc-tab-panel { display: none; }
.lcc-tab-panel.is-active { display: block; animation: lccFadeIn 0.2s ease; }

.lcc-tab-empty {
    color: var(--lcc-text-muted);
    text-align: center;
    padding: 48px 0;
    font-size: 0.9rem;
}

/* =========================================================
   8. Badge Grid
   ========================================================= */
.lcc-badge-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lcc-badge-filter-btn {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--lcc-border);
    background: var(--lcc-surface);
    color: var(--lcc-text-muted);
    cursor: pointer;
    transition: all var(--lcc-transition);
}

.lcc-badge-filter-btn:hover,
.lcc-badge-filter-btn.is-active {
    border-color: var(--lcc-accent);
    color: var(--lcc-accent);
    background: rgba(245,158,11,0.1);
}

.lcc-badge-filter-btn:focus-visible {
    outline: 2px solid var(--lcc-accent);
    outline-offset: 2px;
}

.lcc-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.lcc-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px 10px;
    background: var(--lcc-surface);
    border: 1px solid var(--lcc-border);
    border-radius: var(--lcc-radius);
    transition: transform var(--lcc-transition), border-color var(--lcc-transition);
    position: relative;
}

.lcc-badge-item:not(.is-locked):hover {
    transform: translateY(-3px);
    border-color: var(--lcc-accent);
}

.lcc-badge-item.is-locked {
    opacity: 0.45;
    filter: grayscale(0.8);
}

.lcc-badge-item img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lcc-border);
}

.lcc-badge-item.is-locked img { filter: blur(1px); }

.lcc-badge-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lcc-text);
    line-height: 1.3;
}

.lcc-badge-date {
    font-size: 0.65rem;
    color: var(--lcc-text-muted);
}

.lcc-badge-earned-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--lcc-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #0f172a;
}

.lcc-badge-locked-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.75rem;
    color: var(--lcc-text-muted);
}

.lcc-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.lcc-page-btn {
    padding: 6px 12px;
    border-radius: var(--lcc-radius-sm);
    border: 1px solid var(--lcc-border);
    background: var(--lcc-surface);
    color: var(--lcc-text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all var(--lcc-transition);
}

.lcc-page-btn:hover,
.lcc-page-btn.is-current {
    border-color: var(--lcc-accent);
    color: var(--lcc-accent);
}

.lcc-page-btn:focus-visible { outline: 2px solid var(--lcc-accent); outline-offset: 2px; }

/* =========================================================
   9. Course Tracker
   ========================================================= */
.lcc-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.lcc-course-card {
    background: var(--lcc-surface);
    border: 1px solid var(--lcc-border);
    border-radius: var(--lcc-radius);
    overflow: hidden;
    transition: transform var(--lcc-transition), border-color var(--lcc-transition);
    text-decoration: none;
    display: block;
    color: inherit;
}

.lcc-course-card:hover {
    transform: translateY(-3px);
    border-color: var(--lcc-accent);
    text-decoration: none;
    color: inherit;
}

.lcc-course-card:focus-visible {
    outline: 2px solid var(--lcc-accent);
    outline-offset: 2px;
}

.lcc-course-thumb {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    background: var(--lcc-surface-2);
}

.lcc-course-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--lcc-border);
}

.lcc-course-body { padding: 14px; }

.lcc-course-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lcc-text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lcc-course-instructor {
    font-size: 0.75rem;
    color: var(--lcc-text-muted);
    margin-bottom: 10px;
}

.lcc-course-progress-bar {
    height: 5px;
    border-radius: 999px;
    background: var(--lcc-surface-2);
    overflow: hidden;
    margin-bottom: 6px;
}

.lcc-course-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #86efac);
    transition: width 0.6s ease;
}

.lcc-course-progress-fill--done {
    background: linear-gradient(90deg, var(--lcc-accent-dark), var(--lcc-accent));
}

.lcc-course-progress-pct {
    font-size: 0.75rem;
    color: var(--lcc-text-muted);
}

.lcc-course-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 6px;
}

.lcc-course-status--completed { color: var(--lcc-accent); }
.lcc-course-status--enrolled  { color: #3b82f6; }
.lcc-course-status--started   { color: #22c55e; }

/* =========================================================
   10. Activity Feed
   ========================================================= */
.lcc-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lcc-activity-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--lcc-surface);
    border: 1px solid var(--lcc-border);
    border-radius: var(--lcc-radius);
    padding: 14px;
}

.lcc-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--lcc-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--lcc-border);
}

.lcc-activity-body { flex: 1; min-width: 0; }

.lcc-activity-action {
    font-size: 0.85rem;
    color: var(--lcc-text);
    line-height: 1.4;
    margin-bottom: 2px;
}

.lcc-activity-action a { color: var(--lcc-accent); text-decoration: none; }
.lcc-activity-action a:hover { text-decoration: underline; }

.lcc-activity-time {
    font-size: 0.72rem;
    color: var(--lcc-text-muted);
}

/* =========================================================
   11. About / xProfile
   ========================================================= */
.lcc-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .lcc-about-grid { grid-template-columns: 1fr; }
}

.lcc-about-card {
    background: var(--lcc-surface);
    border: 1px solid var(--lcc-border);
    border-radius: var(--lcc-radius);
    padding: 18px;
}

.lcc-about-card--full { grid-column: 1 / -1; }

.lcc-about-card__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lcc-text-muted);
    margin-bottom: 8px;
}

.lcc-about-card__value {
    font-size: 0.9rem;
    color: var(--lcc-text);
    line-height: 1.6;
}

.lcc-about-card__value a {
    color: var(--lcc-accent);
    text-decoration: none;
}

.lcc-about-card__value a:hover { text-decoration: underline; }

/* =========================================================
   12. Progress / Pillar Radar
   ========================================================= */
.lcc-progress-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .lcc-progress-layout { grid-template-columns: 1fr; }
}

.lcc-radar-wrap {
    background: var(--lcc-surface);
    border: 1px solid var(--lcc-border);
    border-radius: var(--lcc-radius);
    padding: 20px;
}

.lcc-radar-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lcc-text-muted);
    margin-bottom: 14px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lcc-radar-canvas-wrap {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
}

.lcc-pillar-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.lcc-pillar-score {
    background: var(--lcc-surface-2);
    border-radius: var(--lcc-radius-sm);
    padding: 10px 12px;
    border-left: 3px solid var(--lcc-border);
}

.lcc-pillar-score--spirit { border-left-color: var(--lcc-spirit); }
.lcc-pillar-score--mind   { border-left-color: var(--lcc-mind);   }
.lcc-pillar-score--body   { border-left-color: var(--lcc-body);   }
.lcc-pillar-score--heart  { border-left-color: var(--lcc-heart);  }

.lcc-pillar-score__name {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--lcc-text-muted);
    margin-bottom: 3px;
}

.lcc-pillar-score__value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--lcc-text);
    line-height: 1;
}

.lcc-no-quiz {
    text-align: center;
    padding: 32px 0;
    color: var(--lcc-text-muted);
}

.lcc-no-quiz a {
    color: var(--lcc-accent);
    text-decoration: none;
    font-weight: 600;
}

/* Points history log */
.lcc-points-log {
    background: var(--lcc-surface);
    border: 1px solid var(--lcc-border);
    border-radius: var(--lcc-radius);
    overflow: hidden;
}

.lcc-points-log__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lcc-text-muted);
    padding: 14px 16px;
    border-bottom: 1px solid var(--lcc-border);
}

.lcc-points-log__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lcc-points-log__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--lcc-border);
    font-size: 0.82rem;
}

.lcc-points-log__item:last-child { border-bottom: none; }

.lcc-points-log__label { color: var(--lcc-text); flex: 1; margin-right: 8px; }
.lcc-points-log__date  { color: var(--lcc-text-muted); font-size: 0.72rem; margin-right: 10px; }
.lcc-points-log__amount {
    font-weight: 700;
    color: var(--lcc-accent);
    white-space: nowrap;
}

/* =========================================================
   13. Toast Notifications
   ========================================================= */
.lcc-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.lcc-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--lcc-surface);
    border: 1px solid var(--lcc-border);
    border-radius: var(--lcc-radius);
    padding: 14px 16px;
    min-width: 280px;
    max-width: 360px;
    box-shadow: var(--lcc-shadow);
    pointer-events: all;
    animation: lccToastIn 0.3s ease;
    border-left: 4px solid var(--lcc-accent);
}

.lcc-toast--points     { border-left-color: var(--lcc-accent); }
.lcc-toast--badge      { border-left-color: var(--lcc-spirit); }
.lcc-toast--rank       { border-left-color: #ffd700; }

.lcc-toast__icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.lcc-toast__body { flex: 1; min-width: 0; }

.lcc-toast__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--lcc-text);
    margin-bottom: 2px;
}

.lcc-toast__msg {
    font-size: 0.78rem;
    color: var(--lcc-text-muted);
    line-height: 1.4;
}

.lcc-toast__close {
    background: none;
    border: none;
    color: var(--lcc-text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
    transition: color var(--lcc-transition);
}

.lcc-toast__close:hover { color: var(--lcc-text); }
.lcc-toast__close:focus-visible { outline: 2px solid var(--lcc-accent); border-radius: 2px; }

.lcc-toast.is-leaving { animation: lccToastOut 0.25s ease forwards; }

/* =========================================================
   14. Utilities & Animations
   ========================================================= */
.lcc-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lcc-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lcc-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--lcc-border);
}

.lcc-skeleton {
    background: linear-gradient(90deg, var(--lcc-surface) 25%, var(--lcc-surface-2) 50%, var(--lcc-surface) 75%);
    background-size: 200% 100%;
    animation: lccSkeletonSlide 1.4s infinite;
    border-radius: var(--lcc-radius-sm);
}

.lcc-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--lcc-surface-2);
    border-top-color: var(--lcc-accent);
    border-radius: 50%;
    animation: lccSpin 0.7s linear infinite;
    margin: 32px auto;
}

@keyframes lccFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}

@keyframes lccToastIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0);    }
}

@keyframes lccToastOut {
    from { opacity: 1; transform: translateX(0);     }
    to   { opacity: 0; transform: translateX(30px);  }
}

@keyframes lccSkeletonSlide {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

@keyframes lccSpin {
    to { transform: rotate(360deg); }
}

@keyframes lccCountUp {
    from { transform: translateY(8px); opacity: 0; }
    to   { transform: translateY(0);  opacity: 1; }
}

/* =========================================================
   15. Responsive Overrides
   ========================================================= */
@media (max-width: 768px) {
    .lcc-profile-bar { margin-top: -45px; }

    .lcc-avatar-wrap img,
    .lcc-avatar-wrap .avatar { width: 80px; height: 80px; }

    .lcc-profile-name { font-size: 1.2rem; }

    .lcc-tab-btn { padding: 12px 12px; font-size: 0.8rem; }

    .lcc-tab-panels { padding: 16px; }

    .lcc-points-row { padding: 12px 16px; gap: 8px; }

    .lcc-points-chip { min-width: 100px; padding: 8px 12px; }

    .lcc-badge-grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: 10px; }

    .lcc-course-grid { grid-template-columns: 1fr; }

    .lcc-rank-section { padding: 14px 16px; }

    .lcc-cover { height: 140px; }

    .lcc-toast-container { bottom: 16px; right: 16px; left: 16px; }
    .lcc-toast { min-width: 0; max-width: 100%; }
}

@media (max-width: 480px) {
    .lcc-profile-name { font-size: 1rem; }
    .lcc-tab-btn .lcc-tab-icon { display: none; }
    .lcc-tab-btn { padding: 12px 10px; }
}

/* =========================================================
   16. Reduced-Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .lcc-rank-progress-fill,
    .lcc-course-progress-fill,
    .lcc-btn,
    .lcc-badge-item,
    .lcc-course-card,
    .lcc-points-chip { transition: none; }

    .lcc-skeleton { animation: none; background: var(--lcc-surface-2); }
    .lcc-spinner  { animation: none; }

    .lcc-tab-panel.is-active { animation: none; }
    .lcc-toast { animation: none; }
    .lcc-toast.is-leaving { animation: none; opacity: 0; }

    .lcc-social-panel,
    .lcc-layout-drawer { transition: none; }
}

/* =========================================================
   17. Social Links Row & Editor Panel
   ========================================================= */

/* ── Row (displayed on profile) ──────────────────────────── */
.lcc-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px 4px;
    flex-wrap: wrap;
}

.lcc-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lcc-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--lcc-surface-2);
    color: var(--lcc-text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
    position: relative;
}

.lcc-social-link:hover,
.lcc-social-link:focus-visible {
    background: var(--link-color, var(--lcc-accent));
    color: #fff;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--link-color, var(--lcc-accent)) 40%, transparent);
    outline: none;
}

.lcc-social-link:focus-visible {
    box-shadow: 0 0 0 2px var(--lcc-accent);
}

.lcc-social-empty-hint {
    font-size: 0.8rem;
    color: var(--lcc-text-muted);
    font-style: italic;
}

/* Edit links button */
.lcc-social-edit-btn {
    font-size: 0.78rem;
    padding: 5px 12px;
    gap: 5px;
    margin-left: auto;
}

/* ── Hidden-tab preview badge ─────────────────────────────── */
.lcc-tab-btn--hidden-preview {
    opacity: 0.5;
}
.lcc-tab-btn__hidden-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    margin-left: 4px;
    color: var(--lcc-text-muted);
}

/* ── Social editor overlay + panel ──────────────────────────── */
.lcc-social-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.lcc-social-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lcc-social-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(480px, 100vw);
    background: var(--lcc-surface);
    border-left: 1px solid var(--lcc-border);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
}

.lcc-social-panel.is-open {
    transform: translateX(0);
}

.lcc-social-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--lcc-border);
    flex-shrink: 0;
}

.lcc-social-panel__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lcc-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.lcc-social-panel__close {
    background: none;
    border: none;
    color: var(--lcc-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.lcc-social-panel__close:hover { color: var(--lcc-text); background: var(--lcc-surface-2); }

.lcc-social-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lcc-social-panel__footer {
    padding: 14px 20px;
    border-top: 1px solid var(--lcc-border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Platform search */
.lcc-social-search {
    width: 100%;
    background: var(--lcc-surface-2);
    border: 1px solid var(--lcc-border);
    border-radius: 8px;
    color: var(--lcc-text);
    font-size: 0.88rem;
    padding: 9px 12px;
    transition: border-color 0.2s;
}
.lcc-social-search:focus { outline: none; border-color: var(--lcc-accent); }

/* Platform grid */
.lcc-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

.lcc-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 6px 8px;
    background: var(--lcc-surface-2);
    border: 1px solid var(--lcc-border);
    border-radius: 10px;
    cursor: pointer;
    color: var(--lcc-text);
    font-size: 0.72rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    position: relative;
}

.lcc-platform-btn:hover:not(:disabled) {
    border-color: var(--lcc-accent);
    background: var(--lcc-surface);
    transform: translateY(-2px);
}

.lcc-platform-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.lcc-platform-btn__icon {
    font-size: 1.25rem;
    line-height: 1;
}

.lcc-platform-btn__added {
    position: absolute;
    top: 4px;
    right: 5px;
    font-size: 0.6rem;
    color: var(--lcc-accent);
}

/* Link list (draggable rows) */
.lcc-social-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lcc-social-link-item {
    background: var(--lcc-surface-2);
    border: 1px solid var(--lcc-border);
    border-radius: 10px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 28px 32px 1fr auto;
    align-items: center;
    gap: 8px;
    cursor: grab;
    transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.lcc-social-link-item.is-dragging {
    opacity: 0.45;
    cursor: grabbing;
}

.lcc-social-link-item.drag-over {
    border-color: var(--lcc-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--lcc-accent) 30%, transparent);
}

.lcc-social-link-item__handle {
    color: var(--lcc-text-muted);
    font-size: 0.95rem;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lcc-social-link-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--platform-color, #64748b) 18%, transparent);
    color: var(--platform-color, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.lcc-social-link-item__fields {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.lcc-social-link-item__url,
.lcc-social-link-item__label {
    width: 100%;
    background: var(--lcc-surface);
    border: 1px solid var(--lcc-border);
    border-radius: 6px;
    color: var(--lcc-text);
    font-size: 0.8rem;
    padding: 5px 8px;
    transition: border-color 0.2s;
}

.lcc-social-link-item__url:focus,
.lcc-social-link-item__label:focus {
    outline: none;
    border-color: var(--lcc-accent);
}

.lcc-social-link-item__remove {
    background: none;
    border: none;
    color: var(--lcc-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
}
.lcc-social-link-item__remove:hover { color: #ef4444; background: rgba(239, 68, 68, 0.12); }

.lcc-social-empty-msg {
    text-align: center;
    color: var(--lcc-text-muted);
    font-size: 0.83rem;
    padding: 16px 0;
    font-style: italic;
}

/* Section sub-heading inside panel */
.lcc-social-panel__section-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lcc-text-muted);
    margin: 0 0 8px;
}

/* Save button saved state */
.lcc-layout-save-btn.is-saved,
.lcc-social-save-btn.is-saved {
    background: #16a34a !important;
    border-color: #16a34a !important;
}

/* =========================================================
   18. Layout / Customize Drawer
   ========================================================= */

/* Overlay */
.lcc-layout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.lcc-layout-overlay:not([aria-hidden="true"]) {
    opacity: 1;
    pointer-events: auto;
}

/* Drawer panel */
.lcc-layout-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(460px, 100vw);
    background: var(--lcc-surface);
    border-left: 1px solid var(--lcc-border);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
}

.lcc-layout-drawer.is-open {
    transform: translateX(0);
}

/* Prevent body scroll while drawer open */
body.lcc-layout-open {
    overflow: hidden;
}

/* Header */
.lcc-layout-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--lcc-border);
    flex-shrink: 0;
}

.lcc-layout-drawer__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lcc-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.lcc-layout-drawer__close {
    background: none;
    border: none;
    color: var(--lcc-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.lcc-layout-drawer__close:hover { color: var(--lcc-text); background: var(--lcc-surface-2); }

/* Scrollable body */
.lcc-layout-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Footer with save / cancel */
.lcc-layout-drawer__footer {
    padding: 14px 20px;
    border-top: 1px solid var(--lcc-border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Section inside drawer */
.lcc-layout-section {}

.lcc-layout-section__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lcc-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
}

/* Drag hint */
.lcc-layout-drag-hint {
    font-size: 0.78rem;
    color: var(--lcc-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
}

/* Section toggle list */
.lcc-layout-sections-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lcc-layout-section-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--lcc-surface-2);
    border: 1px solid var(--lcc-border);
    border-radius: 10px;
    padding: 10px 14px;
}

.lcc-layout-section-item__icon {
    color: var(--lcc-accent);
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
}

.lcc-layout-section-item__label {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--lcc-text);
}

/* Tab reorder list */
.lcc-layout-tab-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lcc-layout-tab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--lcc-surface-2);
    border: 1px solid var(--lcc-border);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: grab;
    transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
    user-select: none;
}

.lcc-layout-tab-item:active { cursor: grabbing; }

.lcc-layout-tab-item.is-dragging {
    opacity: 0.4;
}

.lcc-layout-tab-item.drag-over {
    border-color: var(--lcc-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--lcc-accent) 25%, transparent);
}

.lcc-layout-tab-item.is-hidden {
    opacity: 0.6;
}

.lcc-layout-tab-item__drag-handle {
    color: var(--lcc-text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.lcc-layout-tab-item__icon {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

.lcc-layout-tab-item__label {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--lcc-text);
}

.lcc-layout-tab-item__badge {
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lcc-badge--private {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

/* Toggle switch component */
.lcc-toggle-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
}

.lcc-toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.lcc-toggle-switch__track {
    display: inline-block;
    width: 40px;
    height: 22px;
    background: var(--lcc-border);
    border-radius: 20px;
    transition: background 0.2s;
    position: relative;
}

.lcc-toggle-switch__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.lcc-toggle-switch input:checked + .lcc-toggle-switch__track {
    background: var(--lcc-accent);
}

.lcc-toggle-switch input:checked + .lcc-toggle-switch__track::after {
    transform: translateX(18px);
}

.lcc-toggle-switch input:focus-visible + .lcc-toggle-switch__track {
    box-shadow: 0 0 0 2px var(--lcc-accent);
}

/* Small variant */
.lcc-toggle-switch--sm .lcc-toggle-switch__track {
    width: 34px;
    height: 18px;
}

.lcc-toggle-switch--sm .lcc-toggle-switch__track::after {
    width: 12px;
    height: 12px;
    top: 3px;
    left: 3px;
}

.lcc-toggle-switch--sm input:checked + .lcc-toggle-switch__track::after {
    transform: translateX(16px);
}

/* =========================================================
   19. Posts Grid (author articles)
   ========================================================= */

.lcc-posts-tab {
    padding: 4px 0;
}

.lcc-posts-tab__count {
    font-size: 0.85rem;
    color: var(--lcc-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 18px;
}

.lcc-posts-tab__count strong {
    color: var(--lcc-text);
}

/* Card grid */
.lcc-posts-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

/* Individual card */
.lcc-post-card {
    background: var(--lcc-surface);
    border: 1px solid var(--lcc-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.lcc-post-card:hover {
    border-color: color-mix(in srgb, var(--lcc-accent) 60%, transparent);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.lcc-post-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Thumbnail */
.lcc-post-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--lcc-surface-2);
}

.lcc-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.lcc-post-card:hover .lcc-post-card__thumb img {
    transform: scale(1.04);
}

.lcc-post-card__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2.5rem;
    color: var(--lcc-text-muted);
    opacity: 0.35;
}

.lcc-post-card__category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--lcc-accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 20px;
}

/* Card body */
.lcc-post-card__body {
    padding: 14px 16px 16px;
}

.lcc-post-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lcc-text);
    line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lcc-post-card__excerpt {
    font-size: 0.8rem;
    color: var(--lcc-text-muted);
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lcc-post-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lcc-post-card__date,
.lcc-post-card__read-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--lcc-text-muted);
}

/* Pagination */
.lcc-posts-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.lcc-posts-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lcc-text-muted);
    background: var(--lcc-surface-2);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.lcc-posts-pagination .page-numbers:hover {
    background: var(--lcc-surface);
    color: var(--lcc-text);
}

.lcc-posts-pagination .page-numbers.current {
    background: var(--lcc-accent);
    color: #fff;
}

/* Empty state */
.lcc-posts-tab__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 20px;
    gap: 14px;
    text-align: center;
}

.lcc-posts-tab__empty-icon {
    font-size: 3rem;
    color: var(--lcc-text-muted);
    opacity: 0.35;
}

.lcc-posts-tab__empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lcc-text-muted);
    margin: 0;
}

/* ── 20. Score History Sparkline ─────────────────────────────────────────────
   A compact Chart.js line chart shown below the LCC Score SVG widget
   inside .lcc-profile-score-wrap. Visualises the coach's score trajectory
   over time with no axes — just the amber sparkline on a dark surface.
   ──────────────────────────────────────────────────────────────────────── */

.lcc-score-history {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            4px;
    margin-top:     6px;
}

.lcc-score-history__canvas {
    display:       block;
    border-radius: 8px;
    background:    rgba(255, 255, 255, 0.04);
    border:        1px solid rgba(255, 255, 255, 0.07);
    /* Fixed dimensions match the width/height attrs on the <canvas> element */
    width:  160px !important;
    height:  56px !important;
}

.lcc-score-history__label {
    font-size:      0.65rem;
    font-weight:    600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color:          var(--lcc-text-muted);
    opacity:        0.7;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
/* Responsive */
@media (max-width: 640px) {
    .lcc-posts-grid { grid-template-columns: 1fr; }
    .lcc-social-panel,
    .lcc-layout-drawer { width: 100vw; }

    /* On very small screens the score + chart stack vertically inside the bar */
    .lcc-profile-score-wrap {
        flex-direction: column;
        align-items: center;
    }

    .lcc-score-history__canvas {
        width:  120px !important;
        height:  42px !important;
    }
}

/* =========================================================
   21. Mini-Hub Preview (own-profile overview tab)
   ========================================================= */
.lcc-mini-hub {
    background: linear-gradient(135deg, var(--lcc-surface) 0%, #1e2238 100%);
    border: 1px solid rgba(79,142,247,0.18);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.lcc-mini-hub__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.lcc-mini-hub__left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lcc-mini-hub__greeting {
    font-size: 15px;
    color: var(--lcc-text);
}

.lcc-mini-hub__role-pill {
    background: rgba(79,142,247,0.12);
    color: #4f8ef7;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lcc-mini-hub__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #4f8ef7;
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.lcc-mini-hub__cta:hover { filter: brightness(1.12); transform: translateY(-1px); }

.lcc-mini-hub__stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.lcc-mini-hub__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 60px;
    flex: 1;
    max-width: 90px;
}

.lcc-mini-hub__stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--lcc-text);
    line-height: 1;
}

.lcc-mini-hub__stat-lbl {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lcc-text-muted);
    margin-top: 4px;
}

.lcc-mini-hub__shortcuts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lcc-mini-hub__shortcut {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lcc-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}
.lcc-mini-hub__shortcut:hover {
    background: rgba(79,142,247,0.1);
    border-color: rgba(79,142,247,0.3);
    color: #4f8ef7;
}

@media (max-width: 600px) {
    .lcc-mini-hub__stat { min-width: 52px; padding: 8px 8px; }
    .lcc-mini-hub__stat-val { font-size: 16px; }
    .lcc-mini-hub { padding: 16px; }
}
}
