.resto-m2-social {
    max-width: 1200px;
}

.social-stats {
    background: var(--brand-surface-1, #fff);
    border: 1px solid var(--brand-border-subtle, #ccd0d4);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    background: var(--brand-surface-2, #f8f9fa);
    border: 1px solid var(--brand-border-subtle, #dee2e6);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 5px 0;
    font-size: 28px;
    color: var(--brand-primary, #0073aa);
    font-weight: bold;
}

.stat-card p {
    margin: 0;
    color: var(--brand-on-surface-muted, #666);
    font-size: 14px;
}

.social-section {
    background: var(--brand-surface-1, #fff);
    border: 1px solid var(--brand-border-subtle, #ccd0d4);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.social-section h2 {
    color: var(--brand-on-surface, #23282d);
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-primary, #0073aa);
}

.platform-settings {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.platform-settings input[type="text"] {
    flex: 1;
    max-width: 200px;
}

.resto-social-share {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: #fff;
    text-decoration: none;
}

.social-share-btn.facebook {
    background: #1877f2;
}

.social-share-btn.facebook:hover {
    background: #166fe5;
}

.social-share-btn.twitter {
    background: #1da1f2;
}

.social-share-btn.twitter:hover {
    background: #0d95e8;
}

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

.social-share-btn.whatsapp {
    background: #25d366;
}

.social-share-btn.whatsapp:hover {
    background: #128c7e;
}

.social-share-btn.linkedin {
    background: #0077b5;
}

.social-share-btn.linkedin:hover {
    background: #005885;
}

.share-analytics {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.share-analytics h3 {
    margin-top: 0;
    color: #333;
}

.analytics-chart {
    height: 300px;
    margin-top: 15px;
}

.platform-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.platform-toggle label {
    font-weight: 600;
    min-width: 100px;
}

.social-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.social-preview h4 {
    margin-top: 0;
    color: #333;
}

.preview-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    max-width: 400px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-settings {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .platform-settings input[type="text"] {
        max-width: 100%;
        width: 100%;
    }
    
    .resto-social-share {
        justify-content: center;
    }
}

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

.resto-m2-social .resto-meta-card,
.resto-m2-social .resto-meta-hero,
.resto-m2-social .resto-meta-workflow-item,
.resto-m2-social .resto-meta-account,
.resto-m2-social .resto-meta-subcard,
.resto-m2-social .resto-meta-filter-btn,
.resto-m2-social .resto-meta-anchor {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.resto-m2-social .resto-meta-card:hover,
.resto-m2-social .resto-meta-workflow-item:hover,
.resto-m2-social .resto-meta-account:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.resto-m2-social .resto-meta-anchor:hover,
.resto-m2-social .resto-meta-filter-btn:hover,
.resto-m2-social .resto-meta-preset-btn:hover {
    transform: translateY(-1px);
}

.resto-m2-social #resto-meta-connect,
.resto-m2-social #resto-meta-settings,
.resto-m2-social #resto-meta-ops {
    scroll-margin-top: 24px;
}

.resto-m2-social .resto-meta-workflow-item {
    position: relative;
    overflow: hidden;
}

.resto-m2-social .resto-meta-workflow-item::after {
    content: "";
    position: absolute;
    inset: auto -20% -50% auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, rgba(59,130,246,0) 72%);
    pointer-events: none;
}

.resto-m2-social .resto-meta-preset-btn {
    border-radius: 999px;
}

.resto-m2-social .resto-meta-preset-btn.is-selected {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.resto-m2-social .resto-meta-subcard code,
.resto-m2-social .resto-meta-alert code {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 2px 6px;
    border-radius: 6px;
}

.resto-m2-social .resto-social-job-row[data-job-status="failed"] td:first-child {
    box-shadow: inset 4px 0 0 #dc2626;
}

.resto-m2-social .resto-social-job-row[data-job-status="published"] td:first-child {
    box-shadow: inset 4px 0 0 #16a34a;
}

.resto-m2-social .resto-social-job-row[data-job-status="pending"] td:first-child,
.resto-m2-social .resto-social-job-row[data-job-status="publishing"] td:first-child {
    box-shadow: inset 4px 0 0 #2563eb;
}

.resto-m2-social .resto-meta-filterbar {
    align-items: center;
    justify-content: flex-start;
}

.resto-m2-social .resto-meta-table-tools {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.8fr);
    align-items: end;
    margin-top: 18px;
}

.resto-m2-social .resto-meta-search-wrap input[type="search"] {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    border-color: #cbd5e1;
    padding-inline: 14px;
}

.resto-m2-social .resto-social-job-log-row {
    display: none;
}

.resto-m2-social .resto-social-log-toggle-btn.is-open {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.resto-m2-social .resto-meta-filter-btn {
    font-weight: 600;
}

.resto-m2-social .resto-meta-actions .button.button-primary {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.resto-m2-social .resto-meta-progress-fill {
    box-shadow: 0 0 24px rgba(255,255,255,0.28);
}

@media (max-width: 782px) {
    .resto-m2-social .resto-meta-table-tools {
        grid-template-columns: 1fr;
    }

    .resto-m2-social .resto-meta-filterbar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }
}

/* ---- F3-B1: relocated from inline <style> in social-media-system.php (Meta/Instagram dashboard). Neutrals tokenized; Meta-blue accents + semantic status colors left intact. ---- */
.resto-meta-page { display:grid; gap:20px; margin-top:20px; }
.resto-meta-card { background:var(--brand-surface-1, #fff); border:1px solid var(--brand-border-subtle, #e5e7eb); border-radius:18px; padding:24px; box-shadow:0 12px 30px rgba(15,23,42,0.05); }
.resto-meta-hero { background:linear-gradient(135deg,#0f172a 0%,#1d4ed8 55%,#0ea5e9 100%); color:#fff; border-radius:24px; padding:28px; box-shadow:0 24px 60px rgba(37,99,235,0.22); }
.resto-meta-kicker { font-size:12px; letter-spacing:1.4px; text-transform:uppercase; color:rgba(255,255,255,0.68); margin-bottom:10px; }
.resto-meta-hero h2 { margin:0 0 10px 0; color:#fff; font-size:30px; line-height:1.2; }
.resto-meta-hero p { margin:0; color:rgba(255,255,255,0.86); line-height:1.6; }
.resto-meta-grid { display:grid; gap:16px; }
.resto-meta-grid-2 { grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); }
.resto-meta-grid-3 { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.resto-meta-kpi-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin-top:22px; }
.resto-meta-kpi { background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.14); border-radius:16px; padding:18px; }
.resto-meta-kpi-label { font-size:12px; text-transform:uppercase; color:rgba(255,255,255,0.72); }
.resto-meta-kpi-value { font-size:26px; font-weight:700; margin-top:8px; }
.resto-meta-kpi-note { margin-top:6px; color:rgba(255,255,255,0.78); font-size:13px; }
.resto-meta-inline-grid { display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); margin-top:18px; }
.resto-meta-glass { background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.14); border-radius:18px; padding:18px; }
.resto-meta-progress-bar { height:10px; border-radius:999px; background:rgba(255,255,255,0.18); overflow:hidden; margin-top:12px; }
.resto-meta-progress-fill { height:100%; border-radius:999px; background:linear-gradient(90deg,#34d399 0%,#fde68a 50%,#fff 100%); }
.resto-meta-mini-note { margin-top:8px; color:rgba(255,255,255,0.82); font-size:13px; line-height:1.6; }
.resto-meta-toolbar, .resto-meta-actions { display:flex; gap:10px; flex-wrap:wrap; }
.resto-meta-toolbar .button, .resto-meta-actions .button { min-height:40px; display:inline-flex; align-items:center; justify-content:center; }
.resto-meta-anchor { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:999px; background:rgba(255,255,255,0.12); color:#fff; text-decoration:none; }
.resto-meta-section-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.resto-meta-section-head h2 { margin:0 0 8px 0; }
.resto-meta-section-head p { margin:0; max-width:780px; color:var(--brand-on-surface-muted, #64748b); line-height:1.6; }
.resto-meta-subcard { background:var(--brand-surface-2, #f8fafc); border:1px solid var(--brand-border-subtle, #e2e8f0); border-radius:16px; padding:18px; }
.resto-meta-subcard h3 { margin:0 0 12px 0; font-size:16px; }
.resto-meta-subcard p { line-height:1.6; }
.resto-meta-stack { display:grid; gap:16px; }
.resto-meta-checklist { display:grid; gap:10px; }
.resto-meta-check { display:flex; gap:12px; align-items:flex-start; }
.resto-meta-check-icon { width:24px; height:24px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; flex:0 0 auto; }
.resto-meta-check-icon.done { background:#dcfce7; color:#166534; }
.resto-meta-check-icon.pending { background:#fee2e2; color:#b91c1c; }
.resto-meta-check-title { font-weight:600; color:var(--brand-on-surface, #0f172a); }
.resto-meta-check-detail { color:var(--brand-on-surface-muted, #64748b); font-size:13px; margin-top:4px; }
.resto-meta-alerts { display:grid; gap:10px; }
.resto-meta-alert { border-radius:14px; padding:14px 16px; background:var(--brand-surface-1, #fff); border:1px solid var(--brand-border-subtle, #e2e8f0); }
.resto-meta-alert strong { display:block; margin-bottom:4px; color:var(--brand-on-surface, #0f172a); }
.resto-meta-alert p { margin:0; color:var(--brand-on-surface-muted, #64748b); }
.resto-meta-alert.good { background:#ecfdf5; border-color:#bbf7d0; }
.resto-meta-alert.good strong, .resto-meta-alert.good p { color:#166534; }
.resto-meta-account-grid { display:grid; gap:12px; }
.resto-meta-account { background:var(--brand-surface-1, #fff); border:1px solid var(--brand-border-subtle, #dbe4f0); border-radius:16px; padding:18px; display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.resto-meta-account.active { border-color:#93c5fd; box-shadow:0 0 0 1px #bfdbfe inset; background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%); }
.resto-meta-badge { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; font-size:12px; font-weight:600; }
.resto-meta-badge.active { background:#dbeafe; color:#1d4ed8; }
.resto-meta-badge.neutral { background:#eef2ff; color:#4338ca; }
.resto-meta-badge.health-healthy { background:#dcfce7; color:#166534; }
.resto-meta-badge.health-warning { background:#fef3c7; color:#92400e; }
.resto-meta-badge.health-invalid { background:#fee2e2; color:#991b1b; }
.resto-meta-badge.health-reconnect_required { background:#fee2e2; color:#991b1b; }
.resto-meta-badge.health-disconnected { background:#f1f5f9; color:#475569; }
.resto-meta-meta { color:var(--brand-on-surface-muted, #64748b); font-size:13px; line-height:1.7; }
.resto-meta-empty { border:1px dashed var(--brand-border-subtle, #cbd5e1); border-radius:16px; padding:22px; background:var(--brand-surface-2, #f8fafc); color:var(--brand-on-surface-muted, #475569); }
.resto-meta-empty p { margin:0 0 12px 0; }
.resto-meta-placeholder-list { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.resto-meta-placeholder { background:#eff6ff; color:#1d4ed8; border-radius:999px; padding:6px 10px; font-size:12px; }
.resto-meta-workflow { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.resto-meta-workflow-item { background:var(--brand-surface-1, #fff); border:1px solid var(--brand-border-subtle, #dbe4f0); border-radius:16px; padding:16px; }
.resto-meta-workflow-step { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:999px; background:#dbeafe; color:#1d4ed8; font-size:12px; font-weight:700; margin-bottom:10px; }
.resto-meta-filterbar { display:flex; gap:8px; flex-wrap:wrap; margin-top:18px; }
.resto-meta-filter-btn { border:1px solid var(--brand-border-subtle, #cbd5e1); background:var(--brand-surface-1, #fff); color:var(--brand-on-surface, #334155); border-radius:999px; padding:8px 12px; cursor:pointer; font-size:13px; }
.resto-meta-filter-btn.active { background:#1d4ed8; border-color:#1d4ed8; color:#fff; }
.resto-meta-ops-summary { display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); margin-top:16px; }
.resto-meta-connect-panel { background:linear-gradient(180deg,#eff6ff 0%,#ffffff 100%); border:1px solid #bfdbfe; border-radius:18px; padding:20px; }
.resto-meta-connect-panel h3 { margin:0 0 10px 0; }
.resto-meta-connect-panel p { margin:0; color:var(--brand-on-surface-muted, #475569); line-height:1.7; }
.resto-meta-connect-panel .button-primary { min-width:220px; justify-content:center; }
.resto-meta-connect-note { margin-top:12px; padding:12px 14px; border-radius:12px; background:var(--brand-surface-1, #fff); border:1px solid #dbeafe; color:#1e3a8a; font-size:13px; line-height:1.6; }
.resto-meta-connect-warning { margin-top:12px; padding:12px 14px; border-radius:12px; background:#fff7ed; border:1px solid #fdba74; color:#9a3412; font-size:13px; line-height:1.7; }
.resto-meta-connect-error { margin-top:12px; padding:12px 14px; border-radius:12px; background:#fff1f2; border:1px solid #fecdd3; color:#9f1239; font-size:13px; line-height:1.6; }
.resto-meta-advanced-summary { cursor:pointer; font-weight:600; color:var(--brand-on-surface, #0f172a); }
@media (max-width: 782px) {
    .resto-meta-card, .resto-meta-hero { padding:20px; }
    .resto-meta-hero h2 { font-size:24px; }
}
