.creative-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.creative-slot {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color 0.2s;
    background: var(--bg);
}

.creative-slot.filled {
    border-color: var(--green, #22c55e);
    border-style: solid;
}

.creative-slot-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.creative-slot-preview {
    width: 100%;
    display: flex;
    justify-content: center;
}

.creative-slot-preview img,
.creative-slot-preview video {
    max-height: 110px;
    max-width: 100%;
    border-radius: var(--radius-sm, 6px);
    object-fit: cover;
}

.creative-slot-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.creative-slot-actions .btn {
    font-size: 12px;
    padding: 5px 10px;
}

.slot-placeholder-icon {
    font-size: 28px;
    opacity: 0.3;
}

.fb-success-card {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--radius-lg, 12px);
    padding: 32px;
    text-align: center;
}

.fb-success-card h2 {
    margin-bottom: 8px;
    color: #166534;
}

.fb-success-card p {
    color: #15803d;
    margin-bottom: 20px;
}

.fb-ads-failed {
    margin-top: 16px;
    padding: 12px;
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: var(--radius, 8px);
    font-size: 13px;
    text-align: left;
}

.fb-ads-failed ul {
    margin: 6px 0 0 16px;
    color: #854d0e;
}

/* ── Tabs ───────────────────────────────────────────────────────────────── */

.fb-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.fb-tab {
    padding: 8px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: background .15s, color .15s, border-color .15s;
}

.fb-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ── Campaign stats table ───────────────────────────────────────────────── */

.fb-campaigns-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.fb-campaigns-table th {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.fb-campaigns-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-light, #f3f4f6);
    vertical-align: middle;
}

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

.fb-status-active {
    background: #d1fae5;
    color: #065f46;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}

.fb-status-paused {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}
