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

.social-stats {
    background: #fff;
    border: 1px solid #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: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 5px 0;
    font-size: 28px;
    color: #0073aa;
    font-weight: bold;
}

.stat-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.social-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.social-section h2 {
    color: #23282d;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #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;
    }
}
