/* ============================================
   NXAI - Glassmorphism & Neubrutalism Design System
   Tabbed Layout with Sidebar Navigation
   ============================================ */

/* ============================================
   GLOBAL RESET & BOX SIZING
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Text overflow handling */
p, h1, h2, h3, h4, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive images & media */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

:root {
    /* Bright Theme Colors */
    --bg-primary: #f0f4ff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8f0ff;
    --bg-sidebar: #ffffff;

    --text-primary: #1a1f36;
    --text-secondary: #4a5568;
    --text-tertiary: #6b7280;

    /* Bright Glassmorphism - 3D Effect */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-bg-hover: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(99, 102, 241, 0.15);
    --glass-border-strong: rgba(99, 102, 241, 0.3);

    /* 3D Shadow Layers - Neubrutalism */
    --shadow-3d:
        0 2px 4px rgba(99, 102, 241, 0.08),
        0 4px 8px rgba(99, 102, 241, 0.06),
        0 8px 16px rgba(99, 102, 241, 0.05),
        0 16px 32px rgba(99, 102, 241, 0.04);
    --shadow-3d-hover:
        0 4px 8px rgba(99, 102, 241, 0.12),
        0 8px 16px rgba(99, 102, 241, 0.1),
        0 16px 32px rgba(99, 102, 241, 0.08),
        0 24px 48px rgba(99, 102, 241, 0.06);
    --shadow-inset: inset 0 1px 2px rgba(255, 255, 255, 0.9);
    --shadow-raised:
        0 1px 2px rgba(99, 102, 241, 0.1),
        0 2px 4px rgba(99, 102, 241, 0.08),
        inset 0 -1px 0 rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    /* Neubrutalism Hard Shadow */
    --shadow-hard: 4px 4px 0 rgba(99, 102, 241, 0.3);
    --shadow-hard-sm: 2px 2px 0 rgba(99, 102, 241, 0.2);
    --shadow-hard-hover: 6px 6px 0 rgba(99, 102, 241, 0.4);

    /* Bright Accent Colors */
    --accent-primary: #6366f1;
    --accent-secondary: #818cf8;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;

    /* Gradients - Bright */
    --gradient-primary: linear-gradient(135deg, #6366f1, #818cf8);
    --gradient-accent: linear-gradient(135deg, #06b6d4, #6366f1);
    --gradient-warm: linear-gradient(135deg, #f59e0b, #ec4899);
    --gradient-bg: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 50%, #f0f9ff 100%);

    /* Border radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-full: 50px;

    /* Grid colors */
    --grid-color: rgba(99, 102, 241, 0.08);
    --grid-glow: rgba(99, 102, 241, 0.15);

    /* Sidebar width */
    --sidebar-width: 260px;
    --mobile-header-height: 60px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-bg);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    font-size: clamp(0.875rem, 2vw, 1rem);
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   Dynamic Grid Background
   ============================================ */
.gradient-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(129, 140, 248, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
        var(--bg-primary);
}

.gradient-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 1;
}

.gradient-bg::after {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(var(--grid-glow) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-glow) 1px, transparent 1px);
    background-size: 120px 120px;
    animation: gridFloat 25s linear infinite;
    opacity: 0.5;
}

@keyframes gridFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Ambient glows */
.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: blobFloat 20s ease-in-out infinite;
}

.gradient-blob:nth-child(1) {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: 10%;
    left: 10%;
}

.gradient-blob:nth-child(2) {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    bottom: 20%;
    right: 10%;
    animation-delay: -7s;
}

.gradient-blob:nth-child(3) {
    width: 350px;
    height: 350px;
    background: var(--accent-pink);
    bottom: 30%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* Mouse follower */
.mouse-follower {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

.mouse-follower.active {
    opacity: 1;
}

/* ============================================
   APP CONTAINER - SIDEBAR LAYOUT
   ============================================ */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 2px solid var(--glass-border);
    box-shadow: var(--shadow-3d);
    z-index: 100;
    transition: transform 0.3s ease;
}

/* Sidebar Brand */
.sidebar-brand {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    gap: 0.75rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hard-sm), 0 4px 15px rgba(99, 102, 241, 0.3);
}

.brand-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.brand-version {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-top: 4px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.sidebar-nav .nav-label {
    padding: 0 1.5rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
}

.nav-item {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-align: left;
}

.nav-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent-primary);
    border-radius: 0 3px 3px 0;
    transition: all 0.3s ease;
}

.nav-item.active .nav-indicator {
    height: 100%;
}

.nav-item:hover:not(.active) .nav-indicator {
    height: 50%;
    opacity: 0.5;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: transparent;
    transition: all 0.2s ease;
}

.nav-item.active .nav-icon {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

.nav-item:hover .nav-icon {
    transform: scale(1.05);
}

.nav-label-text {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.nav-item.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.05);
}

.nav-item:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.03);
}

/* Sidebar User */
.sidebar-user {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sidebar-user:hover {
    background: rgba(99, 102, 241, 0.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hard-sm);
    flex-shrink: 0;
}

.user-initials {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

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

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-top: 2px;
    font-family: 'Courier New', monospace;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* ============================================
   MOBILE HEADER
   ============================================ */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--glass-border);
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
    z-index: 90;
}

.mobile-menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(99, 102, 241, 0.1);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-brand-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-hard-sm);
}

.mobile-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-tab-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    padding: 0.375rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-full);
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 95;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ============================================
   MODULE PANELS
   ============================================ */
.module-panel {
    display: none;
    width: 100%;
}

.module-panel.active {
    display: block;
}

.module-content {
    padding: 1.5rem;
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Module Header */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    flex: 1;
    min-width: 200px;
}

.module-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.module-subtitle {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Count Badge */
.count-badge {
    padding: 0.375rem 0.75rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    padding: 4px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hard-sm);
}

.filter-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-tab.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-hard-sm);
}

.filter-tab:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Module Placeholder */
/* Placeholder blocks fill the available space so pages aren’t visibly empty */
.module-placeholder,
.social-media-placeholder,
.blog-placeholder,
.thumbnails-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh; /* fill space without forcing large blanks */
    height: 100%;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-lg);
}

/* Make content grids and areas fill the remaining height */
.module-panel {
    flex: 1;
}

.module-panel.active {
    display: flex;
    flex-direction: column;
}

.module-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.thumbnails-grid,
.media-grid,
.blogs-table,
.analytics-content {
    flex: 1;
    min-height: 0; /* For flex overflow */
}

/* Analytics specific */
.analytics-loading,
.analytics-error {
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: var(--text-secondary);
    min-height: 200px;
}

.analytics-loading {
    display: flex;
}

.analytics-error {
    display: none;
}

.analytics-platforms {
    flex: 1;
    display: grid;
}

/* ============================================
   CHAT MODULE LAYOUT
   ============================================ */
.chat-module {
    padding: 0 !important;
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Floating Video Ideas - Fixed to sides of chat module */
.video-ideas-floating {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 180px;
    z-index: 10;
    box-shadow: var(--shadow-3d);
}

.video-ideas-floating.video-ideas-left {
    left: 1rem;
}

.video-ideas-floating.video-ideas-right {
    right: 1rem;
}

@media (min-width: 1200px) {
    .video-ideas-floating {
        display: grid;
    }
}

/* Video Idea Button Styling */
.video-idea-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.35rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    color: var(--text-secondary);
    min-height: 44px;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.video-idea-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.video-idea-btn:active {
    transform: scale(0.95);
}

.video-idea-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.video-idea-label {
    font-size: 0.5rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Chat Center - CONSTRAINED WIDTH */
.chat-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    overflow-y: auto;
}

/* ============================================
   CHAT HEADER
   ============================================ */
.chat-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    transition: all 0.4s ease;
    animation: fadeInDown 0.6s ease backwards;
}

.chat-header.compact {
    margin-bottom: 1rem;
}

.header-content {
    display: inline-block;
    position: relative;
}

.header-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.chat-header.compact .header-title {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
}

.header-underline {
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: slideInWidth 0.8s ease 0.3s backwards;
}

.header-subtitle {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-weight: 400;
}

.chat-header.compact .header-subtitle {
    display: none;
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-3d), var(--shadow-hard-sm);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--glass-border-strong);
    box-shadow: var(--shadow-3d-hover), var(--shadow-hard);
}

/* ============================================
   CHAT MESSAGES
   ============================================ */
.chat-messages-container {
    width: 100%;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease;
}

.chat-messages-scroll {
    max-height: 50vh;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-3d), var(--shadow-hard-sm);
    scroll-behavior: smooth;
}

.chat-messages-scroll::-webkit-scrollbar {
    width: 6px;
}

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

.chat-messages-scroll::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

/* Message Styles */
.message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease;
    align-items: flex-start;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-hard-sm), 0 4px 15px rgba(99, 102, 241, 0.3);
}

.message.user .message-avatar {
    background: var(--gradient-accent);
    box-shadow: var(--shadow-hard-sm), 0 4px 15px rgba(6, 182, 212, 0.3);
}

.avatar-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.message-content {
    max-width: 75%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.6;
}

.message.bot .message-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    box-shadow: var(--shadow-hard-sm);
}

.message.user .message-content {
    background: var(--gradient-primary);
    color: white;
    border: 2px solid transparent;
    box-shadow: var(--shadow-hard-sm);
}

/* ============================================
   CHAT INPUT
   ============================================ */
.chat-input-container {
    width: 100%;
    padding: 1.25rem;
}

.chat-input-container:focus-within {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-3d-hover), var(--shadow-hard), 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-wrapper {
    position: relative;
}

#chatInput {
    width: 100%;
    min-height: 60px;
    max-height: 200px;
    padding: 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-3d), var(--shadow-inset);
}

#chatInput:focus {
    border-color: var(--accent-primary);
    background: var(--glass-bg-hover);
    box-shadow: var(--shadow-3d-hover), var(--shadow-inset), 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#chatInput::placeholder {
    color: var(--text-tertiary);
}

/* Input Actions */
.input-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 1rem;
    gap: 0.75rem;
}

.send-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-hard), 0 8px 24px rgba(99, 102, 241, 0.35);
    min-height: 44px;
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hard-hover), 0 12px 32px rgba(99, 102, 241, 0.4);
}

.send-btn:active:not(:disabled) {
    transform: translateY(0);
}

.send-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    background: var(--bg-tertiary);
    box-shadow: none;
}

/* Voice Button */
.voice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: var(--glass-bg);
    color: var(--text-secondary);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-hard-sm);
}

.voice-btn:hover:not(.recording) {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hard);
}

.voice-btn.recording {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    animation: pulse 1s ease-in-out infinite;
}

.voice-btn.recording .voice-mic-icon {
    display: none;
}

.voice-recording-square {
    width: 1rem;
    height: 1rem;
    border-radius: 3px;
    background: white;
}

.voice-btn.recording .voice-recording-square {
    display: block !important;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

/* Voice Visualizer */
.voice-visualizer-container {
    width: 100%;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.voice-timer {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: var(--glass-bg);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

.voice-visualizer {
    height: 1.5rem;
    width: 16rem;
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.voice-visualizer-bar {
    width: 4px;
    border-radius: 2px;
    background: var(--bg-tertiary);
    height: 4px;
    transition: all 0.1s ease;
}

.voice-visualizer-bar.active {
    background: var(--accent-pink);
}

.voice-status {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

/* Typing Indicator */
.typing-indicator-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    animation: fadeIn 0.3s ease;
}

.typing-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-avatar-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.typing-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dots .dot:nth-child(1) { animation-delay: 0s; }
.typing-dots .dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dots .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: scale(0.8); opacity: 0.5; }
    30% { transform: scale(1.2); opacity: 1; }
}

/* Attachments */
.attachments-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem 0.75rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: fadeIn 0.2s ease;
}

.attachment-remove {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.attachment-remove:hover {
    color: var(--accent-red);
    transform: scale(1.2);
}

/* ============================================
   VIDEO IDEA BUTTONS
   ============================================ */
.video-idea-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--text-secondary);
    min-height: 44px;
    box-shadow: var(--shadow-hard-sm);
}

.video-idea-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hard);
}

.video-idea-btn:active {
    transform: translateY(0);
}

.video-idea-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.video-idea-label {
    font-size: 0.5rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Mobile Video Ideas */
.mobile-video-ideas {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

@media (min-width: 1400px) {
    .mobile-video-ideas {
        display: none;
    }
}

.mobile-video-ideas-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-video-ideas-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    flex: 1;
    scroll-snap-type: x mandatory;
}

.mobile-video-ideas-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-video-idea-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: var(--shadow-hard-sm);
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 40px;
    font-size: 0.75rem;
    scroll-snap-align: start;
}

.mobile-video-idea-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-hard);
}

.mobile-video-idea-btn .video-idea-icon {
    font-size: 0.875rem;
}

.mobile-video-idea-btn .video-idea-label {
    font-size: 0.7rem;
    text-transform: none;
}

/* ============================================
   SUGGESTIONS CAROUSEL
   ============================================ */
.suggestions-wrapper {
    margin-top: 1rem;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carousel-arrow {
    display: none;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-hard-sm);
}

@media (min-width: 768px) {
    .carousel-arrow {
        display: flex;
    }
}

.carousel-arrow:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: var(--glass-bg-hover);
    box-shadow: var(--shadow-hard);
}

.suggestions-carousel {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0.5rem 0;
    flex: 1;
}

.suggestions-carousel::-webkit-scrollbar {
    display: none;
}

.suggestion-btn {
    flex-shrink: 0;
    padding: 0.5rem 0.875rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-hard-sm);
}

.suggestion-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hard);
}

.suggestion-btn:active {
    transform: translateY(0);
}

/* ============================================
   SECTION STYLES (Appointments, etc.)
   ============================================ */
.appointments-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--glass-border);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-selector {
    position: relative;
}

.user-dropdown,
.blog-dropdown {
    padding: 0.5rem 2rem 0.5rem 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    box-shadow: var(--shadow-hard-sm);
    transition: all 0.2s ease;
}

.user-dropdown:hover,
.blog-dropdown:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-hard);
}

.user-dropdown:focus,
.blog-dropdown:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-hard), 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carousel-container {
    flex: 1;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-lg);
}

/* Refresh Button */
.refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-hard-sm);
    flex-shrink: 0;
}

.refresh-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-hard);
}

.refresh-btn.refreshing svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   APPOINTMENT CARDS - PROPERLY STYLED
   ============================================ */
.appointment-card {
    flex-shrink: 0;
    width: 280px;
    padding: 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-3d), var(--shadow-hard-sm);
}

.appointment-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-3d-hover), var(--shadow-hard);
}

.appointment-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.appointment-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-sm);
}

.appointment-id span {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.appointment-id .copy-icon {
    flex-shrink: 0;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.appointment-id .copy-icon:hover {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.appointment-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.appointment-time svg {
    flex-shrink: 0;
    color: var(--accent-primary);
}

.appointment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.appointment-actions {
    display: flex;
    gap: 0.375rem;
}

.action-icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-icon-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.join-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: var(--shadow-hard-sm);
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hard);
}

/* ============================================
   THUMBNAILS MODULE - PORTRAIT IMAGES (9:16)
   ============================================ */
.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.thumbnail-card {
    position: relative;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-3d), var(--shadow-hard-sm);
}

.thumbnail-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-3d-hover), var(--shadow-hard-hover);
}

.thumbnail-card-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0.5rem;
    display: flex;
    justify-content: flex-end;
}

.hide-thumbnail-btn {
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
}

.thumbnail-card:hover .hide-thumbnail-btn {
    opacity: 1;
}

.hide-thumbnail-btn:hover {
    background: var(--accent-red);
}

/* Portrait aspect ratio for 1080x1920 images */
.thumbnail-image {
    position: relative;
    aspect-ratio: 9/16;
    overflow: hidden;
    background: var(--bg-tertiary);
    cursor: pointer;
}

.thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.thumbnail-card:hover .thumbnail-image img {
    transform: scale(1.05);
}

.thumbnail-play-overlay {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hard-sm), 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.thumbnail-play-overlay svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

.thumbnail-card:hover .thumbnail-play-overlay {
    transform: scale(1.1);
}

.thumbnail-caption {
    padding: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.5);
}

.thumbnail-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.thumbnail-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 0.5rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.thumbnail-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hard-sm);
}

.thumbnail-watch-btn:hover {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
}

/* ============================================
   MEDIA MODULE - PROPER ASPECT RATIOS
   ============================================ */
.usage-bars-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hard-sm);
    flex-wrap: wrap;
}

.usage-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 150px;
}

.usage-bar-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 40px;
}

.usage-bar {
    flex: 1;
    height: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    border: 2px solid var(--glass-border);
}

.usage-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.usage-bar-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.usage-bar-overlay {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.5rem;
    background: var(--text-primary);
    color: white;
    font-size: 0.625rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    margin-top: 4px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}

/* Social Media Card - supports both portrait video (9:16) and square images (1:1) */
.social-media-card,
.media-card {
    position: relative;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-3d), var(--shadow-hard-sm);
}

.social-media-card:hover,
.media-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-3d-hover), var(--shadow-hard-hover);
}

.social-media-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.social-media-platform-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: capitalize;
}

.social-media-status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: capitalize;
}

.social-media-status-badge.scheduled {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

.social-media-status-badge.draft {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
}

/* Media preview - supports both aspect ratios */
.social-media-card-media {
    position: relative;
    background: var(--bg-tertiary);
    overflow: hidden;
}

/* Default to square for images */
.social-media-card-media {
    aspect-ratio: 1/1;
}

/* Portrait aspect for videos (9:16) */
.media-card[data-type="video"] .social-media-card-media {
    aspect-ratio: 9/16;
}

.social-media-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.social-media-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-media-card-content {
    padding: 1rem;
}

.social-media-caption {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.read-more-btn:hover {
    color: var(--accent-secondary);
}

/* Social Media Card Footer - Date on one line, buttons on next */
.social-media-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--glass-border);
}

.social-media-schedule {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.social-media-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-media-actions button {
    flex: 1;
    min-width: 90px;
    padding: 0.65rem 0.875rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-media-actions button:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.social-media-actions .delete-post-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.hide-post-btn {
    padding: 0.375rem 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    font-weight: 600;
    font-family: inherit;
}

.hide-post-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    transform: translateY(-1px);
}

.social-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-lg);
}

/* ============================================
   BLOGS MODULE - GRID LAYOUT
   ============================================ */
.blogs-table-container {
    overflow: visible;
}

/* Grid layout for blogs instead of table */
.blogs-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.blog-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-3d), var(--shadow-hard-sm);
}

.blog-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-3d-hover), var(--shadow-hard-hover);
}

.blog-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1rem;
}

.blog-post-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.blog-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-status.status-published {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.blog-status.status-draft {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
}

.blog-status.status-scheduled {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

.blog-preview-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-preview-btn:hover {
    background: var(--accent-primary);
    color: white;
}

.blog-actions {
    display: flex;
    gap: 0.5rem;
}

.blog-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 0.75rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-action-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.blog-action-btn.delete-blog-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.blog-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-lg);
    grid-column: 1 / -1;
}

/* ============================================
   PASSWORD OVERLAY
   ============================================ */
.password-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.password-popup {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-3d-hover), var(--shadow-hard);
    animation: slideUpFade 0.4s ease;
}

.password-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.password-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.password-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-input {
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-inset);
}

.password-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-inset), 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.password-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-hard), 0 8px 24px rgba(99, 102, 241, 0.35);
}

.password-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hard-hover), 0 12px 32px rgba(99, 102, 241, 0.4);
}

.password-error {
    text-align: center;
    color: var(--accent-red);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-sm);
}

/* ============================================
   USER SELECTION OVERLAY
   ============================================ */
.user-selection-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.user-selection-popup {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-3d-hover), var(--shadow-hard);
    animation: slideUpFade 0.4s ease;
}

.user-selection-header {
    text-align: center;
    margin-bottom: 2rem;
}

.user-selection-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.user-selection-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.user-selection-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.user-selection-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.user-selection-loading-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.user-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.user-card {
    padding: 1.25rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: var(--shadow-hard-sm);
}

.user-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hard);
}

.user-card-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hard-sm);
}

.user-card-avatar span {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.user-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.user-card-email {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ============================================
   SCHEDULE POPUP
   ============================================ */
.schedule-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.schedule-popup {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-3d-hover), var(--shadow-hard);
}

.schedule-popup h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.schedule-popup input[type="datetime-local"] {
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.schedule-popup input[type="datetime-local"]:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.schedule-popup-actions {
    display: flex;
    gap: 1rem;
}

.schedule-popup-actions button {
    flex: 1;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.schedule-popup-actions .cancel-btn {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    color: var(--text-secondary);
}

.schedule-popup-actions .cancel-btn:hover {
    background: var(--bg-tertiary);
}

.schedule-popup-actions .confirm-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: var(--shadow-hard-sm);
}

.schedule-popup-actions .confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hard);
}

/* ============================================
   MARKDOWN BODY STYLING
   ============================================ */
.markdown-body {
    line-height: 1.6;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    margin: 1rem 0 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.markdown-body p {
    margin: 0.5rem 0;
}

.markdown-body ul,
.markdown-body ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.markdown-body code {
    background: rgba(99, 102, 241, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
}

.markdown-body pre {
    background: rgba(99, 102, 241, 0.05);
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 0.5rem 0;
}

.markdown-body pre code {
    background: none;
    padding: 0;
}

.markdown-body a {
    color: var(--accent-primary);
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body blockquote {
    border-left: 3px solid var(--accent-primary);
    padding-left: 1rem;
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    text-align: left;
}

.markdown-body th {
    background: rgba(99, 102, 241, 0.05);
    font-weight: 600;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInWidth {
    from { width: 0; }
    to { width: 100%; }
}

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

/* ============================================
   SCROLLBAR STYLES
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

    .mobile-header {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding-top: var(--mobile-header-height);
        height: calc(100vh - var(--mobile-header-height));
    }

    .module-content {
        padding: 1rem;
    }

    .module-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .filter-tabs {
        width: 100%;
    }

    .filter-tab {
        flex: 1;
        text-align: center;
    }

    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .blogs-table {
        grid-template-columns: 1fr;
    }

    .usage-bars-row {
        flex-direction: column;
        align-items: stretch;
    }

    .usage-bar-wrapper {
        min-width: 100%;
    }

    .chat-center {
        padding: 1rem;
    }

    .message-content {
        max-width: 85%;
    }

    .appointment-card {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .module-title {
        font-size: 1.25rem;
    }

    .header-title {
        font-size: 1.25rem;
    }

    .appointment-card {
        width: 220px;
    }

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

/* ============================================
   HIDDEN UTILITY
   ============================================ */
.hidden {
    display: none !important;
}

/* Thumbnail placeholder */
.thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-lg);
}

/* ============================================
   ANALYTICS MODULE
   ============================================ */
.analytics-module {
    padding: 1.5rem;
}

.analytics-loading,
.analytics-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: var(--text-secondary);
}

.analytics-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.analytics-error svg {
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.analytics-error .error-message {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.retry-btn {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-3d);
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3d-hover);
}

/* Analytics Platforms Grid */
.analytics-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.platform-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-3d);
    transition: all 0.3s ease;
}

.platform-card:hover {
    border-color: var(--glass-border-strong);
    box-shadow: var(--shadow-3d-hover);
    transform: translateY(-2px);
}

.platform-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.platform-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.platform-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.platform-icon.facebook {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

.platform-icon.instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.platform-icon.linkedin {
    background: linear-gradient(135deg, #0077b5, #006699);
}

.platform-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.platform-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent-green);
}

.platform-status .status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Platform Stats */
.platform-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-md);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

/* Analytics Details */
.analytics-details {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-3d);
}

.analytics-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.analytics-details-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.analytics-period {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-full);
}

/* Profile Stats Table */
.profile-stats-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-stats-table th,
.profile-stats-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.profile-stats-table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    font-weight: 600;
}

.profile-stats-table td {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.profile-stats-table tr:last-child td {
    border-bottom: none;
}

.profile-stats-table .profile-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
}

.profile-name {
    font-weight: 500;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.stat-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

/* Analytics Charts */
.analytics-charts {
    margin-top: 2rem;
}

.chart-container {
    margin-bottom: 2rem;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 200px;
    padding: 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    position: relative;
}

.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-bar {
    width: 100%;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: relative;
    min-height: 2px;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Responsive Analytics */
@media (max-width: 768px) {
    .analytics-platforms {
        grid-template-columns: 1fr;
    }

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

    .profile-stats-table {
        display: block;
        overflow-x: auto;
    }

    .chart-bars {
        height: 150px;
        padding: 0.75rem;
    }

    .chart-bar span {
        font-size: 0.6rem !important;
    }
}

@media (max-width: 480px) {
    .platform-stats {
        grid-template-columns: 1fr;
    }

    .chart-bars {
        height: 120px;
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .chart-bar span {
        display: none !important;
    }
}
