:root {
    --bg-base: #0a0a0c;
    --bg-card: rgba(20, 20, 25, 0.7);
    --bg-input: rgba(15, 15, 20, 0.6);
    --bg-sidebar: #0f0f12;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #f8faff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #475569;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --accent-bg: rgba(139, 92, 246, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --shadow-premium: 0 10px 40px 0 rgba(0, 0, 0, 0.9);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme='light'] {
    --bg-base: #f0f2f5;
    --bg-card: #ffffff;
    --bg-input: #f8f9fb;
    --bg-sidebar: #ffffff;
    --border: rgba(0, 0, 0, .08);
    --border-hover: rgba(0, 0, 0, .15);
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --text-muted: #888;
    --text-dim: #bbb;
    --accent: #6366f1;
    --accent-bg: rgba(99, 102, 241, .08);
    --slider-track: #e2e4e8;
    --shadow: rgba(0, 0, 0, .08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

/* ─── Global Form Styling ─── */
input:not([type="color"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23888888%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 8px auto;
    padding-right: 32px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-bg);
}

[data-theme='light'] input:not([type="color"]):not([type="checkbox"]):not([type="radio"]),
[data-theme='light'] select,
[data-theme='light'] textarea {
    background: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--border);
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    display: flex;
    overflow: hidden;
    transition: background .3s, color .3s;
    -webkit-font-smoothing: antialiased;
}

/* ─── Sidebar ─── */
.sidebar {
    width: 250px;
    min-width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, #0c0c10, #080810);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    z-index: 10;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
}

.sidebar-logo {
    padding: 24px 20px;
    font-size: 16px;
    font-weight: 800;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.sidebar-logo span {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-section {
    padding: 14px 12px 4px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin: 1px 6px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    transition: var(--transition-smooth);
    user-select: none;
}

.nav-item:hover {
    background: rgba(99, 102, 241, .08);
    color: #fff;
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(99, 102, 241, .12);
    color: #e0e0e8;
}

.nav-item .icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.nav-item .count {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    background: rgba(99, 102, 241, .1);
    color: #8b5cf6;
}

.brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.dot-bluejax {
    background: #6366f1;
}

.dot-edgar {
    background: #22c55e;
}

.dot-soloo {
    background: #d4af37;
}

.dot-vibrana {
    background: #06b6d4;
}

.dot-upwork {
    background: #14a800;
}

.dot-mls {
    background: #f59e0b;
}

.sidebar-footer {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid rgba(99, 102, 241, .06);
    font-size: 10px;
    color: #333;
    text-align: center;
}

/* ─── Main ─── */
.main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.view {
    display: none;
    min-height: 100vh;
}

.view.active {
    display: block;
}

#view-unified.active {
    display: flex;
    flex-direction: column;
}

/* ─── Top Bar ─── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 18px 36px;
    background: linear-gradient(180deg, rgba(10, 10, 14, 0.92), rgba(10, 10, 14, 0.85));
    backdrop-filter: blur(32px) saturate(1.2);
    -webkit-backdrop-filter: blur(32px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.topbar h1 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.topbar-stats {
    display: flex;
    gap: 10px;
}

/* .stat-pill defined below at ~L419 */

/* ─── Filters ─── */
.filters {
    padding: 10px 24px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(99, 102, 241, .04);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(20, 20, 25, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.lucide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lucide-btn i {
    opacity: 0.8;
}

.lucide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    filter: brightness(1.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ─── Feed / Grid Toggle (Premium) ─── */
.view-toggle {
    display: inline-flex;
    background: rgba(15, 15, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 3px;
    gap: 2px;
    backdrop-filter: blur(12px);
}

.vt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary, #666);
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.vt-btn:hover {
    color: var(--text-primary, #fff);
    background: rgba(255, 255, 255, 0.06);
}

.vt-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(139, 92, 246, 0.75));
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.vt-btn.active::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    animation: vt-shimmer 3s ease-in-out infinite;
}

@keyframes vt-shimmer {

    0%,
    100% {
        transform: translate(-20%, -20%) rotate(0deg);
    }

    50% {
        transform: translate(20%, 20%) rotate(180deg);
    }
}

/* ─── Stat Pills ─── */
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary, #888);
    font-family: 'JetBrains Mono', monospace;
    backdrop-filter: blur(8px);
}

.stat-pill strong {
    color: var(--text-primary, #fff);
    font-weight: 700;
}


.calendar-content {
    padding: 16px 24px;
}

.day-section {
    background: linear-gradient(160deg, rgba(14, 14, 20, 0.6), rgba(10, 10, 16, 0.4));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.day-header {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.day-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 22px;
    right: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
}

.day-header h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.day-header h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(to bottom, #6366f1, #8b5cf6);
}

.pillar-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    color: var(--accent);
    border: 1px solid rgba(99, 102, 241, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.soloo-pillar {
    color: #d4af37;
    background: linear-gradient(135deg, rgba(212, 175, 55, .12), rgba(212, 175, 55, .06));
    border-color: rgba(212, 175, 55, 0.25);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    padding: 16px;
}

.post-card {
    background: linear-gradient(160deg, rgba(20, 20, 28, 0.7), rgba(15, 15, 20, 0.5));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
}

.post-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-5px) scale(1.005);
    background: linear-gradient(160deg, rgba(25, 25, 35, 0.8), rgba(18, 18, 24, 0.6));
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.08);
}

.post-card.brand-soloo {
    border-left: 3px solid #d4af37;
}

.post-card.brand-bluejax {
    border-left: 3px solid #6366f1;
}

.post-card.brand-personal {
    border-left: 3px solid #22c55e;
}

.post-card.brand-vibrana {
    border-left: 3px solid #06b6d4;
}

.post-card.brand-upwork {
    border-left: 3px solid #14a800;
}

.post-card.brand-mls {
    border-left: 3px solid #f59e0b;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.platform-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary, #e5e5e5);
    letter-spacing: -0.01em;
}

.pdot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
    flex-shrink: 0;
}

.pdot-linkedin {
    background: #0077b5;
    box-shadow: 0 0 8px rgba(0, 119, 181, 0.4);
}

.pdot-instagram {
    background: #e1306c;
    box-shadow: 0 0 8px rgba(225, 48, 108, 0.4);
}

.pdot-facebook {
    background: #1877f2;
    box-shadow: 0 0 8px rgba(24, 119, 242, 0.4);
}

.pdot-twitter {
    background: #a8a8a8;
    box-shadow: 0 0 8px rgba(168, 168, 168, 0.3);
}

.pdot-google_business {
    background: #4285f4;
    box-shadow: 0 0 8px rgba(66, 133, 244, 0.4);
}

.pdot-facebook_google {
    background: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.post-time {
    font-size: 10px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary, #888);
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.post-body {
    font-size: 11px;
    line-height: 1.5;
    color: #999;
    max-height: 80px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.post-body.expanded {
    max-height: none;
}

.post-body:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(transparent, #0c0c18);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(99, 102, 241, .04);
}

.status {
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .5px;
}

.status-draft {
    background: rgba(234, 179, 8, .1);
    color: #eab308;
}

.status-scheduled {
    background: rgba(34, 197, 94, .1);
    color: #22c55e;
}

.via {
    font-size: 8px;
    color: #333;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary, #888);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.copy-btn:hover {
    border-color: rgba(99, 102, 241, 0.4);
    color: #818cf8;
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.copy-btn.copied {
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

/* ─── Timeline ─── */
.timeline-card {
    grid-column: 1 / -1;
}

.premium-timeline {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    position: relative;
}

.modern-t-row {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    position: relative;
    align-items: stretch;
}

.t-time {
    min-width: 50px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    padding-top: 14px;
}

.t-min {
    font-size: 9px;
    color: var(--text-dim);
}

.t-node-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
}

.t-node {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--text-dim);
    margin-top: 16px;
    z-index: 2;
    transition: all 0.3s;
}

.modern-t-row:hover .t-node {
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent);
}

.brand-bluejax .t-node {
    border-color: #6366f1;
}

.brand-personal .t-node {
    border-color: #22c55e;
}

.brand-soloo .t-node {
    border-color: #d4af37;
}

.brand-vibrana .t-node {
    border-color: #06b6d4;
}

.brand-upwork .t-node {
    border-color: #14a800;
}

.brand-mls .t-node {
    border-color: #f59e0b;
}

.t-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    margin-top: -4px;
    margin-bottom: -24px;
}

.modern-t-row:last-child .t-line {
    display: none;
}

.t-content {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.t-content.hover-lift:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.t-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    align-items: center;
}

.t-brand {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-bluejax .t-brand {
    color: #6366f1;
}

.brand-personal .t-brand {
    color: #22c55e;
}

.brand-soloo .t-brand {
    color: #d4af37;
}

.t-icon {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.t-platform {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ─── Unified ─── */
.unified-header {
    padding: 12px 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(99, 102, 241, .04);
    align-items: center;
}

.brand-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    opacity: 0.5;
    background: rgba(20, 20, 25, 0.4);
    backdrop-filter: blur(12px);
    color: var(--text-secondary);
}

.brand-toggle:hover {
    opacity: 0.8;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand-toggle:active {
    transform: scale(0.93);
    transition-duration: 0.1s;
}

.brand-toggle.active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand-toggle.bt-bluejax.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.05));
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.3);
}

.brand-toggle.bt-edgar.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.brand-toggle.bt-soloo.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    color: #fcd34d;
    border-color: rgba(212, 175, 55, 0.3);
}

/* ─── Overview ─── */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 28px 36px;
}

@media (max-width: 1100px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .overview-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 14px;
    }

    .overview-grid .overview-card,
    .overview-grid .timeline-card,
    .overview-grid .health-score-card {
        grid-column: auto !important;
    }

    .overview-card {
        padding: 18px;
    }

    .overview-number {
        font-size: 28px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 16px;
        min-height: auto;
        height: auto !important;
    }

    .topbar h1 {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .topbar-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    /* Enlarge buttons for iOS 44px min touch targets */
    .topbar .filter-btn,
    .topbar .lucide-btn,
    .topbar-stats .filter-btn,
    .topbar-stats .lucide-btn {
        font-size: 13px !important;
        padding: 10px 14px !important;
        min-height: 44px !important;
        border-radius: 10px !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
    }

    .topbar-stats .filter-btn i,
    .topbar-stats .lucide-btn i {
        width: 16px !important;
        height: 16px !important;
    }

    .filters {
        padding: 10px 16px;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .filter-btn {
        font-size: 12px;
        padding: 8px 14px;
        min-height: 40px;
        white-space: nowrap;
        flex-shrink: 0;
        touch-action: manipulation;
    }

    .unified-header {
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .brand-toggle {
        padding: 8px 14px;
        font-size: 12px;
        min-height: 40px;
        touch-action: manipulation;
    }

    .kanban-board {
        grid-template-columns: 1fr;
        overflow-y: auto;
        height: auto;
    }

    .calendar-content {
        padding: 0 8px;
    }

    .posts-grid {
        grid-template-columns: 1fr !important;
    }

    .modal {
        width: 95vw;
        max-height: 90vh;
    }

    /* Unified view header fix for long titles */
    .view-toggle {
        display: flex;
        gap: 4px;
    }

    .vt-btn {
        min-height: 40px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        touch-action: manipulation;
    }
}

.overview-card {
    background: linear-gradient(145deg, rgba(15, 15, 22, 0.8), rgba(10, 10, 18, 0.5));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 26px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.overview-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5), 0 0 50px rgba(99, 102, 241, 0.1);
}

.overview-card:hover::before {
    opacity: 1;
}

.overview-number {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
    font-family: 'JetBrains Mono', monospace;
}

.overview-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.overview-card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.brand-row:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.brand-name {
    font-size: 13px;
    font-weight: 500;
}

.brand-count {
    margin-left: auto;
    font-size: 12px;
    color: #666;
}

.brand-badge {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(99, 102, 241, .08);
    color: #888;
}

/* ─── Health Score Card ─── */
.health-score-card {
    grid-column: span 2;
}

.health-ring-container {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.health-ring {
    transform: rotate(-90deg);
}

.health-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.health-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.health-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift {
    transition: all 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04) !important;
}

/* ─── Timeline ─── */
.timeline-card {
    grid-column: 1 / -1;
}

.premium-timeline {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    position: relative;
}

.modern-t-row {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    position: relative;
    align-items: stretch;
}

.t-time {
    min-width: 50px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    padding-top: 14px;
}

.t-min {
    font-size: 9px;
    color: var(--text-dim);
}

.t-node-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
}

.t-node {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--text-dim);
    margin-top: 16px;
    z-index: 2;
    transition: all 0.3s;
}

.modern-t-row:hover .t-node {
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent);
}

.brand-bluejax .t-node {
    border-color: #6366f1;
}

.brand-personal .t-node {
    border-color: #22c55e;
}

.brand-soloo .t-node {
    border-color: #d4af37;
}

.t-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    margin-top: -4px;
    margin-bottom: -24px;
}

.modern-t-row:last-child .t-line {
    display: none;
}

.t-content {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.t-content.hover-lift:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.t-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    align-items: center;
}

.t-brand {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-bluejax .t-brand {
    color: #6366f1;
}

.brand-personal .t-brand {
    color: #22c55e;
}

.brand-soloo .t-brand {
    color: #d4af37;
}

.t-icon {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.t-platform {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ─── Unified ─── */
.unified-header {
    padding: 12px 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(99, 102, 241, .04);
    align-items: center;
}

.brand-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    opacity: 0.5;
    background: rgba(20, 20, 25, 0.4);
    backdrop-filter: blur(12px);
    color: var(--text-secondary);
}

.brand-toggle:hover {
    opacity: 0.8;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand-toggle.active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand-toggle.bt-bluejax.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.05));
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.3);
}

.brand-toggle.bt-edgar.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.brand-toggle.bt-soloo.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    color: #fcd34d;
    border-color: rgba(212, 175, 55, 0.3);
}

.portfolio-frame {
    width: 100%;
    height: 100vh;
    border: none;
}

/* ─── Pipeline Kanban ─── */
.pipeline-filters {
    padding: 10px 24px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 16px;
    height: calc(100vh - 100px);
    overflow: hidden;
}

.kanban-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kanban-col-header {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-input);
}

.kanban-stage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.kanban-count {
    margin-left: auto;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    background: var(--accent-bg);
    color: var(--accent);
}

.kanban-cards {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kanban-card {
    background: linear-gradient(160deg, rgba(20, 20, 28, 0.6), rgba(15, 15, 22, 0.4));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.kanban-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.35), 0 0 20px rgba(99, 102, 241, 0.06);
    background: linear-gradient(160deg, rgba(25, 25, 35, 0.7), rgba(18, 18, 24, 0.5));
}

.kanban-card.dragging {
    opacity: 0.6;
    transform: scale(0.96) rotate(-1deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 92, 246, 0.4);
    z-index: 1000;
}

.kanban-card.personal-brand {
    border-left: 3px solid #22c55e;
}

.kanban-card.corporate-brand {
    border-left: 3px solid #6366f1;
}

.kc-brand {
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.kc-platform {
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 4px;
}

.kc-preview {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.4;
    max-height: 50px;
    overflow: hidden;
}

.kc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.kc-stage-select {
    padding: 2px 6px;
    font-size: 9px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--bg-base);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.kc-produce-btn {
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid rgba(139, 92, 246, .3);
    background: rgba(139, 92, 246, .1);
    color: #8b5cf6;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all .15s;
}

.kc-produce-btn:hover {
    background: rgba(139, 92, 246, .2);
}

/* ─── Media Library ─── */
.media-grid {
    padding: 16px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.media-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.media-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
}

.media-thumb {
    width: 100%;
    height: 140px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.media-info {
    padding: 10px 12px;
}

.media-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.media-meta {
    font-size: 10px;
    color: var(--text-muted);
}

/* ─── Campaign Studio ─── */
.studio-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: calc(100vh - 44px);
}

.studio-sidebar {
    background: #0a0a12;
    border-bottom: 1px solid rgba(99, 102, 241, .06);
    overflow-y: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    align-items: start;
    max-height: 55vh;
}

.studio-main {
    overflow-y: auto;
    padding: 16px 20px;
    flex: 1;
}

/* ─── Brand Picker Dropdown ─── */
.brand-picker {
    position: relative;
}

.brand-picker-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all .15s;
}

.brand-picker-btn:hover {
    border-color: var(--border-hover);
}

.brand-picker-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px var(--shadow);
    z-index: 100;
    overflow: hidden;
}

.brand-picker-menu.open {
    display: block;
}

.brand-picker-option {
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: background .1s;
    color: var(--text-primary);
}

.brand-picker-option:hover {
    background: var(--accent-bg);
}

.brand-picker-option.active {
    background: var(--accent-bg);
    color: var(--accent);
    font-weight: 600;
}

.brand-picker-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.studio-section {
    margin-bottom: 20px;
    background: #070710;
    border: 1px solid rgba(99, 102, 241, .06);
    border-radius: 10px;
    overflow: hidden;
}

.studio-section-header {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #0d0d16;
    border-bottom: 1px solid rgba(99, 102, 241, .04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.studio-section-header .chevron {
    transition: transform .2s;
    font-size: 10px;
}

.studio-section-header.collapsed .chevron {
    transform: rotate(-90deg);
}

.studio-section-body {
    padding: 12px 14px;
}

.studio-section-body.hidden {
    display: none;
}

.studio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 11px;
}

.studio-label {
    color: #888;
    font-size: 10px;
    font-weight: 500;
}

.studio-value {
    color: #ccc;
    font-size: 11px;
    font-weight: 600;
}

.studio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.studio-tag {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(99, 102, 241, .08);
    color: #888;
}

.studio-tag.forbidden {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
}

.studio-tag.cta {
    background: rgba(212, 175, 55, .1);
    color: #d4af37;
}

.studio-tag.required {
    background: rgba(34, 197, 94, .1);
    color: #22c55e;
}

.slider-row {
    padding: 8px 0;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.slider-name {
    font-size: 11px;
    font-weight: 500;
    color: #ccc;
}

.slider-val {
    font-size: 11px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    min-width: 36px;
    text-align: right;
}

.studio-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: #1a1a2e;
    outline: none;
}

.studio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #0a0a12;
}

.studio-slider::-webkit-slider-runnable-track {
    background: transparent;
    border: none;
    height: 100%;
}

.extrapolator-input {
    width: 100%;
    padding: 10px 12px;
    background: #0d0d16;
    border: 1px solid rgba(99, 102, 241, .12);
    border-radius: 8px;
    color: #ccc;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.extrapolator-input:focus {
    border-color: #6366f1;
}

.extrapolator-btn {
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: opacity .15s;
}

.extrapolator-btn:hover {
    opacity: .85;
}

.extrapolator-results {
    margin-top: 10px;
}

.extrap-card {
    background: #0d0d16;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-left: 3px solid #333;
}

.extrap-card .pillar-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.extrap-card .extrap-text {
    font-size: 11px;
    color: #aaa;
    line-height: 1.4;
}

.extrap-card .extrap-actions {
    margin-top: 6px;
    display: flex;
    gap: 6px;
}

.extrap-mini-btn {
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, .1);
    background: transparent;
    color: #666;
    font-size: 9px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.extrap-mini-btn:hover {
    color: #6366f1;
    border-color: #6366f1;
}

.campaign-preview-card {
    background: #070710;
    border: 1px solid rgba(99, 102, 241, .06);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 6px;
    transition: var(--transition-smooth);
}

.campaign-preview-card:hover {
    border-color: rgba(99, 102, 241, .3);
    transform: translateX(4px);
    box-shadow: var(--shadow-glow);
}

.cprev-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.cprev-date {
    font-size: 11px;
    font-weight: 600;
    color: #ccc;
}

.cprev-pillar {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.cprev-topic {
    font-size: 10px;
    color: #666;
    margin-bottom: 4px;
}

.cprev-preview {
    font-size: 10px;
    color: #555;
    line-height: 1.4;
    max-height: 40px;
    overflow: hidden;
    cursor: pointer;
}

.cprev-preview.expanded {
    max-height: none;
}

.cprev-footer {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.mix-bar {
    height: 6px;
    border-radius: 3px;
    display: flex;
    overflow: hidden;
    margin-top: 6px;
}

.mix-segment {
    height: 100%;
    transition: width .3s;
}

/* ─── Compliance ─── */
.compliance-score {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.score-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.score-pass {
    background: conic-gradient(#22c55e var(--score), #1a1a2e 0);
}

.score-warn {
    background: conic-gradient(#eab308 var(--score), #1a1a2e 0);
}

.score-fail {
    background: conic-gradient(#ef4444 var(--score), #1a1a2e 0);
}

.score-inner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #070710;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-details {
    flex: 1;
}

.score-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    padding: 2px 0;
}

.score-ok {
    color: #22c55e;
}

.score-bad {
    color: #ef4444;
}

.score-mid {
    color: #eab308;
}

.compliance-issues {
    margin-top: 8px;
}

.issue-item {
    font-size: 10px;
    padding: 4px 8px;
    margin-bottom: 3px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.issue-error {
    background: rgba(239, 68, 68, .08);
    color: #ef4444;
}

.issue-warn {
    background: rgba(234, 179, 8, .08);
    color: #eab308;
}

.issue-pass {
    background: rgba(34, 197, 94, .08);
    color: #22c55e;
}

/* ─── Modal (Premium) ─── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.active .modal {
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal {
    background: linear-gradient(160deg, rgba(16, 16, 22, 0.95), rgba(10, 10, 16, 0.92));
    backdrop-filter: blur(40px) saturate(1.4);
    -webkit-backdrop-filter: blur(40px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 720px;
    max-width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        0 32px 64px -12px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(139, 92, 246, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(99, 102, 241, .06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 14px;
    font-weight: 700;
}

.modal-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-body {
    padding: 16px 20px;
}

.modal-textarea {
    width: 100%;
    min-height: 160px;
    background: rgba(10, 10, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    padding: 14px;
    resize: vertical;
    transition: all 0.3s ease;
    outline: none;
}

.modal-textarea:focus {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08), 0 8px 20px rgba(0, 0, 0, 0.2);
    background: rgba(12, 12, 18, 0.8);
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(99, 102, 241, .06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.modal-btn-secondary {
    background: rgba(99, 102, 241, .1);
    color: #8b5cf6;
}

.modal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.modal-meta-item {
    font-size: 10px;
    color: #555;
}

.modal-meta-item strong {
    color: #999;
}

.live-stats {
    display: flex;
    gap: 10px;
    font-size: 10px;
    color: #555;
    padding: 8px 0;
}

.live-stats span {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(99, 102, 241, .06);
}

/* ─── Brand Picker Menu Glassmorphism ─── */
#brandPickerMenu,
.brand-picker-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow:
        0 20px 40px -8px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(139, 92, 246, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Analytics ─── */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.analytics-card {
    background: #070710;
    border: 1px solid rgba(99, 102, 241, .06);
    border-radius: 10px;
    padding: 14px;
}

.analytics-number {
    font-size: 28px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.analytics-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
    margin-top: 2px;
}

.analytics-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-size: 10px;
}

.analytics-bar-fill {
    height: 8px;
    border-radius: 4px;
    transition: width .3s;
}

.analytics-bar-label {
    min-width: 80px;
    color: #888;
}

.analytics-bar-val {
    min-width: 30px;
    text-align: right;
    color: #555;
    font-family: 'JetBrains Mono', monospace;
}

.tab-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.tab-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, .08);
    background: transparent;
    color: #555;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover,
.tab-btn.active {
    background: rgba(99, 102, 241, .1);
    color: #8b5cf6;
    border-color: #6366f1;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ─── Post Body Expansion ─── */
.post-body {
    font-size: 11px;
    line-height: 1.5;
    color: #999;
    max-height: 80px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: max-height 0.3s ease;
}

.post-body.expanded {
    max-height: none;
}

.post-body:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(transparent, var(--bg-card, #0c0c18));
    pointer-events: none;
}

[data-theme='light'] .post-body:not(.expanded)::after {
    background: linear-gradient(transparent, #fff);
}

/* ─── Campaign Preview Cards ─── */
.campaign-preview-card {
    background: #070710;
    border: 1px solid rgba(99, 102, 241, .06);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 6px;
    transition: all .15s;
}

.campaign-preview-card:hover {
    border-color: rgba(99, 102, 241, .2);
}

[data-theme='light'] .campaign-preview-card {
    background: #fff;
    border-color: #e2e4e8;
}

.cprev-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.cprev-date {
    font-size: 11px;
    font-weight: 600;
    color: #ccc;
}

.cprev-pillar {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.cprev-topic {
    font-size: 10px;
    color: #666;
    margin-bottom: 4px;
}

.cprev-preview {
    font-size: 10px;
    color: #555;
    line-height: 1.4;
    max-height: 40px;
    overflow: hidden;
    cursor: pointer;
    transition: max-height 0.3s ease;
}

.cprev-preview.expanded {
    max-height: none;
}

.cprev-footer {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

/* ─── Hashtags ─── */
.hashtag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.hashtag-chip {
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s;
    border: 1px solid transparent;
}

.hashtag-chip:hover {
    transform: scale(1.05);
}

.hashtag-chip.high {
    background: rgba(212, 175, 55, .15);
    color: #d4af37;
    border-color: rgba(212, 175, 55, .3);
}

.hashtag-chip.med {
    background: rgba(99, 102, 241, .1);
    color: #8b5cf6;
}

.hashtag-chip.low {
    background: rgba(99, 102, 241, .05);
    color: #555;
}

/* ─── Export ─── */
.export-btn {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, .12);
    background: #0d0d16;
    color: #888;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .15s;
}

.export-btn:hover {
    background: rgba(99, 102, 241, .08);
    color: #ccc;
    border-color: #6366f1;
}

@media (max-width: 900px) {
    .sidebar {
        width: 50px;
        min-width: 50px;
    }

    .sidebar .nav-label,
    .sidebar-section,
    .sidebar-footer,
    .sidebar-logo span {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 8px;
    }

    .nav-item .count {
        display: none;
    }

    .studio-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Calendar Grid View ─── */
.view-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 2px;
    margin-left: 16px;
    border: 1px solid var(--border);
    vertical-align: middle;
}

[data-theme='light'] .view-toggle {
    background: #f5f5f5;
    border-color: #e2e4e8;
}

.vt-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 4px 12px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.vt-btn:hover {
    color: var(--text-primary);
}

.vt-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.month-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px 20px;
}

.month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
    position: sticky;
    top: 0;
    background: var(--bg-base);
    z-index: 10;
    padding-top: 10px;
}

.month-header-day {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-align: center;
    padding: 8px 0;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    min-height: 600px;
}

.month-day {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 120px;
    padding: 8px;
    gap: 6px;
    transition: all 0.2s;
}

[data-theme='light'] .month-day {
    background: #fff;
}

.month-day.drag-over {
    border-color: var(--accent);
    background: var(--accent-bg);
    transform: scale(1.02);
}

.month-day-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.month-day-date.today {
    color: var(--accent);
}

.grid-post {
    font-size: 10px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: grab;
    background: var(--bg-input);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s;
}

.grid-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
    border-color: var(--border-hover);
}

.grid-post:active {
    cursor: grabbing;
}

[data-theme='light'] .grid-post {
    background: #fafbfc;
    border-color: #e2e4e8;
}

.grid-post-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 9px;
}

.grid-post-brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.grid-post-preview {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-post-platform {
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme='light'] .grid-post-platform {
    background: #f0f0f0;
}

/* ─── Light Theme Comprehensive Overrides ─── */
[data-theme='light'] .sidebar {
    background: #fff;
    border-color: #e2e4e8;
}

[data-theme='light'] .sidebar-logo {
    color: #1a1a2e;
}

[data-theme='light'] .sidebar-section {
    color: #888;
}

[data-theme='light'] .sidebar-footer {
    color: #aaa;
    border-color: #e2e4e8;
}

[data-theme='light'] .nav-item {
    color: #555;
}

[data-theme='light'] .nav-item:hover,
[data-theme='light'] .nav-item.active {
    background: rgba(99, 102, 241, .06);
    color: #4f46e5;
}

[data-theme='light'] .main {
    background: #f0f2f5;
}

[data-theme='light'] .topbar {
    border-color: #e2e4e8;
}

[data-theme='light'] .topbar h1 {
    color: #1a1a2e;
}

[data-theme='light'] .stat-pill {
    background: rgba(99, 102, 241, .06);
    color: #4f46e5;
}

[data-theme='light'] .overview-card {
    background: #fff;
    border-color: #e2e4e8;
}

[data-theme='light'] .overview-number {
    color: #1a1a2e;
}

[data-theme='light'] .overview-label {
    color: #888;
}

[data-theme='light'] .card {
    background: #fff;
    border-color: #e2e4e8;
}

[data-theme='light'] .card-header {
    border-color: #f0f0f0;
    color: #1a1a2e;
}

[data-theme='light'] .card-content {
    color: #444;
}

[data-theme='light'] .card-footer {
    border-color: #f0f0f0;
}

[data-theme='light'] .card-footer button {
    background: #f5f5f5;
    color: #555;
    border-color: #e2e4e8;
}

[data-theme='light'] .card-footer button:hover {
    background: rgba(99, 102, 241, .08);
    color: #4f46e5;
}

[data-theme='light'] .calendar-content .card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

[data-theme='light'] .filter-btn {
    background: #fff;
    color: #555;
    border-color: #e2e4e8;
}

[data-theme='light'] .filter-btn:hover,
[data-theme='light'] .filter-btn.active {
    background: rgba(99, 102, 241, .08);
    color: #4f46e5;
    border-color: #6366f1;
}

/* ─── Post Cards Light Theme ─── */
[data-theme='light'] .post-card {
    background: #fff;
    border-color: #e2e4e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

[data-theme='light'] .post-card:hover {
    border-color: rgba(99, 102, 241, .3);
}

[data-theme='light'] .post-header {
    color: #333;
}

[data-theme='light'] .platform-name {
    color: #333;
}

[data-theme='light'] .post-time {
    color: #888;
}

[data-theme='light'] .post-body {
    color: #444;
}

[data-theme='light'] .post-body:not(.expanded)::after {
    background: linear-gradient(transparent, #fff);
}

[data-theme='light'] .post-footer {
    border-color: #f0f0f0;
}

[data-theme='light'] .copy-btn {
    background: transparent;
    color: #888;
    border-color: #e2e4e8;
}

[data-theme='light'] .copy-btn:hover {
    border-color: #6366f1;
    color: #4f46e5;
}

[data-theme='light'] .status-badge {
    font-weight: 700;
}

/* ─── Calendar & Day Sections Light Theme ─── */
[data-theme='light'] .calendar-content {
    background: transparent;
}

[data-theme='light'] .day-section,
[data-theme='light'] .week-group {
    background: #fff;
    border-color: #e2e4e8;
}

[data-theme='light'] .day-header,
[data-theme='light'] .week-header {
    background: #f5f6f8;
    color: #333;
    border-color: #e2e4e8;
}

[data-theme='light'] .day-header h2 {
    color: #1a1a2e;
}

[data-theme='light'] .posts-grid {
    background: transparent;
}

/* ─── Grid View Light Theme ─── */
[data-theme='light'] .grid-post {
    background: #fff;
    border-color: #e2e4e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

[data-theme='light'] .grid-post:hover {
    border-color: rgba(99, 102, 241, .3);
}

[data-theme='light'] .grid-post-body {
    color: #444;
}

[data-theme='light'] .grid-post-platform {
    color: #888;
}

[data-theme='light'] .grid-post-footer {
    border-color: #f0f0f0;
}

/* ─── Campaign Preview Light Theme ─── */
[data-theme='light'] .campaign-preview-card {
    background: #fff;
    border-color: #e2e4e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

[data-theme='light'] .cprev-card {
    background: #fff;
    border-color: #e2e4e8;
}

[data-theme='light'] .cprev-body {
    color: #444;
}

/* ─── Misc Light Theme ─── */
[data-theme='light'] .pillar-tag {
    background: rgba(99, 102, 241, .08);
}

[data-theme='light'] .soloo-pillar {
    background: rgba(212, 175, 55, .1);
}

[data-theme='light'] .timeline-row {
    border-color: #f0f0f0;
}

[data-theme='light'] .timeline-time {
    color: #555;
}

[data-theme='light'] .brand-row {
    background: transparent;
    color: #333;
}

[data-theme='light'] .brand-row:hover {
    background: #f5f5ff;
}

[data-theme='light'] .brand-count {
    color: #888;
}

[data-theme='light'] .overview-card p {
    color: #666;
}

[data-theme='light'] .export-btn {
    color: #555;
    border-color: #e2e4e8;
}

[data-theme='light'] .export-btn:hover {
    border-color: #6366f1;
    color: #4f46e5;
}

/* ─── Mix Bar & Studio Container ─── */
[data-theme='light'] .studio-grid {
    background: transparent;
}

[data-theme='light'] .studio-sidebar {
    background: transparent;
}

[data-theme='light'] .studio-main {
    background: transparent;
}

[data-theme='light'] .studio-section {
    background: #fff;
    border-color: #e2e4e8;
}

[data-theme='light'] .studio-section-header {
    background: #f5f6f8;
    color: #1a1a2e;
    border-color: #e2e4e8;
}

[data-theme='light'] .studio-section-body {
    background: #fafbfc;
}

[data-theme='light'] .studio-row {
    border-color: #f0f0f0;
}

[data-theme='light'] .studio-label {
    color: #555;
}

[data-theme='light'] .studio-value {
    color: #1a1a2e;
}

[data-theme='light'] .studio-tag {
    border-color: #e2e4e8;
    color: #555;
}

[data-theme='light'] .studio-tag.forbidden {
    background: rgba(239, 68, 68, .08);
}

[data-theme='light'] .studio-tag.cta {
    background: rgba(99, 102, 241, .08);
}

[data-theme='light'] .studio-tag.required {
    background: rgba(34, 197, 94, .08);
}

[data-theme='light'] .slider-name {
    color: #333;
}

[data-theme='light'] .slider-val {
    color: #333;
}

[data-theme='light'] .voice-dial {
    color: #333;
}

[data-theme='light'] .wizard-label {
    color: #333;
}

[data-theme='light'] .wizard-progress .wizard-step {
    color: #888;
}

[data-theme='light'] .wizard-progress .wizard-step.active {
    color: #4f46e5;
}

[data-theme='light'] .extrapolator-input {
    background: #fff;
    border-color: #e2e4e8;
    color: #1a1a2e;
}

[data-theme='light'] .extrapolator-results .card {
    background: #fff;
}

[data-theme='light'] .tab-btn {
    background: #fff;
    color: #888;
    border-color: #e2e4e8;
}

[data-theme='light'] .tab-btn:hover,
[data-theme='light'] .tab-btn.active {
    background: rgba(99, 102, 241, .08);
    color: #4f46e5;
    border-color: #6366f1;
}

[data-theme='light'] .cprev-card {
    background: #fff;
    border-color: #e2e4e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

[data-theme='light'] .cprev-date {
    color: #1a1a2e;
}

[data-theme='light'] .cprev-preview {
    color: #444;
}

[data-theme='light'] .modal-overlay {
    background: rgba(0, 0, 0, .3);
}

[data-theme='light'] .modal {
    background: #fff;
    border-color: #e2e4e8;
}

[data-theme='light'] .modal-header {
    border-color: #f0f0f0;
}

[data-theme='light'] .modal-title {
    color: #1a1a2e;
}

[data-theme='light'] .modal-textarea {
    background: #fafbfc;
    border-color: #e2e4e8;
    color: #333;
}

[data-theme='light'] .modal-footer {
    border-color: #f0f0f0;
}

[data-theme='light'] .analytics-card {
    background: #fff;
    border-color: #e2e4e8;
}

[data-theme='light'] .analytics-number {
    color: #1a1a2e;
}

[data-theme='light'] .score-inner {
    background: #fff;
}

[data-theme='light'] .export-btn {
    background: #fff;
    color: #555;
    border-color: #e2e4e8;
}

[data-theme='light'] .export-btn:hover {
    background: rgba(99, 102, 241, .06);
    color: #4f46e5;
}

[data-theme='light'] .hashtag-chip.med {
    background: rgba(99, 102, 241, .08);
}

[data-theme='light'] .hashtag-chip.low {
    background: #f5f5f5;
    color: #888;
}

[data-theme='light'] .unified-header {
    background: #fff;
    border-color: #e2e4e8;
}

[data-theme='light'] .brand-toggle {
    background: #fff;
    border-color: #e2e4e8;
    color: #555;
}

[data-theme='light'] .brand-toggle.active {
    background: rgba(99, 102, 241, .08);
    border-color: #6366f1;
    color: #4f46e5;
}

[data-theme='light'] .week-header {
    color: #1a1a2e;
}

[data-theme='light'] .compliance-issues .issue-item {
    color: inherit;
}

[data-theme='light'] .brand-picker-btn {
    background: #fff;
    color: #1a1a2e;
    border-color: #e2e4e8;
}

[data-theme='light'] .brand-picker-menu {
    background: #fff;
    border-color: #e2e4e8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

[data-theme='light'] .brand-picker-option {
    color: #555;
}

[data-theme='light'] .brand-picker-option:hover {
    background: #f5f5ff;
}

[data-theme='light'] .wizard-input,
[data-theme='light'] .wizard-textarea {
    background: #fff;
    border-color: #e2e4e8;
    color: #1a1a2e;
}

[data-theme='light'] .wizard-preview {
    background: #fafbfc;
    border-color: #e2e4e8;
}

/* ─── Mobile Optimizations ─── */
@media (max-width: 768px) {

    /* Media Filters */
    .media-filters {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .media-filters>div {
        flex-wrap: wrap !important;
        max-width: 100% !important;
    }

    .media-filters input {
        width: 100% !important;
    }

    /* Modals */
    #mediaDetailsModal .modal {
        flex-direction: column !important;
        overflow-y: auto !important;
        max-height: 90vh !important;
    }

    #mediaDetailsModal #mediaPreviewContainer {
        min-height: 250px !important;
        flex: none !important;
    }

    /* Pipeline Filters */
    .pipeline-filters {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .pipeline-filters>div {
        flex-wrap: wrap !important;
        margin-bottom: 4px;
    }

    /* Studio Topbar */
    .topbar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .topbar-stats {
        flex-wrap: wrap !important;
    }
}

/* ========================================= */
/* Campaign Creator Wizard Styles */
/* ========================================= */

.wizard-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.wizard-step {
    flex: 1;
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.wizard-step:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--text-primary);
}

.wizard-step.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.wizard-step.completed {
    color: var(--success);
}

.wizard-pane {
    animation: fadeSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wizard-field {
    margin-bottom: 12px;
}

.wizard-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-input,
.wizard-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}

.wizard-input:focus,
.wizard-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.wizard-textarea {
    min-height: 80px;
    resize: vertical;
}

.wizard-btn {
    background: var(--bluejax-gradient);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s all;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wizard-btn:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.wizard-preview {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 11px;
    color: var(--text-primary);
    line-height: 1.6;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.wizard-btn-prev {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s all;
}

.wizard-btn-prev:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.wizard-btn-next {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s all;
}

.wizard-btn-next:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* ─── Post Editor Modal (Premium) ─── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.25s ease-out;
}

.modal-overlay.active {
    display: flex;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    background: linear-gradient(160deg, rgba(16, 16, 22, 0.95), rgba(10, 10, 16, 0.92));
    backdrop-filter: blur(40px) saturate(1.4);
    -webkit-backdrop-filter: blur(40px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 95%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 32px 64px -12px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(139, 92, 246, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.modal-title {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.modal-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-textarea {
    width: 100%;
    min-height: 160px;
    background: rgba(10, 10, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    padding: 14px;
    resize: vertical;
    transition: all 0.3s ease;
    outline: none;
}

.modal-textarea:focus {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08), 0 8px 20px rgba(0, 0, 0, 0.2);
    background: rgba(12, 12, 18, 0.8);
}

.modal-footer {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
    flex-wrap: wrap;
    gap: 8px;
}

.modal-btn {
    padding: 7px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.modal-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.03);
}

.modal-btn-primary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(99, 102, 241, 0.8));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.modal-btn-primary:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(99, 102, 241, 0.95));
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.modal-meta-item {
    font-size: 11px;
    color: var(--text-secondary);
    padding: 4px 0;
}

.modal-meta-item strong {
    color: var(--text-primary);
    margin-right: 6px;
}

.live-stats {
    margin-top: 8px;
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

/* ─── Campaign Studio Sections ─── */
.studio-section {
    margin-bottom: 2px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: linear-gradient(160deg, rgba(14, 14, 20, 0.5), rgba(10, 10, 16, 0.3));
}

.studio-section-header {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
    user-select: none;
    letter-spacing: -0.01em;
}

.studio-section-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.studio-section-header::after {
    content: '';
    margin-left: auto;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-muted);
    transition: transform 0.3s ease;
}

.studio-section-header.collapsed::after {
    transform: rotate(-90deg);
}

.studio-section-body {
    padding: 14px 16px;
    transition: all 0.3s ease;
}

.studio-section-body.hidden {
    display: none;
}

.studio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 11px;
}

.studio-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.studio-value {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

.studio-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.studio-tag {
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.studio-tag.cta {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

.studio-tag.forbidden {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.studio-tag.required {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

/* Slider Refinement */
.slider-row {
    margin-bottom: 12px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.slider-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.slider-val {
    font-size: 11px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.studio-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.studio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(139, 92, 246, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.studio-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(139, 92, 246, 0.5);
}

.studio-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

/* Mix Bar */
.mix-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mix-segment {
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 2px;
}

/* Campaign Preview Cards */
.campaign-preview-card {
    padding: 12px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left-width: 3px;
    transition: all 0.2s ease;
}

.campaign-preview-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(2px);
}

.cprev-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.cprev-date {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.cprev-pillar {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

.cprev-topic {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cprev-preview {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
    max-height: 40px;
    overflow: hidden;
    cursor: pointer;
    transition: max-height 0.3s ease;
}

.cprev-preview.expanded {
    max-height: none;
}

.cprev-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

/* Extrapolator */
.extrap-card {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid;
}

.extrap-mini-btn {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.extrap-mini-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* ─── Brand Picker Glassmorphism ─── */
.brand-picker-dropdown {
    background: linear-gradient(160deg, rgba(16, 16, 22, 0.92), rgba(10, 10, 16, 0.88));
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow:
        0 20px 40px -8px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(139, 92, 246, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-picker-option {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.brand-picker-option:last-child {
    border-bottom: none;
}

.brand-picker-option:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}

.brand-picker-option.active {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
}

/* ─── Light Theme Overrides for New Styles ─── */
[data-theme='light'] .modal {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(248, 249, 251, 0.95));
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .modal-overlay {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme='light'] .modal-textarea {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

[data-theme='light'] .modal-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #555;
}

[data-theme='light'] .kanban-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme='light'] .kanban-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12);
    background: #fff;
}

[data-theme='light'] .brand-picker-dropdown {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

[data-theme='light'] .studio-section {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme='light'] .studio-section-header {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme='light'] .campaign-preview-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

/* ─── Final Polish: Brand Accents ─── */
.post-card.brand-bluejax {
    border-left: 3px solid #6366f1;
}

.post-card.brand-personal {
    border-left: 3px solid #22c55e;
}

.post-card.brand-soloo {
    border-left: 3px solid #d4af37;
}

/* ─── Final Polish: View Toggle Active ─── */
.vt-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #818cf8;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.1);
}

/* ─── Final Polish: Brand Toggle Click ─── */
.brand-toggle:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

/* ─── Final Polish: Day Header ─── */
.day-header h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ─── Final Polish: Modal Animation ─── */
.modal-overlay.active .modal {
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ─── Final Polish: Kanban Drag State ─── */
.kanban-card.dragging {
    opacity: 0.6;
    transform: scale(0.96) rotate(-1deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(99, 102, 241, 0.3);
    transition: all 0.15s ease;
}

/* ─── Final Polish: Brand Picker Glassmorphism ─── */
.brand-picker-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 18, 0.92);
}

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  PRODUCTION PIPELINE — Premium Glassmorphic Kanban Board               ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

/* ─── Pipeline Filters Bar ─── */
.pipeline-filters {
    padding: 14px 24px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: linear-gradient(180deg, rgba(10, 10, 14, 0.5), transparent);
}

.pipeline-action-btn {
    font-size: 10px !important;
    padding: 5px 12px !important;
    gap: 4px !important;
    letter-spacing: 0.02em;
}

.pipeline-action-btn:hover {
    transform: translateY(-2px) scale(1.03);
}

/* ─── Kanban Board Container ─── */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    padding: 18px;
    height: calc(100vh - 124px);
    overflow: hidden;
}

/* ─── Kanban Column ─── */
.kanban-col {
    background: linear-gradient(170deg, rgba(15, 15, 22, 0.7), rgba(8, 8, 14, 0.5));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.kanban-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 16px 16px 0 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Stage-specific top accent lines */
.kanban-col[data-stage="draft"]::before {
    background: linear-gradient(90deg, transparent, #eab308, transparent);
}

.kanban-col[data-stage="refining"]::before {
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.kanban-col[data-stage="production"]::before {
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
}

.kanban-col[data-stage="ready"]::before {
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
}

.kanban-col[data-stage="published"]::before {
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
}

.kanban-col:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.kanban-col:hover::before {
    opacity: 1;
}

/* ─── Kanban Column Header ─── */
.kanban-col-header {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    letter-spacing: -0.01em;
    user-select: none;
}

/* ─── Stage Status Dot (pulsing animation) ─── */
.kanban-stage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.kanban-stage-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: stagePulse 2.5s ease-in-out infinite;
}

@keyframes stagePulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.6); opacity: 0; }
}

/* ─── Item Count Badge ─── */
.kanban-count {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--accent-bg);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.02em;
    min-width: 24px;
    text-align: center;
}

/* ─── Kanban Cards Container ─── */
.kanban-cards {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.15) transparent;
    transition: background 0.2s ease;
}

.kanban-cards::-webkit-scrollbar {
    width: 4px;
}

.kanban-cards::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-cards::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
}

.kanban-cards::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.35);
}

/* ─── Kanban Card (Premium Glassmorphic) ─── */
.kanban-card {
    background: linear-gradient(145deg, rgba(20, 20, 28, 0.8), rgba(12, 12, 18, 0.6));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.kanban-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.kanban-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(139, 92, 246, 0.06);
}

.kanban-card:hover::before {
    opacity: 1;
}

.kanban-card:active {
    cursor: grabbing;
}

/* ─── Card Drag State ─── */
.kanban-card.dragging {
    opacity: 0.75;
    transform: rotate(-2deg) scale(1.04);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    z-index: 1000;
    transition: all 0.15s ease;
}

/* ─── Drop Zone Active Highlight ─── */
.kanban-cards.drag-over,
.kanban-cards[style*="accent-bg"] {
    background: rgba(139, 92, 246, 0.06) !important;
    border-radius: 10px;
    outline: 2px dashed rgba(139, 92, 246, 0.25);
    outline-offset: -2px;
}

/* ─── Card Brand Accent Lines ─── */
.kanban-card.personal-brand {
    border-left: 3px solid #22c55e;
}

.kanban-card.corporate-brand {
    border-left: 3px solid #6366f1;
}

/* ─── Card Brand Badge ─── */
.kc-brand {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ─── Card Platform Name ─── */
.kc-platform {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

/* ─── Card Preview Text ─── */
.kc-preview {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.55;
    max-height: 120px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.1) transparent;
}

/* ─── Card Footer ─── */
.kc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    gap: 6px;
    flex-wrap: wrap;
}

/* ─── Stage Select Dropdown ─── */
.kc-stage-select {
    padding: 3px 8px;
    font-size: 9px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 15, 22, 0.8);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
    outline: none;
}

.kc-stage-select:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(20, 20, 30, 0.9);
}

.kc-stage-select:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

/* ─── Production Action Buttons (in kanban cards) ─── */
.kc-produce-btn {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.08);
    color: #c4b5fd;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.kc-produce-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    filter: brightness(1.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.kc-produce-btn:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
}

/* ─── Kanban Empty State ─── */
.kanban-cards:empty::after {
    content: 'No posts in this stage';
    display: block;
    text-align: center;
    padding: 32px 16px;
    font-size: 11px;
    color: var(--text-dim);
    font-style: italic;
    opacity: 0.6;
}

/* ─── Pipeline Responsive ─── */
@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(3, 1fr);
        height: auto;
        overflow-y: auto;
    }
}

@media (max-width: 900px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .kanban-board {
        grid-template-columns: 1fr;
        height: auto;
        padding: 12px;
        gap: 10px;
    }

    .kanban-col {
        max-height: 400px;
    }

    .pipeline-filters {
        flex-direction: column;
        padding: 12px 16px;
        gap: 10px;
    }

    .pipeline-filters > div {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  Enhanced Button & Interactive Element Micro-Animations                ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

/* ─── Modal Button Hover Polish ─── */
.modal-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modal-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.modal-btn:hover::after {
    opacity: 1;
}

.modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-btn:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.modal-btn-primary:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
    filter: brightness(1.1);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

/* ─── Nav Item Enhanced Active State ─── */
.nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.08));
    color: #e0e0f0;
    border-left: 3px solid #8b5cf6;
    padding-left: 11px;
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.05);
}

/* ─── Filter Button Enhanced Active Glow ─── */
.filter-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), 0 0 40px rgba(139, 92, 246, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.filter-btn:active {
    transform: scale(0.95);
    transition-duration: 0.1s;
}

/* ─── Copy Button Enhanced ─── */
.copy-btn {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 9px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.copy-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #8b5cf6;
    background: rgba(99, 102, 241, 0.06);
    transform: translateY(-1px);
}

.copy-btn.copied {
    border-color: #22c55e;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

/* ─── Sidebar Footer Upgrade ─── */
.sidebar-footer {
    margin-top: auto;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 10px;
    color: var(--text-dim);
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.02));
}

/* ─── Theme Toggle Enhanced ─── */
.theme-toggle {
    transition: all 0.25s ease;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3) !important;
}

/* ─── Topbar Accent Line ─── */
.topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
}

/* ─── Sidebar Section Labels Gradient Line ─── */
.sidebar-section {
    padding: 16px 14px 6px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-dim);
    position: relative;
}

.sidebar-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent);
}

/* ─── Light Theme Kanban Overrides ─── */
[data-theme='light'] .kanban-col {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme='light'] .kanban-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme='light'] .kanban-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .kanban-col-header {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme='light'] .kc-stage-select {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .kc-preview::after {
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.95));
}

[data-theme='light'] .kanban-card.dragging {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}
.dot-lum { background: #d97706; }
.brand-lum { border-left: 3px solid #d97706; }

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  ANIMATED AD GENERATOR — Premium Glassmorphic Modal & Controls         ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

/* ─── Animate Button on Post Cards ─── */
.animate-btn {
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
    color: #f59e0b !important;
    position: relative;
    overflow: hidden;
}

.animate-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.animate-btn:hover {
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: #fbbf24 !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.animate-btn:hover::before {
    opacity: 1;
}

/* ─── Animate Modal ─── */
.animate-modal {
    max-width: 700px !important;
    width: 95vw;
}

/* ─── Style Picker Grid ─── */
.animate-styles {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.animate-style-btn {
    flex: 1;
    min-width: 90px;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-style-btn:hover {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.06);
    transform: translateY(-2px);
}

.animate-style-btn.active {
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(239, 68, 68, 0.08));
    color: #f59e0b;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.animate-style-icon {
    font-size: 20px;
    line-height: 1;
}

.animate-style-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Preview Area (Side by Side) ─── */
.animate-preview-area {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 8px;
}

.animate-source,
.animate-result {
    flex: 1;
    min-height: 180px;
}

.animate-source img,
.animate-result img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    max-height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.animate-arrow {
    font-size: 24px;
    color: var(--text-dim);
    flex-shrink: 0;
    opacity: 0.5;
}

.animate-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 2px dashed rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    gap: 8px;
    font-size: 11px;
    color: var(--text-dim);
}

/* ─── Loading Shimmer Animation ─── */
.animate-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border-radius: 10px;
    background: rgba(15, 15, 20, 0.6);
    position: relative;
    overflow: hidden;
}

.animate-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 158, 11, 0.08) 25%,
        rgba(239, 68, 68, 0.12) 50%,
        rgba(245, 158, 11, 0.08) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmerSlide 1.8s ease-in-out infinite;
}

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

/* ─── Generate Button Spinner ─── */
.animate-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinAnim 0.6s linear infinite;
}

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

/* ─── Generate Button Gradient Glow ─── */
.animate-generate-btn {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-generate-btn:hover {
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.5) !important;
    filter: brightness(1.15);
    transform: translateY(-2px) !important;
}

.animate-generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    filter: none;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .animate-preview-area {
        flex-direction: column;
    }
    .animate-arrow {
        transform: rotate(90deg);
    }
    .animate-styles {
        gap: 4px;
    }
    .animate-style-btn {
        min-width: 60px;
        padding: 6px 4px;
    }
    .animate-style-icon {
        font-size: 16px;
    }
}
