/* Reset & Variables */
:root {
    /* Colors - Zinc/Slate Palette from shadcn/ui */
    --background: #ffffff;
    --foreground: #09090b;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --popover: #ffffff;
    --popover-foreground: #09090b;
    --card: #ffffff;
    --card-foreground: #09090b;
    --border: #e4e4e7;
    --input: #e4e4e7;
    --primary: #18181b;
    --primary-foreground: #fafafa;
    --secondary: #f4f4f5;
    --secondary-foreground: #18181b;
    --accent: #f4f4f5;
    --accent-foreground: #18181b;
    --destructive: #ef4444;
    --ring: #18181b;

    /* Social Brand Colors */
    --instagram: #E1306C;
    --tiktok: #000000;
    --tumblr: #36465D;

    /* Layout */
    --sidebar-width: 260px;
    --radius: 0.5rem;
    --header-height: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--muted-foreground);
}

.text-muted {
    color: #a1a1aa;
}

.text-success {
    color: #10b981;
}

.text-danger {
    color: #ef4444;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-xs {
    font-size: 0.75rem;
}

/* Layout Grid */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 68px;
    /* Collapsed width */
    border-right: 1px solid var(--border);
    background-color: var(--card);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0.5rem;
    /* Adjusted padding */
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 50;
    /* overflow: hidden; Removed to allow flyout */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover {
    width: var(--sidebar-width);
    /* padding: 1.5rem 1rem; Restore padding on expand - kept consistent */
}

.sidebar .logo {
    color: var(--foreground);
}

.sidebar .logo i {
    color: #3b82f6;
    /* Blue icon */
}

/* Submenu Flyout */
.nav-group {
    position: relative;
}

.submenu-flyout {
    position: static;
    width: 100%;
    margin-left: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 1.75rem;
    background: transparent;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
}

.submenu-flyout.active {
    display: flex;
}

.submenu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
}

.submenu-item:hover {
    background-color: var(--secondary);
    color: var(--foreground);
}

.submenu-badge {
    background-color: var(--muted);
    color: var(--foreground);
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    min-width: 1.5rem;
    text-align: center;
}

.submenu-group {
    padding-left: 0.5rem;
    border-left: 1px solid var(--border);
    margin-left: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.submenu-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
    padding: 0.5rem 0.5rem 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-header {
    margin-bottom: 2rem;
    padding-left: 0.5rem;
    white-space: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.3s ease;
}

.logo .logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.logo .brand-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Hide text in collapsed state */
.sidebar .brand-logo,
.sidebar .nav-item span,
.sidebar .submenu-icon {
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.sidebar:hover .brand-logo,
.sidebar:hover .nav-item span,
.sidebar:hover .submenu-icon {
    opacity: 1;
    transition-delay: 0.1s;
    pointer-events: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--muted-foreground);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item:hover,
.nav-item.active {
    background-color: var(--secondary);
    color: var(--foreground);
}

.nav-item i {
    /* Phosphor icons */
    font-size: 1.5rem;
    /* Slightly larger icons */
    min-width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}


.nav-item.has-submenu {
    justify-content: flex-start;
    /* Align left */
}

.submenu-icon {
    margin-left: auto;
}

.nav-divider {
    height: 1px;
    background-color: var(--border);
    margin: 1rem 0;
}

/* Main Content */
.main-content {
    margin-left: 68px;
    /* Match collapsed width */
    flex: 1;
    display: flex;
    flex-direction: column;
    width: calc(100% - 68px);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Optional: Pushing content (uncomment to push instead of overlay) */
/*
.sidebar:hover ~ .main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}
*/

/* New Header System */
.header-container {
    background-color: var(--background);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 40;
}

.utility-bar {
    height: 48px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.utility-left {
    display: flex;
    gap: 2rem;
    height: 100%;
}

.tab-item {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-weight: 500;
}

.tab-item.active {
    color: var(--foreground);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fbd38d;
    /* Yellow underline */
}

.badge-new {
    font-size: 0.625rem;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    padding: 1px 4px;
    border-radius: 999px;
    margin-left: 0.5rem;
    font-weight: 600;
}

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

.btn-create-header {
    background: none;
    border: none;
    color: #4f46e5;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-right: 0.5rem;
}

.header-icon-btn {
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon-btn:hover {
    color: var(--foreground);
}

.divider-v {
    width: 1px;
    height: 20px;
    background-color: var(--border);
    margin: 0 0.5rem;
}

.link-feature {
    font-size: 0.8125rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.page-header-bar {
    padding: 1.5rem 2rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
    /* Match content wrapper */
}

.greeting {
    font-size: 1.5rem;
    font-weight: 600;
    color: #18181b;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
}

.btn-primary:hover {
    background-color: #27272a;
}

.btn-secondary {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

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

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-foreground);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: var(--radius);
}

.icon-btn:hover {
    background-color: var(--accent);
    color: var(--foreground);
}

.user-profile {
    margin-left: 0.5rem;
}

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

/* Content Area */
.content-wrapper {
    padding: 1rem 2rem 2rem;
    background-color: #fafafa;
    /* Very light gray for contrast with cards */
    flex: 1;
}

.section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title.has-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fbd38d;
    /* Yellow accent */
}

.link-subtle {
    color: var(--primary);
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
}

.link-subtle:hover {
    text-decoration: underline;
}

/* Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* Subtle shadow per Sample UI */
    overflow: hidden;
}

/* Stat Cards (Matching PorlobSocial original) */
.grid-cards .card {
    border: 1.5px solid #dcdcfe;
    /* Light purple/blue border */
    border-radius: 8px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.grid-cards .card:hover {
    border-color: #4f46e5;
    background-color: #fbfbff;
}

/* Action Card (Menu) */
.card-action {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-action .card-content {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-label {
    font-size: 1rem;
    font-weight: 600;
}

.menu-list {
    padding: 0.5rem;
}

.menu-item {
    padding: 0.625rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    cursor: pointer;
    border-radius: var(--radius);
}

.menu-item:hover,
.menu-item.active {
    background-color: var(--accent);
    color: var(--foreground);
    font-weight: 500;
}

.badge {
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    min-width: 1.5rem;
    text-align: center;
}

.badge-secondary {
    background-color: var(--secondary);
    color: var(--foreground);
    border: 1px solid var(--border);
}

/* Stat Cards (Matching PorlobSocial original) */
.stat-card {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.stat-icon {
    font-size: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    /* Removed background box for this specific look */
    width: auto;
    height: auto;
}

.stat-icon i {
    color: #4f46e5;
    /* Theme color */
}

.stat-icon i.text-success {
    color: #10b981;
}

.stat-icon i.text-danger {
    color: #ef4444;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    color: #18181b;
}

.stat-label {
    font-size: 0.875rem;
    color: #71717a;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Table */
.table-card {
    padding: 0;
    /* Remove padding for edge-to-edge table */
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

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

.data-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    font-weight: 600;
    background-color: #fafafa;
    /* Subtle header bg */
}

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

.col-center {
    text-align: center;
}

.col-right {
    text-align: right;
}

.account-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    overflow: hidden;
}

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

.instagram {
    background: var(--instagram);
}

.tiktok {
    background: var(--tiktok);
}

.tumblr {
    background: var(--tumblr);
}

.account-name {
    font-weight: 500;
    color: var(--foreground);
}

/* Connect Account Page Styles */
.connect-header-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.connect-header-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4f46e5;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.connect-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.connect-tabs {
    display: flex;
    gap: 2rem;
    position: relative;
}

.connect-tab {
    font-size: 0.9375rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    position: relative;
    color: var(--foreground);
}

.connect-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60%;
    height: 2px;
    background-color: #fbd38d;
}

.connect-status-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.accounts-count-badge {
    background-color: #eff6ff;
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Post Cards Layout */
.post-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    gap: 1.5rem;
    position: relative;
    transition: box-shadow 0.2s;
}

.post-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.post-card-selection {
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
}

.post-card-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.post-card-media {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

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

.post-card-media i {
    font-size: 2rem;
    color: #9ca3af;
}

.post-card-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    min-width: 0;
    /* Prevents flex items from overflowing */
}

.post-card-main-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-card-platforms-side {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    min-width: 200px;
    align-items: center;
    padding-left: 1.5rem;
    border-left: 1px solid #f1f5f9;
    flex: 0 0 auto;
}

.post-card-text {
    font-size: 0.9375rem;
    color: #374151;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.post-card-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.platform-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 8px;
    background: #f9fafb;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.post-card-actions-left {
    display: flex;
    gap: 1rem;
}

.action-link {
    color: #4f46e5;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.action-link:hover {
    text-decoration: underline;
}

.post-card-actions-right {
    display: flex;
    gap: 0.5rem;
}

/* Manage Posts Page Search Header */
.manage-posts-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #4f46e5;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
}

.bulk-select-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.25rem;
}

.link-cancel {
    color: #4f46e5;
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
}

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.platform-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.platform-card:hover {
    border-color: #6366f1;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.15);
}

.platform-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    color: white;
    overflow: hidden;
    background: transparent !important;
}

.platform-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Use cover for the circular brand logos like Facebook */
}

/* For glyph icons that shouldn't be cropped */
.platform-icon img.platform-glyph {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.platform-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #18181b;
}

.platform-links {
    width: 100%;
    border-top: 1px solid #f4f4f5;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
    width: 100%;
    gap: 0.5rem;
}

.platform-link:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Brand Colors */
.bg-facebook {
    background-color: #1877F2;
}

.bg-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.bg-google {
    background-color: #4285F4;
}

.bg-linkedin {
    background-color: #0A66C2;
}

.bg-youtube {
    background-color: #FF0000;
}

.bg-tiktok {
    background-color: #000000;
}

.bg-x {
    background-color: #000000;
}

.bg-pinterest {
    background-color: #BD081C;
}

/* Forms */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    min-height: 150px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.form-group textarea:focus {
    border-color: var(--primary);
}

/* Calendar Small Tweaks */
.calendar-cell {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    min-height: 100px;
    transition: background-color 0.2s;
}

.calendar-cell:hover {
    background-color: var(--accent);
}

/* FAB */
.fab-chat {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #1d4ed8;
    /* Blue from PorlobSocial or Black from Sample? PorlobSocial has Blue. Let's stick to Blue for the chat as it's a distinct feature, or make it black to fit theme. Let's make it primary (black) to fit theme. */
    background-color: #0ea5e9;
    /* Sky blue to pop a bit like original */
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.fab-chat:hover {
    transform: scale(1.05);
}

/* =============================================
   MOBILE HAMBURGER BUTTON (hidden on desktop)
   ============================================= */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.25rem;
    align-items: center;
    justify-content: center;
    z-index: 200;
    flex-shrink: 0;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 49;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

/* ==============================================
   TABLET — max-width: 1024px
   ============================================== */
@media (max-width: 1024px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

    .create-post-grid {
        grid-template-columns: 1fr;
    }

    .content-wrapper {
        padding: 1rem 1.25rem 2rem;
    }

    .page-header-bar {
        padding: 1rem 1.25rem 0.5rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .greeting {
        font-size: 1.25rem;
    }

    .utility-bar {
        padding: 0 1.25rem;
    }

    .accounts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .dashboard-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-table {
        min-width: 640px;
    }
}

/* ==============================================
   MOBILE — max-width: 768px
   ============================================== */
@media (max-width: 768px) {

    /* Prevent horizontal overflow on body */
    .app-container {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
    }

    /* ══ SIDEBAR — slide off-canvas to the left ══ */
    .sidebar {
        left: -300px !important;
        width: 260px !important;
        z-index: 100;
        transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }

    .sidebar.sidebar-open {
        left: 0 !important;
        box-shadow: 6px 0 32px rgba(0, 0, 0, 0.18);
    }

    .sidebar.sidebar-open .logo span,
    .sidebar.sidebar-open .nav-item span,
    .sidebar.sidebar-open .submenu-icon {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Prevent hover-expand on touch devices */
    .sidebar:hover {
        width: 260px !important;
    }

    /* Close button visible on mobile */
    #sidebar-close-btn {
        display: flex !important;
    }

    /* ══ MAIN CONTENT — fill full width ══ */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw;
    }

    /* ══ HEADER ══ */
    .mobile-menu-btn {
        display: flex !important;
    }

    .utility-bar {
        padding: 0 0.875rem;
        gap: 0.5rem;
        height: 52px;
    }

    .utility-left {
        display: none !important;
    }

    .link-feature {
        display: none !important;
    }

    .divider-v {
        display: none !important;
    }

    .utility-right {
        gap: 0.375rem;
    }

    .page-header-bar {
        padding: 0.75rem 0.875rem 0.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .greeting {
        font-size: 1.05rem;
    }

    /* Header actions row: stack vertically */
    .header-actions {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }

    .client-filter-container {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* ══ CONTENT WRAPPER ══ */
    .content-wrapper {
        padding: 0.75rem 0.875rem 2rem;
    }

    /* ══ STAT CARDS — 2 per row ══ */
    .grid-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.625rem;
    }

    .stat-card {
        padding: 0.875rem 1rem;
        gap: 0.625rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* ══ PLATFORM GRID — 2 per row ══ */
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }

    .platform-card {
        padding: 1.25rem 0.875rem;
    }

    .platform-icon {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }

    /* ══ ACCOUNTS GRID — single column ══ */
    .accounts-grid {
        grid-template-columns: 1fr !important;
    }

    /* ══ TABLES — horizontal scroll ══ */
    .dashboard-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-table {
        min-width: 600px;
    }

    .table-container,
    .table-card,
    .card.table-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table,
    .custom-table {
        min-width: 560px;
    }

    /* ══ SECTION HEADERS — stack ══ */
    .section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.625rem;
        margin-bottom: 1rem;
    }

    .section-header>*:last-child {
        width: 100%;
    }

    /* ══ MANAGE ACCOUNTS page — header row ══ */
    .page-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.875rem !important;
    }

    /* Buttons row in manage-accounts */
    .page-header-actions {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        width: 100% !important;
    }

    .page-header-actions>* {
        flex: 1 1 calc(50% - 0.5rem) !important;
        justify-content: center !important;
    }

    /* ══ MANAGE POSTS — page title row ══ */
    .manage-posts-page-title {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .manage-posts-page-title a.btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Manage-posts controls area */
    .manage-posts-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .manage-posts-controls>div[style] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.625rem !important;
        width: 100% !important;
    }

    .search-container {
        max-width: 100%;
    }

    #filter-type {
        width: 100% !important;
    }

    /* Status tabs: scroll */
    .status-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
        gap: 0.875rem;
    }

    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.8125rem;
    }

    /* Card header controls */
    .card-header-controls {
        padding: 0 0.875rem;
    }

    .filter-controls {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    /* ══ POST CARDS — stack vertically ══ */
    .post-card {
        flex-direction: column;
        gap: 0.875rem;
        padding: 0.875rem;
    }

    .post-card-media {
        width: 100%;
        height: 170px;
        border-radius: 8px;
    }

    .post-card-content {
        flex-direction: column;
        gap: 0.625rem;
    }

    .post-card-platforms-side {
        border-left: none;
        border-top: 1px solid #f1f5f9;
        padding-left: 0;
        padding-top: 0.625rem;
        min-width: unset;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Always show action icons on mobile */
    .post-card-actions-top {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        justify-content: flex-end;
        margin-top: 0.375rem;
    }

    /* ══ CONNECT ACCOUNT PAGE ══ */
    .connect-header-card {
        padding: 0.875rem 0.875rem;
    }

    .connect-header-main {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.875rem;
    }

    .connect-tabs {
        gap: 0.875rem;
        flex-wrap: wrap;
    }

    .connect-status-wrap {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .accounts-count-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    /* ══ CREATE POST PAGE ══ */
    .create-post-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .preview-card {
        position: static;
    }

    /* ══ AUTH PAGES ══ */
    .auth-card {
        padding: 1.75rem 1.25rem;
    }

    /* ══ SUBMENU (sidebar mobile) — inline dropdown ══ */
    .submenu-flyout {
        position: static !important;
        width: 100% !important;
        margin-left: 0 !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0.25rem 0 0.25rem 1.75rem !important;
        background: transparent !important;
    }

    .submenu-item {
        font-size: 0.8125rem;
        padding: 0.5rem 0.625rem;
    }

    /* ══ TOAST ══ */
    #toast-container {
        bottom: 1rem;
        right: 0.875rem;
        left: 0.875rem;
    }

    .custom-toast {
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }

    /* ══ FAB ══ */
    .fab-chat {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    /* ══ PAGINATION ══ */
    .pagination-footer {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .pagination-buttons {
        width: 100%;
        justify-content: center;
    }

    /* ══ ACCOUNT CARD FOOTER ══ */
    .account-actions-footer {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* ==============================================
   SMALL PHONES — max-width: 480px
   ============================================== */
@media (max-width: 480px) {
    .grid-cards {
        grid-template-columns: 1fr;
    }

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

    .connect-status-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .greeting {
        font-size: 0.975rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-card {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .content-wrapper {
        padding: 0.5rem 0.75rem 1.5rem;
    }

    .page-header-bar {
        padding: 0.5rem 0.75rem;
    }

    .utility-bar {
        padding: 0 0.75rem;
        height: 48px;
    }

    .auth-card {
        padding: 1.5rem 1rem;
        border-radius: 0.5rem;
    }

    .auth-header h1 {
        font-size: 1.2rem;
    }

    .account-name-premium {
        font-size: 0.975rem;
    }

    .post-card-media {
        height: 145px;
    }

    .platform-card {
        padding: 1rem 0.625rem;
    }

    .platform-name {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .data-table,
    .custom-table,
    .dashboard-table {
        min-width: 480px;
    }

    .platform-links {
        gap: 0.5rem;
    }

    #toast-container {
        bottom: 0.625rem;
        right: 0.625rem;
        left: 0.625rem;
    }
}

/* Login Page Specifics */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.auth-logo:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

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

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrap i {
    position: absolute;
    left: 1rem;
    font-size: 1.25rem;
    color: var(--muted-foreground);
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
    background-color: #ffffff;
}

.auth-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-auth {
    width: 100%;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn-auth:hover {
    background-color: #27272a;
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Auth Loader */
.auth-loader {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
    display: none;
}

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

/* Header Dropdown & Interactivity */
.header-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    display: none;
    z-index: 1000;
    margin-top: 0.5rem;
}

.header-dropdown.active {
    display: block;
}

.dropdown-header {
    padding: 0.75rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--foreground);
}

.user-email {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--foreground);
    text-decoration: none;
    border-radius: calc(var(--radius) - 2px);
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--secondary);
}

.dropdown-item i {
    font-size: 1.125rem;
}

.tab-item {
    cursor: pointer;
    transition: all 0.2s;
}

.tab-item:hover:not(.active) {
    color: var(--foreground);
    background: var(--secondary);
}

/* Composer & Post UI */
.social-selector {
    position: relative;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2px;
    border-radius: 50%;
}

.social-selector .social-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.social-selector.active .social-icon {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

.selector-check {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: white;
    border-radius: 50%;
    color: #10b981;
    font-size: 1.25rem;
    display: none;
}

.social-selector.active .selector-check {
    display: block;
}

.composer-container {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--background);
    transition: border-color 0.2s;
}

.composer-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.05);
}

.post-textarea {
    width: 100%;
    min-height: 200px;
    border: none;
    padding: 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
}

.post-textarea:focus {
    outline: none;
}

.composer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--muted);
    border-top: 1px solid var(--border);
}

.toolbar-left {
    display: flex;
    gap: 0.5rem;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background: transparent;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: var(--background);
    color: var(--foreground);
}

.char-count {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.setting-item {
    background: var(--muted);
    padding: 1rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.setting-label {
    font-weight: 600;
    font-size: 0.875rem;
}

.setting-desc {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Manage Posts Page Styles */
.main-card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header-controls {
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: #fff;
}

.status-tabs {
    display: flex;
    gap: 2rem;
}

.tab-btn {
    padding: 1rem 0;
    cursor: pointer;
    color: var(--muted-foreground);
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
}

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

.tab-btn.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
    font-weight: 600;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.form-control.hover-effect {
    border: 1px solid var(--border);
    padding: 0.4rem 2rem 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--foreground);
    cursor: pointer;
    background: transparent;
}

.form-control.hover-effect:hover {
    border-color: #d1d5db;
}

.table-container {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    color: #64748b;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.custom-table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    color: var(--foreground);
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

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

.custom-table tr:hover td {
    background: #f8fafc;
}

/* Badges */
.badge-scheduled {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-published {
    background: #dcfce7;
    color: #15803d;
}

.badge-failed {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-draft {
    background: #f3f4f6;
    color: #4b5563;
}

.badge-video_queued {
    background: #fef9c3;
    color: #854d0e;
}

.badge-video_uploading {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-processing {
    background: #ffedd5;
    color: #9a3412;
}

.badge-post {
    background: #fdf4ff;
    color: #a21caf;
    border: 1px solid #f5d0fe;
}

.badge-reel {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.badge-story {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.thumb-preview {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.thumb-preview:hover {
    transform: scale(1.05);
}

/* Pagination */
.pagination-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.pagination-info {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.pagination-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-page {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: white;
    color: var(--foreground);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s;
}

.btn-page:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
}

/* Actions */
.action-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
    background: white;
}

.action-btn:hover {
    background: #f9fafb;
    color: #4f46e5;
    border-color: #4f46e5;
}

.action-btn.btn-delete:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.content-preview {
    display: block;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Premium Account Management Styles */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.account-card-premium {
    background: white;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.account-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.account-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-avatar-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
}

.account-avatar {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    background: #f8fafc;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.platform-badge-overlay {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    font-size: 0.75rem;
    color: white;
    overflow: hidden;
}

.platform-badge-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.account-meta {
    flex: 1;
}

.account-name-premium {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
    display: block;
}

.platform-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.account-stats-simplified {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    gap: 1rem;
}

.mini-stat {
    display: flex;
    flex-direction: column;
}

.mini-stat-value {
    font-weight: 700;
    font-size: 1rem;
    color: #334155;
}

.mini-stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
}

.account-actions-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.client-access-area {
    flex: 1;
    position: relative;
}

.client-select-premium-v2 {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 0.85rem;
    transition: all 0.2s;
}

.client-select-premium-v2:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.client-select-premium-v2:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.action-btn-pill {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    transition: all 0.2s;
    cursor: pointer;
}

.action-btn-pill:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

.action-btn-pill.danger:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fee2e2;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.client-label-badge {
    position: absolute;
    top: -10px;
    left: 8px;
    background: white;
    padding: 0 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
}

/* Create Post Page Styles */
.create-post-grid {
    display: grid;
    grid-template-columns: 280px 1fr 420px;
    gap: 1.5rem;
    align-items: start;
    height: calc(100vh - 170px);
    overflow: hidden;
}

@media (max-width: 1400px) {
    .create-post-grid {
        grid-template-columns: 260px 1fr 380px;
        gap: 1rem;
    }
}

.accounts-column {
    height: 100%;
    overflow: hidden; /* Card handles the scroll */
}

.create-form-column, .preview-column {
    height: 100%;
    overflow-y: auto;
    padding-right: 8px; /* For scrollbar spacing */
    scrollbar-width: thin;
}

.create-form-column {
    padding-bottom: 2rem;
}

.accounts-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.accounts-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#social-accounts-selector {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 4px;
}

@media (max-width: 1100px) {
    .create-post-grid {
        grid-template-columns: 1fr;
    }
}

.preview-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    overflow: hidden;
}

.preview-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.preview-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 0.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.preview-tab {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s;
}

.preview-tab:hover {
    background: #e2e8f0;
}

.preview-tab.active {
    background: white;
    color: var(--primary);
    border-color: var(--border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.preview-content {
    padding: 0;
    background: #f8fafc;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.platform-preview {
    display: none;
    width: 100%;
    background: white;
    min-height: 400px;
}

.platform-preview.visible {
    display: block;
}

/* FB Mockup */
.fb-post-header {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    align-items: center;
}

.fb-avatar {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.fb-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #050505;
    margin-bottom: 2px;
}

.fb-time {
    font-size: 0.8125rem;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fb-text {
    padding: 0 1rem 1rem;
    font-size: 0.9375rem;
    color: #050505;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}

.fb-media {
    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    min-height: 200px;
    align-items: center;
}

.fb-media img,
.fb-media video {
    max-width: 100%;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.fb-actions {
    padding: 0.25rem 1rem;
    border-top: 1px solid #ced0d4;
    display: flex;
    justify-content: space-between;
    color: #65676b;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-top: auto;
}

.fb-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
}

.fb-action-btn:hover {
    background: #f0f2f5;
}

/* IG Mockup */
.ig-header {
    display: flex;
    align-items: center;
    padding: 0.875rem;
    gap: 0.75rem;
    border-bottom: 1px solid #efefef;
}

.ig-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #8a3ab9);
    padding: 2px;
    border-radius: 50%;
}

.ig-avatar-inner {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.ig-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #262626;
}

.ig-media {
    width: 100%;
    aspect-ratio: 1/1;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.ig-media img,
.ig-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ig-actions {
    padding: 0.75rem;
    display: flex;
    gap: 1rem;
}

.ig-actions i {
    cursor: pointer;
    transition: transform 0.1s;
}

.ig-caption {
    padding: 0 0.875rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.ig-caption strong {
    font-weight: 600;
    margin-right: 0.5rem;
    color: #262626;
}

/* Customize Toggle */
.customize-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.customize-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.customize-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 22px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.switch-slider {
    background-color: #4f46e5;
}

input:checked+.switch-slider:before {
    transform: translateX(22px);
}

input:disabled+.switch-slider {
    background-color: #e2e8f0;
    cursor: not-allowed;
}

.platform-tabs {
    display: none;
    gap: 1.25rem;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    align-items: center;
}

.platform-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    font-size: 1.3rem;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 4px;
}

.platform-tab.active {
    border-color: #4f46e5;
    background: #eef2ff;
    transform: scale(1.1);
}

.platform-tab:hover:not(.active) {
    background: #f1f5f9;
}

/* Platform Options UI */
.platform-options-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: white;
}

.platform-options-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    justify-content: space-between;
}

.platform-options-header:hover {
    background: #f1f5f9;
}

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

.platform-options-body {
    padding: 1rem 1.25rem;
}

.type-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.type-tab {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.type-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.first-comment-area {
    margin-top: 0;
}

.first-comment-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.comment-input-wrapper {
    position: relative;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    resize: vertical;
}

.comment-textarea:focus {
    outline: none;
}

.comment-input-wrapper .emojionearea-editor {
    padding: 1rem !important;
    font-size: 0.875rem !important;
    min-height: 80px !important;
}

.comment-input-wrapper .emojionearea-placeholder {
    padding: 1rem !important;
    font-size: 0.875rem !important;
}

.comment-toolbar {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border);
    color: #64748b;
}

.comment-toolbar i {
    cursor: pointer;
}

.comment-toolbar i:hover {
    color: var(--primary);
}

/* Enhancements */
.media-item {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.media-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.media-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    line-height: 1;
    padding-bottom: 2px;
}

.media-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}


.post-card {
    position: relative;
}

.post-card-actions-top {
    position: absolute;
    bottom: 12px;
    /* distance from bottom */
    left: 50%;
    /* move to center */
    transform: translateX(-50%);
    /* perfectly center */

    display: flex;
    gap: 12px;

    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}


/* Show only on hover */
.post-card:hover .post-card-actions-top {
    opacity: 1;
    visibility: visible;
}

.action-icon {
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    background: #ffffff;
    padding: 6px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: 0.2s ease;
}

.action-icon:hover {
    color: #111827;
}

.delete-icon {
    color: #ef4444;
}

.delete-icon:hover {
    color: #dc2626;
}

/* =============================================
   Global Toast Notification
   Usage: showToast('Title', 'Message', 'success' | 'error' | 'info')
   ============================================= */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.custom-toast {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 360px;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-title {
    font-weight: 700;
    color: #18181b;
    font-size: 0.875rem;
    line-height: 1.4;
}

.toast-message {
    color: #71717a;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-top: 2px;
}

/* ==============================================
   CREATE POST PAGE — Mobile Responsive
   ============================================== */

@media (max-width: 1100px) {
    .create-post-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .preview-card {
        position: static;
        top: auto;
    }

    .platform-settings-fields {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .create-form-column .card {
        padding: 1.25rem !important;
    }

    .customize-toggle {
        gap: 0.5rem;
        font-size: 0.8125rem;
    }

    .platform-settings-fields {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .first-comment-area {
        margin-top: 0;
    }

    .platform-options-body {
        padding: 1rem;
    }

    .platform-options-header {
        padding: 0.625rem 1rem;
    }

    .composer-toolbar {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .toolbar-left {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .toolbar-btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
    }

    .post-textarea {
        min-height: 130px;
    }

    #social-accounts-selector {
        gap: 0.625rem !important;
    }

    .social-selector {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 0;
    }

    .social-selector span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 120px;
    }

    #url-upload-container {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #url-upload-container input,
    #url-upload-container button {
        width: 100% !important;
    }

    .type-tabs {
        gap: 0.25rem;
    }

    .type-tab {
        font-size: 0.8125rem;
        padding: 0.4rem 0.25rem;
        gap: 0.25rem;
    }

    .preview-card {
        position: static !important;
        top: auto !important;
    }

    .preview-content {
        min-height: 280px;
    }

    .platform-preview {
        min-height: 280px;
    }

    #media-preview-container .media-item {
        width: 80px !important;
        height: 80px !important;
    }

    .platform-options-card {
        border-radius: 10px;
        margin-bottom: 1rem;
    }

    /* Action buttons row: stack on mobile */
    .create-post-actions-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding-top: 1rem !important;
        margin-top: 1.5rem !important;
    }

    .create-post-actions-row button {
        width: 100% !important;
        padding: 0.875rem 1rem !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .social-selector {
        flex: 1 1 100% !important;
    }

    .create-form-column .card {
        padding: 1rem !important;
    }

    .post-textarea {
        min-height: 110px;
    }

    .platform-options-body {
        padding: 0.875rem;
    }

    .toolbar-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    #media-preview-container .media-item {
        width: 68px !important;
        height: 68px !important;
    }

    .char-count {
        font-size: 0.75rem;
    }
}

/* --- MERGED SETTINGS PAGES CSS --- */
.settings-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Top Bar */
.settings-topbar {
    background: #ffffff;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
    flex-shrink: 0;
}

.settings-topbar .tabs {
    display: flex;
    height: 100%;
}

.settings-topbar .tab {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #09090b;
    border-bottom: 3px solid #18181b;
    /* Black accent */
    cursor: pointer;
}

.settings-topbar .actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.settings-topbar .exit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ef4444;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.settings-topbar .exit-btn:hover {
    opacity: 0.8;
}

.settings-topbar .help-icon {
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Body Layout */
.settings-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Dark Sidebar */
.settings-sidebar {
    width: 260px;
    background: #273142;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    padding-top: 1.5rem;
    flex-shrink: 0;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #cbd5e1;
}

.settings-nav-item:hover,
.settings-nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.settings-nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin: 0 0.5rem;
    padding: 1rem;
}

.settings-nav-item i {
    font-size: 1.25rem;
}

.settings-nav-item.active i {
    /* Kept white generally via above, active indicator handles accent */
    color: #ffffff;
}

/* Main Content */
.settings-content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.btn-discard {
    color: #475569;
    /* muted gray */
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.btn-discard:hover {
    color: #ef4444;
    /* red */
}

.btn-save {
    background: #18181b;
    /* Black Button */
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-save:hover {
    background: #27272a;
    /* Zinc 800 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Headers and Cards */
.page-header-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title-wrap {
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.page-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.page-title-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #facc15;
}

/* Form Card */
.form-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #facc15;
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

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

.form-label {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.form-control {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #cbd5e1;
    background: #ffffff;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' 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 1rem center;
    background-size: 1rem;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
    padding-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
}

.radio-input {
    accent-color: #6366f1;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

hr.divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 2rem 0;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-container {
    transform: translateY(0);
}

.modal-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-body p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Grid Layout matching image */
.org-form-grid {
    display: flex;
    gap: 2rem;
}

.logo-column {
    width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fields-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.logo-preview {
    width: 150px;
    height: 150px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px dashed #cbd5e1;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.logo-preview .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #94a3b8;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    border: 2px solid white;
}

/* ==========================================================================
   UNIFIED INBOX STYLES
   ========================================================================== */
:root {
    --messenger-blue: #0084ff;
    --border-color-inbox: #e2e8f0;
    --bg-light-inbox: #f8fafc;
    --text-primary-inbox: #1e293b;
    --text-secondary-inbox: #64748b;
}

.inbox-wrapper {
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    margin: 1rem;
    overflow: hidden;
}

/* Platform Tabs */
.platform-tabs {
    display: flex;
    gap: 1.5rem;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-color-inbox);
    background: #fff;
}

.p-tab {
    padding: 1.25rem 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary-inbox);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.p-tab.active {
    color: var(--messenger-blue);
}

.p-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--messenger-blue);
}

.p-tab .count {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.p-tab.active .count {
    background: #dbeafe;
    color: var(--messenger-blue);
}

.p-tab .badge-red {
    background: #ef4444;
    color: white;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.p-tab .badge-new {
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* Main Layout */
.inbox-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.conv-list {
    width: 360px;
    border-right: 1px solid var(--border-color-inbox);
    display: flex;
    flex-direction: column;
    background: #fff;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-light-inbox);
    position: relative;
}

/* Sidebar Controls */
.list-controls {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color-inbox);
}

.search-wrapper {
    position: relative;
}

.search-wrapper .ph-magnifying-glass {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary-inbox);
    pointer-events: none;
}

.search-input {
    padding-left: 2.75rem !important;
    border-radius: 10px !important;
    background-color: #f1f5f9 !important;
    border: 1px solid transparent !important;
    transition: all 0.2s;
}

.search-input:focus {
    background-color: #fff !important;
    border-color: var(--messenger-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1) !important;
}

.filter-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 0.4rem 1rem;
    background: #fff;
    border: 1px solid var(--border-color-inbox);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary-inbox);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-chip.active {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: var(--text-primary-inbox);
}

/* Advanced Filters */
.advanced-filters {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.filter-select {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border-color-inbox);
    background-color: #f8fafc;
    color: var(--text-primary-inbox);
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    max-width: 50%;
}

.filter-select:focus {
    border-color: var(--messenger-blue);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1);
}

/* Conversation Items */
.conv-scroll {
    flex: 1;
    overflow-y: auto;
}

.conv-item {
    padding: 1rem 1.25rem;
    display: flex;
    gap: 1rem;
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
    border-bottom: 1px solid #f1f5f9;
}

.conv-item:hover {
    background: #f8fafc;
}

.conv-item.active {
    background: #eff6ff;
}

.conv-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3.5px;
    background: var(--messenger-blue);
}

.avatar-stack {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.main-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
    border: 1px solid #f1f5f9;
}

.platform-overlap {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.conv-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.conv-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.conv-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary-inbox);
    margin: 0;
}

.conv-time {
    font-size: 0.75rem;
    color: var(--text-secondary-inbox);
    flex-shrink: 0;
}

.conv-msg {
    font-size: 0.85rem;
    color: var(--text-secondary-inbox);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Comment Actions */
.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 4px;
    margin-left: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.comment-action {
    cursor: pointer;
    transition: color 0.2s;
}

.comment-action:hover {
    color: var(--messenger-blue);
    text-decoration: underline;
}

.comment-action.liked {
    color: var(--messenger-blue);
}

.reply-indicator {
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    margin-top: -10px;
    margin-bottom: 5px;
    border-left: 3px solid var(--messenger-blue);
    font-size: 0.8rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    border-radius: 4px;
}

.msg-row.nested-reply {
    padding-left: 3rem;
    max-width: 95%;
}

.comment-timestamp {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 4px;
}

/* Facebook Style Comments */
.comment-mode {
    align-items: flex-start !important;
    gap: 0.5rem !important;
}

.fb-bubble {
    background: #f0f2f5 !important;
    border-radius: 18px !important;
    padding: 8px 14px !important;
    color: #050505 !important;
    box-shadow: none !important;
    position: relative;
}

.comment-user-name {
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 1px;
    color: #050505;
    display: block;
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #65676b;
    margin-bottom: 3px;
}

.comment-actions-fb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
    margin-left: 12px;
    font-size: 0.75rem;
    color: #65676b;
    font-weight: 600;
}

.fb-action {
    cursor: pointer;
}

.fb-action:hover {
    text-decoration: underline;
}

.fb-action.active {
    color: #0084ff;
}

.thread-container {
    position: relative;
    padding-left: 10px;
}

.thread-line {
    position: absolute;
    left: 25px;
    top: 35px;
    bottom: -15px;
    width: 2px;
    background: #e4e6eb;
    z-index: 0;
}

.nested-reply .thread-line {
    display: none;
}

.reaction-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #1877f2;
    border-radius: 50%;
    color: #fff;
    font-size: 0.6rem;
    border: 2px solid #fff;
    margin-left: -5px;
    vertical-align: middle;
}

.thread-toggle {
    font-size: 0.75rem;
    color: #65676b;
    font-weight: 700;
    margin-left: 3.5rem;
    margin-top: -5px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.thread-toggle:hover {
    color: var(--messenger-blue);
}

.thread-replies {
    transition: all 0.3s ease;
}

/* Post Preview */
.post-preview {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color-inbox);
    display: none;
}

.post-card {
    display: flex;
    gap: 1rem;
    background: #fff;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #e2e8f0;
}

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

.post-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-text {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Chat View Header */
.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color-inbox);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    z-index: 10;
}

.customer-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.customer-name-large {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary-inbox);
}

.assign-label {
    font-size: 0.85rem;
    color: var(--text-secondary-inbox);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.assign-label:hover {
    color: var(--messenger-blue);
}

/* Chat Bubbles */
.messages-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
}

.msg-row {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
    align-items: flex-end;
}

.msg-row.incoming {
    align-self: flex-start;
}

.msg-row.outgoing {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bubble {
    padding: 0.75rem 1.15rem;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bubble-container {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.msg-row.outgoing .bubble-container {
    align-items: flex-end;
}

.incoming .bubble {
    background: #f1f5f9;
    color: var(--text-primary-inbox);
    border-bottom-left-radius: 4px;
}

.outgoing .bubble {
    background: var(--messenger-blue);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
}

/* Chat Footer */
.chat-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border-color-inbox);
    background: #fff;
}

.reply-container {
    background: #fff;
    border: 1px solid var(--border-color-inbox);
    border-radius: 15px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.reply-container:focus-within {
    border-color: var(--messenger-blue);
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.1);
}

.reply-input-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.reply-box {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-size: 1rem;
    padding: 0.5rem 0;
    min-height: 40px;
    max-height: 150px;
}

.footer-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.action-group {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary-inbox);
}

.action-icon {
    cursor: pointer;
    font-size: 1.35rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.action-icon:hover {
    color: var(--messenger-blue);
    background: #eff6ff;
}

#no-chat-view {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #94a3b8;
    background: #f8fafc;
}

.ph-spin {
    animation: ph-spin 2s infinite linear;
}

@keyframes ph-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(359deg);
    }
}

/* EmojiOneArea Customization */
.emojionearea {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    flex: 1;
}

.emojionearea-editor {
    min-height: 40px !important;
    max-height: 150px !important;
    padding: 8px 0 !important;
    font-size: 1rem !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--text-primary-inbox) !important;
}

.emojionearea-placeholder {
    padding: 8px 0 !important;
    font-size: 1rem !important;
    color: #94a3b8 !important;
}

.emojionearea .emojionearea-button {
    display: none !important;
}

.emojionearea-editor:focus {
    outline: none !important;
}


/* --- Select2 & Preview Styles (Migrated) --- */
/* Select2 General Overrides */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    min-height: 42px;
    transition: border-color 0.2s;
    padding: 2px 4px;
    background: #fff;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #4f46e5;
    outline: none;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 8px;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: #1e293b;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #94a3b8;
    margin-right: 5px;
    border-right: none;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background-color: transparent;
    color: #ef4444;
}
.select2-dropdown {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    z-index: 9999;
}
.select2-results__option {
    padding: 8px 12px;
    font-size: 0.875rem;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f1f5f9;
    color: #4f46e5;
}
.tag-input-container {
    position: relative;
}

/* ─── Preview Feed ─────────────────────────────────────────── */
.preview-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 680px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
    background: #f0f2f5;
}
.preview-feed::-webkit-scrollbar { width: 4px; }
.preview-feed::-webkit-scrollbar-track { background: transparent; }
.preview-feed::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 99px; }

/* ══════════════════════════════════════════════
   INSTAGRAM PREVIEW — pixel-perfect native look
══════════════════════════════════════════════ */
.pcard-ig {
    background: #fff;
    border-bottom: 8px solid #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* Story-ring avatar */
.pcard-ig-avatar-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    flex-shrink: 0;
}
.pcard-ig-avatar-wrap .av-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #fff;
    overflow: hidden;
    background: #c9c9c9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pcard-ig-avatar-wrap .av-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    background: #fff;
}
.pcard-ig-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 10px;
}
.pcard-ig-username {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #000;
}
.pcard-ig-time {
    font-size: 0.73rem;
    color: #8e8e8e;
    margin-top: 1px;
}
.pcard-ig-logo {
    margin-left: auto;
    opacity: 0.85;
}
.pcard-ig-logo img { width: 22px; height: 22px; }
.pcard-ig-media {
    width: 100%;
    aspect-ratio: 1/1;
    background: #efefef;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pcard-ig-media img,
.pcard-ig-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-ig-actions {
    display: flex;
    align-items: center;
    padding: 10px 14px 6px;
    gap: 16px;
}
.pcard-ig-actions svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pcard-ig-bookmark { margin-left: auto; }
.pcard-ig-caption {
    padding: 2px 14px 12px;
    font-size: 0.8125rem;
    color: #000;
    line-height: 1.5;
}
.pcard-ig-caption b { font-weight: 700; }
.pcard-ig-caption .cap-text {
    display: block;
    overflow: visible;
    white-space: pre-wrap;
    word-break: break-word;
    color: #333;
}

/* ══════════════════════════════════════════════
   FACEBOOK PREVIEW — pixel-perfect native look
══════════════════════════════════════════════ */
.pcard-fb {
    background: #fff;
    border-bottom: 8px solid #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.pcard-fb-header {
    display: flex;
    align-items: center;
    padding: 12px 14px 8px;
    gap: 10px;
}
.pcard-fb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #1877f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}
.pcard-fb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pcard-fb-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #050505;
    line-height: 1.25;
}
.pcard-fb-meta {
    font-size: 0.72rem;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 1px;
}
.pcard-fb-logo {
    margin-left: auto;
    flex-shrink: 0;
}
.pcard-fb-logo img { width: 20px; height: 20px; }
.pcard-fb-text {
    padding: 0 14px 10px;
    font-size: 0.875rem;
    color: #050505;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    display: block;
    overflow: visible;
}
.pcard-fb-media {
    width: 100%;
    background: #f0f2f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e4e6eb;
    border-bottom: 1px solid #e4e6eb;
}
.pcard-fb-media img,
.pcard-fb-media video { width: 100%; display: block; object-fit: cover; }
.pcard-fb-reactions {
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #65676b;
    border-bottom: 1px solid #e4e6eb;
}
.pcard-fb-actions {
    display: flex;
    padding: 2px 8px;
}
.pcard-fb-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #65676b;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.pcard-fb-action-btn:hover { background: #f0f2f5; color: #050505; }
.pcard-fb-action-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ══════════════════════════════════════════════
   LINKEDIN PREVIEW — pixel-perfect native look
══════════════════════════════════════════════ */
.pcard-li {
    background: #fff;
    border-bottom: 8px solid #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.pcard-li-header {
    display: flex;
    align-items: flex-start;
    padding: 14px 16px 10px;
    gap: 10px;
}
.pcard-li-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #0077b5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}
.pcard-li-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pcard-li-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(0,0,0,0.9);
    line-height: 1.3;
}
.pcard-li-headline {
    font-size: 0.75rem;
    color: rgba(0,0,0,0.6);
    margin-top: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pcard-li-meta {
    font-size: 0.72rem;
    color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
}
.pcard-li-logo { margin-left: auto; flex-shrink: 0; }
.pcard-li-logo img { width: 22px; height: 22px; object-fit: contain; }
.pcard-li-text {
    padding: 0 16px 10px;
    font-size: 0.875rem;
    color: rgba(0,0,0,0.9);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    display: block;
    overflow: visible;
}
.pcard-li-media {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.pcard-li-media img,
.pcard-li-media video { width: 100%; display: block; object-fit: cover; }
.pcard-li-actions {
    display: flex;
    padding: 4px 8px;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.pcard-li-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(0,0,0,0.6);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}
.pcard-li-action-btn:hover { background: rgba(0,0,0,0.06); color: rgba(0,0,0,0.9); }
.pcard-li-action-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ══════════════════════════════════════════════
   YOUTUBE PREVIEW — pixel-perfect native look
══════════════════════════════════════════════ */
.pcard-yt {
    background: #fff;
    border-bottom: 8px solid #f0f2f5;
    font-family: 'Roboto', -apple-system, sans-serif;
}
.pcard-yt-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0f0f0f;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.pcard-yt-thumb img,
.pcard-yt-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-yt-thumb-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 8px; color: #aaa;
}
.pcard-yt-info-row {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
}
.pcard-yt-ch-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #ff0000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}
.pcard-yt-ch-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pcard-yt-title-block { flex: 1; min-width: 0; }
.pcard-yt-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f0f0f;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pcard-yt-ch-name {
    font-size: 0.78rem;
    color: #606060;
    margin-top: 3px;
}
.pcard-yt-dots {
    color: #606060;
    font-size: 1.25rem;
    padding-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}
.pcard-yt-action-row {
    display: flex;
    gap: 8px;
    padding: 0 14px 14px;
}
.pcard-yt-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f2f2f2;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #0f0f0f;
    cursor: pointer;
}
.pcard-yt-pill svg { width: 16px; height: 16px; fill: none; stroke: #0f0f0f; stroke-width: 2; stroke-linecap: round; }
.pcard-yt-pill-icon-only { padding: 6px 10px; }

/* no-media placeholder */
.pcard-no-media {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; color: #b0b0b0; font-size: 0.75rem; padding: 1.2rem 0;
}
.pcard-no-media i { font-size: 1.8rem; }

/* ─── Carousel Preview Styles ────────────────────────────────── */
.pcard-media-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.pcard-carousel-track {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}
.pcard-carousel-item {
    min-width: 100%;
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #efefef;
    flex-shrink: 0;
}
.pcard-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #000;
    transition: all 0.2s;
    opacity: 0.8;
}
.pcard-nav-btn:hover { background: #fff; opacity: 1; transform: translateY(-50%) scale(1.1); }
.pcard-nav-prev { left: 10px; }
.pcard-nav-next { right: 10px; }
.pcard-nav-btn i { font-size: 1rem; }

.pcard-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}
.pcard-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.2s;
}
.pcard-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Media Source Picker Modal */
#media-source-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#media-source-modal.open { display: flex; }

.msm-panel {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(15,23,42,0.22), 0 0 0 1px rgba(99,102,241,0.08);
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 480px;
    animation: msmSlideIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes msmSlideIn {
    from { transform: translateY(24px) scale(0.96); opacity:0; }
    to   { transform: translateY(0)     scale(1);    opacity:1; }
}
.msm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.msm-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.msm-title i { color: #6366f1; font-size: 1.1rem; }
.msm-close {
    width: 30px; height: 30px;
    border: none; background: #f1f5f9;
    border-radius: 8px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #64748b; transition: background 0.15s, color 0.15s;
}
.msm-close:hover { background: #e0e7ff; color: #4f46e5; }

.msm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.msm-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: box-shadow 0.18s, border-color 0.18s, transform 0.15s;
    background: #fafbff;
    position: relative;
    overflow: hidden;
}
.msm-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 18px rgba(99,102,241,0.13);
    transform: translateY(-2px);
}
.msm-card:active { transform: translateY(0); }
.msm-card-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.msm-card-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
}
.msm-card-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
}
/* Colour themes for each source */
.msm-card-device  .msm-card-icon { background: #ede9fe; color: #6d28d9; }
.msm-card-drive   .msm-card-icon { background: #e0f2fe; }
.msm-card-onedrive .msm-card-icon { background: #ffe4e6; }
.msm-card-canva   .msm-card-icon { background: #fef9c3; }

/* Google Drive spinner */
#gdrive-loading-indicator {
    display: none;
    position: absolute;
    inset: 0; background: rgba(255,255,255,0.85);
    border-radius: 14px;
    align-items: center; justify-content: center;
    flex-direction: column; gap: 8px;
    font-size: 0.75rem; color: #64748b;
}
#gdrive-loading-indicator.show { display: flex; }
.msm-spin {
    width: 24px; height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ==========================================================================
   CANVA DESIGN PICKER
   ========================================================================== */

#canva-design-picker {
    display: none; position: absolute;
    inset: 0; background: #fff; z-index: 101;
    border-radius: 18px; padding: 0;
    flex-direction: column; overflow: hidden;
    animation: msmSlideIn 0.22s ease-out;
}

.msm-panel.canva-active {
    max-width: 700px !important;
    max-height: 88vh !important;
    height: 88vh !important;
    width: 96vw !important;
}

.cdp-top-bar {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px 14px; border-bottom: 1.5px solid #f1f5f9;
    flex-shrink: 0;
}

.cdp-title {
    font-weight: 800; color: #00C4CC; font-size: 1rem;
    display: flex; align-items: center; gap: 9px; white-space: nowrap;
}

.cdp-search-wrap { position: relative; flex: 1; min-width: 0; }

.cdp-search-input {
    width: 100%; padding: 8px 12px 8px 34px; border-radius: 20px;
    border: 1.5px solid #e2e8f0; font-size: 0.83rem; background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s; color: #1e293b;
    box-sizing: border-box;
}

.cdp-search-input:focus {
    border-color: #00C4CC; background: #fff; outline: none;
    box-shadow: 0 0 0 3px rgba(0,196,204,0.12);
}

.cdp-search-ic {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 0.95rem; pointer-events: none;
}

.cdp-close-btn {
    width: 32px; height: 32px; border-radius: 50%; border: none; flex-shrink: 0;
    background: #f1f5f9; cursor: pointer !important; display: flex !important; 
    align-items: center; justify-content: center; font-size: 1.1rem; color: #64748b;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    position: relative; z-index: 9999 !important; pointer-events: auto !important;
}

.cdp-close-btn:hover { background: #e2e8f0; color: #ef4444; transform: rotate(90deg); scale: 1.1; }
.cdp-close-btn i { pointer-events: none; }

.cdp-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }

.cdp-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 14px; padding: 16px; overflow-y: auto; flex: 1;
    scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent;
    align-content: start;
}

.cdp-grid::-webkit-scrollbar { width: 5px; }
.cdp-grid::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.cdp-card {
    border-radius: 12px; border: 1.5px solid #e8edf5; background: #fff;
    cursor: pointer; overflow: hidden; position: relative;
    display: flex; flex-direction: column;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), box-shadow 0.22s ease, border-color 0.2s;
}

.cdp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,196,204,0.15);
    border-color: #00C4CC;
}

.cdp-thumb-wrap {
    position: relative; width: 100%; aspect-ratio: 4/3;
    background: #f1f5f9; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}

.cdp-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.cdp-card:hover .cdp-thumb { transform: scale(1.05); }
.cdp-no-thumb { font-size: 2.2rem; color: #c7d2e6; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

.cdp-account-bar {
    background: #fdfdfd; border-bottom: 1.5px solid #f1f5f9;
    padding: 8px 20px; display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}

.cdp-active-account { display: flex; align-items: center; gap: 10px; }

.cdp-acc-pic {
    width: 24px; height: 24px; border-radius: 50%; background: #00c4cc;
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700;
}

.cdp-acc-details { line-height: 1.2; }
.cdp-acc-name { font-size: 0.82rem; font-weight: 700; color: #334155; }
.cdp-acc-lbl { font-size: 0.65rem; font-weight: 500; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.3px; }

.cdp-acc-actions { display: flex; align-items: center; gap: 12px; }

.cdp-switch-btn {
    background: none; border: 1.5px solid #e2e8f0; border-radius: 6px;
    padding: 4px 10px; font-size: 0.73rem; font-weight: 600; color: #64748b;
    cursor: pointer; transition: all 0.2s;
}

.cdp-switch-btn:hover { background: #f8fafc; border-color: #00C4CC; color: #00C4CC; }

.cdp-add-acc-link {
    font-size: 0.73rem; font-weight: 700; color: #00C4CC; text-decoration: none;
    display: flex; align-items: center; gap: 4px;
}

.cdp-add-acc-link:hover { text-decoration: underline; }

.cdp-acc-list-overlay {
    position: absolute; top: 105px; left: 20px; right: 20px; bottom: 20px;
    background: rgba(255,255,255,0.98); z-index: 102; border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); border: 1.5px solid #e2e8f0;
    display: none; flex-direction: column; padding: 20px;
}

.cdp-acc-list-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.cdp-acc-list-hdr h4 { margin: 0; font-size: 1rem; color: #1e293b; }

.cdp-acc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

.cdp-acc-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-radius: 10px; border: 1.5px solid #f1f5f9;
    cursor: pointer; transition: all 0.2s;
}

.cdp-acc-item:hover { background: #f8fafc; border-color: #00C4CC; }
.cdp-acc-item.active { border-color: #00C4CC; background: rgba(0,196,204,0.05); }

.cdp-empty {
    grid-column: 1 / -1; min-height: 100%; width: 100%;
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 60px 24px; text-align: center;
    background: radial-gradient(circle at center, #ffffff 0%, #fcfdfe 100%);
    animation: cdpFadeIn 0.5s ease-out;
}

.cdp-empty h4 {
    font-size: 1.25rem; font-weight: 800; color: #1e293b;
    margin: 0 0 10px; letter-spacing: -0.02em;
}

.cdp-empty p {
    font-size: 0.9rem; color: #64748b; max-width: 320px;
    margin: 0 0 24px; line-height: 1.6;
}

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

.cdp-card-footer { padding: 8px 10px 9px; border-top: 1px solid #f1f5f9; background: #fff; }
.cdp-card-name {
    font-size: 0.73rem; font-weight: 600; color: #334155;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.cdp-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 45%, rgba(0,196,204,0.82) 100%);
    opacity: 0; transition: opacity 0.22s;
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px;
    pointer-events: none;
}

.cdp-card:hover .cdp-overlay { opacity: 1; }

.cdp-use-btn {
    background: #fff; color: #009ea8; padding: 4px 13px;
    border-radius: 18px; font-size: 0.68rem; font-weight: 700;
    box-shadow: 0 1px 5px rgba(0,0,0,0.13); pointer-events: none;
}

.cdp-shimmer {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 196, 204, 0.3);
    border: none;
}

.cdp-connect-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #00C4CC 0%, #009ea8 100%);
    color: #fff !important; padding: 12px 24px; border-radius: 12px;
    font-size: 0.9rem; font-weight: 700; text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 196, 204, 0.3);
}

.cdp-connect-btn i { font-size: 1.1rem; }

.cdp-connect-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(0, 196, 204, 0.45);
    color: #fff;
    filter: brightness(1.1);
}

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

.cdp-exporting-overlay {
    position: absolute; inset: 0; background: rgba(255,255,255,0.8);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 12px; z-index: 5;
}

/* ── Analytics Dashboard Styles (Migrated) ── */
body.premium-analytics {
    font-family: 'Outfit', sans-serif !important;
    background: radial-gradient(circle at 50% -20%, #eff6ff, #f8fafc 60%, #ffffff) !important;
    min-height: 100vh;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.analytics-card {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 24px;
    border: 1px solid rgba(241, 245, 249, 0.6);
    box-shadow: 0 10px 30px -10px rgba(148, 163, 184, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.03), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.analytics-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(148, 163, 184, 0.15);
    border-color: rgba(99, 102, 241, 0.15);
}

.analytics-card:hover::before {
    opacity: 1;
}

.analytics-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.625rem;
    font-weight: bold;
    margin-bottom: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.analytics-card:hover .analytics-icon {
    transform: scale(1.15) rotate(5deg);
}

.analytics-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.04em;
    z-index: 1;
}

.analytics-label {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
}

/* Card Unique Styles */
#card-followers .analytics-icon {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
}

#card-reach .analytics-icon {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
}

#card-views .analytics-icon {
    background: linear-gradient(135deg, #fdf2f8 0%, #fbcfe8 100%);
    color: #db2777;
}

#card-interactions .analytics-icon {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    color: #ea580c;
}

#card-engagement .analytics-icon {
    background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
    color: #16a34a;
}

/* ── Select Account Empty State ── */
#select-account-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 3rem 2rem;
    background: #ffffff;
    border-radius: 28px;
    border: 1.5px dashed #c7d2fe;
    box-shadow: 0 8px 32px -8px rgba(99, 102, 241, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease both;
}

#select-account-state::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.sa-icon-wrap {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.18);
    animation: pulse-ring 2.5s ease infinite;
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0   rgba(99, 102, 241, 0.3); }
    70%  { box-shadow: 0 0 0 18px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0   rgba(99, 102, 241, 0); }
}

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

.sa-icon-wrap i {
    font-size: 2.75rem;
    color: #4f46e5;
}

.sa-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.025em;
}

.sa-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    max-width: 380px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.sa-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    animation: bounce-arrow 1.8s ease infinite;
    cursor: default;
    user-select: none;
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

.sa-platform-pills {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sa-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1.5px solid;
    opacity: 0.7;
}

.sa-pill img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.sa-pill-ig  { background: #fdf2f8; border-color: #fbcfe8; color: #db2777; }
.sa-pill-fb  { background: #eff6ff; border-color: #bfdbfe; color: #2563eb; }
.sa-pill-yt  { background: #fff1f2; border-color: #fecdd3; color: #e11d48; }
.sa-pill-li  { background: #f0f9ff; border-color: #bae6fd; color: #0284c7; }

/* ── Analytics Content (hidden until account chosen) ── */
#analytics-content {
    display: none;
}

/* Table Enhancements */
.table-container {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.4);
    padding: 1.75rem;
    box-shadow: 0 12px 36px -12px rgba(148, 163, 184, 0.08);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    padding: 1.125rem 1rem;
    font-size: 0.75rem;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    background: #f8fafc;
    border-bottom: 2px solid #f1f5f9;
    text-align: center;
}

td {
    padding: 1.25rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s;
    text-align: center;
}

/* Left align first two columns, center align numbers columns */
th:nth-child(1),
td:nth-child(1),
th:nth-child(2),
td:nth-child(2) {
    text-align: left;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #f8fafc;
}

.badge-platform {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0;
}

.badge-platform img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.badge-fb {
    background: #eff6ff;
    border-color: #dbeafe;
}

.badge-ig {
    background: #fdf2f8;
    border-color: #fbcfe8;
}

.badge-yt {
    background: #fff1f2;
    border-color: #fecdd3;
}

.badge-li {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.glass-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.glass-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    filter: brightness(1.05);
    cursor: pointer;
}

.tag-porlob {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s;
}

.tag-porlob i {
    font-size: 0.8rem;
}

tr:hover .tag-porlob {
    background: rgba(99, 102, 241, 0.12);
    transform: scale(1.05);
}

.page-num {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.page-num:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.page-num.active {
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.row-porlob td {
    background-color: #f0f4ff !important;
    border-bottom: 1px solid #e0e7ff !important;
}

.row-porlob td:first-child {
    border-left: 6px solid #6366f1 !important;
}

.row-external td {
    background-color: #ffffff !important;
}

tr:hover td {
    background-color: #f1f5f9 !important;
}

.row-porlob:hover td {
    background-color: #e8edff !important;
}

/* Trends Modal Styles */
.trends-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.trends-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    position: relative;
    animation: modalSlide 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover { color: #0f172a; }

.trends-header {
    margin-bottom: 2rem;
    border-left: 4px solid #6366f1;
    padding-left: 1rem;
}

.trends-title { font-size: 1.25rem; font-weight: 800; color: #1e293b; margin: 0; }
.trends-subtitle { color: #64748b; font-size: 0.875rem; font-weight: 500; }

.btn-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #059669;
    text-decoration: none;
    background: #ecfdf5;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-trend:hover {
    background: #d1fae5;
    transform: translateY(-1px);
}

/* Simplified Header Styles to resolve overlap */
.sticky-dashboard-header {
    margin: 0 0 2rem 0;
    padding: 0;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    
}

.sticky-dashboard-header .header-left, 
.sticky-dashboard-header .header-right {
    transition: transform 0.3s ease;
}

.sticky-dashboard-header.scrolled #page-title-heading {
    font-size: 1.5rem !important;
}

.sticky-dashboard-header.scrolled #platform-title-badge {
    transform: scale(0.9);
}

/* Sticky Dashboard Header UI */
.sticky-dashboard-header {
    position: sticky;
    top: 115px; /* adjust to header height */
    z-index: 30;

    background: #ffffff;

    padding: 16px 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid #e5e7eb;

    transition: all 0.25s ease;

    /* smooth shadow */
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Title section */
.sticky-dashboard-header .header-left h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

/* Subtitle */
.header-subtitle {
    font-size: 14px;
    color: #64748b;
}

/* Right controls spacing */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Sticky shadow when scrolling */
.sticky-dashboard-header.scrolled {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Adjust chart height for mobile */
@media (max-width: 600px) {
    #performance-chart, #growth-chart {
        min-height: 250px !important;
    }
}

/* ==========================================================================
   Approval Queue Preview Modal and Post Card Styles
   ========================================================================= */

/* Tabs Badges */
.tab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.tab-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    transition: all 0.2s;
}
.tab-btn.active .tab-badge {
    background: #4f46e5;
    color: #ffffff;
}

/* Modal Overlay styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
    /* Hidden by default via visibility/opacity - keeps display:flex intact */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

/* Body scroll lock when modal open */
body.modal-open-noscroll { overflow: hidden; }

/* Modal Card styling */
.modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.is-open .modal-card {
    transform: translateY(0);
}


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

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.modal-close-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close-btn:hover {
    color: #0f172a;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.preview-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    height: 100%;
}

@media (max-width: 768px) {
    .preview-split {
        grid-template-columns: 1fr;
    }
}

/* Mockups styling */
.preview-left {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.mockup-platform-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}
.mockup-tab {
    padding: 6px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s;
}
.mockup-tab:hover {
    color: #0f172a;
    background: #f1f5f9;
}
.mockup-tab.active {
    color: #4f46e5;
    background: #eeebff;
}
.mockup-content {
    display: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.mockup-content.active {
    display: block;
}

/* Social specific mockups */
.mockup-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.mockup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.mockup-header-info {
    display: flex;
    flex-direction: column;
}
.mockup-author-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.875rem;
}
.mockup-post-time {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.mockup-post-text {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
    white-space: pre-wrap;
    margin-bottom: 0.75rem;
}
.mockup-post-media {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    margin-bottom: 0.75rem;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 350px;
}
.mockup-post-media img, .mockup-post-media video {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}
.mockup-post-actions-dummy {
    border-top: 1px solid #f1f5f9;
    padding-top: 0.75rem;
    display: flex;
    justify-content: space-around;
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 600;
}
.mockup-post-actions-dummy span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: default;
}

/* Instagram Specific */
.mockup-instagram-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 1.25rem;
    color: #0f172a;
}
.mockup-instagram-actions .left-actions {
    display: flex;
    gap: 1rem;
}

/* LinkedIn Specific */
.mockup-author-title {
    font-size: 0.75rem;
    color: #64748b;
}
.linkedin-actions {
    border-top: 1px solid #e2e8f0;
}

/* YouTube Specific */
.youtube-video-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #0f172a;
}
.youtube-channel-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.youtube-channel-info {
    flex: 1;
}
.youtube-channel-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #0f172a;
}
.youtube-subs {
    font-size: 0.75rem;
    color: #64748b;
}
.youtube-sub-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 6px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: default;
}
.youtube-description-box {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 0.75rem;
}
.youtube-views {
    font-weight: 600;
    font-size: 0.8125rem;
    color: #334155;
    margin-bottom: 0.25rem;
}

/* Right column: Details and Actions */
.preview-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.details-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}
.detail-label {
    font-weight: 600;
    color: #64748b;
}
.detail-value {
    font-weight: 500;
    color: #0f172a;
}
.detail-value.text-badge {
    background: #eeebff;
    color: #4f46e5;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.platforms-list {
    display: flex;
    gap: 0.25rem;
}
.modal-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Beautiful cards */
.post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    position: relative;
    overflow: hidden;
}
.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.post-card-media {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    font-size: 2rem;
    color: #94a3b8;
    position: relative;
}
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    transition: background 0.2s;
}
.post-card:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Platform-Specific Mockup Styles
   ========================================================================= */

/* Shared avatar circle with colored background */
.mockup-avatar-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

/* Instagram gradient ring avatar */
.ig-avatar-ring {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 2px;
}
.ig-avatar-ring img {
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    width: 32px;
    height: 32px;
}

/* Facebook mockup */
.mockup-fb-card {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.mockup-fb-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #65676b;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e4e6eb;
    margin-bottom: 0.25rem;
}

/* Instagram media box — square */
.ig-media-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
}
.ig-media-box img, .ig-media-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LinkedIn mockup */
.mockup-li-card {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #fff;
}

/* YouTube mockup */
.mockup-yt-card { background: #fff; }
.yt-media-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}
.yt-media-box img, .yt-media-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal layout: right column always shows buttons without scroll */
.modal-card { display: flex; flex-direction: column; }
.modal-body  { flex: 1; overflow-y: auto; }
.preview-split { min-height: 0; }
.preview-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.modal-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Green Approve button */
.btn-approve {
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-approve:hover { background: #15803d; }

/* Red Reject button */
.btn-reject {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-reject:hover { background: #fecaca; }
