/* /assets/css/pages/social.css — Perspective Scroll Feed */

/* ---- Sidebar Layout ---- */
.social-layout {
    min-height: 100vh;
    background: var(--bg-base);
}

.social-layout>main {
    margin-left: 64px;
}

.social-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 64px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 16px;
    background: rgba(26, 26, 26, 0.95);
    border-right: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.2, 0, 0, 1);
    overflow: hidden;
}

.social-sidebar:hover {
    width: 180px;
}

/* Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-high);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 8px 0 8px 20px;
    margin-bottom: 24px;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.social-sidebar:hover .sidebar-brand {
    justify-content: flex-start;
    padding-left: 20px;
}

.sidebar-brand-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
}

.sidebar-brand span {
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.social-sidebar:hover .sidebar-brand span {
    opacity: 1;
}

/* Nav links */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 10px 22px;
    justify-content: flex-start;
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
    width: 100%;
}

.social-sidebar:hover .sidebar-link {
    justify-content: flex-start;
    padding-left: 22px;
}

.sidebar-link span {
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.social-sidebar:hover .sidebar-link span {
    opacity: 1;
}

.sidebar-link svg {
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    color: var(--text-high);
}

.sidebar-link:hover svg {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.15));
}

.sidebar-link.active {
    color: var(--text-high);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--text-high);
    border-radius: 0 2px 2px 0;
}

/* Bottom section */
.sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    justify-content: flex-start;
    padding-left: 18px;
    width: 100%;
}

.social-sidebar:hover .sidebar-user {
    justify-content: flex-start;
    padding-left: 18px;
}

.sidebar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    flex-shrink: 0;
}

.sidebar-username {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-low);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.social-sidebar:hover .sidebar-username {
    opacity: 1;
}

.sidebar-back {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    padding-left: 20px;
    text-decoration: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    padding-top: 6px;
    padding-bottom: 6px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.2s ease;
}

.social-sidebar:hover .sidebar-back {
    justify-content: flex-start;
    padding-left: 20px;
}

.sidebar-back span {
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.social-sidebar:hover .sidebar-back span {
    opacity: 1;
}

.sidebar-back:hover {
    color: var(--text-med);
}

/* Mobile sidebar toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-med);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    color: var(--text-high);
    border-color: var(--border-strong);
}

/* Mobile overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

body.sidebar-open .sidebar-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ---- Viewport Container ---- */
/* Override base.css body padding for sidebar layout */
body:has(.social-layout) {
    padding: 0;
}

.constellation-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-base);
}

/* Starfield background canvas */
.starfield-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Perspective Scroll Area ---- */
.perspective-scroll {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    perspective: 1200px;
    perspective-origin: 50% 40%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.perspective-scroll::-webkit-scrollbar {
    width: 4px;
}

.perspective-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.perspective-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* ---- Card Runway ---- */
.card-runway {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 80px 48px 120px;
    max-width: 1200px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

/* ---- Post Card ---- */
.ccard {
    background: rgba(26, 26, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1),
        opacity 0.5s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
    transition-delay: var(--entrance-delay, 0ms);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    will-change: transform, opacity;
    transform-origin: center center;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    /* Initial state: cards start receded */
    opacity: 0;
    transform: translateY(30px) scale(0.97);
}

/* Reveal state — set by JS when card enters viewport */
.ccard.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ccard:hover {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 30px rgba(100, 200, 255, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-2px) scale(1.01) !important;
}

/* Glow accent strip at top */
.ccard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--accent-tech),
            transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ccard:hover::before {
    opacity: 0.4;
}

/* ---- Size tiers: engagement drives visual weight ---- */

/* Viral: span 2 columns */
.ccard.tier-viral {
    grid-column: span 2;
    padding: 22px 24px;
}

/* Hot: slightly larger padding */
.ccard.tier-hot {
    padding: 20px 22px;
}

/* Warm & Normal: default */

/* ---- Card Header ---- */
.ccard-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ccard-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ccard-names {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ccard-author {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-high);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccard-handle {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
}

.ccard-author,
.ccard-handle,
.ccard-avatar-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.ccard-author:hover,
.ccard-handle:hover {
    color: var(--accent-tech);
}

.ccard-avatar-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ccard-avatar-link:hover {
    border-color: var(--accent-tech);
}

.ccard-time {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    flex-shrink: 0;
    margin-left: auto;
}

/* ---- Card Body ---- */
.ccard-body {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-high);
    word-break: break-word;
}

/* Viral posts show full text; others clamp */
.ccard.tier-normal .ccard-body,
.ccard.tier-warm .ccard-body {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    cursor: pointer;
    position: relative;
}

.ccard.tier-hot .ccard-body {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    cursor: pointer;
    position: relative;
}

/* Expanded state — remove clamp */
.ccard .ccard-body.body-expanded {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
    cursor: default;
}

/* ---- Show More / View Thread ---- */
.ccard-show-more {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 2px;
}

.ccard-show-more-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s ease;
}

.ccard-show-more-text:hover {
    color: var(--accent-tech);
}

.ccard-view-thread {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    color: var(--accent-tech);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.ccard-view-thread:hover {
    opacity: 1;
}

/* ---- Card Stats ---- */
.ccard-stats {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ccard-stat {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.ccard-stat:hover {
    color: var(--text-med);
}

.ccard-stat-action {
    cursor: pointer;
}

.ccard-stat-action:hover {
    color: var(--accent-tech);
}

.ccard-stat .stat-icon {
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.ccard-stat .stat-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: all 0.15s ease;
}

.ccard-stat-action.active .stat-icon svg {
    color: var(--accent-tech);
}

.ccard-stat-action[data-action="like"].active .stat-icon svg {
    color: #ff6b8a;
    fill: #ff6b8a;
    stroke: #ff6b8a;
    filter: drop-shadow(0 0 4px rgba(255, 107, 138, 0.5));
}

.ccard-stat-action[data-action="like"]:hover .stat-icon svg {
    color: #ff6b8a;
}

.ccard-stat-action[data-action="reply"]:hover .stat-icon svg {
    color: var(--accent-tech);
}

/* ---- Reply Button ---- */
.ccard-reply-btn {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ccard-reply-btn:hover {
    color: var(--accent-tech);
    border-color: var(--accent-tech);
    background: rgba(100, 200, 255, 0.06);
}

.ccard-reply-btn svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    transition: all 0.15s ease;
}

/* ---- Location Badge ---- */
.ccard-location {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-pill);
    padding: 2px 8px;
    margin-left: auto;
    margin-right: 4px;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ccard-location.same-planet {
    color: var(--accent-tech);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.10);
}

.ccard-location.same-zone {
    color: var(--accent-tech);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.06);
}

/* Viral cards get a subtle engagement glow */
.ccard.tier-viral {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

/* ---- Thread / Reply Cards ---- */

/* Thread wrapper — sits in the grid like a normal card but holds parent + replies */
.thread-wrap {
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 800px;
    position: relative;
}

/* When thread is expanded and viral, span 2 columns */
.thread-wrap.tier-viral {
    grid-column: span 2;
}

/* The parent card inside a thread — no position changes needed */
.thread-wrap>.ccard {
    position: relative;
    z-index: 3;
}



/* ---- Reply Peek: avatar cluster row ---- */
.reply-peek {
    display: flex;
    align-items: center;
    gap: 0;
    padding-top: 6px;
    transition: opacity 0.3s ease;
}

.reply-peek-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-tech);
    font-family: var(--font-mono);
    font-size: 0.45rem;
    font-weight: 600;
    margin-left: -4px;
    position: relative;
    transition: all 0.25s ease;
}

.reply-peek-avatar:first-child {
    margin-left: 0;
}

.reply-peek-avatar:hover {
    transform: translateY(-2px) scale(1.15);
    z-index: 5;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
}

.reply-peek-label {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--text-dim);
    margin-left: 8px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.ccard:hover .reply-peek-label {
    opacity: 1;
    color: var(--accent-tech);
}

/* Hide peek avatars when expanded */
.thread-wrap.expanded .reply-peek {
    opacity: 0;
    pointer-events: none;
}

/* Thread expand hint */
.ccard-thread-hint {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--accent-tech);
    padding-top: 4px;
    letter-spacing: 0.06em;
}

.ccard-focus-link {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.ccard-focus-link:hover {
    opacity: 1;
}

/* Reply container — holds all reply cards */
.reply-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s cubic-bezier(0.2, 0, 0, 1);
    transform-style: preserve-3d;
}

.thread-wrap.expanded .reply-container {
    max-height: 300px;
    overflow-y: auto;
}

/* Individual reply card — pushed back in Z-space */
.reply-card {
    background: rgba(22, 22, 22, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 14px 18px 14px 32px;
    margin-top: -1px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: default;

    /* The depth effect — replies feel "behind" the parent */
    transform: translateZ(-60px) scale(0.96);
    opacity: 0.7;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1),
        opacity 0.4s ease;
}

.thread-wrap.expanded .reply-card {
    opacity: 0.85;
}

.reply-card:hover {
    opacity: 1;
    transform: translateZ(-30px) scale(0.98);
}

/* Depth level 2 — even further back */
.reply-card.depth-2 {
    padding-left: 48px;
    transform: translateZ(-110px) scale(0.92);
    opacity: 0.55;
}

.thread-wrap.expanded .reply-card.depth-2 {
    opacity: 0.7;
}

.reply-card.depth-2:hover {
    opacity: 0.9;
    transform: translateZ(-60px) scale(0.95);
}

/* Reply connector line */
.reply-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.06),
            transparent);
    pointer-events: none;
}

/* Reply card inner elements */
.reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reply-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 500;
    flex-shrink: 0;
}

.reply-author {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-med);
}

.reply-handle {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-dim);
}

.reply-time {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--text-dim);
    margin-left: auto;
}

.reply-body {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-med);
}

/* ---- Comment Like Button ---- */
.comment-like-wrap {
    display: flex;
    align-items: center;
    padding-top: 4px;
}

.comment-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--text-dim);
    transition: all 0.2s ease;
}

.comment-like-btn:hover {
    color: #ff6b8a;
    background: rgba(255, 107, 138, 0.06);
}

.comment-like-btn.active {
    color: #ff6b8a;
}

.comment-like-btn.active .comment-like-icon svg {
    fill: #ff6b8a;
    stroke: #ff6b8a;
    filter: drop-shadow(0 0 3px rgba(255, 107, 138, 0.4));
}

.comment-like-icon {
    display: inline-flex;
    align-items: center;
}

.comment-like-icon svg {
    transition: all 0.15s ease;
}

.comment-like-count {
    min-width: 8px;
}

/* ---- Nested Comments (depth-2) ---- */
.reply-card.depth-2,
.thread-reply.depth-2 {
    margin-left: 24px;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.06);
}

/* Collapsible nested replies */
.nested-toggle {
    display: inline-block;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--accent-tech);
    padding: 3px 6px;
    margin-top: 4px;
    margin-left: 24px;
    border-radius: var(--radius-pill);
    transition: background 0.2s ease;
}

.nested-toggle:hover {
    background: rgba(0, 200, 255, 0.08);
}

.nested-replies {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    max-height: 2000px;
    opacity: 1;
}

.nested-replies.collapsed {
    max-height: 0;
    opacity: 0;
}

/* Reply action button (↩) */
.comment-reply-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.7rem;
    color: var(--text-dim);
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
    margin-right: 4px;
}

.comment-reply-btn:hover {
    color: var(--accent-tech);
    background: rgba(0, 200, 255, 0.06);
}

/* Reply target badge in composer */
.reply-target-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin-bottom: 6px;
    background: rgba(0, 200, 255, 0.08);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--accent-tech);
}

.reply-target-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 0.8rem;
    padding: 0 2px;
    line-height: 1;
}

.reply-target-dismiss:hover {
    color: var(--text-med);
}

/* Body links (URLs, mentions) */
.body-link {
    color: var(--accent-tech);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.body-link:hover {
    border-bottom-color: var(--accent-tech);
}

.body-hashtag {
    color: var(--accent-tech);
    opacity: 0.8;
}

.reply-author,
.reply-handle,
.thread-reply-author,
.thread-reply-handle {
    text-decoration: none;
    color: inherit;
}

.reply-author:hover,
.reply-handle:hover,
.thread-reply-author:hover,
.thread-reply-handle:hover {
    color: var(--accent-tech);
}

.reply-avatar,
.thread-reply-avatar {
    text-decoration: none;
    color: inherit;
}

/* Quoted post inline */
.ccard-quoted {
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border-left: 2px solid var(--accent-tech);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ccard:hover .ccard-quoted {
    background: rgba(255, 255, 255, 0.04);
    border-left-color: var(--accent-tech);
}

.ccard-quoted-header {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ccard-quoted-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg,
            hsl(var(--quote-avatar-hue, 200), 50%, 40%),
            hsl(calc(var(--quote-avatar-hue, 200) + 40), 60%, 50%));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-mono);
    font-size: 0.4rem;
    font-weight: 600;
    flex-shrink: 0;
}

.ccard-quoted-body {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-med);
    opacity: 0.85;
}

/* ---- Loading Skeletons ---- */
.ccard-skeleton {
    cursor: default;
    pointer-events: none;
    opacity: 1;
    transform: none;
}

.ccard-skeleton .skeleton-header,
.ccard-skeleton .skeleton-body,
.ccard-skeleton .skeleton-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ccard-skeleton .skeleton-header {
    gap: 12px;
}

.ccard-skeleton .skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.ccard-skeleton .skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ccard-skeleton .skeleton-line {
    height: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.ccard-skeleton .skeleton-line.w60 {
    width: 60%;
}

.ccard-skeleton .skeleton-line.w40 {
    width: 40%;
}

.ccard-skeleton .skeleton-line.w70 {
    width: 70%;
}

.ccard-skeleton .skeleton-line.w90 {
    width: 90%;
}

.ccard-skeleton .skeleton-line.w20 {
    width: 20%;
}

.ccard-skeleton .skeleton-body {
    flex-direction: column;
    gap: 8px;
}

.ccard-skeleton .skeleton-stats {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

@keyframes skeleton-pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ---- Error State ---- */
.feed-retry-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-strong);
    color: var(--text-high);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-retry-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ---- Infinite Scroll Sentinel ---- */
.feed-sentinel {
    grid-column: 1 / -1;
    height: 1px;
    pointer-events: none;
}

/* ---- Profile Page ---- */
.profile-wrap .card-runway {
    padding-top: 280px;
    grid-template-columns: 1fr;
    max-width: 680px;
    gap: 8px;
}

/* Force list-style cards on profile */
.profile-wrap .ccard {
    padding: 14px 18px;
    border-radius: var(--radius-card, 8px);
}

.profile-wrap .ccard.tier-viral {
    grid-column: span 1;
    padding: 14px 18px;
}

.profile-wrap .ccard-body {
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
}

.profile-wrap .ccard::before {
    display: none;
}

.profile-wrap .reply-peek,
.profile-wrap .ccard-thread-hint {
    display: none;
}

/* Section label above posts */
.profile-wrap .card-runway::before {
    content: 'Posts';
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0 4px 8px;
    border-bottom: 1px solid var(--border-subtle);
    grid-column: 1 / -1;
}

/* Empty state when no posts */
.profile-wrap .card-runway:empty::after {
    content: 'No posts yet';
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    padding: 3rem 1rem;
    opacity: 0.6;
    grid-column: 1 / -1;
}

.profile-header {
    position: fixed;
    top: 0;
    left: 64px;
    right: 0;
    z-index: 25;
    padding: 0;
    pointer-events: none;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

/* Banner gradient strip */
.profile-banner {
    height: 80px;
    background: linear-gradient(135deg,
            rgba(0, 255, 247, 0.08) 0%,
            rgba(120, 80, 255, 0.08) 50%,
            rgba(0, 136, 255, 0.06) 100%);
    border-bottom: 1px solid var(--border-subtle);
    pointer-events: none;
}

/* Hero section */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 2rem;
    margin-top: -32px;
    pointer-events: auto;
}

/* Avatar with gradient ring */
.profile-avatar-ring {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg,
            hsl(calc(var(--profile-hue, 220)), 60%, 45%),
            hsl(calc(var(--profile-hue, 220) + 60), 70%, 55%));
    flex-shrink: 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.profile-avatar-ring:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 24px rgba(0, 200, 255, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.4);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-high);
    text-transform: uppercase;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 34px;
}

.profile-username {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-high);
    margin: 0;
    line-height: 1.2;
}

.profile-handle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.profile-member-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-member-badge svg {
    opacity: 0.5;
}

/* Stats row */
.profile-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 2rem 14px;
    pointer-events: auto;
    align-items: center;
}

.profile-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.profile-stat:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-strong);
}

.profile-stat-value {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-high);
}

.profile-stat-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    text-transform: uppercase;
}

.profile-message-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    margin-left: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
}

.profile-message-btn:hover {
    color: var(--accent-tech);
    border-color: var(--accent-tech);
    background: rgba(0, 200, 255, 0.06);
}

.profile-message-btn svg {
    flex-shrink: 0;
    transition: all 0.15s ease;
}

/* ---- Sort Bar ---- */
.sort-bar {
    position: fixed;
    top: 16px;
    left: calc(64px + 50%);
    transform: translateX(calc(-50% - 32px));
    display: flex;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 30;
}

.sort-chip {
    padding: 5px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sort-chip:hover {
    color: var(--text-med);
    background: rgba(255, 255, 255, 0.04);
}

.sort-chip.active {
    color: var(--text-high);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.06);
}

/* ---- View Toggle ---- */
.view-toggle-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
    align-self: center;
}

.view-chip {
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-chip:hover {
    color: var(--text-med);
    background: rgba(255, 255, 255, 0.04);
}

.view-chip.active {
    color: var(--text-high);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.06);
}

/* ---- List View Mode ---- */
.card-runway.view-list {
    grid-template-columns: 1fr;
    max-width: 680px;
    gap: 6px;
}

.card-runway.view-list .ccard {
    padding: 12px 16px;
    gap: 6px;
    border-radius: var(--radius-card, 8px);
}

.card-runway.view-list .ccard.tier-viral {
    grid-column: span 1;
    padding: 12px 16px;
}

.card-runway.view-list .ccard.tier-hot {
    padding: 12px 16px;
}

.card-runway.view-list .ccard-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.55rem;
}

.card-runway.view-list .ccard-author {
    font-size: 0.78rem;
}

.card-runway.view-list .ccard-body {
    font-size: 0.82rem;
    line-height: 1.5;
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
}

.card-runway.view-list .ccard-stats {
    padding-top: 4px;
    gap: 12px;
}

.card-runway.view-list .ccard::before {
    display: none;
}

.card-runway.view-list .reply-peek {
    display: none;
}

.card-runway.view-list .ccard-thread-hint {
    display: none;
}

.card-runway.view-list .thread-wrap {
    gap: 0;
}

.card-runway.view-list .reply-container {
    display: none;
}

.card-runway.view-list .thread-wrap.expanded .reply-container {
    display: flex;
    max-height: 300px;
    overflow-y: auto;
}

/* ---- Search Bar ---- */
.feed-search-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-pill);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.feed-search-wrap:focus-within {
    border-color: var(--accent-tech);
    background: rgba(255, 255, 255, 0.06);
}

.feed-search-icon {
    color: var(--text-dim);
    flex-shrink: 0;
    opacity: 0.6;
}

.feed-search-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-high);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    width: 120px;
    transition: width 0.3s ease;
}

.feed-search-input:focus {
    width: 180px;
}

.feed-search-input::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

/* ---- Notification Badge ---- */
.notif-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    background: #ff4466;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 8px rgba(255, 68, 102, 0.5);
    animation: notif-pulse 2s ease-in-out infinite;
}

@keyframes notif-pulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(255, 68, 102, 0.4);
    }

    50% {
        box-shadow: 0 0 14px rgba(255, 68, 102, 0.7);
    }
}

/* ---- Compose FAB ---- */
.compose-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-tech);
    border: none;
    color: var(--bg-base);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.18);
}

.compose-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 0 36px rgba(255, 255, 255, 0.3);
}

/* ---- Compose Modal (extracted from inline styles) ---- */
.compose-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.compose-modal.visible {
    display: flex;
    opacity: 1;
}

.compose-modal-inner {
    width: min(90vw, 480px);
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.compose-modal.visible .compose-modal-inner {
    transform: translateY(0);
}

.compose-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.compose-modal-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.compose-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.compose-close-btn:hover {
    color: rgba(255, 255, 255, 0.7);
}

.compose-quoted {
    margin-bottom: 0.75rem;
    display: none;
}

.compose-quoted.has-quote {
    display: block;
}

.compose-quoted-inner {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
}

.compose-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 0.75rem;
    font-size: 0.9rem;
    resize: vertical;
    font-family: var(--font-sans);
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.compose-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.25);
}


.compose-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.compose-char-count {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    transition: color 0.2s ease;
}

.compose-char-count.warn {
    color: #ffa500;
}

.compose-char-count.error {
    color: #ff6666;
}

.compose-submit-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: background 0.2s ease;
}

.compose-submit-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.compose-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.compose-error {
    color: #ff6666;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    margin-top: 0.5rem;
    display: none;
}

.compose-error.visible {
    display: block;
}

/* ---- Star / Echo Active States ---- */
.ccard-stat-action.active {
    color: var(--accent-tech);
}

.ccard-stat-action.active .stat-icon {
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.3));
}

.ccard-stat-action.active .stat-count {
    color: var(--accent-tech);
}

.ccard-stat-action[data-action="like"].active .stat-count {
    color: #ff6b8a;
}

/* ---- Thread Focus Layer System ---- */

/* Feed layer — transitions when thread is focused */
.perspective-scroll {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease,
        filter 0.4s ease;
}

.constellation-wrap.thread-focused .perspective-scroll {
    transform: translateX(-88%) scale(0.92);
    opacity: 0.25;
    filter: blur(4px);
    pointer-events: none;
}

.constellation-wrap.thread-focused .sort-bar {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.constellation-wrap.thread-focused .profile-header {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Thread focus overlay */
.thread-layer {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 30;
    display: flex;
    flex-direction: row;

    /* Slide in from right */
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.thread-layer.active {
    transform: translateX(0);
}

/* Left-edge back peek */
.back-peek {
    width: 48px;
    min-width: 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.6),
            transparent);
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.back-peek:hover {
    width: 64px;
    min-width: 64px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.04),
            transparent);
}

.back-peek-arrow {
    font-size: 1.2rem;
    color: var(--text-dim);
    transition: all 0.3s ease;
    opacity: 0.4;
}

.back-peek:hover .back-peek-arrow {
    opacity: 1;
    color: var(--accent-tech);
    transform: translateX(-3px);
}

/* Thread content area */
.thread-content {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 48px 120px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.thread-content::-webkit-scrollbar {
    width: 4px;
}

.thread-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Thread parent card — full width, prominent */
.thread-parent {
    background: rgba(26, 26, 26, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 700px;
    margin: 0 auto;

    /* Entrance animation */
    opacity: 0;
    transform: translateY(12px);
    animation: threadCardIn 0.5s cubic-bezier(0.2, 0, 0, 1) 0.15s forwards;
}

@keyframes threadCardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Thread parent header */
.thread-parent .ccard-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.thread-parent .ccard-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
}

.thread-parent .ccard-author {
    font-size: 1rem;
}

.thread-parent .ccard-body {
    font-size: 1rem;
    line-height: 1.7;
}

.thread-parent .ccard-stats {
    display: flex;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.thread-parent .ccard-stat {
    font-size: 0.65rem;
}

/* Thread divider */
.thread-divider {
    max-width: 700px;
    margin: 20px auto;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.06),
            transparent);
}

/* Thread reply list — full-size replies (not receded) */
.thread-replies {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.thread-reply {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: var(--radius-md);
    padding: 16px 20px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    cursor: pointer;

    /* Stagger entrance */
    opacity: 0;
    transform: translateX(20px);
    animation: threadReplyIn 0.4s cubic-bezier(0.2, 0, 0, 1) forwards;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.thread-reply:hover {
    background: rgba(14, 16, 22, 0.8);
    border-color: rgba(255, 255, 255, 0.06);
}

@keyframes threadReplyIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Thread connector line */
.thread-reply::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.02));
    pointer-events: none;
}

.thread-reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.thread-reply-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-med);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    flex-shrink: 0;
}

.thread-reply-author {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-high);
}

.thread-reply-handle {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
}

.thread-reply-time {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-dim);
    margin-left: auto;
}

.thread-reply-body {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-high);
    padding-left: 38px;
}

/* Thread reply composer */
.thread-composer {
    max-width: 700px;
    margin: 16px auto 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 10px 16px;
    opacity: 0;
    animation: threadCardIn 0.4s ease 0.6s forwards;
}

.thread-composer-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-high);
    font-family: var(--font-sans);
    font-size: 0.82rem;
}

.thread-composer-input::placeholder {
    color: var(--text-dim);
}

.thread-composer-btn {
    background: var(--accent-tech);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-base);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.thread-composer-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.22);
}

/* ---- Toast Notifications (B1) ---- */
.social-toast-container {
    position: fixed;
    bottom: 92px;
    right: 28px;
    z-index: 9500;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
}

.social-toast {
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 18px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--text-high);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateX(120%);
    opacity: 0;
    animation: toastIn 0.3s cubic-bezier(0.2, 0, 0, 1) forwards;
    pointer-events: auto;
}

.social-toast.out {
    animation: toastOut 0.25s ease forwards;
}

@keyframes toastIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* ---- Stat Pop Animation (C2) ---- */
@keyframes statPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.5);
    }

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

.ccard-stat-action.pop .stat-icon {
    animation: statPop 0.35s cubic-bezier(0.2, 0, 0, 1);
}

/* ---- Improved Empty State (C4) ---- */
.feed-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.feed-empty-icon {
    font-size: 3rem;
    opacity: 0.3;
    line-height: 1;
}

.feed-empty-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-med);
}

.feed-empty-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-dim);
    max-width: 320px;
}

.feed-empty-cta {
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-strong);
    color: var(--text-high);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-empty-cta:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ---- Reply-from-Card Inline Composer (B5) ---- */
.ccard-reply-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.ccard-reply-bar.visible {
    opacity: 1;
    max-height: 48px;
}

.ccard-reply-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    color: var(--text-high);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    padding: 6px 12px;
    outline: none;
    transition: border-color 0.2s ease;
}

.ccard-reply-input:focus {
    border-color: rgba(255, 255, 255, 0.2);
}

.ccard-reply-input::placeholder {
    color: var(--text-dim);
}

.ccard-reply-send {
    background: var(--accent-tech);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-base);
    font-size: 0.65rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ccard-reply-send:hover {
    transform: scale(1.1);
}

.ccard-reply-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---- Chat Button ---- */
.ccard-chat-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    cursor: pointer;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.ccard-chat-btn:hover {
    color: var(--text-med);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

/* ---- Ephemeral Chat Panel ---- */
.ccard-chat-panel {
    margin-top: 6px;
    padding-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding-top 0.3s ease;
}

.ccard-chat-panel.visible {
    opacity: 1;
    max-height: 300px;
    padding-top: 8px;
}

.chat-messages {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.chat-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.03);
    animation: chatMsgIn 0.3s ease forwards;
}

.chat-msg-urgent {
    border-left: 2px solid rgba(255, 80, 100, 0.5);
}

@keyframes chatMsgIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg,
            hsl(var(--avatar-hue, 200), 70%, 50%),
            hsl(calc(var(--avatar-hue, 200) + 40), 60%, 40%));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.chat-msg-author {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-med);
    font-weight: 600;
    flex-shrink: 0;
}

.chat-msg-body {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--text-high);
    flex: 1;
    min-width: 0;
    word-break: break-word;
    white-space: pre-wrap;
}

.chat-msg-expires {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--text-dim);
    opacity: 0.6;
    flex-shrink: 0;
    margin-left: auto;
}

.chat-msg-urgent .chat-msg-expires {
    color: #ff5064;
    opacity: 1;
    animation: expiryPulse 1.5s ease-in-out infinite;
}

@keyframes expiryPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.chat-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-high);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    padding: 5px 10px;
    outline: none;
    transition: border-color 0.2s ease;
    resize: none;
    min-height: 26px;
    max-height: 60px;
    overflow-y: auto;
    line-height: 1.4;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.chat-input:focus {
    border-color: rgba(255, 255, 255, 0.2);
}

.chat-input::placeholder {
    color: var(--text-dim);
}

.chat-char-count {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--text-dim);
    opacity: 0.5;
    flex-shrink: 0;
    align-self: flex-end;
    padding-bottom: 4px;
}

.chat-send {
    background: var(--accent-tech);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-base);
    font-size: 0.6rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.chat-send:hover {
    transform: scale(1.1);
}

.chat-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---- YouTube Embed (E1) ---- */
.yt-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 12px 0 4px;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.yt-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-card);
}

/* ---- Image Embeds ---- */
.ccard-image-wrap {
    margin: 10px 0 4px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ccard-image {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.ccard-image:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}


/* ---- Delete Button on Own Posts (B6) ---- */
.ccard-delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
    padding: 4px;
    line-height: 1;
    z-index: 5;
}

.ccard:hover .ccard-delete-btn {
    opacity: 0.6;
}

.ccard-delete-btn:hover {
    opacity: 1 !important;
    color: #ff6666;
}

/* ---- New Posts Banner (D3) ---- */
.new-posts-banner {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(-60px);
    opacity: 0;
    z-index: 25;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    padding: 8px 24px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--accent-tech);
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    pointer-events: none;
}

.new-posts-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.new-posts-banner:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
    .social-layout>main {
        margin-left: 0;
    }

    .social-sidebar {
        transform: translateX(-100%);
        width: 220px;
        transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
    }

    .social-sidebar:hover {
        width: 220px;
    }

    body.sidebar-open .social-sidebar {
        transform: translateX(0);
    }

    /* Always show labels on mobile sidebar */
    body.sidebar-open .sidebar-brand span,
    body.sidebar-open .sidebar-link span,
    body.sidebar-open .sidebar-username,
    body.sidebar-open .sidebar-back span {
        opacity: 1;
    }

    body.sidebar-open .sidebar-brand,
    body.sidebar-open .sidebar-link,
    body.sidebar-open .sidebar-user,
    body.sidebar-open .sidebar-back {
        justify-content: flex-start;
        padding-left: 20px;
    }

    .sidebar-toggle {
        display: flex;
    }

    .card-runway {
        grid-template-columns: 1fr;
        padding: 60px 16px 100px;
    }

    .profile-header {
        left: 0;
        top: 0;
    }

    .profile-banner {
        height: 60px;
    }

    .profile-hero {
        padding: 0 1rem;
        margin-top: -24px;
        gap: 14px;
    }

    .profile-avatar-ring {
        width: 64px;
        height: 64px;
    }

    .profile-avatar {
        font-size: 1.2rem;
    }

    .profile-info {
        padding-top: 26px;
    }

    .profile-stats-row {
        padding: 10px 1rem 12px;
        gap: 6px;
    }

    .profile-stat {
        padding: 5px 10px;
    }

    .profile-wrap .card-runway {
        padding-top: 260px;
    }

    .ccard.tier-viral {
        grid-column: span 1;
    }

    .sort-bar {
        left: 50%;
        transform: translateX(-50%);
        top: 56px;
        padding: 4px 8px;
    }

    .sort-chip {
        padding: 4px 14px;
        font-size: 0.55rem;
    }

    .compose-fab {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
    }

    .back-peek {
        width: 36px;
        min-width: 36px;
    }

    .thread-content {
        padding: 16px 16px 100px;
    }

    .thread-parent {
        padding: 18px 16px;
    }
}

@media (min-width: 1400px) {
    .card-runway {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card styles (neon, gold, holographic, dark) are in /assets/css/components/card-styles.css */

/* ── Boosted Card ───────────────────────────────────────────────────── */
@keyframes boost-glow {

    0%,
    100% {
        box-shadow:
            0 0 12px rgba(100, 200, 255, 0.15),
            0 0 40px rgba(100, 200, 255, 0.05);
    }

    50% {
        box-shadow:
            0 0 25px rgba(100, 200, 255, 0.25),
            0 0 70px rgba(100, 200, 255, 0.1);
    }
}

.ccard.ccard-boosted {
    animation: boost-glow 3s ease-in-out infinite;
    position: relative;
    overflow: visible;
}



/* ── Badge Icons ────────────────────────────────────────────────────── */
.ccard-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: 5px;
    margin-bottom: 1px;
}

.ccard-badge svg {
    width: 14px;
    height: 14px;
}

.ccard-badge-badge_verified {
    color: rgb(100, 180, 255);
    filter: drop-shadow(0 0 4px rgba(100, 180, 255, 0.5));
}

.ccard-badge-badge_pioneer {
    color: rgb(255, 180, 50);
    filter: drop-shadow(0 0 4px rgba(255, 180, 50, 0.5));
}

.ccard-badge-badge_creator {
    color: rgb(200, 100, 255);
    filter: drop-shadow(0 0 4px rgba(200, 100, 255, 0.5));
}

.ccard-badge-travel {
    color: rgb(80, 220, 160);
    filter: drop-shadow(0 0 4px rgba(80, 220, 160, 0.4));
    width: auto;
    gap: 2px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ccard-badge-travel .badge-label {
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(80, 220, 160, 0.9);
    letter-spacing: 0.06em;
}

/* ---- Pinned Post ---- */
.ccard-pinned-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-med);
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.ccard-pinned-label svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}

/* ---- Chat Button ---- */
.ccard-chat-btn {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ccard-chat-btn:hover {
    color: var(--accent-tech);
    border-color: var(--accent-tech);
    background: rgba(100, 200, 255, 0.06);
}

.ccard-chat-btn svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    transition: all 0.15s ease;
}

/* ---- @Mention Autocomplete ---- */
.mention-autocomplete {
    position: fixed;
    z-index: 9999;
    background: rgba(12, 14, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-height: 200px;
    overflow-y: auto;
}

.mention-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mention-item:hover,
.mention-item.active {
    background: rgba(255, 255, 255, 0.06);
}

.mention-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-high);
}

/* ---- Follow Button ---- */
.profile-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-high);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-left: 8px;
}

.profile-follow-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-tech);
    color: var(--accent-tech);
}

.profile-follow-btn.following {
    background: rgba(100, 200, 255, 0.08);
    border-color: var(--accent-tech);
    color: var(--accent-tech);
}

.profile-follow-btn.following:hover {
    background: rgba(255, 100, 100, 0.08);
    border-color: rgba(255, 100, 100, 0.4);
    color: rgba(255, 100, 100, 0.9);
}

.profile-follow-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* ---- Reputation Stat ---- */
.profile-stat-rep {
    gap: 6px;
    flex-wrap: wrap;
    position: relative;
}

.profile-stat-rep.rep-positive .profile-stat-value {
    color: var(--accent-tech, #5ef0f0);
    text-shadow: 0 0 8px rgba(94, 240, 240, 0.3);
}

.profile-stat-rep.rep-positive .profile-stat-label {
    color: var(--accent-tech, #5ef0f0);
    opacity: 0.7;
}

.profile-stat-rep.rep-negative .profile-stat-value {
    color: #ff4060;
    text-shadow: 0 0 8px rgba(255, 64, 96, 0.35);
}

.profile-stat-rep.rep-negative .profile-stat-label {
    color: #ff4060;
    opacity: 0.7;
}

.profile-rep-breakdown {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    display: inline-flex;
    gap: 6px;
}

.profile-rep-breakdown .rep-pos {
    color: var(--accent-tech, #5ef0f0);
    opacity: 0.85;
}

.profile-rep-breakdown .rep-neg {
    color: #ff4060;
    opacity: 0.85;
}

.profile-rep-actions {
    display: inline-flex;
    gap: 2px;
    margin-left: 2px;
    vertical-align: middle;
}

.rep-like-btn {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-med);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.rep-like-btn svg {
    transition: all 0.2s ease;
}

.rep-like-btn:hover {
    color: #ff4080;
    transform: scale(1.15);
}

.rep-like-btn:hover svg {
    filter: drop-shadow(0 0 6px rgba(255, 64, 128, 0.4));
}

.rep-like-btn:active {
    transform: scale(0.9);
}

.rep-like-btn.active {
    color: #ff4080;
}

.rep-like-btn.active svg {
    fill: #ff4080;
    stroke: #ff4080;
    filter: drop-shadow(0 0 8px rgba(255, 64, 128, 0.5));
}

/* ---- Sidebar Explore Panel ---- */
.sidebar-explore {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.sidebar-explore-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-low, rgba(255, 255, 255, 0.35));
    margin-bottom: 8px;
}

.sidebar-explore-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.explore-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-tech);
    text-decoration: none;
    transition: all 0.2s ease;
}

.explore-tag:hover {
    background: rgba(100, 200, 255, 0.1);
    border-color: var(--accent-tech);
}

.explore-tag-count {
    font-size: 0.55rem;
    color: var(--text-low);
}

.explore-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    text-decoration: none;
    transition: opacity 0.15s;
}

.explore-user:hover {
    opacity: 0.8;
}

.explore-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: hsl(var(--hue, 200), 60%, 24%);
    color: hsl(var(--hue, 200), 80%, 75%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
}

.explore-user-name {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-high);
    flex: 1;
}

.explore-user-posts {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-low);
}

.explore-empty {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-low);
    font-style: italic;
}

/* ---- Search User Results ---- */
.search-user-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(12, 14, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.search-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    transition: background 0.15s;
}

.search-user-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: hsl(var(--hue, 200), 60%, 24%);
    color: hsl(var(--hue, 200), 80%, 75%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.search-user-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-high);
}

/* ---- Theme Toggle ---- */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    cursor: pointer;
    color: var(--text-mid);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    transition: all 0.2s ease;
    margin: 8px 16px;
    opacity: 0;
    pointer-events: none;
}

.social-sidebar:hover .theme-toggle {
    opacity: 1;
    pointer-events: auto;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-high);
}

.theme-toggle svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* ============================================================
   NOTIFICATION PANEL
   ============================================================ */
.notif-count-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: var(--accent-tech);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
    pointer-events: none;
}

#notif-link {
    position: relative;
}

.notif-panel {
    position: fixed;
    left: 64px;
    top: 0;
    width: 340px;
    height: 100vh;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    z-index: 1100;
    transform: translateX(-120%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
}

.notif-panel.open {
    transform: translateX(0);
}

.notif-panel-title {
    padding: 20px 20px 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-high);
    border-bottom: 1px solid var(--border-subtle);
    margin: 0;
}

.notif-panel-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-subtle);
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-item.notif-unread {
    background: rgba(59, 130, 246, 0.06);
}

.notif-icon {
    font-size: 1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-tech);
}

.notif-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8rem;
    color: var(--text-med);
    line-height: 1.4;
}

.notif-time {
    font-size: 0.65rem;
    color: var(--text-low);
    margin-top: 2px;
}

.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-low);
    font-size: 0.8rem;
}

/* ============================================================
   PROFILE BIO / WEBSITE / JOINED / EDIT
   ============================================================ */
.profile-bio {
    color: var(--text-med);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 4px 0 2px;
    max-width: 360px;
}

.profile-bio:empty {
    display: none;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
    font-size: 0.7rem;
    color: var(--text-low);
}

.profile-website {
    color: var(--accent-tech);
    text-decoration: none;
    font-size: 0.75rem;
}

.profile-website:hover {
    text-decoration: underline;
}

.profile-joined {
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-edit-btn {
    margin-top: 6px;
    padding: 4px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    background: transparent;
    color: var(--text-med);
    font-size: 0.65rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.05em;
}

.profile-edit-btn:hover {
    border-color: var(--accent-tech);
    color: var(--text-high);
}

.profile-edit-form {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
}

.profile-edit-bio {
    width: 100%;
    min-height: 60px;
    resize: vertical;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-high);
    padding: 8px 10px;
    font-size: 0.8rem;
    font-family: inherit;
}

.profile-edit-website {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-high);
    padding: 8px 10px;
    font-size: 0.8rem;
    font-family: inherit;
}

.profile-edit-actions {
    display: flex;
    gap: 8px;
}

.profile-edit-save,
.profile-edit-cancel {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
}

.profile-edit-save {
    background: var(--accent-tech);
    color: #fff;
    border-color: var(--accent-tech);
}

.profile-edit-save:hover {
    opacity: 0.9;
}

.profile-edit-cancel {
    background: transparent;
    color: var(--text-med);
}

.profile-edit-cancel:hover {
    border-color: var(--text-mid);
    color: var(--text-high);
}

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */
body[data-theme="light"] {
    /* Core variable overrides */
    --bg-base: #f0f2f5;
    --bg-deep: #f0f2f5;
    --bg-surface: #ffffff;
    --bg-elevated: #f0f2f5;
    --text-high: #1a1a2e;
    --text-med: #4a4a6a;
    --text-mid: #4a4a6a;
    --text-low: rgba(26, 26, 46, 0.5);
    --text-dim: rgba(26, 26, 46, 0.4);
    --accent-tech: #2563eb;
    --accent-gold: #d97706;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.16);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.1);
    background: var(--bg-base);
    color: var(--text-high);
}

/* ── Constellation / Background ───────────────────────────── */
body[data-theme="light"] .constellation-wrap {
    background: var(--bg-base);
}

body[data-theme="light"] .starfield-bg {
    opacity: 1;
}

/* ── Sidebar ──────────────────────────────────────────────── */
body[data-theme="light"] .social-sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-right-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .sidebar-brand {
    color: var(--text-high);
}

body[data-theme="light"] .sidebar-link {
    color: var(--text-med);
}

body[data-theme="light"] .sidebar-link:hover,
body[data-theme="light"] .sidebar-link.active {
    background: rgba(37, 99, 235, 0.06);
    color: var(--accent-tech);
}

body[data-theme="light"] .sidebar-link.active::before {
    background: var(--accent-tech);
}

body[data-theme="light"] .sidebar-avatar {
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .sidebar-bottom {
    border-top-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .sidebar-explore {
    border-top-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .explore-tag {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.1);
    color: var(--accent-tech);
}

body[data-theme="light"] .sidebar-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-med);
}

/* ── Sort Bar ─────────────────────────────────────────────── */
body[data-theme="light"] .sort-bar {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .sort-chip:hover {
    background: rgba(0, 0, 0, 0.04);
}

body[data-theme="light"] .sort-chip.active {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--accent-tech);
}

body[data-theme="light"] .view-toggle-divider {
    background: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .view-chip:hover {
    background: rgba(0, 0, 0, 0.04);
}

body[data-theme="light"] .view-chip.active {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--accent-tech);
}

/* ── Post Cards ───────────────────────────────────────────── */
body[data-theme="light"] .ccard {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

body[data-theme="light"] .ccard:hover {
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .ccard::before {
    background: linear-gradient(90deg, transparent, var(--accent-tech), transparent);
}

body[data-theme="light"] .ccard-avatar {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .ccard-stats {
    border-top-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .ccard.tier-viral {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.06);
}

/* ── Reply Cards (inline thread) ──────────────────────────── */
body[data-theme="light"] .reply-card {
    background: rgba(245, 246, 250, 0.9);
    border-color: rgba(0, 0, 0, 0.04);
}

body[data-theme="light"] .reply-card::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), transparent);
}

body[data-theme="light"] .reply-avatar {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .reply-peek-avatar {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

/* ── Reply Bar (inline comment input) ─────────────────────── */
body[data-theme="light"] .ccard-reply-bar {
    border-top-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .ccard-reply-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .ccard-reply-input:focus {
    border-color: rgba(37, 99, 235, 0.3);
}

body[data-theme="light"] .ccard-reply-btn {
    border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .ccard-reply-btn:hover {
    background: rgba(37, 99, 235, 0.06);
}

/* ── Reply Target Badge ───────────────────────────────────── */
body[data-theme="light"] .reply-target-badge {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.15);
}

/* ── Chat Panel ───────────────────────────────────────────── */
body[data-theme="light"] .ccard-chat-panel {
    border-top-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .chat-messages {
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

body[data-theme="light"] .chat-msg {
    background: rgba(0, 0, 0, 0.03);
}

body[data-theme="light"] .chat-input-wrap {
    border-top-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .chat-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-high);
}

body[data-theme="light"] .chat-input:focus {
    border-color: rgba(37, 99, 235, 0.3);
}

/* ── Thread Layer (focused thread view) ───────────────────── */
body[data-theme="light"] .thread-layer {
    background: rgba(240, 242, 245, 0.98);
}

body[data-theme="light"] .thread-content {
    scrollbar-color: rgba(0, 0, 0, 0.12) transparent;
}

body[data-theme="light"] .thread-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}

body[data-theme="light"] .thread-parent {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .thread-parent .thread-author-name,
body[data-theme="light"] .thread-parent .thread-body {
    color: var(--text-high);
}

body[data-theme="light"] .thread-parent .thread-author-handle,
body[data-theme="light"] .thread-parent .thread-time {
    color: var(--text-low);
}

body[data-theme="light"] .thread-reply {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .thread-reply:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .thread-reply::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
}

body[data-theme="light"] .thread-reply-author {
    color: var(--text-high);
}

body[data-theme="light"] .thread-reply-handle,
body[data-theme="light"] .thread-reply-time {
    color: var(--text-low);
}

body[data-theme="light"] .thread-reply-body {
    color: var(--text-med);
}

body[data-theme="light"] .thread-reply-avatar {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .thread-divider {
    background: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .thread-parent .ccard-stats {
    border-top-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .back-peek {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.04), transparent);
}

body[data-theme="light"] .back-peek:hover {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent);
}

body[data-theme="light"] .back-peek-arrow {
    color: var(--text-med);
}

body[data-theme="light"] .thread-composer {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .thread-composer-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-high);
}

body[data-theme="light"] .thread-composer-input:focus {
    border-color: rgba(37, 99, 235, 0.3);
}

body[data-theme="light"] .thread-parent .ccard-stats .ccard-stat {
    color: var(--text-med);
}

/* ── Compose FAB & Modal ──────────────────────────────────── */
body[data-theme="light"] .compose-fab {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

body[data-theme="light"] .compose-fab:hover {
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}

body[data-theme="light"] .compose-modal {
    background: rgba(0, 0, 0, 0.3);
}

body[data-theme="light"] .glass-panel,
body[data-theme="light"] .compose-modal-inner {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .compose-textarea {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-high);
    border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .compose-textarea:focus {
    border-color: rgba(37, 99, 235, 0.3);
}

body[data-theme="light"] .compose-modal-label {
    color: var(--text-med);
}

body[data-theme="light"] .compose-close-btn {
    color: var(--text-low);
}

body[data-theme="light"] .compose-close-btn:hover {
    color: var(--text-high);
}

body[data-theme="light"] .compose-submit-btn {
    background: var(--accent-tech);
    border-color: var(--accent-tech);
    color: #fff;
}

body[data-theme="light"] .compose-submit-btn:hover {
    opacity: 0.9;
}

body[data-theme="light"] .compose-char-count {
    color: var(--text-low);
}

/* Light mode card styles are in /assets/css/components/card-styles.css */

body[data-theme="light"] .ccard.ccard-style-dark .ccard-pinned-label {
    color: rgba(255, 255, 255, 0.6);
}

body[data-theme="light"] .ccard.ccard-style-dark .ccard-location {
    color: rgba(255, 255, 255, 0.5);
}

body[data-theme="light"] .ccard.ccard-style-dark .ccard-reply-bar {
    border-top-color: rgba(255, 255, 255, 0.06);
}

body[data-theme="light"] .ccard.ccard-style-dark .ccard-reply-input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

body[data-theme="light"] .ccard.ccard-style-dark::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* ── Skeleton Loaders ─────────────────────────────────────── */
body[data-theme="light"] .ccard-skeleton {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.04);
}

body[data-theme="light"] .skeleton-avatar,
body[data-theme="light"] .skeleton-line {
    background: rgba(0, 0, 0, 0.06);
}

/* ── Feed Search ──────────────────────────────────────────── */
body[data-theme="light"] .feed-search-input {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-high);
    border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .feed-search-input:focus {
    border-color: rgba(37, 99, 235, 0.3);
}

body[data-theme="light"] .search-user-results,
body[data-theme="light"] .mention-autocomplete {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ── Profile Elements ─────────────────────────────────────── */
body[data-theme="light"] .profile-banner {
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 50%, #ede9fe 100%);
}

body[data-theme="light"] .profile-header {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .profile-stat-divider {
    background: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .profile-stat {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .profile-stat:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.14);
}

body[data-theme="light"] .profile-avatar {
    background: var(--bg-base);
    color: var(--text-high);
}

body[data-theme="light"] .profile-follow-btn {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-high);
}

body[data-theme="light"] .profile-follow-btn:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: var(--accent-tech);
    color: var(--accent-tech);
}

body[data-theme="light"] .profile-follow-btn.following {
    background: rgba(37, 99, 235, 0.06);
    border-color: var(--accent-tech);
    color: var(--accent-tech);
}

body[data-theme="light"] .profile-follow-btn.following:hover {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

body[data-theme="light"] .profile-edit-btn {
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-med);
}

body[data-theme="light"] .profile-edit-btn:hover {
    border-color: var(--accent-tech);
    color: var(--text-high);
}

body[data-theme="light"] .profile-message-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-med);
}

body[data-theme="light"] .profile-message-btn:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: var(--accent-tech);
    color: var(--accent-tech);
}

body[data-theme="light"] .rep-like-btn {
    color: var(--text-med);
}

body[data-theme="light"] .rep-like-btn:hover {
    color: #e11d48;
}

body[data-theme="light"] .rep-like-btn.active {
    color: #e11d48;
}

body[data-theme="light"] .profile-edit-bio,
body[data-theme="light"] .profile-edit-website {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-high);
}

body[data-theme="light"] .profile-edit-save {
    background: var(--accent-tech);
    border-color: var(--accent-tech);
    color: #fff;
}

body[data-theme="light"] .profile-edit-cancel {
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-med);
}

/* ── Location Badge ───────────────────────────────────────── */
body[data-theme="light"] .ccard-location {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

/* ── Delete Button ────────────────────────────────────────── */
body[data-theme="light"] .ccard-delete-btn {
    color: var(--text-dim);
}

body[data-theme="light"] .ccard-delete-btn:hover {
    color: #dc2626;
}

/* ── Quoted Post ──────────────────────────────────────────── */
body[data-theme="light"] .quoted-post {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

/* ── Toast ─────────────────────────────────────────────────── */
body[data-theme="light"] .toast-message {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}

body[data-theme="light"] .social-toast {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* ── Theme Toggle itself ──────────────────────────────────── */
body[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-med);
}

body[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
}

/* ── Comment Interactions ─────────────────────────────────── */
body[data-theme="light"] .comment-like-btn {
    color: var(--text-dim);
}

body[data-theme="light"] .comment-reply-btn {
    color: var(--text-dim);
}

/* ── Scrollbar ────────────────────────────────────────────── */
body[data-theme="light"] .perspective-scroll {
    scrollbar-color: rgba(0, 0, 0, 0.08) transparent;
}

body[data-theme="light"] .perspective-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

/* ── Notification Badge ───────────────────────────────────── */
body[data-theme="light"] .notif-badge {
    background: #dc2626;
    color: #fff;
}